rk322x-box Armbian build report/collab
-
Hello friends,
I have recently completed a build of RetroPie on a Dolamee D5 TV Box (rk3229 ~1.4GHz , 2gb ddr3@600) via Armbian. Specific build is here. https://forum.armbian.com/topic/12656-csc-armbian-for-rk322x-tv-boxes/
I do not expect that I will have this box for a long time. This is liable to become a gift. But while I have it, I was wondering if there are any specific tests any devs might find helpful. This is a very low-end machine (I bought it for pocket change at a thrift store because all they knew was "it powers on"), but even N64 emulation is coming out well. Are there specific games that are helpful in determining how close to 100% Retropie is running for the platform?
I am not sure at all that my platform flags here are correct, but this was the minor mod I made to system.sh to get it to detect it as arm.
uname --machine
returnsarmv7l
which ends up not setting the arm flag.index dc2cc8b..a52275d 100644 --- a/scriptmodules/system.sh +++ b/scriptmodules/system.sh @@ -448,6 +448,9 @@ function get_platform() { *rk3588*) __platform="rk3588" ;; + *rk3229*) + __platform="rk3229" + ;; esac elif [[ -e "/sys/devices/soc0/family" ]]; then case "$(tr -d '\0' < /sys/devices/soc0/family)" in @@ -665,3 +668,8 @@ function platform_vero4k() { __default_cflags="-I/opt/vero3/include -L/opt/vero3/lib" __platform_flags+=(mali gles) } + +function platform_rk3229() { + cpu_armv7 "cortex-a7" + __platform_flags+=(kms vulkan) +}```
-
Thanks for sharing the info, interesting little box (though a bit old). Based on the processor included (Rockchip 3229), I'd say the system flags should be:
__platform_flags+=(kms gles gles2 mesa)
I don't think the SOC has Vulkan support so there's no need for the
vulkan
flag.Are kernel headers available (and usable) if one has to compile extra drivers for gamepads ?(installing/re-installing the
xpad
driver should be enough to see if it works).For testing, I guess running N64 and Dreamcast games may be used to see how it performs. Goldeneye / Legend of Zelda, Ocarina of Time for N64 and probably Sonic Adventures/Crazy Taxi are good candidates to test it.
Is the remote control working ? How good is Kodi at playing/streaming movies ?
-
Interesting. Got xpad going, I think. The module builds and installs anyhow. Close enough. Ship it. Amirite? Haha.
linux-headers-6.1.30-rk322x
was what Retropie wanted to install,linux-headers-current-rk322x
was the correct package. Armbian splits kernels into current and edge variants, without version numbering. Following patch alters helpers.sh to make Retropie look for the correct kernel.index d57f5d5..766d30f 100644 --- a/scriptmodules/helpers.sh +++ b/scriptmodules/helpers.sh @@ -249,6 +249,8 @@ function _mapPackage() { LINUX-HEADERS) if isPlatform "rpi"; then pkg="raspberrypi-kernel-headers" + elif [[ $__platform == rk3229 ]] ; then + pkg="linux-headers-current-rk322x" elif [[ -z "$__os_ubuntu_ver" ]]; then pkg="linux-headers-$(uname -r)" else
I think you're right on the vulkan part. Tried gles2 for my first flagset but I had trouble with the gles2 package. kms+vulkan produced something that worked, which surprised me. I reported here shortly thereafter.
I appreciate the remote control and Kodi nudges, but I never got a remote with it, and Kodi isn't interesting to me. If I was going to use this box for Kodi, I'd reflash to Android.
I'll play around with your flag suggestions and games and document some more later. Thanks again for the ideas.
-
@baryon said in rk322x-box Armbian build report/collab:
linux-headers-6.1.30-rk322x was what Retropie wanted to install, linux-headers-current-rk322x was the correct package. Armbian splits kernels into current and edge variants, without version numbering. Following patch alters helpers.sh to make Retropie look for the correct kernel.
Yeah, I have a patch to add Armbian support in RetroPie-Setup and installing the correct
.deb
package for the Linux kernel headers is a part of it. It's based on the method used byarmbian-config
to install the kernel headers (there's a menu option in the utility). I haven't submitted it yet, but I'll re-check and submit it soon. -
After playing around with the flycast package, I've given up and filed a bug with upstream, which also suffers from what looks like the same problem: https://github.com/flyinghead/flycast/issues/1148
Doesn't seem to want to work, even though looking at the lr-flycast Makefile, it ought to run on hardware substantially less powerful. lr-flycast builds with
platform=classic_armv7_a7
and then hits what I reckon is the similar invalid instruction error. Other platforms produce weird linker problems, including mimicking the RK3288 build, which seemed the most natural fit.@mitu, is there any chance you have your Armbian code on a public-facing git somewhere? Curious how it looks; happy to test and see how it runs for me.
-
@baryon said in rk322x-box Armbian build report/collab:
@mitu, is there any chance you have your Armbian code on a public-facing git somewhere? Curious how it looks; happy to test and see how it runs for me.
There's not much there, but I have to recover it first since my Armbian system doesn't boot now due to .. experiments.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.