3245 Commits

Author SHA1 Message Date
Christian Hewitt
d3821c7676 busybox: rework device-tree helper scripts 2020-11-20 02:50:03 +00:00
David Vukovic
16c22208da [getedid] remove kernel check 2020-10-07 00:36:41 +02:00
mglae
8dca6fefa3 systemd: remove systemd-time-wait-sync and depend on wait-time-sync 2020-06-15 18:27:23 +02:00
mglae
d142c8df78 wait-time-sync: new package to reliable detect ntp synchronized system time 2020-06-15 18:27:22 +02:00
CvH
5596ef7449
Merge pull request #4296 from mglae/le92_installer_fat16
installer: use FAT16 for Generic system partition / dosfstools: reduce fsck.fat log spam
2020-05-03 11:03:51 +02:00
Matthias Reichl
e2059c7d5a lirc: add patch to fix zotac driver
See https://sourceforge.net/p/lirc/tickets/327/

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-04-10 10:18:47 +02:00
mglae
fe446d0370 dosfstools: fsck.fat: reduce log spam, no backup boot sector diff in automatic mode 2020-04-04 18:35:26 +02:00
DaVukovic
751f49eec5 [busybox] getedid fixes 2020-01-28 08:46:26 +01:00
Christian Hewitt
a8b12b1052
Merge pull request #4135 from MilhouseVH/le92_dosfstools_e2fsprogs_updates
dosfstools/e2fsprogs: bump and fix [backport]
2020-01-23 17:53:25 +04:00
chewitt
cffbf60a6a systemd: add 70-local-keyboard.hwdb to systemd package 2020-01-22 07:25:28 +00:00
MilhouseVH
6f80a63266 e2fsprogs: remove unrecognized option 2020-01-21 19:05:51 +00:00
MilhouseVH
8b8fa8b2a1 e2fsprogs: disable automagic udev/systemd/crond detection 2020-01-21 19:05:51 +00:00
MilhouseVH
97a6b1e063 busybox: disable mkfs.vfat for target, use full-fat dosfstools 2020-01-21 19:05:37 +00:00
MilhouseVH
5ce2a0bf78 dosfstools: drop pre-4.0.0 build workarounds 2020-01-21 19:05:37 +00:00
MilhouseVH
d5cf40ff13 e2fsprogs: update to e2fsprogs-1.45.3 2020-01-21 19:05:37 +00:00
MilhouseVH
91b9547161 dosfstools: update to dosfstools-4.1 2020-01-21 19:05:37 +00:00
Ian Leonard
64e85d7498 tz: update to 2019c
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2020-01-09 17:10:51 +01:00
Matthias Reichl
3f0c2ebb56 lirc: add dependency on alsa-lib
This fixes missing alsa_usb plugin.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-12-09 13:45:53 +01:00
Christian Hewitt
d97ed1c987
Merge pull request #3991 from HiassofT/le92-nfs-backports
[le92] NFS / netboot backports
2019-12-09 08:01:35 +08:00
mglae
4dd199dff2 init: fsck: fix kmsg log writes 2019-11-28 00:21:37 +01:00
Matthias Reichl
29d9d08e49 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 17:38:24 +01:00
Matthias Reichl
dd6f2cfe5c systemd: prevent unmounting storage via umount.target
/storage will be unmounted by systemd-shutdown, like /flash.

As the squashfs root has several symlinks to /storage it
should not be unmounted during the normal shutdown process.
This prevents the symlinked files/directories vanishing too early
and also removes the "unmount /storage failed" messages when
netbooting.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-16 17:38:24 +01:00
Matthias Reichl
092e574f57 systemd: add backport patch from PR 14040
This removes the root mount dependency on systemd-journal.socket
and fixes drop-in loading for storage.mount.

See https://github.com/systemd/systemd/pull/14040

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-16 17:38:24 +01:00
Matthias Reichl
4f5fee7653 systemd: enable systemd-timesyncd when using kernel ip configuration
connman's NTP client can't be used if it's not managing the network
interface so use systemd's timesyncd as we already build it.

timesyncd is automatically configured to use the NTP servers provided
by kernel ip config, if they are missing the default fallback NTP
servers (currently the ones from Google) are used.

Users can also provide timesyncd configuration files via
/storage/.config/timesyncd.conf.d/ eg to change the (fallback) servers.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-16 17:31:39 +01:00
Matthias Reichl
4159f97316 connman: move host and resolver configuration to separate service
Setup system hostname, /etc/resolv.conf and /etc/hosts in a service
that can be run independently of connman.

The volatile etc files are created in /run/libreelec instead of
/run/connman so they can be modified similarily to standard linux
installations with a writable /etc. Connman can then hook into
that and move resolv.conf management to /run/connman/resolv.conf when
it's started.

If kernel IP configuration is used the resolv info from the kernel
will be used to create resolv.conf. Users can also provide their
own resolv.conf file in /storage/.config/resolv.conf which takes
precedence over ther kernel info. If no resolv.conf info is present
a fallback with use the Google nameservers is created (as before).

