Hey everyone, just wanted to make a small post about installing Box86,Box64,Wine x86 onto a fresh untouched Devterm A06 install (this might work for A04 or CM3, not sure). Box86 and Box64 are runtimes that let you run x86 and x64 Linux architecture programs under ARM, most notably a lot of games that look really rad on this machine. Wine is a runtime that lets you run Windows programs on Linux, to various degrees. I’ve been at this for about a week and wanted to share my findings and save some of you guys the headaches I ran into figuring out how to install this stuff.
- Clone the armbian gaming install script to a download folder or something and run the script
git clone https://github.com/NicoD-SBC/armbian-gaming
/bin/bash ./armbian-gaming.sh
- Run option 1, “install all”, it should take care of all dependencies
If you don’t care about running Windows Apps with Wine you can stop here.
-
Download wine from Wine - Browse /Slackware Packages/5.13/i686 at SourceForge.net
Unarchive and copy the content of /wine-5.13-i686-1sg/usr/ folder to ~/wine/ -
Download and install latest winetricks
cd ~/Downloads && wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
sudo chmod +x winetricks && sudo mv winetricks ~/wine/
- Install a few more useful dependencies
sudo apt-get install libncurses5 libncurses5:armhf libxslt1.1:armhf winbind
- Setup wine for the first time
wine wineboot
- Install some additional dependencies in wine such as Visual C++ runtime and Dotnet2.0
// NOTE: you can also edit the /usr/local/bin/winetricks launch script and remove ‘box86’ if you want it to run without the BOX86_NOBANNER=1 which needs to be run everytime
BOX86_NOBANNER=1 winetricks -q corefonts vcrun2010 dotnet20sp1
And you’re done! With this you should be able to run any x86 or x64 program just by running it in terminal, it will automatically detect which architecture it is and run Box86 or Box64 appropriately.
Some recommended Linux version of games I got to run, for an idea of the range of games that you should be expected to be ‘able’ to run:
Dwarf Fortress (Linux x64)
Brogue CE (Linux x64)
Loop Hero (Linux x64)
TIS-100 (Linux x86)
Cataclysm Dark Days Ahead (Linux x64)
Shovel Knight (Linux x64, iffy performance)
Mixolumia (Linux x64)
Bada Is You (Linux x64)
Unfortunately I have not really been able to get Wine to run anything really well, a lot of times won’t even boot but I still included it as part of this tutorial so maybe someone else can figure it out or maybe comment on if I didn’t install something correctly. If I find out anything else I will update more details here. Good luck and have fun!
FAQ:
I can’t get this program to run?
Always check the error messages if you have any missing dependencies and make sure they are installed under the correct architecture. e.g. If you try to run a game that’s x86 and it outputs that you’re missing say libsdl2-2.0.o or something, install that, and make sure you install it as say libsdl2-2.0:armhf. If it’s under x64 you install it with just libsdl2-2.0.
All the dependencies seem to be installed correctly, it still doesn’t run! (either an error loading the lib, or nothing happens)
Box86 and Box64 are both works in progress, that said a lot of libs have not been wrapped yet and will not run (e.g. GTK support on box64, libxkbcommon on box86, etc.). You can go in depth a bit more with extra logging by using BOX86_LOG=2 or BOX64_LOG=2 before you run the program to be more sure about what is error-ing out. Do check the issues on the git repos for more information or please report any issues you might find.
I got the program to run and it’s super slow.
Unfortunately there’s a few explanations for this, and it also depends on the game. Naturally you won’t be able to run Cyberpunk or even Fallout 3, so you’ll have to temper your expectations. Also be wary of your current CPU/GPU frequency settings (DevTerm A-06 core CPU frequency scaling) Usually I run programs in the 5th gear which enables only the A72 CPUs on and then go into the CPU GUI manager to turn it up to 1800MHZ with performance mode governor. Apparently when any of the first 4 slower CPUs are on, those will take priority and use those and you’ll get lower FPS. Oddly enough though even in best case scenarios so far I haven’t been able to play anything more than 30fps so there might be some weird cap somewhere. There are several Youtube videos showing examples of games running straight up 1080p 60fps on RK3399 hardware so it’s definitely possible but will take a bit more investigation. I feel it might have something to do with drivers/CPU/GPU settings but I’m not sure. Best case would be if we can install TwisterOS on this.
Does this setup have DXVK support?
This does NOT have DXVK support right now on Box86 or Box64. DXVK which is a Vulkan based implementation of D3D9 and D3D11 for Wine. Unfortunately it does not work and trying to install it will absolutely break a bunch of things. You can try to get those two running with the native wine implementations by running wine winecfg and adding it in the libraries tab.
Does Steam work on this setup?
Although it is ‘technically’ possible and absolutely runs on other RK3399 setups (TwisterOS, etc.), however I couldn’t get it to run at least with this setup. There were a lot of weird dll issues, I’m still looking into trying to get it to run and there’s most likely something I’m forgetting to install. If you can get it to run please mention it here! All the earlier mentioned games that I got to run are also all running DRM free either from GoG or itch.io so do keep that in mind.
Shout out to the ptitSeb and the rest of the Box86/Box64 teams, you can check out the repos for more help/issues here:
There is also a pretty active discord with a lot of people who know way more about this stuff than I do:
Also to NicoD-SBC for his install script as well as youtube video explanation: