-
Games Compatible With Armbian on Pinebook Pro
Okay so after hours and hours of trial & error, I may be the first person to successfully play the FOSS 3D Sandbox Space Sim Spiritual Successor to Elite, Oolite on a Pinebook Pro running Armbian. I have used a chatbot to help compile it into a step-by-step guide that hopefully helps others in the future to get it running as well... Installing & Running Oolite on a Pinebook Pro (Armbian ARM64) 1. Install System Build Dependencies Install the compilers, GNUstep development tools, SDL2, OpenAL, and build utilities required for Oolite 1.90 and SpiderMonkey 1.8.5: bash sudo apt update && sudo apt install -y \ git build-essential clang gobjc gnustep-devel \ libsdl2-dev libopenal-dev libvorbis-dev libpng-dev \ libgl1-mesa-dev libglu1-mesa-dev libespeak-dev libnspr4-dev \ autoconf2.13 autotools-dev zip wget Use code with caution. 2. Build Standalone Python 2.7.18 (Required by SpiderMonkey 1.8.5) SpiderMonkey 1.8.5's legacy configure script strictly requires Python 2.7. Compile it into /opt/python2 so it stays isolated from Armbian's system Python 3: bash cd /tmp P="https" H="www.python.org" V="2.7.18" wget "$P://$H/ftp/python/$V/Python-$V.tgz" tar -xzf "Python-$V.tgz" cd "Python-$V" ./configure --prefix=/opt/python2 make -j$(nproc) sudo make install Use code with caution. 3. Build & Patch SpiderMonkey 1.8.5 (mozillajs-linux) for ARM64 Oolite's pre-compiled Linux binaries only target x86/x86_64, and SpiderMonkey 1.8.5 requires three ARM64 adjustments (aarch64 config scripts, GCC cacheFlush, and disabling the x86/ARMv7 JIT engines): Clone Oolite's patched SpiderMonkey source and update architecture scripts: bash rm -rf /tmp/mozillajs-linux P="https"; H="github.com"; O="OoliteProject"; R="mozillajs-linux" git clone --depth 1 "$P://$H/$O/$R.git" /tmp/mozillajs-linux cd /tmp/mozillajs-linux/js/src cp /usr/share/misc/config.guess build/autoconf/ cp /usr/share/misc/config.sub build/autoconf/ Use code with caution. Patch ExecutableAllocator.h for ARM64 instruction cache flushing and skip RegexJIT.cpp: bash sed -i 's|#error "The cacheFlush support is missing on this platform."|static void cacheFlush(void* code, size_t size) { __builtin___clear_cache((char*)code, (char*)code + size); }|' assembler/jit/ExecutableAllocator.h sed -i 's/RegexJIT.cpp//g' Makefile.in Use code with caution. Configure, build (skipping optional jsapi-tests), and install to /usr/local: bash mkdir -p /tmp/mozillajs-linux/js/src/build cd /tmp/mozillajs-linux/js/src/build CXXFLAGS="-O0 -g -fpermissive -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks" \ CFLAGS="-O0 -g -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks" \ PYTHON=/opt/python2/bin/python2.7 \ ../configure --prefix=/usr/local --enable-threadsafe \ --with-system-nspr --disable-methodjit \ --disable-tracejit --disable-yarr-jit \ --enable-trace-jscalls sed -i 's/jsapi-tests//g' Makefile make -j$(nproc) sudo make install sudo ldconfig Use code with caution. 4. Clone & Patch Oolite 1.90 for ARM64 Clone Oolite and check out the 1.90 SDL2 release tag: bash cd ~ P="https"; H="github.com"; O="OoliteProject"; R="oolite" git clone "$P://$H/$O/$R.git" ~/oolite cd ~/oolite git checkout 1.90 git submodule update --init --recursive Use code with caution. Remove bundled libpng-1.4.7 headers (so Oolite compiles against Armbian's system libpng-1.6.x and loads PNG textures properly): bash find deps -name "png*.h" -delete Use code with caution. Patch OOCPUInfo.h and OOCPUInfo.m (sets little-endian byte order for aarch64 and bypasses x86 cpuid assembly): bash python3 -c ' import re # Patch OOCPUInfo.h for ARM64 little-endian h = "src/Core/OOCPUInfo.h" s = open(h).read() s = s.replace("#error Neither OOLITE_BIG_ENDIAN nor OOLITE_LITTLE_ENDIAN is defined as nonzero!", "") i = s.rfind("#endif") patch = "\n#undef OOLITE_BIG_ENDIAN\n#undef OOLITE_LITTLE_ENDIAN\n#define OOLITE_BIG_ENDIAN 0\n#define OOLITE_LITTLE_ENDIAN 1\n#undef OOLITE_HAVE_CPUID\n" open(h, "w").write(s[:i] + patch + s[i:]) # Patch OOCPUInfo.m to remove x86 cpuid assembly and return ARM64 m = "src/Core/OOCPUInfo.m" sm = open(m).read() sm = re.sub(r"__asm__\s+__volatile__\s*\(.*?\);", "(void)0;", sm, flags=re.S) sm = re.sub(r"(OOCPUDescription\s*\([^)]*\)\s*\{)", r"\1\n\treturn @\"ARM64\";", sm, count=1) open(m, "w").write(sm) ' Use code with caution. 5. Compile Oolite (-fno-pie -no-pie) Build Oolite with -fno-pie and LDFLAGS="-no-pie" so the executable code and global symbols stay in low virtual memory below SpiderMonkey's 47-bit pointer limit: bash cd ~/oolite source /usr/share/GNUstep/Makefiles/GNUstep.sh CPATH=/usr/local/include/js:/usr/include/SDL2 LIBRARY_PATH=/usr/local/lib \ make -f Makefile release \ USER_OBJCFLAGS="-fno-pie" \ USER_CFLAGS="-fno-pie" \ LDFLAGS="-no-pie" Use code with caution. (Note: If make stalls at the final cp -rf DebugOXP/Debug.oxp line after make[1]: Leaving directory, press Ctrl + C and copy Resources manually:) bash rm -rf AddOns/Basic-debug.oxp cp -r --update=none Resources oolite.app/ Use code with caution. 6. Build the 47-Bit Memory Wrapper (arm64_lowmem.so) SpiderMonkey 1.8.5 uses 47-bit pointer tagging (0x00007fffffffffff), whereas ARM64 Linux maps heap allocations into 48-bit space (0x0000ffff...). Compile this LD_PRELOAD wrapper to keep mmap and malloc allocations within the lower 47 bits: bash cd ~/oolite cat << 'EOF' > arm64_lowmem.c #define _GNU_SOURCE #include <dlfcn.h> #include <stdint.h> #include <sys/mman.h> #include <unistd.h> static void *(*real_mmap)(void *, size_t, int, int, int, off_t) = NULL; static uintptr_t next_hint = 0x0000100000000000ULL; void *mmap(void *addr, size_t len, int prot, int flags, int fd, off_t off) { if (!real_mmap) real_mmap = dlsym(RTLD_NEXT, "mmap"); if (addr == NULL && !(flags & MAP_FIXED)) { size_t ps = (size_t)sysconf(_SC_PAGESIZE); size_t aligned = (len + ps - 1) & ~(ps - 1); uintptr_t h = __atomic_fetch_add(&next_hint, aligned, __ATOMIC_RELAXED); if (h + aligned < 0x00007f0000000000ULL) { void *p = real_mmap((void *)h, len, prot, flags, fd, off); if (p != MAP_FAILED && ((uintptr_t)p + len) < 0x0000800000000000ULL) return p; if (p != MAP_FAILED) munmap(p, len); } } return real_mmap(addr, len, prot, flags, fd, off); } void *mmap64(void *a, size_t l, int p, int f, int fd, off_t o) __attribute__((alias("mmap"))); EOF gcc -shared -fPIC arm64_lowmem.c -o arm64_lowmem.so -ldl Use code with caution. 7. Create a Permanent Launcher Command (oolite) Save a wrapper script in ~/.local/bin/oolite so you can launch the game from any terminal (or desktop shortcut) without typing environment variables every time: bash mkdir -p ~/.local/bin cat << 'EOF' > ~/.local/bin/oolite #!/bin/bash source /usr/share/GNUstep/Makefiles/GNUstep.sh cd ~/oolite exec env MALLOC_MMAP_THRESHOLD_=0 LD_PRELOAD="$PWD/arm64_lowmem.so" ./oolite.app/oolite EOF chmod +x ~/.local/bin/oolite Use code with caution. You can now launch the game anytime by running: bash oolite
-
Games Compatible With Armbian on Pinebook Pro
Ok got a couple more confirmations.... Nookery - PC port of Animal Crossing for GameCube (you'll have to lower the resolution & play it in windowed mode. At 1280 x 720 it is a reasonable size but a little sluggish. Since the game is about picking fruit & collecting seashells while bumming around town chatting to neighbours that sluggishness doesn't make it unplayable) iortcw - modern engine to play Return To Castle Wolfenstein (has to be compiled then launched from the aarch64 folder. Guides also recommended using "r_scale 4" in its console but it runs buttery smooth at default for me) Duckststion - Playstation 1 emulator (I've used this to play Gran Turismo 2 in widescreen & 720p until it gets its own native ARM64 Linux compatible port but it works pretty great already) I'm down to 6.6GBs on the eMMC but if I can free up a little more space again, I'll try compiling XASH3D to play Half-Life. I've seen videos from years ago of it working on a PBP so I don't see why it shouldn't work, I just can't yet personally guarantee it.
-
Games Compatible With Armbian on Pinebook Pro
I've come back to report that after squeezing out a little more disk space that I've gotten a few more games working... more or less. Devilution X - Engine for playing Diablo & Hellfire Open Privateer - Engine for Space Sandbox Sim Privateer (It needed to have Vulkan drivers installed then use lavapipe to run that through the CPU. it chugs a bit but it works) Quake: Arcane Dimensions - (Works but you'll want to turn down the resolution in its console with "r_scale 4" G-Diffuser - PC Recomp Port of F-Zero X (still little glitchy but it's early in development & entirely playable) There is a modern engine to launch MechWarrior 2: Mercenaries coming out soon called OpenMercs. The dev has said it will be ARM64 Linux compatible so I'll report back if I get it up & running.
-
Games Compatible With Armbian on Pinebook Pro
Oops I'm sorry. I missed your reply. It's been almost a year since it got installed on mine but basically. First towboot is installed on the SPI. Then flash an OS to a micro SD card and boot to that. Then while in that environment, use dd in terminal to write Armbian to the eMMC. If you successfully do that you can now boot into Armbian in the eMMC but the sound will be super low so you'll need to go open Alsamixer to manually turn it up. Hopefully that gives you enough specifics to give it a another try
-
Games Compatible With Armbian on Pinebook Pro
Oh I just downloaded Yamagi from Snap but OpenGLES was glitchy so I switched the settings to OpenGL 1.4 and it works great so I don't especially want to risk what might happen if I switch it to OpenGL 3.4 lol I also gave eduke32 a try and the flatpak version would launch Duke3D, Ion Fury, BloodCM, etc but have sound & no video despite what resolution I set it to or if it was on OpenGL vs Software. So I compiled the eduke32 mobile version which will launch my Duke Nukem 3D Plutonium Edition's duke3D.grp but give a CON file compilation error when I try those other build engine games.
-
Games Compatible With Armbian on Pinebook Pro
Updating to include a few more I've successfully run... OpenMW - FOSS Engine to play Morrowind & it's KOTOR total conversion Starwind Quakespasm - FOSS engine to play Quake and it's expansions, mods & total conversions UFO: Alien Invasion - an XCom "homage" Yamagi Quake 2 - FOSS engine for Quake 2 I was able to test Quake Mods like the cyberpunk FPS prequel to a prequel to a Dreamcast mecha game "Slave Zero X: Enyo" and top down fantasy RPG "Prydon Gate". Both work great but I'll need to upgrade the eMMC before I can try larger sized conversions like Brutalist Jam III or Slayer's Testaments.
-
Games Compatible With Armbian on Pinebook Pro
Ooh interesting! The PBP in your video is using Manjaro though, can PPSSPP compile on Armbian? Perfect Dark aside, I haven't had any luck compiling other supposedly ARM64 compatible software like 2Ship2Harkinian etc through Armbian. If we can figure it out then maybe GoW will also be more playable on PBP through its own eventual native PC Port.
-
Games Compatible With Armbian on Pinebook Pro
I finally successfully got Armbian installed on my Pinebook Pro's eMMC. That should be giving it its best possible performance. I thought you may all be interested in compiling a list of games that work at least reasonably well on it given its restrictions of being ARM64 architecture, 1.8GHz CPU & 4GBs RAM. So to start here is a list of the ones I currently have on mine. I may try more later but for now I'm limited by the stock 64GB eMMC that the PCP came with... 0AD - 3D RTS Cave Story - Pixel Art Metroidvania Dr Robotnik's Ring Racers - Kart Racer Dune Legacy - RTS Endless Sky - Space Sandbox Flare - Fantasy RPG Freeciv - Strategy Freecol - Strategy GZDoom - Doom Engine for Mods & Total Conversions Hedgewars - Worms "Homage" Neverball - Monkeyball "Homage" Neverputt - Miniputt Golf Game Open Fodder - FOSS Engine for "Cannon Fodder" OpenRA - FOSS RTS Engine for "Tiberian Dawn", "Red Alert" & "Dune 2000" Open TTD - Transit Management Sim OpenTyrian - FOSS Engine for Top-Down Shmup "Tyrian" Perfect Dark - PC Port of N64 Game with Keyboard/Mouse Support Pico-8 - Indie Pixel Art Gaming & Development Platform Pingus - Lemmings "Homage" ScummVM - FOSS Engine for Classic Point & Click Games Sonic Robo Blast 2 - 3D Platformer The Ur-Quan Masters - FOSS Port of Space Sandbox "Star Control II" Xonotic - Arena Shooter FPS There are other games I have not yet personally tried like OpenHV, SuperTuxKart, other emulators etc but if anyone can confirm they work reasonably well on the Pinebook Pro then please let the rest of us know. All ScummVM games I've tried from King's Quest I to Grim Fandango work perfectly. However GZDoom will struggle with especially demanding modern Doom mods like Trenchfoot, Auger Zenith, Inquisitor III, Godless Nite etc. but most like Aliens: Eradication, Ashes 2063/Afterglow, Brutal Doom, Castlevania: Simon's Destiny, Irontusk's Diablo 3D, Revenge of the Triad etc run just fine.
Katsujinken
Members
-
Joined
-
Last visited