Commit graph

1797 commits

Author SHA1 Message Date
Demetris Ierokipides
ca117e6caa RPi: Bump to 5.10.39 2021-05-25 20:47:23 +03:00
David G. F
49f2b66071
Remove the RG351P/V rumble patch (#1308)
It produces random kernel panics. Until I figure out what the bug is,
disable this.
2021-05-21 03:17:33 +03:00
Demetris Ierokipides
ad3a5fde14 Rpi[3/4]: Bump kernel to 5.10.36 2021-05-16 23:25:58 +03:00
Demetris Ierokipides
a26800cc6f Linux: fix miscalculated sha256 issue 2021-05-11 19:10:33 +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
Ntemis
2148ad6439 Bump kernel to v5.10.35 LTS 2021-05-10 00:43:21 +03:00
David Lawson
631eff4645
Joycon stuff (#1282)
* Add joycon kernel driver patches

* Add joycond
2021-05-06 01:23:30 +03:00
David Lawson
cdd770d78f
Rpi kernel update to hopefully fix composite out (#1273)
* rpi: update kernel

* Remove Gamegirl support
2021-04-23 01:31:36 +03:00
David G. F
12a3881fc8
Fix battery issue with RG351P/V (#1262) 2021-04-15 01:27:33 +03:00
David Lawson
f951292b51
rpi: update to 5.10.27 and update firmware (#1257) 2021-04-12 00:18:04 +03:00
by-gnome
0493ac23de
linux: update to 5.10.28 (#1251) 2021-04-11 06:48:45 +03:00
David Lawson
433243cb41
Rpi: update to 5.10.25 (#1239)
* rpi4: update kernel to 5.10

* rpi: linux: remove upstreamed patches

* rpi: linux: rebase patches

* rpi: linux: fix ouya patch

* rpi: Update all kernel configs for 5.10.25
2021-04-05 16:41:33 +03:00
David G. F
a29c30590a
Map volume keys on RG351V (like OGA Super does) (#1236) 2021-04-02 21:34:42 +03:00
Tomáš Kelemen
b5ae0f6426
opusfile, rockchip buildfixes (#1234)
* opusfile: add openssl dependency

* rk3328+rk3399+oga: add linux patch - libcrypto
2021-04-02 03:12:12 +03:00
by-gnome
b54e66096e
linux: update to 5.10.26 (#1229) 2021-03-28 18:55:33 +03:00
David G. F
6080d35956
Fix console rotation on OGA family and rumble on boot too (#1223)
This adds a new function hook that can be defined for devices that have
slightly different cmdline within the same configuration.
Remove vcchost regulator since it is not used and just makes the rumble
go crazy during kernel boot.
2021-03-23 20:49:33 +02:00
David G. F
b321acc50d
Fixes for RG350V: enable second MMC and Wifi (#1222)
This reenables Wifi (MT7601U) that was deleted by a previous commit.
Also enables the secondary SD card reader by fixing the voltages.
Finally re-enable low power OPPs that were disabled. This brings power
savings on idle mode and low demanding emus (in particular voltages are
lower for those points, reducing power consumption significantly)
2021-03-21 22:22:58 +02:00
David G. F
0f75e66986
Add support for RG350V (#1220)
Unfortunately there's no easy way to choose DTBs at u-boot time, so
keepting a separated image for now.
2021-03-21 00:31:31 +02:00
Demetris Ierokipides
d29f7ebbd1 Upgrade mainline kernel to v5.10.22 LTS 2021-03-11 00:33:30 +02:00
David G. F
6c07e387f9
Fix OGA builds (#1196)
* Fix OGA builds

No need for the u-boot patch, update the INI files instead.
Added the new userspace mali G31 blob and update the build script (we
pull headers still from Rockchip repo).
Add the RTL8821 patch to fix linux build with newer GCCs too.

This makes OGAs bootable again (tested it on OGA Super)

* Adding aarch64 support
2021-03-09 22:52:25 +02:00
David G. F
8784a602d6
Add gcc9 patch for OGA to fix builds (#1193) 2021-03-09 16:18:46 +02:00
Murad U
e925215274
Adding initial support for ODROID-Go Super (#1186)
* Initial ODROID-Go Super support

* Added missing libssl-dev dependency in Docketfile

* Reverted Retroarch version
2021-02-26 14:57:32 +02: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
b996abe17a
OdroidXU3: linux: revert kernel to 4.14 to fix gbm libmali (#1175)
* OdroidXU3: linux: revert kernel to 4.14 to fix gbm libmali

* OdroidXU3: use odroidxu3-mali instead of libmali
2021-02-12 01:57:18 +02:00
Tomáš Kelemen
62e832cad9
linux, grub: add missing dependencies (#1173)
* linux: add rsync:host dependency

* grub: add gettext:host dependency
2021-02-07 01:32:38 +02:00
by-gnome
f5bd34c9cd
linux: update to 5.10.12 (#1169) 2021-02-03 22:44:10 +02:00
Demetris Ierokipides
45c6f56a69 Linux: Update mainline kernel to 5.10.9 LTS 2021-01-21 23:58:33 +02:00
by-gnome
88780eae00
kernel-firmware: use copy-firmware.sh (#1159)
* kernel-firmware: unpack with copy-firmware.sh

* linux: install copied kernel-firmware

* kernel-firmware: drop brcmfmac-43xxx nvram patch - not needed

* kernel-firmware: die if firmware pattern is not valid

Co-authored-by: MilhouseVH <milhouseVH.github@nmacleod.com>
2021-01-15 20:48:36 +02:00
Seth Barberee
dd68be8f61
RPi: VC4 (#1157)
* RPi: move to 5.4 and use vc4

* RPi1 functional now
2021-01-14 02:08:36 +02:00
David G. F
a5b663eb45
Fixing Rumble driver crashes due to race condition (#1149) 2020-12-27 15:57:32 +02:00
by-gnome
2fbb449060
Update to Linux 5.10 (#1144)
* RTL8192CU: fix kernel 5.10 compilation

* RTL8192DU: fix kernel 5.10 compilation

* RTL8192EU: fix kernel 5.10 compilation

* RTL8812AU: fix kernel 5.10 compilation

* bcm_sta: patch to compile with Linux 5.10

* xf86-video-nvidia: update to 455.45.01 for compatibility with Linux 5.10

* xf86-video-nvidia-legacy: Add patch to compile with Linux 5.10

* linux: add 5.10.2

* Generic: switch linux to 'mainline-5.10'

* iMX6: switch linux to 'mainline-5.10'

* linux: remove 5.9.14

Co-authored-by: Carlos Garces <CGarces@users.noreply.github.com>
Co-authored-by: heitbaum <rudi@heitbaum.com>
2020-12-21 23:07:41 +02:00
Ntemis
b40ad22ada Bump mainline kernel to latest 5.9.14 version 2020-12-12 23:25:22 +02:00
Ntemis
eda613ac4f Merge branch 'linux-5.9.13' of github.com:by-gnome/Lakka-LibreELEC 2020-12-12 23:11:46 +02:00
David G. F
444756c25b
Adding Kernel driver for RG351P gamepad + rumble, as a patch. (#1130)
This is a bit of a hardcore workaround, but it is actually simpler than
adding proper support for PWM rumble in Retroarch.
I tested it thoroughly on my RG351P, in particular the USB reconnect,
which is hard to get right.
2020-12-12 17:42:55 +02:00
Matthias Reichl
545fee04cb linux: fix OUYA patch
The old help syntax has long been deprecated and removed from 5.9

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-12-12 11:52:52 +03:00
MilhouseVH
0257d505fc linux (Generic): drop obselete patch after upstream refactor
See: ba1e78a1dc
2020-12-12 11:52:43 +03:00
MilhouseVH
02842eb1bb linux (Generic): drop obsolete patch after major upstream refactor
See: 3e7abf8141
2020-12-12 11:52:33 +03:00
mglae
f1be301487 linux: initramfs: use initramfs config file(s) and directory structure
Cpio file is generated as part of the kernel build process. No need
to force fakeroot cpio build any more.
2020-12-12 11:50:14 +03: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
Seth Barberee
8163c7a912
clean up Rpi2/4 patches for linux5.4 and bluez (#1120)
* clean up Rpi2/4 patches for linux5.4 and bluez

* cleanup rest of bluez patches across Generic/NXP/OdroidXU3
2020-12-03 22:32:02 +02:00
Seth Barberee
438b2d3f09
[Rpi2/3] linux 5.4 (#1119)
* update Rpi2 to linux 5.4

* update kernel config
2020-12-03 00:59:21 +02:00
David G. F
cb58954d6b
Adding RG351P support, an Odroid Go Advance clone (#1105)
This console requires a separate DTS and a USB controller config.
U-Boot cannot reliably distinguish the two consoles since the HW ID
for it is the same as OGA v1.1 (looking into the schematics did not
yeld any GPIO differences that could be used for that).

I plan to dig a bit more into u-boot, perhaps enabling USB and
looking for the USB controller could be a way to differentiate them.
In the meantime this just adds another OGA flavor, which adds little
overhead to the build system.

Another TODO is rumble support, mapped to PWM1, which is not trivial
to support in RetroArch.
2020-11-18 20:01:16 +02:00
zhangn1985
b293656f57
fix build issue in Debian 11 (#1094)
* fix linux u-boot build under host gcc 10

Debian 11 has gcc 10, thus Lakka build failed.

port upstream patch to fix build issue is Debian 11.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e33a814e772cdc36436c8c188d8c42d019fda639

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* melonds depends on mesa on x86_64

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* python is python2

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* Gamegirl: fix kernel build

vmlinux link to ko, thus fail to build.
config related driver to ko.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* Gamegirl: set PKG_TOOLCHAIN to manual

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* Gamegirl: build GL

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* Gamegirl: fix bootload build

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* fix chailove build issue and enable it

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* build_all: remove some cache to make sure rebuild pass

when the previous build stops in the middle, must remove more to pass build.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2020-11-12 18:15:21 +02:00
David Lawson
bb77e4fc91
linux: Copy from dts/broadcom/*.dtb when PROJECT=RPi and ARCH=aarch64 (#1080)
Previously tried to look at PLATFORM which isn't set
2020-11-02 16:29:33 +02:00
by-gnome
4e6cd030ff
WIP linux package fixes (#1073)
* linux: fix setting CONFIG_INITRAMFS_ROOT_ options in linux config

Remove CONFIG_INITRAMFS_ROOT_UID and CONFIG_INITRAMFS_ROOT_GID
options before adding them to avoid duplication

* linux: fix setting CONFIG_EXTRA_FIRMWARE and CONFIG_EXTRA_FIRMWARE_DIR

* linux: add kernel-firmware package to linux dependency tree for iMX6

* NXP\iMX6: exclude unnecessary firmware packages
2020-10-25 23:47:37 +02:00
Ntemis
324ceda432 x86_64: Bump kernel to latest v5.4.72 LTS 2020-10-19 01:04:55 +03:00
Ntemis
3948fa3e8a RPi4: Update kernel to latest v5.4.71 2020-10-19 00:57:50 +03:00
David Lawson
1bd927e074
Rpi4 aarch64 (#1022)
* rpi4-aarch64: Add rpi4 aarch64 kernel config

This was created by copying the arm config and looking at the diff between:

https://github.com/raspberrypi/linux/blob/rpi-5.4.y/arch/arm/configs/bcm2711_defconfig

and

https://github.com/raspberrypi/linux/blob/rpi-5.4.y/arch/arm64/configs/bcm2711_defconfig

* rpi4-aarch64: Don't pass --enable-neon to retroarch as it makes the build fail

* rpi4-aarch64: Raspberry Pi dtb files are created in a different place for aarch64

* rpi4-aarch64: Build some rpi specific packages for aarch64 as well as arm

* rpi4-aarch64: RPi4 64-bit needs fixup4.dat to boot

I don't think this harms anything else

* rpi4-aarch64: Enable 64-bit mode and specify kernel filename in config.txt

This is a bit hacky.

We need to specify the kernel filename otherwise it expects it to be kernel8.img

* rpi4-aarch64: Fix RPi options for RPi4 aarch64

* rpi4-aarch64: update mupen64plus to aarch64 compatible version

* rpi4-aarch64: exclude cores that don't compile only for rpi-aarch64

* rpi4-aarch64: Update alsa-utils to overcome https://github.com/alsa-project/alsa-utils/issues/33

* rpi4-aarch64: Remove extra $ARCH arg from mk_arcade_joystick_rpi

* rpi4-aarch64: Fix ffmpeg compilation

* rpi4-aarch64: add new kernel conf

Created by copying the existing linux.arm.conf and applying the diffs between the official 32bit rpi kernel config and the official 64bit rpi kernel config

* rpi4-aarch64: improve kernel config

* rpi4: don't configure non-default audio_device

* Update mupen64plus_next

* rpi4-aarch64: turn off a load of debugging in the kernel
2020-10-04 17:15:17 +03:00
Demetris Ierokipides
466db8827a
Rpi4 total upgrade WIP (#1040)
* Rpi4: Restructure and update rpi4 kernel to the latest 5.4.64
- New audio alsa config
- Increase gpu ram to 384mb
- Use the mesa 3d driver

* RPi4:Add bluez patch

* Bump bcm2835-driver

* Bump rpi-eeprom package to the latest
Bootloader version: 2020-09-03
VL805: 0138a1

* Bump rpi family bootloader

* rpi: use systemd for cpufreq tuning

Signed-off-by: Ian Leonard <antonlacon@gmail.com>

* Rpi4:Bump linux to v5.4.65

* Bump alsa-lib package to v1.2.3.1 and patch rpi4 hdmi support

Co-authored-by: Ian Leonard <antonlacon@gmail.com>
2020-09-23 00:37:21 +03:00
Ntemis
73ddb29abc Bump lts kernel to v5.4.66 2020-09-18 16:53:18 +03:00