Commit Graph

195 Commits

Author SHA1 Message Date
luzpaz
91a4766cef treewide: fix typos
Found via `codespell -q 3 -S "*.patch,*.po" -L acount,afile,distroname,parm,serie,synopsys`
2025-02-03 07:04:59 -05:00
Peter Tuschy
a43c069a2a busybox: init: fix toram when SYSTEM_IMAGE is with path
For the SYSTEM copy to /dev always use /dev/SYSTEM as target name
to not deal with fancy path or filenames.
Thanks HiassofT for clearing it up for me why that is best.
As far as i can tell all the rest of init is fine with BOOT_IMAGE and
SYSTEM_IMAGE having slashes in there.
Just toram was broken.
2024-03-25 13:09:38 +01:00
Ian Leonard
9d03223e80 busybox: init: use buildsystem's SYSTEM_SIZE for update warning
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-10-17 22:03:09 +00:00
Ian Leonard
dba57ca636 init: stop checking for OPENELEC_ARCH
This stops LE's update checker from accepting OE images as system
updates. The checker may be disabled if someone wants to do this.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-03-23 18:54:44 +00:00
Matthias Reichl
8f1344f6fd Move kernel overlays setup to init
When running kernel-overlays-setup as a systemd service we have
a short window where /lib/firmware isn't available.

This causes drm edid override to occasionally fail if the edid file
is requested between switching to sysroot and completion of the
kernel-overlays-setup script.

Setting up firmware and module overlays in init, before switching
to sysroot, closes the gap and also has the benefit that we no longer
need to care about the rather tedious systemd unit ordering.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-02-08 16:16:17 +01:00
Matthias Reichl
cf763e204f init: create /run tmpfs in init
The filesystem options are set to match what systemd is using when
it would create the /run tmpfs, see src/core/mount-setup.c in
systemd source code.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-02-08 16:16:17 +01:00
Matthias Reichl
2da7a9f351 init: drop INIT_UNIT logic
This is now handled by the libreelec-target-generator systemd
generator.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-08-25 23:58:02 +02:00
Ian Leonard
50771db2ae Revert "busybox: init: remove usleep"
usleep is used by init's functions to create quarter and half second
progress reports. Not worth diving into for what was a 1.2kb savings.

This reverts commit 9e055544be.
2020-06-29 05:04:08 +00:00
Ian Leonard
9e055544be busybox: init: remove usleep
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2020-06-26 21:53:04 +00:00
Ian Leonard
a72e31a1a2 system: make configuration restore less selective on backup file names
Restoring system settings expects a filename of 14 characters followed
by .tar ($DATESTAMP.tar from the backup file the addon creates).

Change to glob onto whatever *.tar file gets put into /storage/.restore/
at the busybox init and system restore level. The addon still creates
and expects the $DATESTAMP.tar file, so users will need to use this
feature by ssh or other method.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2020-06-26 21:53:04 +00:00
MilhouseVH
db46d22cec init: remove file before overwriting 2020-01-25 06:53:32 +00:00
Matthias Reichl
9b10ad20d5 init: drop support for loading modules in initramfs
Support for modules in initramfs was removed more than half a year
ago but I forgot to remove the now useless load_modules function in
init.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-01-10 15:08:15 +01:00
Christian Hewitt
ec1a30b21d Merge pull request #4026 from mglae/le10_fsck_kmsg
init: fsck: fix kmsg log writes
2019-12-09 07:39:34 +08:00
MilhouseVH
c96889de82 Merge pull request #3990 from HiassofT/le10-init-hard-nfs-mount
init: don't mount nfs shares with soft option by default
2019-11-29 21:42:24 +00:00
mglae
414a958fab init: fsck: fix kmsg log writes 2019-11-28 00:10:21 +01:00
Matthias Reichl
fa8acf0782 init: don't mount nfs shares with soft option by default
Using the soft timeout option for NFS mounts is a really bad idea
and the nfs(5) manpage explicitly warns about it's issues:

    NB: A so-called "soft" timeout  can  cause  silent  data
    corruption  in  certain cases. As such, use the soft op‐
    tion only when client responsiveness is  more  important
    than  data  integrity.  Using NFS over TCP or increasing
    the value of the retrans option may mitigate some of the
    risks of using the soft option.

