Commit graph

200 commits

Author SHA1 Message Date
Tomáš Kelemen (vudiq)
08d672b54b
busybox/Ayn/Odin: use proper kernel arg to not hide kernel messages in console 2024-05-21 18:02:06 +02:00
GavinDarkglider
47c07c60ba
[WIP]Lakka 5.x Switch changes..... (#1853)
* Latest 4.3 changes poorly merged

* Build fixes

* Squash?

* Fix ppsspp on switch

* Fix video recording, add base stuff for nvv4l2 decoder/encoder, but leave disabled for now

* Clean up left over files

* Switch: Dont build xpadneo driver, but install configs

* FFMpeg: Add back L4T decoder Patches
2023-06-10 03:16:27 +03:00
David Lawson
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
GavinDarkglider
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
GavinDarkglider
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
GavinDarkglider
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
GavinDarkglider
c03d8024fb
Add support for Nintendo Switch (#1536) 2021-10-27 13:36:27 +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
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
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
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
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
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
mglae
414a958fab init: fsck: fix kmsg log writes 2019-11-28 00:10:21 +01:00
Matthias Reichl
fa8acf0782 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 15:37:41 +01:00
Matthias Reichl
432b6a8d9e busybox: create marker file if kernel ip configuration is used
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-15 18:51:54 +01:00
MilhouseVH
ecbd566302
Merge pull request #3896 from antonlacon/le10-systemd-cpufreq
init: move cpufreq tuning to systemd service
2019-11-15 17:50:36 +00:00
MilhouseVH
03d07ab28f Update with vl805 support 2019-10-29 11:51:27 +00:00
Ian Leonard
f27caaddc1 systemd: use a cpufreq service to configure cpu governor
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-10-28 15:55:22 +00:00
MilhouseVH
399fe7ee80 init: conditionally unmount /update after a failed update 2019-10-18 16:42:41 +01:00
MilhouseVH
39f0f8023c
Merge pull request #3856 from mglae/le10_fsck
init: fsck: wait for devices and unhide messages
2019-09-24 20:49:33 +01:00
MilhouseVH
bf9d3db27b
Merge pull request #3825 from sky42src/le10-early-squashfs
busybox: init: mount squashfs early
2019-09-24 20:37:25 +01:00
MilhouseVH
993ac53944 init: add fix for RPi4 serial numbers 2019-09-23 17:17:52 +01:00
mglae
27672027c7 init: fsck: wait for devices and unhide messages 2019-09-19 23:46:25 +02:00
sky42
a76b173d7d busybox: init: changed upgrade to update in notes/messages 2019-09-18 20:46:55 +02:00
sky42
a62877a484 busybox: init: less mount/umount for update process 2019-09-18 20:37:51 +02:00
sky42
824ed7c281 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 20:37:50 +02:00
Matthias Reichl
ed840db477 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-13 10:28:56 +02:00
MilhouseVH
5d01dc4f1d init: cleanup flash; execute real script not wrapper 2019-09-08 18:30:23 +01:00
MilhouseVH
05184d1d23 init: add rpi-flash-firmware service 2019-09-06 19:30:13 +01:00
Matthias Reichl
1cb0af881c init: make resolution limit for using big console font configurable
The vertical resulution limit can be set with the "bigfont" option.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-08-23 12:55:15 +02:00
Matthias Reichl
5f9248eb59 init: use terminus 16x32 font on >1080 lines displays
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-08-23 12:55:15 +02:00
MilhouseVH
b0e0aa64e9 init: clean up splash image selection 2019-07-02 16:34:29 +01:00
MilhouseVH
ff3887ee11 init: more informative syslinux boot message 2019-06-18 03:16:04 +01:00
Matthias Reichl
7f52096b6d busybox: drop uvesafb module handling in init
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-05-24 16:22:48 +02:00
CvH
851f654777
Merge pull request #3458 from kszaq/drop_aml_3.14
Goodbye Amlogic 3.14
2019-05-04 07:22:11 +02:00
Ian Leonard
1fcc9d3247 image: drop OPENELEC_ARCH from /etc/os-release
Also swaps the necessary variable check in busybox/init to acoomodate OPENELEC_ARCH
may or may not exist, while LIBREELEC_ARCH will be assumed to exist.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-05-03 23:11:24 +00:00
kszaq
10b7806c2e busybox/init: amend comment on block devices 2019-05-04 00:02:46 +02:00
kszaq
52d603a711 init: set ondemand up_threshold for multi-cluster CPUs
For multi-cluster CPUs (e.g. Amlogic S912) there is a separate
policy for each CPU cluster. Add a case in init script to cover
setting up_threshold for all clusters.
2019-04-22 22:00:34 +02:00
Ian Leonard
b77ec0436a busybox/init: integer comparisons in fsck retval checks
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-03-10 00:03:43 +00:00
Ian Leonard
efd28315ac busybox/init: style changes
Remove whitespace between ] and ;
Elminiate line continuations where they don't aid readability

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-03-10 00:01:34 +00:00
Ian Leonard
497933e776 busybox/init: reorder script
This changes the order of the script to be:

Necssary bring up tasks
Setting variables to control rest of system intialization
Sourcing shared functions
Setting script functions
Doing the work of bringing the system up

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-03-10 00:01:34 +00:00
Ian Leonard
7ebd79ae67 busybox/init: remove leading indent
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-03-10 00:01:34 +00:00
CvH
1b9cbdaf26 spdx: packages/sysutils 2018-07-18 22:37:47 +02:00