forked from batocera-linux/batocera.linux
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
171 changed files
with
18,944 additions
and
172 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
board/batocera/allwinner/a133/trimui-smart-pro/fsoverlay/etc/init.d/S02overclock
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 @@ | ||
#!/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 | ||
|
6 changes: 0 additions & 6 deletions
6
board/batocera/allwinner/a133/trimui-smart-pro/fsoverlay/etc/init.d/S11pvrsrvkm
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
board/batocera/allwinner/a133/trimui-smart-pro/fsoverlay/etc/init.d/rcK
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,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 |
36 changes: 36 additions & 0 deletions
36
board/batocera/allwinner/a133/trimui-smart-pro/fsoverlay/etc/init.d/rcS
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,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 |
6 changes: 6 additions & 0 deletions
6
board/batocera/allwinner/a133/trimui-smart-pro/fsoverlay/mnt/UDISK/joypad.config
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,6 @@ | ||
x_min=1054 | ||
x_max=3309 | ||
y_min=976 | ||
y_max=3373 | ||
x_zero=2106 | ||
y_zero=2191 |
6 changes: 6 additions & 0 deletions
6
board/batocera/allwinner/a133/trimui-smart-pro/fsoverlay/mnt/UDISK/joypad_right.config
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,6 @@ | ||
x_min=951 | ||
x_max=2954 | ||
y_min=970 | ||
y_max=3314 | ||
x_zero=1975 | ||
y_zero=2140 |
Oops, something went wrong.