spruce on the GKD 350H Ultra
spruce support for the GKD 350H Ultra lives in the spruce fork, https://github.com/theycallmeboxy/spruceOS, branch gkd350h-ultra, until it is merged upstream. It is a normal spruce platform (PLATFORM=GKD350HUltra, family basedos), detected from BasedOS's /etc/baseos-release.
Getting it on a card
Each spruce nightly is built again with the 350H Ultra branch merged in, by the fork's gkd350hultra-nightly.yml workflow, and published on the fork's releases page as spruceV<nightly>-gkd350hultra.7z. It checks spruce's nightly feed every two hours, and builds again after a change to the branch too. Install it as any spruce release: extract it to the root of a FAT32 card. The card stays a normal spruce card for your other devices. These builds are made automatically and aren't tried on the device first.
Update from that page, not from spruce's own updater: that one offers official spruce, which has no 350H Ultra support yet. After an official update spruce no longer starts on the 350H Ultra until a build from the fork's page is copied over it.
The platform is standalone: it owns copies of what it needs from other platforms rather than sourcing or hooking them. Which files and functions it owns, where each came from and why: spruce/scripts/platform/basedos/README.md in the fork.
Status (2026-11-19)
Ports with known problems (cause, and whose fix it is): port-issues.md.
| Area | State | |
|---|---|---|
| Detection, platform files | done. Two layers, as oakMOSS stacks its base: basedos/BasedOSCommon.{cfg,sh} for what is BasedOS's (SSH, Wi-Fi, sleep, power, firmware, the library path, no udev) and basedos/GKD350HUltra.{cfg,sh} for the board, which takes the dArkMoss RK3566 files first for the hardware they share (spruce platform/README.md) | |
| Keyboards in SDL apps | BasedOS has no udev, and SDL2 without udev only opened keyboards named in SDL_EVDEV_DEVICES: E-Reader and Gallery (gptokeyb turns the pad into a virtual keyboard) got no keys. BasedOS's patch 0006 scans /dev/input once at start, as udev's first scan would, and takes the classes udev's path takes (keyboards, mice, touch; not joysticks). On the unit (2026-11-19) the Gallery then opened gptokeyb's keyboard and the power and volume keys, not the pad or the motion sensor, and moved on a Right press with no SDL_EVDEV_DEVICES. Nodes created after the app started are not picked up. The two launchers also pass the keyboard themselves (spruce fork 3a2a4daee), which a BasedOS from before 0006 needs | |
| Display rotation | as on dArkMoss's rotated panels: BasedOS's SDL2 turns the DSI panel with the RGA (ArkOS's Miniloong patch, ROT_270), so SDL apps see 1600x1440 at 0 and the cfg has DISPLAY_ROTATION="0". SDL leaves Vulkan windows alone (as on the Miniloong); apps that draw straight to the panel through VK_KHR_display (RetroArch's Vulkan driver) are turned by BasedOS's Vulkan layer VK_LAYER_BASEDOS_rotate (buildroot/package/basedos-vkrotate, an implicit layer): they see a 1600x1440 display, draw into landscape images of the layer's, and on present one draw turns each frame onto the 1440x1600 panel. Checked 2026-11-24 in RetroArch: the game, spruce's in-game menu, RetroArch's menu, its notifications and statistics upright, armN64 at 60 fps; the turn takes 1.0 ms of GPU and 0.04-0.06 ms of CPU a frame. BASEDOS_VK_ROTATE_DISABLE=1 leaves the layer out; BASEDOS_VK_ROTATE_LOG=1 and BASEDOS_VK_ROTATE_STATS=1 (times every 300 frames) log it. DSperate doesn't go through it: it drives KMS itself and renders with Vulkan into buffers it imports (its source; not run with the layer, no DS BIOS on the card). Checked: the menu, spruce's message screens (display_text.elf), RetroArch, DSperate, PPSSPP. BasedOS's patch 0005 adds a GPU rotation path, used where there is no /dev/rga (a mainline kernel) or with SDL_KMSDRM_ROTATION=gpu; SDL_KMSDRM_ROTATION_STATS=1 prints the rotation's time every 300 frames (stock: RGA 6.5 ms a frame in SDL's test). In games on stock with spruce (2026-11-18, tools/dev/rotation-ab.sh, 60 s a path: Star Fox 64, Sega Rally, Crazy Taxi in RetroArch, Burnout Legends in PPSSPP): RGA 2.1 ms a frame, steady; GPU 2.2-2.4 ms with stalls of 10-31 ms every minute or so (the game's own GPU work in the way); the games' frame pacing was the same on both. RGA stays the default. Since c0a58d1 the RGA path waits for the game's frame to be finished before copying it (Mali puts no implicit fences on the buffers, so it could otherwise copy a half-drawn frame); measured at 0.01-0.1 ms a frame | |
| PyUI menu (1600x1440) | works; PyUI has its own SDL2 and turns itself (SCREEN_ROTATION="270", as the H700 cfg sets it) | |
| Buttons, stick, volume rocker | work (codes measured) | |
| Audio (UI sounds, volume) | works (DAC "Digital" control). Games starting at another volume (reported 2026-11-17) didn't show in the log: the level was 0 from boot to the game, and every change after went through set_volume. After deep sleep the volume was wrong (2026-11-18): the stock kernel's es9018k2m driver wakes the chip at full volume (reg 0x0f = 00) while regmap's cache keeps the old level, so spruce's restore and every press at the same level were skipped as unchanged. Keeping vcca3v3_codec on in suspend didn't help (the chip's other rails are switched in hardware). basedos-suspend suspends and then writes a neighbouring level and the level itself (resync_dac_volume), and the platform's trigger_device_sleep calls it. Checked on the unit: chip and cache agree after a wake, the volume keys step 1-2-3 | |
| Sleep / wake / shutdown after sleep | works (deep sleep, RTC wake) | |
| Clean shutdown from spruce | strict stage 2 plus session shield, as on the H700 BaseOS | |
| SSH (spruce's), Samba user | spruce login added | |
| CPU modes | the A72s in every mode, the A53s parked, as on the TrimUI Smart Pro S: Powersave 408-1416, Smart 408-2016, Performance 2016, Overclock 2208, all through spruce's shared functions (see power.md) | |
| RetroArch | works: games run upright (video_rotation = "0", it draws through the rotating SDL) and full screen through spruce's launcher (NES fceumm, PS pcsx_rearmed). The pad goes through linuxraw (/dev/input/js0), since the udev driver needs udevd. Every button, the stick and the hotkeys (Select + B/R/L/Left/Right/R2/X/Y) checked in PadTest. L3 bound but not tested. Its Vulkan driver (chosen in its settings, or forced by a core that asks for Vulkan, as armN64 does with its Vulkan renderer) is upright through BasedOS's Vulkan layer (Display rotation). armN64's Vulkan renderer: opening the menu faults the GPU (Mali DATA_INVALID_FAULT), Vulkan loses the device and the screen goes black; a core that doesn't render with Vulkan opens the menu fine on the Vulkan driver, and armN64's GL renderer is fine (2026-11-24; for armN64's author) | |
| Wi-Fi | spruce's, as on its other wpa_supplicant devices: its own supplicant on the card's saved networks and udhcpc, joined, forgotten and switched off from spruce's menu. BasedOS only loads the driver at boot; its own Wi-Fi and SSH run only in maintenance mode or after a failing frontend | |
| Bluetooth | not brought up on BasedOS | |
| NDS (DSperate, spruce's default) | works: Castlevania DoS upright, 59.8 fps (100%) with the 60 Hz panel DTB. Since v3.5.0 (spruce 2026-11-20) DSperate scans out at the panel's own 1440x1600 and turns the picture itself (KMS, Vulkan present on the Mali-G52): emu 3.5 ms, present 0.1 ms in Performance, checked 2026-11-20. v3.4.0 refused KMS on the turned SDL and fell to the window surface (52-54 fps in Smart), so the cfg had DS_SCANLINE_SCALE=0 (its SDL renderer, also 59.8 fps); that line is gone (beebono/DSperate#49). DSperate pins itself to cores 0-3 (the A53s). Controls checked on the unit; X/Y needed the cfg's SDL_GAMECONTROLLER_MAP (SDL had guessed them swapped). On the KMS route DS_ROTATE replaces the panel's turn instead of adding to it (reported on #49), so DSperate-Tate would show the game upright: the 350H Ultra's NDS list (Emulator_BASEDOS) offers DSperate, DraStic and pokedaisy_ds (RetroArch, 60 fps, checked) without it | |
| NDS (DraStic standalone, an option beside DSperate) | works: Castlevania DoS upright, both screens stacked, at 100% with BasedOS's 60 Hz panel DTB (98.1-98.5% and crackly sound on stock's 59.11 Hz; see power.md). The unmodified 64-bit DraStic, as on dArkMoss (run_drastic_GKD350HUltra); its config is the Miniloong's with this pad's d-pad (b12-b15) and touch press on L3. Checked on the unit | |
| PSP (PPSSPP, spruce's default) | works: Burnout Legends upright on OpenGL (PPSSPPSDL_dArkMoss3326; the 3566 build needs ARMv8.2), with the E5 Plus's config, the H700 controls layout and the positional pad map (ppsspp_functions.sh). Controls checked on the unit. Its Vulkan backend isn't available here: this build has no VK_KHR_display support ("Vulkan is not available" at start, 2026-11-24), so BasedOS's Vulkan layer can't help it | |
| N64 standalone (Mupen64Plus, an option beside the RetroArch default) | works: Star Fox 64 upright and centred, controls and Menu hotkeys checked on the unit. Pad table in this pad's raw numbers (the Anbernic one-stick layout), no gptokeyb2. The 4:3 canvas would be centred vertically by M64P_VIEWPORT_Y, which spruce's Rice and Glide64mk2 gain in theycallmeboxy/mupen64plus-spruce; the fork ships spruce's current plugins until then (since e25914526), so under Rice and Glide64mk2 the picture sits at the bottom of the panel (PR to spruceUI pending; the fork ships that build meanwhile). Rice gets some games wrong where GLideN64 is right (Star Fox 64 darker, Mario Golf with a navy sky and white terrain); Perfect Dark and Castlevania match. That is Rice itself, and it showed with spruce's stock Rice before the centring patch; the overlay switches plugin | |
| Dreamcast standalone (Flycast, an option beside the RetroArch default) | works: Crazy Taxi, Spider-Man and Sonic Adventure 2 upright in 4:3, OpenGL ES, smooth in Performance. Own pad map (Emu/DC/default_configs/flycast/pads/GKD350HUltra): positional A/B/X/Y, L1/R1 as Z/C, L2/R2 as the triggers (on/off, as on the other boards with button triggers). Flycast's menu at 240% (set_ui_scale); exit through it returns to spruce. | |
| Saturn standalone (YabaSanshiro, an option beside the RetroArch default) | works: Sega Rally upright, controls checked on the unit. Pad seed SATURN_PAD_TABLE=GKD350HUltra (Emu/SATURN/pad, the Miniloong layout with the d-pad on b12-b15); Menu opens Yaba's menu. Stock Yaba puts the picture against the top with all the black below (its fullscreen letterbox forgets to halve the gap, which also shifts 352-wide games on 4:3 screens); theycallmeboxy/YabaSanshiro-spruce fix-vertical-centring centres it (PR to spruceUI pending). The card runs that build, stock kept as Saves/yabasanshiro.stock. Its pad files (Emu/SATURN/pad/keymap-GKD350HUltra.json, es-GKD350HUltra.xml) are written by hand from the measured pad and checked on the device; spruce's generator for that folder (gen_saturn_pads.py) doesn't know BasedOS's platform folder, so they must be kept when it regenerates the others (its --check may flag them) | |
| ScummVM | not set up for this platform yet | |
| PortMaster and ports | work (2026-11-19): PortMaster's GUI upright, a port downloaded and installed from it, and the port (2048 Plus, LÖVE 11.5) run from spruce's Ports system, upright and full screen, pad checked. It needed bash (BasedOS 3190abd), BasedOS's SDL2 found first (the libSDL2-2.0.so link, faa6fbb, and DEVICE_PYSDL2_DLL_PATH), and PORTMASTER_DISPLAY_ORIENTATION=0 so it doesn't turn itself on top of SDL. Listed for BASEDOS: the app (spruce fork 0a7cce7ff) and Emu/PORTS. Ports tried on BasedOS's Buildroot userland (0ee75de and later, 2026-11-19): DevilutionX, Celeste Classic (native), A Key(s) Path (Godot) and 6 Feet Under (GameMaker on .NET, after its one-time patcher) run upright with the pad; Quake (a RetroArch-core port) runs at 60 fps through BasedOSCommon's run_basedos_port, which, as spruce does for the A30, runs a copy of the port's script whose retroarch call is spruce's own RetroArch with this platform's config (the scripts otherwise call /usr/bin/retroarch, which BasedOS doesn't have); A7Xpg runs (2026-11-23): it needed FLAC 1.3's libFLAC.so.8 (BasedOS's flac13 package) and then showed only black, because it calls SDL_SetVideoMode every frame (it re-applies one stored SDL_VIDEORESIZE, which SDL sends once since KMSDRM's window is the panel's size, not the 640x480 it asks for) and SDL recreated its surfaces each time, discarding the frame: BasedOS's SDL2 patch 0007 keeps them when the mode doesn't change; Apotris runs, with sound (2026-11-23): its audio library, SoLoud, loads SDL by dlopen("libSDL2.so"), the development name, and without it ran silent and crashed when the first game, or the title screen's demo 11 s in, began (BasedOS now has the libSDL2.so link; the rumble PWM it can't open is harmless); Weston ports work (Alex the Allegator 4: upright, full screen, pad checked; 2026-11-19). PortMaster's westonwrap.sh always preloads its Crusty layer for the drm backend, which fakes DRM/GBM for Weston and draws through SDL2; it needed three things, found with gdb and strace: (1) the unversioned libudev.so (Crusty loads libudev by that name, and without it its udev_new() resolved to itself and Weston spun forever); (2) CRUSTY_LIBSDL set to BasedOS's SDL2 (spruce fork's run_basedos_port): westonwrap.sh otherwise takes PortMaster's own libSDL2, first on the library path, and Crusty tells its SDL's calls from the program's by only the first memory range of the library, which in that build isn't its code, so Crusty faked SDL's display device too and recursed until out of files (BasedOS's SDL2 has its code first, and turns the picture for this panel); (3) udev's database, for libinput: Weston won't start without input devices. BasedOS doesn't run udevd, so `basedos-udev start | stop runs eudev's udevd (input rule only) for the length of a Weston port, and run_basedos_port calls it for ports that use westonwrap.sh. Quitting (Select+Start) sends SIGTERM to westonwrap.sh along with the game, so the port's script unmounts the pack while the game is still exiting, and the game could be left behind (once hung for good in its own SIGTERM handler); run_basedos_port ends what's left of a Weston port's process group 3 s after it and unmounts the pack (ports without the pack exit cleanly: Celeste Classic, DevilutionX). Crusty also never replaces its /tmp/CRUSTY_LIBSDL64.so link once made (a changed CRUSTY_LIBSDL takes a reboot); both Crusty points are for Westonpack's author. 32-bit ports (2026-11-19, docs/lib32.md): with BasedOS's /usr/lib32`, PortMaster lists its ~200 32-bit-only ports (most are GameMaker on the 32-bit gmloader); 7 of 8 ready-to-run ones tried run upright with the pad, the eighth (Sulka) lacks a library in its own package |
| Firmware updates | spruce's BaseOS updater: a baseos-gkd350hultra-<version>.bosupd from theycallmeboxy/BasedOS releases or the card root, installed by BasedOS at the next boot. Checked on the unit, from the app and by hand | |
| E-Reader, Gallery | work: listed for BASEDOS, the H700 BaseOS library set and positional pad map, and gptokeyb's keyboard passed to SDL (BasedOS's patch 0006 also finds it by itself). On the unit (2026-11-19): a book opened and the face buttons and D-pad answer; the Gallery moves between images | |
| Screenshots | upright: the capture is the panel's 1440x1600 scanout, turned back with SCREENSHOT_TRANSPOSE=1 (dArkMossCommon's take_screenshot). The hotkey and the Game Switcher previews use it | |
| Low battery while charging | the shutdown check reads the bq25890 charger (power_supply/bq25890-charger/online); dArkMoss's ac/usb supplies don't exist here | |
USB Storage Mode's card-less screen (shutdown_ui.sh) | its display_text.elf runs on the rootfs's libraries alone since BasedOS 0a82249 (stock's SDL2_image and SDL2_ttf harvested), checked by drawing a message that way; USB Storage Mode itself not tried yet | |
Card on a plain reboot (outside spruce's shutdown) | unmounted cleanly since BasedOS 0a82249: rcK unmounts spruce's MainUI bind mount inside the card first and retries while killed processes let go. Checked twice, once with RetroArch running; before, two plain reboots had left the card dirty | |
Emulator lists (Emu/*/config.json) | BASEDOS is listed wherever the choice is a RetroArch core (next to OAKMOSS_A133P); Dreamcast and N64 now show. On the unit, spruce's launcher resolves each to its RetroArch core; PS played (PadTest), the rest need games on the card. PSP is listed too. Other standalone-default systems (NDSI, ScummVM, 3DS, J2ME, CoCo, Ports) and Media left out | |
| 32-bit RetroArch and cores | not available (BasedOS's /usr/lib32 is for PortMaster's 32-bit ports, docs/lib32.md; spruce's 32-bit RetroArch isn't set up for this platform) |
Still to do for spruce's onboarding checklist (CONTRIBUTING.md)
- ScummVM target and ini; more ports (other runtimes than LÖVE, ports that use
gptokeyb's keyboard). - Device lists in
Emu/*/config.jsonfor the other standalone emulators (NDSI, ScummVM), once each runs on BasedOS. - A PyUI system json of its own (the dArkMoss Pixel 2's is borrowed) and
App/ButtonReader/devices/GKD350HUltra.json. - Apps with per-family cases still to check: FileManagement, Netplay.
- Validation: clean install and upgrade, a game per emulator.
- PS games: spruce's own
PCSX-ReARMed.rmpremap (every device) makes port 1 a digital pad and drives the D-pad from the left stick; set a DualShock per game for analog. Not specific to the 350H Ultra.
This page is docs/spruce-on-gkd.md in the repository.