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
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>
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.
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>
* 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
* 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
* 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.
* 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
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>
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>
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>
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>
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>
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>
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>