Loopback network interface setup has been removed, this is already
set up by systemd.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-16 17:31:18 +01:00
Matthias Reichl
3be49f5d07 busybox: create marker file if kernel ip configuration is used
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-16 17:30:12 +01:00
MilhouseVH
e14652e9db Update with vl805 support 2019-10-29 11:54:08 +00:00
MilhouseVH
e2e05ade82 init: make umount /update conditional 2019-10-18 16:48:26 +01:00
MilhouseVH
a233e7936a init: unmount /update after a failed update 2019-10-17 18:18:19 +01:00
CvH
d86dcbd288
Merge pull request #3865 from MilhouseVH/le92_backports5
libreelec-9.2 backports
2019-10-14 21:13:55 +02:00
pretoriano80
fd9975888c eventlircd: adding new rule for iMON Panel, Knob and Mouse(15c2:ffdc)
- enables eventlircd for Imon UltraBay (front panel buttons)
- this will fix the issue with some front panel buttons not being
detected by Kodi (if keycode value is higher than 255)

Signed-off-by: pretoriano80 <viusflag@libero.it>
2019-10-10 12:38:38 +01:00
mglae
cb59513294 init: fsck: wait for devices and unhide messages 2019-09-25 18:19:08 +02:00
MilhouseVH
236ea95fd8
Merge pull request #3833 from HiassofT/le92-systemd-debug-console
[le92] systemd: enable switch debug-tty to provide a debug console
2019-09-24 20:52:12 +01:00
MilhouseVH
2684517ad1
Merge pull request #3837 from HiassofT/le92-persistent-logging
[le92] busybox: cleanup persistent log setup when debugging is enabled
2019-09-24 20:51:55 +01:00
MilhouseVH
766cfd33a2 init: add fix for RPi4 serial numbers 2019-09-24 20:21:46 +01:00
Matthias Reichl
259a5b7f73 systemd: use upstream method to enable and configure debug shell
With systemd-debug-generator installed we can use the standard
"systemd.debug_shell" kernel command line parameter to enable the debug
shell. Since systemd 243 the tty can also be changed by appending
"=ttyXYZ" to that parameter.

Use this method instead of enabling the debug shell on all systems
by default.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-19 09:09:27 +02:00
MilhouseVH
e1d6e92907 systemd: fix issues after #3326
/etc/98-busybox.conf configures the prompt and TERM.

PR #3326 stopped sourcing /etc/profile, which meant the
prompt no longer includes the HOSTNAME.

Additionally, #3326 removed code which unhides the cursor.
2019-09-19 09:09:27 +02:00
Lukas Rusak
010bd5fd9d systemd: enable switch debug-tty to provide a debug console
This allows us to use the default debug-shell.service provided
by systemd and cut down on custom made services. This will also
always provide a debug shell as there is no reason we shouldn't
have access to one.
2019-09-19 09:09:27 +02:00
Matthias Reichl
707b974d76 busybox: add workaround for systemd issue 867
journald on systemd versions up to 242 don't close the persistent
journal files on shutdown which leads to a harmless but annoying
Failed unmounting message during shutdown
https://github.com/systemd/systemd/issues/867

Set LazyUnmount=yes on the persistent log mount unit as a temporary
workaround until systemd is updated to 243 or newer.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-19 09:08:20 +02:00
Matthias Reichl
78080a6a46 busybox: cleanup persistent log setup when debugging is enabled
The ancient approach of symlinking /var/log to /storage/log doesn't
play nice with systemd as it doesn't setup proper dependencies and
unmounting /storage during shutdown may fail because systemd doesn't
know that it's needed for /var/log.

Use a conditional bind mount instead so systemd can automatically
create proper dependencies and unmount filesystems in the correct order.

Also store the persistent logfiles on /storage in a .cache/log
directory instead of log to avoid confusing users - users can access
logfiles via /var/log.

Note: we can't use tmpfiles.d to create the .cache/log directory on
/storage because that would run after local-fs.target but we need
the .log directory before that so it has to be done via a one-shot
service.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-19 09:08:20 +02:00
sky42
01931c4940 busybox: init: changed upgrade to update in notes/messages 2019-09-18 23:04:50 +02:00
sky42
4ba4ba6df2 busybox: init: less mount/umount for update process 2019-09-18 23:04:43 +02:00
sky42
f44f964127 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 23:00:14 +02:00
Matthias Reichl
28ecf8f4ac
Merge pull request #3803 from MilhouseVH/le92_rpi4_firmware
RPi4: add tools for updating SPI bootloader [backport]
2019-09-18 22:42:34 +02:00
MilhouseVH
97c2967826
Merge pull request #3805 from HiassofT/le92-systemd-fix-fs-corruption
[le92] fix filesystem corruption on reboot/shutdown
2019-09-18 17:18:44 +01:00
Matthias Reichl
5f778a505a 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-16 21:35:22 +02:00
Matthias Reichl
dd198bf0b4 systemd: prevent unmounting flash via umount.target
add drop-in to set DefaultDependencies=no on /flash mount. This
removes the Conflicts=umount.target and /flash won't be unmounted
by systemd. systemd-shutdown will then later remount it ro and
try to unmount it.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-13 23:50:26 +02:00
Matthias Reichl
87e293535a systemd: drop patch that causes filesystem corruption on reboot/shutdown
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-09 10:45:05 +02:00
MilhouseVH
438198dcd6 init: cleanup flash; execute real script not wrapper 2019-09-08 20:22:52 +01:00
MilhouseVH
72e19ccae8 init: add rpi-flash-firmware service 2019-09-08 20:22:52 +01:00