0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-03-14 21:38:23 +00:00

360 Commits

Author SHA1 Message Date
3d9fa4be63 busybox: fs-resize: mount/unmount /storage when processing firstboot.sh 2025-02-22 15:49:53 +01:00
ecbd10c22d Merge branch 'libreelec-12.0' of github.com:LibreELEC/LibreELEC.tv into Lakka-v6.x 2024-11-16 00:43:15 +02:00
a19682644c busybox/fsresize: put back old code 2024-05-31 15:48:15 +02:00
a8a20d7992 Lakka support for firstboot.sh script
This script takes values from files stored in the FAT32 partition to set
up Wi-Fi and override/add settings to default retroarch.cfg.

inspired by the solution from @macmoritz
2024-05-24 21:26:21 +02:00
765323df23 L4T/Ayn: upstream changes from 5.x
Lakka 5.x Switch changes (#1853)
Lakka v5.x switchroot 5.1.2 (#1871)
Fix Switch Issue's in upstream 5.x (#1888)
Minor Switch Changes (#1893)
Lakka v5.x switch 3 (#1895)
Lakka v5.x switch 4 (#1898)
L4T: Xorg-server: Fix build issue (#1924)
Switch: remove ra patch
Lakka v5.x switch 6 (#1926)
Cleanups, More LibreELEC Stuff, more permission fixes, Misc switch stuff. (#1930)
Switch: U-Boot: bump version to 2024-NX02 (#1946)

L4T/Ayn post-upstreaming fixes
- retroarch_joypad_autoconfig: remove spaces from file names
- retroarch: remove Switch specific patch merged upstream
- libXv: move to L4T packages folder (package removed in upstream)
- bring some packages from v5.x to L4T packages
- ffmpeg: remove vulkan
- remove stella core from Switch build (missing C++ headers)
- Ayn/Odin: use proper kernel arg to not hide kernel messages in console
- connman: add wpa_supplicant support back
2024-05-21 17:50:20 +02:00
8a569e592f busybox: use mke2fs instead of resize2fs
This ensures the /storage filesystem will have the correct options
(block size, inode_ratio etc) for the target partition size.

Signed-off-by: Matthias Reichl <hias@horus.com>
2024-05-02 16:08:13 +02:00
317ca96861 busybox/resizefs: make fs online during resize2fs
see [1] - online resize is recommended

[1] https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/1796788/comments/2
2024-04-17 23:20:41 +02:00
196111852d Merge branch 'LibreELEC/master' 2024-04-03 00:50:36 +02:00
CvH
f2286fe9ce Merge pull request #8759 from chewitt/amlogic-upstream
amlogic: bump to Linux 6.8.y and prepare for u-boot 2024.04 plus misc bits
2024-03-26 12:23:36 +01:00
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
94954d7751 busybox: add Amlogic getedid script
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2024-03-24 14:59:19 +00:00
CvH
d09d7c51b2 pastebinit: use LE paste service 2023-12-10 22:00:52 +01:00
671a358b65 busybox: fs-resize: use parted to fix gpt errors instead of sgdisk
parted's 6.3 "--fix" parameter now allows non-interactive fixing

gptfdisk package dependency is removed
2023-06-04 12:17:09 +02:00
76bda434d5 busybox: createlog: don't include journal files of persistent logging 2023-04-23 19:31:00 +02:00
c4c635b04c fs-resize: log to /flash
Add simple logging to ease debugging of future errors
2023-03-30 18:42:21 +02:00
597423a948 fs-resize: print error if disk or partition was not deteced 2023-03-30 18:42:20 +02:00
47baee87f4 fs-resize: add nvme support 2023-03-30 18:42:18 +02:00
787b30b24b busybox: createlog: no githash stored in /etc/issue
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2023-03-18 06:31:06 +00:00
462b767ce4 busybox: createlog: cleanup
Only create a logfile for the previous boot if persistent journal
is being used.

Also applies some changes for shellcheck warnings:

`...` to $(...)
Verifying variable is set ${var:?} before rm'ing
Useless use of cat
Command grouping when the commands redirect to the same file
Use of == in [...]
[ test1 -a test2 ] to [ test1 ] && [ test2 ]

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2023-03-18 06:30:34 +00:00
8cc6cb9db8 busybox: add t95z-plus to vfd-clock 2023-02-26 13:06:34 +00:00
59f13acd9a Merge branch 'LibreELEC/master'
update to 10.95.1 - LE11 Beta2
2023-02-12 20:37:05 +01:00
29e9c4c936 systemd: add tx9-pro to vfd-clock script 2023-02-12 11:22:11 +00:00
5851327861 WIP: Odin build fixes (#1745)
* libglvnd: add back exception for L4T and Ayn

* xorg-launch-helper: special case for odin

* Odin: fix retroarch assets path

* busybox: add odin-workaround to init script

* xorg-server: add rotation patch

* xorg-server: don't move libglx.so for odin

* xorg-server: remove dangling if from xorg-configure
2023-01-21 17:44:45 +01:00
4f8d2a57e9 WIP - Add Support for Ayn Odin (#1713)
* Initial fully buildable/bootable Odin Support

* Rework NX-Boot to FAT32 Boot for shared usage between switch and odin

* Move shared packages from switch/odin to main packages folder
2023-01-21 16:11:38 +01:00
33e9e1eaaa Merge branch 'LibreELEC.tv/master' into Lakka-LE-master 2023-01-18 11:15:04 +01:00
e8391a769d busybox: add vfd-clock script/service 2022-10-01 06:40:19 +00:00
57ab31843d Latest Lakka Switch Patches (#1600)
* Update kernel Config/patches for CEC support

* Add base CEC support to dock-hotplug, and make so support can be disabled via uenv.txt

* Add working libcec package for L4T, and enable CEC support in packages.

* Fix pulseaudio-alsa routing

This fixes using other audio backends(Alsathread, Alsa, TinyAlsa) in retroarch via dock or bluetooth.

* Downgrade GCC in L4T builds

This fixes issues revolving around undefined symbol: __aarch64_ldadd4_acq_rel issue with gcc 10

* Fix updater for switch builds
Only tested working with tar archives.

* Edit retroarch default settings for the switch.

* Fix pulseaudio changing sink volume issues.
2022-03-03 21:51:20 +01:00
800557a248 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
2022-03-03 21:48:22 +01:00
6bd3406f20 Merge branch 'libreelec-master' 2021-11-27 12:32:40 +01:00
9ca8e10854 busybox: find extlinux on alternative /flash layouts 2021-11-26 12:00:19 +00:00
c03d8024fb Add support for Nintendo Switch (#1536) 2021-10-27 13:36:27 +02:00
3982e1b98b Pull updates from LibreELEC/master 2021-10-26 22:27:07 +02:00
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
607dcb16b9 Merge remote-tracking branch 'libreelec/master' 2021-10-07 11:40:15 +02:00
82508e7a83 busybox: add createlog for Lakka
port of
7c034fe482
2021-09-29 21:52:56 +02:00
CvH
b30f709a56 Merge pull request #5266 from antonlacon/oe-init
init: stop checking for OPENELEC_ARCH
2021-08-11 13:23:45 +02:00
8ba9ad0273 busybox: kernel-overlays-setup: log depmod to /dev/kmsg 2021-05-24 19:56:27 +02:00
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
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
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
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
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
32b3089c1b Merge pull request #5265 from lrusak/busybox-fix
busybox: fix createlog udev rule wildcard
2021-03-21 21:03:55 +01:00
e23d57194a busybox: fix createlog udev rule wildcard 2021-03-21 12:55:34 -07:00
d852a3b6e7 system: use generic filenames for reset trigger
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-03-10 02:25:01 +00:00
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
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
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
e5cb1ade46 dthelper: only flag memsize for pi and 512mb boards 2021-01-25 08:46:38 +00:00
f55929632e busybox: drop VIM3 workaround from ledfix 2021-01-13 11:29:08 +00:00