Skip to content

Commit

Permalink
tg5040: add DinguxCommander-sdl2-based Files.pak
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun Inman committed Jan 18, 2025
1 parent 1324fb1 commit 0cf255a
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 26 deletions.
6 changes: 6 additions & 0 deletions skeleton/EXTRAS/Tools/tg5040/Files.pak/launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

cd $(dirname "$0")

HOME="$SDCARD_PATH"
./DinguxCommander
59 changes: 39 additions & 20 deletions todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,58 @@ Changes
BASE

- tg3040: removed (merged into tg5040)
- tg5040: improved audio quality (ht maxbize)
- miyoomini: added rtc support, see README.txt (ht sinedied)
- tg5040: improved audio quality (thanks maxbize)
- miyoomini: added rtc support, see README.txt (thanks sinedied)
- all: renamed "Thread Core" to "Prioritize Audio" (describe utility not implementation)

EXTRAS

- tg3040: removed (merged into tg5040)
- tg5040: added Files.pak

---

rg35xxplus
someone else reported the rg34xx power button thing I was seeing but on modstock on an xxSP
rg34xx
is power button issue caused by systemd restarting the ui loop?
could be fixed by adding a wait loop after poweroff in bin/shutdown
power button is kinda wonky
definitely wonky
doesn't always turn off
just had it turn off when I tried to wake it from sleep
like it got stuck depressed?
I've had the screen turn back on after showing the powering off message in menu
can't reproduce reliably


tg_040
can I build my own version of SDL2 to speed up launch times?
currently just getting the rendering context going takes ~500ms versus ~200ms on other devices
is it a ram speed issue?
try to reproduce hung shutdowns and fix
doesn't have or use a custom bin/shutdown

boot
another potential way to identify devices
echo `cat /proc/device-tree/model`

all
rename "Thread Core" to "Prioritize Audio"
Can eliminate crackle but may
cause dropped frames. Best only
turned on if necessary.

zero28
see if we can un-hardcode screensize in sdl2-mali
document how to build
./arm64.config.sh
make -j8

my355
firmware update
https://www.lomiyoo.com/en/gujianxiazai.html
test + bootlogo

minui can't install if
MinUI is aleady installed on the card and the tmp_update hook has already been installed previously
solution
delete .tmp_update
or unzip MinUI.zip on the SD card first
undone
+ headphone jack
- mute is static noise (same on stock)
Expand Down Expand Up @@ -59,23 +84,13 @@ it's time to retire some supported devices
magicmini (by own zero28?)
what would this look like if I nuked 32bit archs?
h700 has 64bit libs right?
my282

finish updating README (don't forget BASE readme!)
this will require some finesse for the Miyoo and Trimui devices
move static boot content from workspace/$@ to skeleton/BOOT
update makefile

rg34xx
is power button issue caused by systemd restarting the ui loop?
could be fixed by adding a wait loop after poweroff in bin/shutdown
power button is kinda wonky
definitely wonky
doesn't always turn off
just had it turn off when I tried to wake it from sleep
like it got stuck depressed?
I've had the screen turn back on after showing the powering off message in menu
can't reproduce reliably

h700
video says 64bit system, why is MinUI using 32bit libraries then?
create new 64bit toolchain?
Expand Down Expand Up @@ -155,7 +170,10 @@ next
trimuismart
where fonts and bundled libs aren't available yet

magicmini has no intel toolchain
no intel toolchain
magicmini
zero28
my355

slow buildroot evtest
https://discord.com/channels/741895796315914271/1232969624417730630/1284606079614849084
Expand Down Expand Up @@ -239,6 +257,7 @@ next
requires show.elf
limit option name replacements based on core lib name
noui
https://gist.github.com/shauninman/20d59da8621f79ff65ad561b7ed2b6f4
quit doesn't work as expected on trimuismart
possibly because of absense of shutdown?
h700
Expand Down
2 changes: 2 additions & 0 deletions workspace/my355/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ clean:
cd show && make clean
cd $(REQUIRES_COMMANDER) && make clean

###########################################################

$(REQUIRES_COMMANDER):
git clone --depth 1 https://github.com/shauninman/DinguxCommander-sdl2.git $(REQUIRES_COMMANDER)
$(REQUIRES_EVTEST):
Expand Down
9 changes: 7 additions & 2 deletions workspace/tg5040/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,27 @@ endif
REQUIRES_EVTEST=other/evtest
REQUIRES_JSTEST=other/jstest
REQUIRES_UNZIP60=other/unzip60
REQUIRES_COMMANDER=other/DinguxCommander-sdl2

all: readmes
cd show && make

early: $(REQUIRES_EVTEST) $(REQUIRES_JSTEST) $(REQUIRES_UNZIP60)
early: $(REQUIRES_EVTEST) $(REQUIRES_JSTEST) $(REQUIRES_UNZIP60) $(REQUIRES_COMMANDER)
mkdir -p other
cd $(REQUIRES_COMMANDER) && make -j
cd $(REQUIRES_EVTEST) && $(CROSS_COMPILE)gcc -o evtest evtest.c
cd $(REQUIRES_JSTEST) && $(CROSS_COMPILE)gcc -o jstest jstest.c
cd $(REQUIRES_UNZIP60) && make -f unix/Makefile.trimuismart unzip

clean:
cd show && make clean
cd other/unzip60 && make -f unix/Makefile.trimuismart clean
cd $(REQUIRES_COMMANDER) && make clean
cd $(REQUIRES_UNZIP60) && make -f unix/Makefile.trimuismart clean

###########################################################

$(REQUIRES_COMMANDER):
git clone --depth 1 https://github.com/shauninman/DinguxCommander-sdl2.git $(REQUIRES_COMMANDER)
$(REQUIRES_EVTEST):
git clone --depth 1 https://github.com/freedesktop-unofficial-mirror/evtest.git $(REQUIRES_EVTEST)

Expand Down
6 changes: 2 additions & 4 deletions workspace/tg5040/platform/makefile.copy
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ $(PLATFORM):
cp ./workspace/$@/show/show.elf ./build/BOOT/common/$@/
cp ./workspace/$@/other/unzip60/unzip ./build/BOOT/common/$@/
# extras
# cp ./workspace/$@/other/evtest/evtest ./build/EXTRAS/Tools/$@/Developer.pak/
# cp ./workspace/$@/other/DinguxCommander/output/DinguxCommander ./build/EXTRAS/Tools/$@/Files.pak/
# cp -r ./workspace/$@/other/DinguxCommander/res ./build/EXTRAS/Tools/$@/Files.pak/
# cp ./workspace/$@/other/sdl12-compat/build/libSDL-1.2.so.1.2.69 ./build/SYSTEM/$@/lib/libSDL-1.2.so.0
cp ./workspace/$@/other/DinguxCommander-sdl2/DinguxCommander ./build/EXTRAS/Tools/$@/Files.pak/
cp -r ./workspace/$@/other/DinguxCommander-sdl2/res ./build/EXTRAS/Tools/$@/Files.pak/

0 comments on commit 0cf255a

Please sign in to comment.