From 0cf255a9c98227bb8a8789482156b6124a27c7e1 Mon Sep 17 00:00:00 2001 From: Shaun Inman Date: Sat, 18 Jan 2025 08:16:38 -0500 Subject: [PATCH] tg5040: add DinguxCommander-sdl2-based Files.pak --- .../EXTRAS/Tools/tg5040/Files.pak/launch.sh | 6 ++ todo.txt | 59 ++++++++++++------- workspace/my355/makefile | 2 + workspace/tg5040/makefile | 9 ++- workspace/tg5040/platform/makefile.copy | 6 +- 5 files changed, 56 insertions(+), 26 deletions(-) create mode 100755 skeleton/EXTRAS/Tools/tg5040/Files.pak/launch.sh diff --git a/skeleton/EXTRAS/Tools/tg5040/Files.pak/launch.sh b/skeleton/EXTRAS/Tools/tg5040/Files.pak/launch.sh new file mode 100755 index 00000000..4923beef --- /dev/null +++ b/skeleton/EXTRAS/Tools/tg5040/Files.pak/launch.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +cd $(dirname "$0") + +HOME="$SDCARD_PATH" +./DinguxCommander \ No newline at end of file diff --git a/todo.txt b/todo.txt index 356300d6..1fa9047c 100644 --- a/todo.txt +++ b/todo.txt @@ -3,16 +3,35 @@ 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 @@ -20,16 +39,22 @@ 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) @@ -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? @@ -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 @@ -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 diff --git a/workspace/my355/makefile b/workspace/my355/makefile index 9b4021a1..5cb6727c 100644 --- a/workspace/my355/makefile +++ b/workspace/my355/makefile @@ -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): diff --git a/workspace/tg5040/makefile b/workspace/tg5040/makefile index ea0767ff..8b3c10e1 100644 --- a/workspace/tg5040/makefile +++ b/workspace/tg5040/makefile @@ -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) diff --git a/workspace/tg5040/platform/makefile.copy b/workspace/tg5040/platform/makefile.copy index e857a4e4..357f3eae 100644 --- a/workspace/tg5040/platform/makefile.copy +++ b/workspace/tg5040/platform/makefile.copy @@ -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 \ No newline at end of file + cp ./workspace/$@/other/DinguxCommander-sdl2/DinguxCommander ./build/EXTRAS/Tools/$@/Files.pak/ + cp -r ./workspace/$@/other/DinguxCommander-sdl2/res ./build/EXTRAS/Tools/$@/Files.pak/ \ No newline at end of file