Commit graph

947 commits

Author SHA1 Message Date
Tomáš Kelemen (vudiq)
7c034fe482 createlog: adapt for Lakka needs 2021-06-13 17:01:42 +02:00
by-gnome
ca4668f8a5
busybox: fix message about undersized system partition (#1333) 2021-05-25 20:35:01 +03:00
GavinDarkglider
810d341599
Add support for Base L4T Platform and Nintendo Switch device (#1288)
* Add new platform: Linux4Tegra(L4T) base

* L4T: Add Nintendo Switch device to L4T Project

* L4T: Add support for Nintendo Switch bootloader package to build system

* Script Update: Extract Add support for tbz2 extension

* Package Update: Update pulseaudio to latest building version, add patches to support ucm2 as that is what lakka is shipping.

* New Package: Add rewritefs package, because we need to edit filenames on the fly, when using nintendo switch, as all data is saved to fat32 partition, where : is not a valid character in file names. eg. Bluetooth Configs

* Package Update: Linux Add support for nintendo switch l4t kernel

* Package Update: Busybox: Allow L4T device builds to just dump files in initramfs, such as firmware or new init script

* New Package: Mergerfs

* Package Update: Retroarch Bump version, and Add Nintendo Switch support, add support for X display server to retroarch start enviornment

* New Package: xf86-video-nouveau

* Package Update: libxkbcommon L4T fixes

* Dockerfile: Add needed build dependencies for L4T Platform stuff.

* Update Scripts: Add support for building L4T Switch to build_all script

* Package Update: Mupen64plus_next Add Nintendo Switch build support

* Package Update: Mame2015 Add support for building on Nintendo Switch

* Package Update: Bluez Add support for Nintendo Switch

* Package Update: libdrm remove libdrm.so.2 symlink with L4T boards, as nvidia supplies their own
2021-05-10 22:56:02 +03:00
David G. F
424b1d8d8f
Adding initial support for Gameforce CHI console (#1182)
This is essentially an OGA clone with a bigger (640x480) non-rotated
screen. Requires a joypad kernel patch (a copy of OGA's + small bits) and a new
DTB.

Changed a bit the way splash screens work, now you can specify proper
resolutions (instead of just vertical res) so that it works well for
cases like rotated screens.

Tweaked Retroarch to ship both drivers (DRM + GO2 DRM) and the GO2
driver to inhibit itself in case the console has a non-rotated display.
This should work for any console as long as the resolution is reported
correctly. The regular DRM driver should have 1 frame less latency!

What's not working: Console is still rotated (minor issue) and kernel
panics on poweroff :) Debugging it, but I'll need to solder the UART for
that.
2021-02-19 17:05:46 +02:00
by-gnome
e5423832af
cleanup initramfs build, drop support for kernel modules in initramfs (#1117)
* initramfs: drop dependency on linux:init

Signed-off-by: Matthias Reichl <hias@horus.com>
Modified by: by-gnome <by-gnome@yandex.ru>

* linux: drop obsolete make_init and makeinstall_init functions

Signed-off-by: Matthias Reichl <hias@horus.com>

* linux: move initramfs build+installation to pre_make_target

Signed-off-by: Matthias Reichl <hias@horus.com>
Modified by: by-gnome <by-gnome@yandex.ru>

* drop INITRAMFS_MODULES option

Signed-off-by: Matthias Reichl <hias@horus.com>
Modified by: by-gnome <by-gnome@yandex.ru>

* drop UVESAFB_SUPPORT option

Signed-off-by: Matthias Reichl <hias@horus.com>
Modified by: by-gnome <by-gnome@yandex.ru>

* busybox: drop uvesafb module handling in init

Signed-off-by: Matthias Reichl <hias@horus.com>

* v86d: drop no longer used package

Signed-off-by: Matthias Reichl <hias@horus.com>

* linux (Generic): disable UVESA framebuffer support

Signed-off-by: Matthias Reichl <hias@horus.com>
Modified by: by-gnome <by-gnome@yandex.ru>

* linux: build linux image before building modules

Signed-off-by: Matthias Reichl <hias@horus.com>
Modified by: by-gnome <by-gnome@yandex.ru>

* linux: move module installation to makeinstall_target

Signed-off-by: Matthias Reichl <hias@horus.com>

Co-authored-by: Matthias Reichl <hias@horus.com>
2020-12-08 01:24:08 +02:00
Ntemis
791a71303f Merge branch 'libreelec-9.2' of github.com:LibreELEC/LibreELEC.tv 2020-10-19 00:27:16 +03:00
David Vukovic
16c22208da [getedid] remove kernel check 2020-10-07 00:36:41 +02:00
Sascha Kuehndel (InuSasha)
210f07124c buildsystem: host should not depend on cross-compiler 2020-08-07 15:26:28 +02:00
Ntemis
94313d4599 Merge branch 'libreelec-9.2' of https://github.com/LibreELEC/LibreELEC.tv into Lakka-3.0 2020-02-06 03:29:32 +02:00
DaVukovic
751f49eec5 [busybox] getedid fixes 2020-01-28 08:46:26 +01:00
MilhouseVH
97a6b1e063 busybox: disable mkfs.vfat for target, use full-fat dosfstools 2020-01-21 19:05:37 +00:00
Ntemis
8fe811009e Merge branch 'libreelec-9.2' of https://github.com/LibreELEC/LibreELEC.tv into Lakka-LE9.2 2019-12-24 16:02:10 +02:00
Christian Hewitt
d97ed1c987
Merge pull request #3991 from HiassofT/le92-nfs-backports
[le92] NFS / netboot backports
2019-12-09 08:01:35 +08:00
mglae
4dd199dff2 init: fsck: fix kmsg log writes 2019-11-28 00:21:37 +01:00
Matthias Reichl
29d9d08e49 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 17:38:24 +01:00
Matthias Reichl
3be49f5d07 busybox: create marker file if kernel ip configuration is used
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-11-16 17:30:12 +01:00
MilhouseVH
e14652e9db Update with vl805 support 2019-10-29 11:54:08 +00:00
MilhouseVH
e2e05ade82 init: make umount /update conditional 2019-10-18 16:48:26 +01:00
MilhouseVH
a233e7936a init: unmount /update after a failed update 2019-10-17 18:18:19 +01:00
CvH
d86dcbd288
Merge pull request #3865 from MilhouseVH/le92_backports5
libreelec-9.2 backports
2019-10-14 21:13:55 +02:00
mglae
cb59513294 init: fsck: wait for devices and unhide messages 2019-09-25 18:19:08 +02:00
MilhouseVH
236ea95fd8
Merge pull request #3833 from HiassofT/le92-systemd-debug-console
[le92] systemd: enable switch debug-tty to provide a debug console
2019-09-24 20:52:12 +01:00
MilhouseVH
2684517ad1
Merge pull request #3837 from HiassofT/le92-persistent-logging
[le92] busybox: cleanup persistent log setup when debugging is enabled
2019-09-24 20:51:55 +01:00
MilhouseVH
766cfd33a2 init: add fix for RPi4 serial numbers 2019-09-24 20:21:46 +01:00
Lukas Rusak
010bd5fd9d 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-09-19 09:09:27 +02:00
Matthias Reichl
707b974d76 busybox: add workaround for systemd issue 867
journald on systemd versions up to 242 don't close the persistent
journal files on shutdown which leads to a harmless but annoying
Failed unmounting message during shutdown
https://github.com/systemd/systemd/issues/867

Set LazyUnmount=yes on the persistent log mount unit as a temporary
workaround until systemd is updated to 243 or newer.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-19 09:08:20 +02:00
Matthias Reichl
78080a6a46 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-19 09:08:20 +02:00
sky42
01931c4940 busybox: init: changed upgrade to update in notes/messages 2019-09-18 23:04:50 +02:00
sky42
4ba4ba6df2 busybox: init: less mount/umount for update process 2019-09-18 23:04:43 +02:00
sky42
f44f964127 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 23:00:14 +02:00
Matthias Reichl
28ecf8f4ac
Merge pull request #3803 from MilhouseVH/le92_rpi4_firmware
RPi4: add tools for updating SPI bootloader [backport]
2019-09-18 22:42:34 +02:00
Tomas Kelemen (vudiq)
75b35ffd9b Merge branch 'libreelec-9.2' - update to 9.1.501 2019-09-17 11:42:14 +02:00
Matthias Reichl
5f778a505a 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-16 21:35:22 +02:00
MilhouseVH
438198dcd6 init: cleanup flash; execute real script not wrapper 2019-09-08 20:22:52 +01:00
MilhouseVH
72e19ccae8 init: add rpi-flash-firmware service 2019-09-08 20:22:52 +01:00
CvH
f43acfbbde
Merge pull request #3734 from MilhouseVH/le92_backports4
le92 backports (9.1.003)
2019-09-02 12:29:00 +02:00
Matthias Reichl
4533bf3ea7 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:54:59 +02:00
Matthias Reichl
7da4fa4dc9 init: use terminus 16x32 font on >1080 lines displays
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-08-23 12:54:59 +02:00
Matthias Reichl
7deb7b0236 busybox: enable setfont
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-08-23 12:54:59 +02:00
Mario Krupa
ee2503e625 getedid: added the active HDMI/DP port to new kernel parameters
Added the active HDMI/DP port to kernel parameters. 

Without it, fixed EDID does not work on Intel Haswell and possibly others.
2019-08-19 01:39:15 +01:00
Leonardo Brondani Schenkel
5b9312d366 busybox: allow customizing suspend-modules.conf 2019-08-07 17:04:34 +01:00
Leonardo Brondani Schenkel
0af77e49db busybox: add 'xpad' to SUSPEND_MODULES
In some systems, xpad times out during suspend:

[ 4470.773651] xpad 2-1.5:1.6: timed out waiting for output URB to complete, killing
[ 4475.892774] xpad 2-1.5:1.4: timed out waiting for output URB to complete, killing
[ 4481.011717] xpad 2-1.5:1.2: timed out waiting for output URB to complete, killing
[ 4486.130707] xpad 2-1.5:1.0: timed out waiting for output URB to complete, killing
[ 4486.288630] PM: suspend devices took 20.880 seconds

This causes suspend to take a long time to complete. Unloading/reloading
the module during suspend/wakeup successfully works around this issue.
2019-08-07 17:04:34 +01:00
Tomas Kelemen (vudiq)
dd34941bd6 Merge branch 'libreelec-9.2' into Lakka-LE9.2 2019-07-13 18:22:38 +02:00
Tomas Kelemen (vudiq)
464dc84917 Generic: add 32bit support 2019-07-12 22:06:48 +02:00
MilhouseVH
3e1563cb68 init: clean up splash image selection 2019-07-11 00:28:19 +01:00
chewitt
0e2dad32c9 busybox: add dtsoc helper script 2019-06-30 23:02:26 +02:00
MilhouseVH
3adcb6ca9b init: more informative syslinux boot message 2019-06-23 21:40:45 +01:00
kszaq
d7e956544a busybox/init: amend comment on block devices 2019-06-19 19:06:43 +01:00
MilhouseVH
86a09910c8 busybox: fix XBMC reference 2019-06-15 06:26:29 +01:00
MilhouseVH
1e505759d7 busybox: update to busybox-1.31.0 2019-06-13 22:12:21 +01:00