Skip to content

Commit

Permalink
20240509 - Added rg28xx support
Browse files Browse the repository at this point in the history
* Added initial support for RG28xx
* Added @JohnnyonFlame SDL2 patches for RG28xx rotation
* Added new progressbar and updated corresponding rcS/rcK scripts
* Added retroarch A/B button mapping matching with ES A/B (thanks @Mikhailzrick)
* Fixed additional issues with SDCard resize
* Fixed bootloader error on rg28xx (GPT table too low and overwritten by the bootloader)
* Enabled several cores for the H700 and A133 architectures
  • Loading branch information
acmeplus committed May 9, 2024
1 parent 2ad1595 commit 46c69c7
Show file tree
Hide file tree
Showing 171 changed files with 18,944 additions and 172 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/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
# 408000 600000 816000 1008000 1200000 1416000 1608000 1800000 2000000
case "${OVALUE}" in
"extreme")
do_overclock 2000000
;;
"turbo")
do_overclock 1800000
;;
"high")
do_overclock 1608000
;;
"none")
do_overclock 1416000
;;
"low")
do_overclock 816000
;;
"powersave")
do_overclock 408000
;;
*)
# default
do_overclock 1416000
;;
esac
fi

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/sh

# We need the graphics module in order to use SDL since we are
# using the sdl-compat/SDL2 for rendering
cd /lib/modules/4.9.191
pvrsrvctl --start

# 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
x_min=1054
x_max=3309
y_min=976
y_max=3373
x_zero=2106
y_zero=2191
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
x_min=951
x_max=2954
y_min=970
y_max=3314
x_zero=1975
y_zero=2140
Loading

0 comments on commit 46c69c7

Please sign in to comment.