Commit graph

122 commits

Author SHA1 Message Date
Demetris Ierokipides
a83395d8d1 Merge branch 'master' of github.com:LibreELEC/LibreELEC.tv into Lakka-v5.x 2022-10-03 17:56:12 +03:00
Christian Hewitt
e8391a769d busybox: add vfd-clock script/service 2022-10-01 06:40:19 +00:00
Demetris Ierokipides
fd58bd5200 Merge branch 'master' of github.com:LibreELEC/LibreELEC.tv into Lakka-v5.x 2022-09-25 18:05:43 +03:00
SupervisedThinking
611b07c484 various: link with gold if supported 2022-09-22 18:27:07 +02:00
Demetris Ierokipides
c15f289756 Merge branch 'master' of github.com:LibreELEC/LibreELEC.tv into Lakka-v4.x 2022-09-12 02:08:19 +03:00
Tomáš Kelemen (vudiq)
589208887e
Lakka: make some folders "world" writable
so we don't have to use superuser when accessing the ext4 partition on
the thumbdrive / SD card in a computer
2022-03-28 22:14:45 +02:00
GavinDarkglider
82e5d624f6
More Nintendo Switch fixes (#1548)
* Downgrade glibc to 2.27 for L4T Builds.
* Downgrade binutils to 2.32 for L4T Builds.
* Update L4T Project Options
* Refactor tegra-bsp package
* Import/Rebase CTC's ffmpeg patches, and switch decoder to nvv4l2 from nvmpi. Fixes decoder issues
* Enable all disabled cores
* Remove hack in busybox package to dump firmware into L4T Builds, we now handle this in tegra-bsp package.
* More L4T project cleanups
* Bring switch-bootloader package.mk inline with upstream formatting
* Fix reboot_payload
* Add proper tegra-bsp:init support
* Bootloader cleanups, seperate bootloader stuff for libreelec builds
* Update init for supporting all distros on Nintendo Switch
* Add proper splash images for libreelec builds.
* Final bootloader fixes
* switch-bootloader-merge-fixes
* Fix uboot merge issues
* fix bmp
* It all builds
* add Basic USB Gadget(Serial console only)
* Properly fix mtp, and finish gadget stuff
2021-11-24 00:06:43 +01:00
GavinDarkglider
4d58d3cf00
Add support for Nintendo Switch (#1536) 2021-10-27 09:47:55 +02: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
Tomáš Kelemen (vudiq)
580391f3b5 Initial support for Generic.i386 (32-bit PC) 2021-10-05 10:27:28 +02:00
Tomáš Kelemen (vudiq)
82508e7a83 busybox: add createlog for Lakka
port of
7c034fe482
2021-09-29 21:52:56 +02:00
Ian Leonard
5db34cb1fb busybox: drop host package
busybox:host installs two binaries into $TOOLCHAIN:

arch - the same as "uname -m"
cryptpw - generates password hashes - replaced with python

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-08-12 00:15:41 +00:00
Ian Leonard
2cb6f17526 config/buildsystem: generate password hash in add_user using python
Python3's crypt module is capable of generating password hashes. Use that
instead of busybox:host's cryptpw function.

Move password hashing into config/function's add_user(), so one need not
remember to generate the hash and then pass it into add_user().

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-08-12 00:15:01 +00: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
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
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
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
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
CvH
54a2f66da6 busybox: switch to busybox unzip 2020-12-19 11:13:25 +01: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
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
chewitt
25e7ecaa43 busybox: add ledfix script/service 2020-07-06 06:49:47 +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
d1775f8fe0 TEMP: busybox: update to busybox-9e2a566 with glibc-2.31 compatability 2020-02-05 23:29:07 +00:00
MilhouseVH
bb753cd1be busybox: update to busybox-1.31.1 2019-11-29 21:56:12 +00:00
Sascha Kuehndel (InuSasha)
c7c469431e
buildsystem: host should not depend on cross-compiler 2019-10-18 19:41:00 +02:00
Matthias Reichl
d85c804c75 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-16 18:57:58 +02:00
MilhouseVH
05184d1d23 init: add rpi-flash-firmware service 2019-09-06 19:30:13 +01:00
CvH
2825c30f92
Merge pull request #3536 from LibreELEC/amlogic
Add Amlogic (mainline) project
2019-06-13 23:06:16 +02:00
MilhouseVH
6d2187c013 busybox: update to busybox-1.31.0 2019-06-12 03:53:14 +01:00
chewitt
ecd87898a5 busybox: add dtsoc helper script 2019-06-08 00:39:06 +02:00
MilhouseVH
9cadf50f02 busybox: update to busybox-1.30.1 2019-06-07 08:49:07 +01:00
Lukas Rusak
ec17cea5e6
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-05-08 11:54:58 -07:00
Christian Hewitt
cdeb85f70c busybox: add dtname/dtfile helper scripts 2019-04-17 08:28:42 +04:00
MilhouseVH
b135c7ead9 packages: add missing dependencies 2019-02-08 17:17:43 +00:00
MilhouseVH
15287a2da8 packages: pciutils, nasm, etc.: build only for x86_64 2019-02-08 17:17:43 +00:00
MilhouseVH
b7dc90552a busybox: update to busybox-1.30.0 2018-12-30 19:00:08 +00:00
MilhouseVH
c19a3ff780 packages: setup_toolchain $TARGET only called after package is sourced
Packages referencing variables defined in setup_toolchain such as CC, CXX,
AR, CFLAGS, LDFLAGS, HOST_CC etc. etc. must only reference these variables in
pre_build()/pre_configure()/pre_make() etc. functions, as the variables will not
be available when the package is sourced, but will be available after the call
to setup_toolchain() from scripts/build.
2018-12-18 03:43:28 +00:00
Christian Hewitt
8d22f6ce1e busybox: update to 1.29.3 (#3042) 2018-10-23 12:01:41 +02:00
CvH
85e5b4dc1f cleanup: PKG_SHORTDESC 2018-10-22 15:06:12 +02:00
CvH
4cffa5fe6f cleanup: remove PKG_ARCH="any" 2018-10-22 15:06:12 +02:00
CvH
4317bc5002 cleanup: remove PKG_SECTION 2018-10-22 15:06:11 +02:00
MilhouseVH
8dd0df6784 busybox: drop NFS support for linux < 2.6.23 2018-09-21 17:06:40 +01:00