Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
110 changed files
with
4,899 additions
and
3,309 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
packages/linux-drivers/RTL8192DU/patches/RTL8192DU-0002-fixes-for-linux-6.8.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
From 496ee7ac49a732b051fe0f717a946b0a35f90737 Mon Sep 17 00:00:00 2001 | ||
From: Christian Hewitt <christianshewitt@gmail.com> | ||
Date: Sat, 23 Mar 2024 09:15:55 +0000 | ||
Subject: [PATCH] os_dep: update os_intfs.c/usb_intf.c for kernel 6.8 | ||
|
||
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> | ||
--- | ||
os_dep/os_intfs.c | 4 ++++ | ||
os_dep/usb_intf.c | 2 +- | ||
2 files changed, 5 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/os_dep/os_intfs.c b/os_dep/os_intfs.c | ||
index 5feaaf4..1831d6c 100644 | ||
--- a/os_dep/os_intfs.c | ||
+++ b/os_dep/os_intfs.c | ||
@@ -35,6 +35,10 @@ | ||
#include <rtw_br_ext.h> | ||
#endif //CONFIG_BR_EXT | ||
|
||
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0)) | ||
+#define strlcpy strscpy | ||
+#endif | ||
+ | ||
MODULE_LICENSE("GPL"); | ||
MODULE_DESCRIPTION("Realtek Wireless Lan Driver"); | ||
MODULE_AUTHOR("Realtek Semiconductor Corp."); | ||
diff --git a/os_dep/usb_intf.c b/os_dep/usb_intf.c | ||
index a2353e3..2961a81 100644 | ||
--- a/os_dep/usb_intf.c | ||
+++ b/os_dep/usb_intf.c | ||
@@ -148,7 +148,7 @@ struct rtw_usb_drv rtl8192d_usb_drv = { | ||
.usbdrv.supports_autosuspend = 1, | ||
#endif | ||
|
||
- #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)) | ||
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 8, 0)) | ||
.usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown, | ||
#else | ||
.usbdrv.driver.shutdown = rtw_dev_shutdown, | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
packages/sysutils/busybox/scripts/update-bootloader-edid-amlogic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv) | ||
|
||
do_install(){ | ||
# create the persistent firmware dir | ||
mkdir -p "/storage/.config/firmware/edid" | ||
|
||
# capture the raw edid file | ||
if [ ! -e /storage/.config/firmware/edid/edid.bin ]; then | ||
cat "/sys/class/drm/card0-HDMI-A-1/edid" > "/storage/.config/firmware/edid/edid.bin" | ||
else | ||
echo "info: using existing edid.bin" | ||
fi | ||
|
||
# create the cpio file | ||
mkdir -p "/storage/cpio/lib/firmware/edid" | ||
cp "/storage/.config/firmware/edid/edid.bin" "/storage/cpio/lib/firmware/edid/" | ||
cd "/storage/cpio" | ||
find . -print | cpio -ov -H newc > "/storage/.config/firmware/edid/edid.cpio" | ||
|
||
# mount /flash rw | ||
mount -o remount,rw /flash | ||
|
||
# copy the cpio file | ||
cp "/storage/.config/firmware/edid/edid.cpio" "/flash/edid.cpio" | ||
|
||
# cleanup cpio dir | ||
rm -rf "/storage/cpio" | ||
|
||
# determine boot method and set params | ||
if [ -f "/flash/extlinux/extlinux.conf" ]; then | ||
FILE="/flash/extlinux/extlinux.conf" | ||
if grep -q "initrd=/edid.cpio" "${FILE}" ; then | ||
echo "error: ${FILE} already contains edid.cpio, aborting!" | ||
exit 1 | ||
else | ||
cp "${FILE}" "${FILE}.backup" | ||
sed -i "/ APPEND/s/$/ drm.edid_firmware=edid\/edid.bin video=HDMI-A-1:D/" "${FILE}" | ||
echo "info: edid setup complete!" | ||
exit 0 | ||
fi | ||
else | ||
FILE="/flash/uEnv.ini" | ||
if grep -q "initrd=/edid.cpio" "${FILE}" ; then | ||
echo "error: ${FILE} already contains edid.cpio info .. aborting!" | ||
exit 1 | ||
else | ||
cp "${FILE}" "${FILE}.backup" | ||
sed -i "/ bootargs/s/$/ drm.edid_firmware=edid\/edid.bin video=HDMI-A-1:D/" "${FILE}" | ||
echo "info: edid setup complete!" | ||
exit 0 | ||
fi | ||
fi | ||
} | ||
|
||
do_cleanup(){ | ||
rm "/storage/.config/firmware/edid/edid.bin" | ||
rm "/storage/.config/firmware/edid/edid.cpio" | ||
mount -o remount,rw /flash | ||
rm "/flash/edid.cpio" | ||
if [ -f "/flash/extlinux/extlinux.conf" ]; then | ||
FILE="/flash/extlinux/extlinux.conf" | ||
else | ||
FILE="/flash/uEnv.ini" | ||
fi | ||
cp "${FILE}.backup" "${FILE}" | ||
mount -o remount,ro /flash | ||
} | ||
|
||
do_usage(){ | ||
echo "usage: getedid {create|delete}" | ||
exit 0 | ||
} | ||
|
||
case $1 in | ||
create) | ||
do_install | ||
;; | ||
delete) | ||
do_cleanup | ||
;; | ||
*) | ||
do_usage | ||
;; | ||
esac | ||
|
||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...logic/devices/AMLGX/patches/linux/amlogic-0001-LOCAL-set-meson-gx-cma-pool-to-896MB.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ogic/devices/AMLGX/patches/linux/amlogic-0002-LOCAL-set-meson-g12-cma-pool-to-896MB.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../AMLGX/patches/linux/amlogic-0004-LOCAL-arm64-meson-add-Amlogic-Meson-GX-PM-Suspend.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...LGX/patches/linux/amlogic-0005-LOCAL-arm64-dts-meson-add-support-for-GX-PM-and-Virt.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...LGX/patches/linux/amlogic-0006-LOCAL-arm64-dts-meson-add-rtc-vrtc-aliases-to-Khadas.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...LGX/patches/linux/amlogic-0007-LOCAL-arm64-dts-meson-add-rtc-vrtc-aliases-to-Khadas.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...LGX/patches/linux/amlogic-0008-LOCAL-arm64-dts-meson-add-rtc-vrtc-aliases-to-Minix-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.