Commit graph

1049 commits

Author SHA1 Message Date
mglae
cd1ecef50d systemd/busybox: allow configuration of persistent logs and journal via settings addon 2021-08-07 23:03:09 +02:00
mglae
8ba9ad0273 busybox: kernel-overlays-setup: log depmod to /dev/kmsg 2021-05-24 19:56:27 +02:00
Peter
a963782b40 glibc: include C.UTF-8 locale in image
Normally locale addon must be installed but users don't know that. Simplify this with adding default C.UTF-8 locale in image. Users can still install addon to use some other locale.

fixes Python3 error
UnicodeEncodeError: 'ascii' codec can't encode characters in position 40-41: ordinal not in range(128)

like
https://github.com/croneter/PlexKodiConnect/issues/1447
https://forum.libreelec.tv/thread/23116-pvr-recorder-unsuppored-locale/?postID=147453

from Kodi Python
  before
    sys.getdefaultencoding(): utf-8
    sys.getfilesystemencoding(): ascii
  after
    sys.getdefaultencoding(): utf-8
    sys.getfilesystemencoding(): utf-8

from SSH console
  before
    # locale
    LANG=
    LC_CTYPE="POSIX"
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=

  after
    # locale
    LANG=C.UTF-8
    LC_CTYPE="C.UTF-8"
    LC_NUMERIC="C.UTF-8"
    LC_TIME="C.UTF-8"
    LC_COLLATE="C.UTF-8"
    LC_MONETARY="C.UTF-8"
    LC_MESSAGES="C.UTF-8"
    LC_PAPER="C.UTF-8"
    LC_NAME="C.UTF-8"
    LC_ADDRESS="C.UTF-8"
    LC_TELEPHONE="C.UTF-8"
    LC_MEASUREMENT="C.UTF-8"
    LC_IDENTIFICATION="C.UTF-8"
    LC_ALL=
2021-05-09 19:26:18 +02: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
76fd023bb0 busybox: add getedid script for RPi
The getedid script supports the "create" and "delete" options like
the x86 version.

It makes use of the "dump-active-edids", "create-edid-cpio" and
"update-bootloader-edid" scripts and can be used as is on other
DRM platforms as well as it doesn't contain any RPi specific code.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-03-23 19:18:09 +01:00
Matthias Reichl
f962a4b2b6 busybox: add script to modify edid override with RPi bootloader
The script supports two operations:

"set" enables initramfs cpio in config.txt and adds edid and video
override kernel options for the specified connectors to cmdline.txt

"delete" removes edid.cpio initramfs loading in config.txt and
removes all edid override and video options from cmdline.txt

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-03-23 18:59:28 +01:00
Matthias Reichl
a02a2e8b51 busybox: add script to dump edids of active DRM connectors
The script dumps all edids of currently active connectors to
.config/firmware/edid as edid-CONNECTORNAME.bin

When run with the "-q" option informative messages are disabled
and only the active connectors are returned so the output can
be easily used by other scripts.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-03-23 18:59:28 +01:00
Matthias Reichl
0039f93de6 busybox: add create-edid-cpio script
This script simply creates /flash/edid.cpio with the contents from
.config/firmware/edid

Compared to the x86 specific getedid script this works on all platforms
as it doesn't contain any platform specific code. Eventually getedid
should be refactored make use of this helper script, too.

Signed-off-by: Matthias Reichl <hias@horus.com>
2021-03-23 18:59:28 +01:00
Matthias Reichl
32b3089c1b
Merge pull request #5265 from lrusak/busybox-fix
busybox: fix createlog udev rule wildcard
2021-03-21 21:03:55 +01:00
Lukas Rusak
e23d57194a
busybox: fix createlog udev rule wildcard 2021-03-21 12:55:34 -07:00
Ian Leonard
d852a3b6e7 system: use generic filenames for reset trigger
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-03-10 02:25:01 +00:00
heitbaum
cf8ba7c8cb busybox: unzip: enable CDF to handle unix permissions 2021-02-18 12:16:10 +00:00
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
Ian Leonard
d4808e65cc busybox-init: drop pivot_root
From the help, pivot_root is intended for use with initrd on Linux 2.4.
Initramfs and Linux >=2.6 is supposed to use switch_root instead.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-02-05 07:20:23 +00:00
Ian Leonard
b58ae35683 busybox: refresh configs
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-02-05 07:19:18 +00:00
Christian Hewitt
e5cb1ade46 dthelper: only flag memsize for pi and 512mb boards 2021-01-25 08:46:38 +00:00
Ian Leonard
b31ce30170 sysutils: automated code cleanup
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-01-19 19:34:16 +00:00
Christian Hewitt
b9272a4e90
Merge pull request #4773 from CvH/10.0/unzip_cleanup
drop unzip and minizip package
2021-01-16 16:47:35 +04:00
Christian Hewitt
f55929632e busybox: drop VIM3 workaround from ledfix 2021-01-13 11:29:08 +00:00
heitbaum
5a68b66691 busybox: update to 1.32.1
update 1.32.0 (26 June 2020) to 1.32.1-stable (1 January 2021)
changelog: https://www.busybox.net
2021-01-09 13:00:28 +00:00
mglae
b03dd0a9e1 st: st terminal emulator initial package
- add package including official scrollback patch
- add patch to fix color allocation and (missing) locale
- add st-256color to ncurses and busybox profile
2020-12-25 16:15:09 +01:00
CvH
54a2f66da6 busybox: switch to busybox unzip 2020-12-19 11:13:25 +01:00
Christian Hewitt
ea100f54a0 busybox: add fsl to dthelper compatibles 2020-12-09 02:54:13 +00:00
CvH
8b77e86ea5
Merge pull request #4662 from chewitt/dthelper
busybox: rework device-tree helper scripts
2020-12-01 18:15:02 +01:00
heitbaum
0c0f29df35 busybox: updated to 1.32.0 2020-11-26 06:14:38 +00:00
Christian Hewitt
05174a6f99 busybox: rework device-tree helper scripts 2020-11-19 05:20:56 +00:00
Michael Klein
3b614b31bf packages: busybox: enable rfkill applet 2020-11-13 19:05:33 +01: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
Ian Leonard
1aa1ac31b1 busybox: remove webserver
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2020-06-26 19:50:15 +00:00
MilhouseVH
7e4411735b busybox: update to busybox-9aa751b 2020-04-15 07:36:05 +01:00
MilhouseVH
e1904c6bd4 busybox: enable tac 2020-04-15 07:17:21 +01:00
chewitt
929506c895 busybox: fix search order in dtfile 2020-03-02 08:02:06 +00:00
MilhouseVH
d1775f8fe0 TEMP: busybox: update to busybox-9e2a566 with glibc-2.31 compatability 2020-02-05 23:29:07 +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