Repository navigation
Conversation
- mod_nuubOS.txt for nuubOS (H700 handhelds, https://github.com/baf93/nuubOS). nuubOS runs ports in a sandbox that sees only /roms/ports, under a Wayland compositor: SDL2 on Wayland, and the controllers ports see are nuubOS's virtual gamepad, mapped by the Anbernic labels. device_info.txt already finds it (CFW_NAME from os-release, the device from the device-tree model). - device_info.txt: on mainline arm64 kernels the SMCCC soc_id driver puts the board's device-tree model in /sys/devices/soc0/machine, so DEVICE_CPU was "Anbernic RG CubeXX" instead of h700 (and the h700 cases for "ultra" never matched). machine is used only when it isn't the model; otherwise the SoC comes from the compatible string. DEVICE_INFO_VERSION 0.2.7. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
westonwrap.sh (weston_pkg) sources the mod file too. nuubOS has its own Wayland compositor on Panfrost, like ROCKNIX on Panfrost, so westonwrap can run the program on it directly instead of starting Weston: only when westonwrap sources the file, it sees CFW_NAME=ROCKNIX and a glxinfo that reports OpenGL. Checked with BomberPibe (Godot 4.3) on an RG CubeXX. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
Added one more commit: westonwrap.sh (weston_pkg) also sources |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi! I'm the developer of nuubOS, an OS for Allwinner H700 handhelds (Anbernic RG40XX/RG35XX/RG34XX/CubeXX family). nuubOS installs PortMaster stable and runs ports from it; this adds what it needs upstream.
mod_nuubOS.txt
/roms/ports, under a Wayland compositor (labwc), soSDL_VIDEODRIVER=wayland.get_controlswrites its one mapping, by the Anbernic labels (A east, B south).device_info.txtalready detects nuubOS (os-releaseNAME="nuubOS") and the device (device-tree model), so no other changes are needed there.device_info.txt: the SoC on mainline arm64 kernels
On mainline kernels the SMCCC
soc_iddriver fills/sys/devices/soc0/machinewith the board's device-tree model, not the SoC. On nuubOS (kernel 7.3) this gaveDEVICE_CPU="Anbernic RG CubeXX"instead ofh700, so the h700 exception forultranever matched. ROCKNIX and other mainline-based CFWs should see the same.machineis now used only when it differs from the model; otherwise the SoC comes from thecompatiblestring, as before.DEVICE_INFO_VERSIONis bumped to 0.2.7 so cached env files are refreshed. There is a test for both cases.Testing
device_info.txtfrommain:CFW_NAME nuubOS,DEVICE_NAME Anbernic RG CubeXX, and with this changeDEVICE_CPU h700.pytest: the new test fails without the change and passes with it. The tests that fail on my machine fail the same way onmain(environment-related, no network and SDL).🤖 Generated with Claude Code