diff --git a/board/batocera/allwinner/h700/rg28xx/fsoverlay/etc/init.d/S02overclock b/board/batocera/allwinner/h700/rg28xx/fsoverlay/etc/init.d/S02overclock new file mode 100755 index 00000000000..67c8b2828bc --- /dev/null +++ b/board/batocera/allwinner/h700/rg28xx/fsoverlay/etc/init.d/S02overclock @@ -0,0 +1,43 @@ +#!/bin/bash + +do_overclock() { + echo "$1" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq + echo "$1" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq + echo "$1" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq + echo "$1" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq +} + + +if test "${1}" = "start" +then + OVALUE=$(grep -E '^[ ]*overclocking[ ]*=[ ]*.*[ ]*$' /boot/batocera-boot.conf | sed -e s+"^[ ]*overclocking[ ]*=[ ]*\(.*\)[ ]*$"+"\1"+) + + # ULTRALOW LOW MEDIUM HIGH TURBO EXTREME + # 480000 720000 1032000 1104000 1200000 1296000 1416000 1512000 + + case "${OVALUE}" in + "none") + do_overclock 1512000 + ;; + "turbo") + do_overclock 1416000 + ;; + "high") + do_overclock 1296000 + ;; + "medium") + do_overclock 1200000 + ;; + "low") + do_overclock 720000 + ;; + "powersave") + do_overclock 480000 + ;; + *) + # default + do_overclock 1512000 + ;; + esac +fi + diff --git a/board/batocera/allwinner/h700/rg35xx-plus/fsoverlay/etc/init.d/S02overclock b/board/batocera/allwinner/h700/rg35xx-plus/fsoverlay/etc/init.d/S02overclock index 2b41d2890b3..67c8b2828bc 100755 --- a/board/batocera/allwinner/h700/rg35xx-plus/fsoverlay/etc/init.d/S02overclock +++ b/board/batocera/allwinner/h700/rg35xx-plus/fsoverlay/etc/init.d/S02overclock @@ -16,7 +16,7 @@ then # 480000 720000 1032000 1104000 1200000 1296000 1416000 1512000 case "${OVALUE}" in - "extreme") + "none") do_overclock 1512000 ;; "turbo") @@ -25,11 +25,11 @@ then "high") do_overclock 1296000 ;; - "none") + "medium") do_overclock 1200000 ;; "low") - do_overclock 1032000 + do_overclock 720000 ;; "powersave") do_overclock 480000 diff --git a/board/batocera/fsoverlay/etc/init.d/S12populateshare b/board/batocera/fsoverlay/etc/init.d/S12populateshare index b953eafbf31..e1b61b60371 100755 --- a/board/batocera/fsoverlay/etc/init.d/S12populateshare +++ b/board/batocera/fsoverlay/etc/init.d/S12populateshare @@ -89,6 +89,7 @@ for FILE in music bios extractions kodi library saves screenshots splash \ system/.config/lirc/lircd.conf \ system/configs/emulationstation/es_input.cfg \ system/configs/emulationstation/es_settings.cfg \ + system/configs/emulationstation/about.info \ system/.kodi \ system/configs/amiberry \ system/configs/amiberry/whdboot \ diff --git a/board/batocera/rockchip/rk3128/fsoverlay/etc/init.d/rcK b/board/batocera/rockchip/rk3128/fsoverlay/etc/init.d/rcK new file mode 100755 index 00000000000..e7465b4a6af --- /dev/null +++ b/board/batocera/rockchip/rk3128/fsoverlay/etc/init.d/rcK @@ -0,0 +1,24 @@ +#!/bin/sh + +# Stop all init scripts in /etc/init.d +# executing them in reversed numerical order. +# +for i in $(ls -r /etc/init.d/S??*) ;do + + # Ignore dangling symlinks (if any). + [ ! -f "$i" ] && continue + + case "$i" in + *.sh) + # Source shell script for speed. + ( + trap - INT QUIT TSTP + set stop + . $i + ) + ;; + *) + $i stop + ;; + esac +done diff --git a/board/batocera/rockchip/rk3128/fsoverlay/etc/init.d/rcS b/board/batocera/rockchip/rk3128/fsoverlay/etc/init.d/rcS new file mode 100755 index 00000000000..873b4b5abbc --- /dev/null +++ b/board/batocera/rockchip/rk3128/fsoverlay/etc/init.d/rcS @@ -0,0 +1,38 @@ +#!/bin/sh + +# We need the graphics module in order to use SDL since we are +# using the sdl-compat/SDL2 for rendering +insmod /lib/modules/mali_kbase.ko + +# Call the charger process +/usr/bin/charger + +# Start the progress bar +/usr/bin/progressbar & + +# Start all init scripts in /etc/init.d +# executing them in numerical order. +# +for i in /etc/init.d/S??* ;do + + # Ignore dangling symlinks (if any). + [ ! -f "$i" ] && continue + + case "$i" in + *.sh) + # Source shell script for speed. + ( + trap - INT QUIT TSTP + set start + . $i + ) + ;; + *) + echo "$i" > /tmp/status.txt + # No sh extension, so fork subprocess. + $i start + ;; + esac + + echo $(date +"%F %T,%3N")": ${i} - started" >> /var/run/boot.log +done diff --git a/board/batocera/rockchip/rk3128/fsoverlay/usr/share/emulationstation/resources/logo.png b/board/batocera/rockchip/rk3128/fsoverlay/usr/share/emulationstation/resources/logo.png new file mode 100644 index 00000000000..be464ad706f Binary files /dev/null and b/board/batocera/rockchip/rk3128/fsoverlay/usr/share/emulationstation/resources/logo.png differ diff --git a/configs/batocera-rk3128.board b/configs/batocera-rk3128.board index 1cfbedb71db..03bd8c607e2 100644 --- a/configs/batocera-rk3128.board +++ b/configs/batocera-rk3128.board @@ -62,3 +62,20 @@ BR2_PACKAGE_LIBCEC=y BR2_PACKAGE_INPUT_EVENT_DAEMON=y BR2_PACKAGE_LIBSODIUM=y #BR2_PACKAGE_MOONLIGHT_EMBEDDED=n + +# ADB +BR2_PACKAGE_ANDROID_TOOLS=y +BR2_PACKAGE_ANDROID_TOOLS_ADBD=y + +# SDL1 +BR2_PACKAGE_SDL=y +BR2_PACKAGE_SDL_FBCON=y +BR2_PACKAGE_SDL_GFX=y +BR2_PACKAGE_SDL_IMAGE=y +BR2_PACKAGE_SDL_IMAGE_BMP=y +BR2_PACKAGE_SDL_IMAGE_JPEG=y +BR2_PACKAGE_SDL_IMAGE_PNG=y +BR2_PACKAGE_SDL_SOUND=y +BR2_PACKAGE_SDL_TTF=y +BR2_PACKAGE_SDL12_COMPAT=y + diff --git a/package/batocera/core/batocera-configgen/0001-RA-menu-inputs-match-ES-Mikhailzrick.patch b/package/batocera/core/batocera-configgen/0001-RA-menu-inputs-match-ES-Mikhailzrick.patch index 6f1041ca6b6..82fc6106c53 100644 --- a/package/batocera/core/batocera-configgen/0001-RA-menu-inputs-match-ES-Mikhailzrick.patch +++ b/package/batocera/core/batocera-configgen/0001-RA-menu-inputs-match-ES-Mikhailzrick.patch @@ -1,6 +1,6 @@ ---- a/configgen/generators/libretro/libretroConfig.py -+++ b/configgen/generators/libretro/libretroConfig.py -@@ -14,12 +14,23 @@ from PIL import Image, ImageOps +--- a/configgen/generators/libretro/libretroConfig.py 2024-05-29 02:34:53.563715544 +0000 ++++ b/configgen/generators/libretro/libretroConfig.py 2024-05-29 02:36:09.387623908 +0000 +@@ -14,12 +14,23 @@ import utils.bezels as bezelsUtil import utils.videoMode as videoMode import controllersConfig diff --git a/package/batocera/core/batocera-system/Config.in b/package/batocera/core/batocera-system/Config.in index 0c837d83ab2..3731cafd118 100644 --- a/package/batocera/core/batocera-system/Config.in +++ b/package/batocera/core/batocera-system/Config.in @@ -286,10 +286,10 @@ config BR2_PACKAGE_BATOCERA_SYSTEM select BR2_PACKAGE_WIIMOTES_RULES if !BR2_PACKAGE_BATOCERA_TARGET_BCM2835 && !BR2_PACKAGE_BATOCERA_TARGET_RK3326 # wiimotes select BR2_PACKAGE_WIIMOTE_3RDPARTY if !BR2_PACKAGE_BATOCERA_TARGET_BCM2835 && !BR2_PACKAGE_BATOCERA_TARGET_RK3326 # some non official wiimotes select BR2_PACKAGE_XWIIMOTE if !BR2_PACKAGE_BATOCERA_TARGET_BCM2835 && !BR2_PACKAGE_BATOCERA_TARGET_RK3326 # a tool to analye wiimote events (mainly to debug, but helps and is funny) - select BR2_PACKAGE_BATOCERA_GUNS if !BR2_PACKAGE_BATOCERA_TARGET_BCM2835 && !BR2_PACKAGE_BATOCERA_TARGET_RK3326 + select BR2_PACKAGE_BATOCERA_GUNS if !BR2_PACKAGE_BATOCERA_TARGET_BCM2835 && !BR2_PACKAGE_BATOCERA_TARGET_RK3326 && !BR2_PACKAGE_BATOCERA_TARGET_RK3128 select BR2_PACKAGE_BATOCERA_WHEEL_CALIBRATOR - select BR2_PACKAGE_NEW_LG4FF if !BR2_PACKAGE_BATOCERA_TARGET_RK3326 && !BR2_PACKAGE_BATOCERA_TARGET_XU4 && !BR2_PACKAGE_BATOCERA_TARGET_BCM2835 && !BR2_PACKAGE_BATOCERA_TARGET_RK3326 # Improved Linux module driver for Logitech driving wheels (the lg4ff is disabled in kernels) - select BR2_PACKAGE_HID_NX if !BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4 && !BR2_PACKAGE_BATOCERA_TARGET_BCM2835 && !BR2_PACKAGE_BATOCERA_TARGET_RK3326 # updated nintendo switch controller driver, requires kernel > 4.4 + select BR2_PACKAGE_NEW_LG4FF if !BR2_PACKAGE_BATOCERA_TARGET_RK3326 && !BR2_PACKAGE_BATOCERA_TARGET_XU4 && !BR2_PACKAGE_BATOCERA_TARGET_BCM2835 && !BR2_PACKAGE_BATOCERA_TARGET_RK3326 && !BR2_PACKAGE_BATOCERA_TARGET_RK3128 # Improved Linux module driver for Logitech driving wheels (the lg4ff is disabled in kernels) + select BR2_PACKAGE_HID_NX if !BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4 && !BR2_PACKAGE_BATOCERA_TARGET_BCM2835 && !BR2_PACKAGE_BATOCERA_TARGET_RK3326 && !BR2_PACKAGE_BATOCERA_TARGET_RK3128 # updated nintendo switch controller driver, requires kernel > 4.4 select BR2_PACKAGE_JOYCOND if BR2_PACKAGE_HID_NX # nintendo switch joycon daemon (requires hid-nx) select BR2_PACKAGE_JAMMASD