So don't enable it by default, anyone who feels keen to take the
risk can specify it manually on kernel command line.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-16 15:37:41 +01:00
Matthias Reichl
432b6a8d9e busybox: create marker file if kernel ip configuration is used
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-15 18:51:54 +01:00
MilhouseVH
ecbd566302 Merge pull request #3896 from antonlacon/le10-systemd-cpufreq
init: move cpufreq tuning to systemd service
2019-11-15 17:50:36 +00:00
MilhouseVH
03d07ab28f Update with vl805 support 2019-10-29 11:51:27 +00:00
Ian Leonard
f27caaddc1 systemd: use a cpufreq service to configure cpu governor
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-10-28 15:55:22 +00:00
MilhouseVH
399fe7ee80 init: conditionally unmount /update after a failed update 2019-10-18 16:42:41 +01:00
MilhouseVH
39f0f8023c Merge pull request #3856 from mglae/le10_fsck
init: fsck: wait for devices and unhide messages
2019-09-24 20:49:33 +01:00
MilhouseVH
bf9d3db27b Merge pull request #3825 from sky42src/le10-early-squashfs
busybox: init: mount squashfs early
2019-09-24 20:37:25 +01:00
MilhouseVH
993ac53944 init: add fix for RPi4 serial numbers 2019-09-23 17:17:52 +01:00
mglae
27672027c7 init: fsck: wait for devices and unhide messages 2019-09-19 23:46:25 +02:00
sky42
a76b173d7d busybox: init: changed upgrade to update in notes/messages 2019-09-18 20:46:55 +02:00
sky42
a62877a484 busybox: init: less mount/umount for update process 2019-09-18 20:37:51 +02:00
sky42
824ed7c281 busybox: init: mount squashfs early
to have a full set of binaries in the init process as early as possible
it now mounts the squashfs direct after mounting /flash.
there is also a hook /flash/post-sysroot.sh for custom scripting.
i will use this e.g. for lvm2 and cryptsetup in the init process,
because they are very big and i dont like them in initramfs.
2019-09-18 20:37:50 +02:00
Matthias Reichl
ed840db477 init: make copying SYSTEM to RAM opt-in
Copying SYSTEM to RAM eats up precious memory that'd be better used
for kernel filesystem cache and other things and can takes quite some
time on slower storage devices like SD cards.

Instead of having two options to define a minimum RAM size (below
which SYSTEM won't be copied) and the "noram" option (which disables
copying completely) reverse the logic and use a single "toram" option
which users can set on kernel command line if they want SYSTEM copied
to RAM.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-13 10:28:56 +02:00
MilhouseVH
5d01dc4f1d init: cleanup flash; execute real script not wrapper 2019-09-08 18:30:23 +01:00
MilhouseVH
05184d1d23 init: add rpi-flash-firmware service 2019-09-06 19:30:13 +01:00
Matthias Reichl
1cb0af881c init: make resolution limit for using big console font configurable
The vertical resulution limit can be set with the "bigfont" option.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-08-23 12:55:15 +02:00
Matthias Reichl
5f9248eb59 init: use terminus 16x32 font on >1080 lines displays
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-08-23 12:55:15 +02:00
MilhouseVH
b0e0aa64e9 init: clean up splash image selection 2019-07-02 16:34:29 +01:00
MilhouseVH
ff3887ee11 init: more informative syslinux boot message 2019-06-18 03:16:04 +01:00
Matthias Reichl
7f52096b6d busybox: drop uvesafb module handling in init
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-05-24 16:22:48 +02:00
CvH
851f654777 Merge pull request #3458 from kszaq/drop_aml_3.14
Goodbye Amlogic 3.14
2019-05-04 07:22:11 +02:00
Ian Leonard
1fcc9d3247 image: drop OPENELEC_ARCH from /etc/os-release
Also swaps the necessary variable check in busybox/init to acoomodate OPENELEC_ARCH
may or may not exist, while LIBREELEC_ARCH will be assumed to exist.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-05-03 23:11:24 +00:00
kszaq
10b7806c2e busybox/init: amend comment on block devices 2019-05-04 00:02:46 +02:00
kszaq
52d603a711 init: set ondemand up_threshold for multi-cluster CPUs
For multi-cluster CPUs (e.g. Amlogic S912) there is a separate
policy for each CPU cluster. Add a case in init script to cover
setting up_threshold for all clusters.
2019-04-22 22:00:34 +02:00
Ian Leonard
b77ec0436a busybox/init: integer comparisons in fsck retval checks
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-03-10 00:03:43 +00:00
Ian Leonard
efd28315ac busybox/init: style changes
Remove whitespace between ] and ;
Elminiate line continuations where they don't aid readability

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-03-10 00:01:34 +00:00
Ian Leonard
497933e776 busybox/init: reorder script
This changes the order of the script to be:

Necssary bring up tasks
Setting variables to control rest of system intialization
Sourcing shared functions
Setting script functions
Doing the work of bringing the system up

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-03-10 00:01:34 +00:00
Ian Leonard
7ebd79ae67 busybox/init: remove leading indent
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-03-10 00:01:34 +00:00
CvH
1b9cbdaf26 spdx: packages/sysutils 2018-07-18 22:37:47 +02:00
chewitt
2c05b8c7ba busybox: tweak text as dtb.img is not a bootloader 2018-07-06 10:49:03 +04:00
MilhouseVH
6d696c7ac3 init: strip leading / from BOOT_IMAGE & DISK_IMAGE, normalising for all projects 2018-06-13 14:20:57 +01:00
Lukas Rusak
37b4ddd3cd Revert "init: fix // as IMAGE_KERNEL and IMAGE_SYSTEM should always have a leading /"
This reverts commit 01a87ad788.
2018-06-11 10:10:14 -07:00
MilhouseVH
517330f9fe installer: drop extlinux support, not needed - use syslinux 2018-05-15 22:14:42 +01:00
MilhouseVH
cdb7daba21 grub: drop /flash/grub.cfg 2018-05-15 22:14:42 +01:00