Commit Graph

315 Commits

Author SHA1 Message Date
Matthias Reichl
a62294272a busybox: create /storage/.cache/kernel-overlays via tmpfiles.d
Signed-off-by: Matthias Reichl <hias@horus.com>
2021-02-08 16:16:17 +01: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
Christian Hewitt
e5cb1ade46 dthelper: only flag memsize for pi and 512mb boards 2021-01-25 08:46:38 +00:00
Christian Hewitt
f55929632e busybox: drop VIM3 workaround from ledfix 2021-01-13 11:29:08 +00:00
Christian Hewitt
ea100f54a0 busybox: add fsl to dthelper compatibles 2020-12-09 02:54:13 +00:00
Christian Hewitt
05174a6f99 busybox: rework device-tree helper scripts 2020-11-19 05:20:56 +00:00
CvH
ebdbda6024 Merge pull request #4463 from antonlacon/le10-backup-restore
system: accept compressed configuration backups
2020-10-10 07:47:42 +02:00
David Vukovic
e081c6ecd2 [getedid] remove kernel check 2020-10-07 00:37:48 +02:00
Ian Leonard
f569f7a06a system: accept compressed configuration backups
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2020-10-01 23:22:35 +00: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
Matthias Reichl
d233b7660d busybox: add systemd generator to override default.target
libreelec-target-generator replaces the logic previously used
in the initramfs init script and dynamically redirects default.target
if needed.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-08-25 23:58:02 +02:00
Jernej Škrabec
3ff609fd34 Merge pull request #4468 from chewitt/samsung
add experimental Samsung/Exynos/Odroid-XU4 project
2020-07-06 17:30:44 +02:00
chewitt
25e7ecaa43 busybox: add ledfix script/service 2020-07-06 06:49:47 +00:00
chewitt
025f14a851 samsung: add samsung compatible to dtname/dtfile/dtsoc 2020-07-01 09:54:47 +00: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
chewitt
929506c895 busybox: fix search order in dtfile 2020-03-02 08:02:06 +00:00
Christian Hewitt
26f52b6621 Merge pull request #4145 from MilhouseVH/le10_init_fix_race
init: remove file before overwriting
2020-01-31 10:45:28 +03:00
DaVukovic
bec551e67b [busybox] getedid fixes 2020-01-26 09:41:31 +01: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