S922X updates
This commit is contained in:
parent
79e1efe7e0
commit
cf5e5083a6
13 changed files with 119 additions and 9 deletions
1
Makefile
1
Makefile
|
@ -40,7 +40,6 @@ RK3566:
|
|||
PROJECT=Rockchip DEVICE=RK3566 ARCH=aarch64 ./scripts/build_distro
|
||||
|
||||
S922X:
|
||||
PROJECT=Amlogic DEVICE=S922X ARCH=arm ./scripts/build_distro
|
||||
PROJECT=Amlogic DEVICE=S922X ARCH=aarch64 ./scripts/build_distro
|
||||
|
||||
update:
|
||||
|
|
|
@ -43,7 +43,9 @@ makeinstall_target() {
|
|||
mkdir -p ${INSTALL}/usr/lib/libretro
|
||||
case ${TARGET_ARCH} in
|
||||
aarch64)
|
||||
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/flycast-lr-*/.install_pkg/usr/lib/libretro/flycast32_libretro.so ${INSTALL}/usr/lib/libretro
|
||||
if [ -f ${ROOT}/build.${DISTRO}-${DEVICE}.arm/flycast-lr-*/.install_pkg/usr/lib/libretro/flycast32_libretro.so ]; then
|
||||
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/flycast-lr-*/.install_pkg/usr/lib/libretro/flycast32_libretro.so ${INSTALL}/usr/lib/libretro
|
||||
fi
|
||||
cp flycast_libretro.so ${INSTALL}/usr/lib/libretro/flycast_libretro.so
|
||||
;;
|
||||
arm)
|
||||
|
|
|
@ -22,7 +22,7 @@ makeinstall_target() {
|
|||
## Install the 64bit core.
|
||||
mkdir -p ${INSTALL}/usr/lib/libretro
|
||||
cp pcsx_rearmed_libretro.so ${INSTALL}/usr/lib/libretro/
|
||||
if [ "${TARGET_ARCH}" = "aarch64" ]
|
||||
if [ "${TARGET_ARCH}" = "aarch64" ] && [ ! ${DEVICE} = 'S922X' ]
|
||||
then
|
||||
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/pcsx_rearmed-lr-*/.install_pkg/usr/lib/libretro/pcsx_rearmed_libretro.so ${INSTALL}/usr/lib/libretro/pcsx_rearmed32_libretro.so
|
||||
fi
|
||||
|
|
|
@ -88,9 +88,11 @@ makeinstall_target() {
|
|||
|
||||
case ${ARCH} in
|
||||
aarch64)
|
||||
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/retroarch-*/.install_pkg/usr/bin/retroarch ${INSTALL}/usr/bin/retroarch32
|
||||
mkdir -p ${INSTALL}/usr/share/retroarch/filters/32bit/
|
||||
cp -rvP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/retroarch-*/.install_pkg/usr/share/retroarch/filters/64bit/* ${INSTALL}/usr/share/retroarch/filters/32bit/
|
||||
if [ -f ${ROOT}/build.${DISTRO}-${DEVICE}.arm/retroarch-*/.install_pkg/usr/bin/retroarch ]; then
|
||||
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/retroarch-*/.install_pkg/usr/bin/retroarch ${INSTALL}/usr/bin/retroarch32
|
||||
mkdir -p ${INSTALL}/usr/share/retroarch/filters/32bit/
|
||||
cp -rvP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/retroarch-*/.install_pkg/usr/share/retroarch/filters/64bit/* ${INSTALL}/usr/share/retroarch/filters/32bit/
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -24,7 +24,14 @@ PKG_UI_TOOLS="fileman"
|
|||
|
||||
PKG_SOFTWARE=""
|
||||
|
||||
PKG_COMPAT="lib32"
|
||||
case "${DEVICE}" in
|
||||
S922X)
|
||||
#aarch64 ONLY
|
||||
;;
|
||||
*)
|
||||
PKG_COMPAT="lib32"
|
||||
;;
|
||||
esac
|
||||
|
||||
PKG_MULTIMEDIA="ffmpeg vlc mpv"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# Copyright (C) 2021-present Fewtarius
|
||||
|
||||
PKG_NAME="RTL8812AU"
|
||||
PKG_VERSION="7b2946304933d593feb01d50fea71065d90973b0"
|
||||
PKG_VERSION="a185a595248926eda0796104fa8417c6248bfd60"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/morrownr/8812au-20210629"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
|
|
|
@ -44,7 +44,7 @@ case "${DEVICE}" in
|
|||
PKG_EMUS+=" yabasanshiro-sa"
|
||||
;;
|
||||
S922X)
|
||||
PKG_EMUS+=" aethersx2-sa dolphin-sa duckstation-sa mupen64plus-sa yabasanshiro-sa box86 box64"
|
||||
PKG_EMUS+=" aethersx2-sa dolphin-sa duckstation-sa mupen64plus-sa yabasanshiro-sa box64"
|
||||
LIBRETRO_CORES+=" beetle-psx-lr bsnes-hd-lr dolphin-lr pcsx_rearmed-lr yabasanshiro-sa"
|
||||
esac
|
||||
|
||||
|
|
70
projects/Amlogic/options
Executable file
70
projects/Amlogic/options
Executable file
|
@ -0,0 +1,70 @@
|
|||
################################################################################
|
||||
# setup system defaults
|
||||
################################################################################
|
||||
|
||||
# Bootloader to use (syslinux / u-boot / bcm2835-bootloader)
|
||||
BOOTLOADER="u-boot"
|
||||
|
||||
# Kernel extra targets to build
|
||||
KERNEL_UBOOT_EXTRA_TARGET=""
|
||||
|
||||
# Kernel to use. values can be:
|
||||
# default: default mainline kernel
|
||||
LINUX=""
|
||||
|
||||
################################################################################
|
||||
# setup build defaults
|
||||
################################################################################
|
||||
|
||||
# Project FLAGS
|
||||
PROJECT_CFLAGS=""
|
||||
|
||||
# SquashFS compression method (gzip / lzo / xz)
|
||||
SQUASHFS_COMPRESSION="lzo"
|
||||
|
||||
################################################################################
|
||||
# setup project defaults
|
||||
################################################################################
|
||||
|
||||
# build and install ALSA Audio support (yes / no)
|
||||
ALSA_SUPPORT="yes"
|
||||
|
||||
# OpenGL(X) implementation to use (no / mesa)
|
||||
OPENGL="mesa"
|
||||
|
||||
# OpenGL-ES implementation to use (no / bcm2835-driver / gpu-viv-bin-mx6q)
|
||||
OPENGLES="mesa"
|
||||
|
||||
# Displayserver to use (weston / no)
|
||||
DISPLAYSERVER="wl"
|
||||
|
||||
# Windowmanager to use (fluxbox / none)
|
||||
WINDOWMANAGER="weston"
|
||||
|
||||
# Xorg Graphic drivers to use (all / i915,i965,r200,r300,r600,nvidia)
|
||||
# Space separated list is supported,
|
||||
# e.g. GRAPHIC_DRIVERS="i915 i965 r300 r600 radeonsi nvidia"
|
||||
GRAPHIC_DRIVERS=""
|
||||
|
||||
# Modules to install in initramfs for early boot
|
||||
INITRAMFS_MODULES=""
|
||||
|
||||
# additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware)
|
||||
# Space separated list is supported,
|
||||
# e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware"
|
||||
FIRMWARE="misc-firmware wlan-firmware"
|
||||
|
||||
# additional packages to install
|
||||
ADDITIONAL_PACKAGES=""
|
||||
|
||||
# build and install CEC framework support (yes / no)
|
||||
CEC_FRAMEWORK_SUPPORT="yes"
|
||||
|
||||
# build with installer (yes / no)
|
||||
INSTALLER_SUPPORT="no"
|
||||
|
||||
# build and install driver addons (yes / no)
|
||||
DRIVER_ADDONS_SUPPORT="no"
|
||||
|
||||
# debug tty path
|
||||
DEBUG_TTY="/dev/ttyS2"
|
|
@ -1,3 +1,6 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2023-present BrooksyTech (https://github.com/brooksytech)
|
||||
|
||||
diff -rupN linux.orig/arch/arm64/boot/dts/amlogic/Makefile linux/arch/arm64/boot/dts/amlogic/Makefile
|
||||
--- linux.orig/arch/arm64/boot/dts/amlogic/Makefile 2023-03-22 12:34:07.000000000 +0000
|
||||
+++ linux/arch/arm64/boot/dts/amlogic/Makefile 2023-03-31 16:27:15.048741724 +0000
|
||||
|
|
1
projects/Amlogic/packages/linux/sysctl.d/network.conf
Normal file
1
projects/Amlogic/packages/linux/sysctl.d/network.conf
Normal file
|
@ -0,0 +1 @@
|
|||
net.ipv4.tcp_no_metrics_save=1
|
1
projects/Amlogic/packages/linux/sysctl.d/qdisc.conf
Normal file
1
projects/Amlogic/packages/linux/sysctl.d/qdisc.conf
Normal file
|
@ -0,0 +1 @@
|
|||
net.core.default_qdisc = fq_codel
|
|
@ -0,0 +1,9 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
ACTION!="add|change", GOTO="end"
|
||||
|
||||
DRIVER=="ehci-pci|xhci_hcd", RUN+="/usr/bin/sh -c 'echo disabled > /sys$devpath/power/wakeup'"
|
||||
|
||||
LABEL="end"
|
|
@ -0,0 +1,16 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
|
||||
ACTION!="add|change", GOTO="end_modeswitch"
|
||||
|
||||
# Atheros Wireless / Netgear WNDA3200
|
||||
ATTRS{idVendor}=="0cf3", ATTRS{idProduct}=="20ff", RUN+="/usr/bin/eject '/dev/%k'"
|
||||
|
||||
# Realtek RTL8821CU chipset 802.11ac NIC
|
||||
# initial cdrom mode 0bda:1a2b, wlan mode 0bda:c811
|
||||
# Odroid WiFi Module 5B
|
||||
# initial cdrom mode 0bda:1a2b, wlan mode 0bda:c820
|
||||
ATTR{idVendor}=="0bda", ATTR{idProduct}=="1a2b", RUN+="/usr/sbin/usb_modeswitch -K -v 0bda -p 1a2b"
|
||||
ATTR{idVendor}=="0bda", ATTR{idProduct}=="c811", RUN+="/usr/sbin/usb_modeswitch -K -v 0bda -p c811"
|
||||
|
||||
LABEL="end_modeswitch"
|
Loading…
Reference in a new issue