christianhaitian / arkos

Another rockchip Operating System
MIT License
1.55k stars 85 forks source link

Running X11 application #533

Closed mgord9518 closed 2 years ago

mgord9518 commented 2 years ago

I've started working on a game in the Ebiten engine, which runs just fine on a Raspberry Pi and I'm trying to port it over to my RG351P running ArkOS. After some debugging, I see that my game is crashing due to not being able to find an X11 display.

How does one go about running an X11 app on ArkOS? My game isn't missing any libraries and was compiled on Ubuntu 18.04 so that's not the issue. I've already tried setting DISPLAY to :0 and startx; it doesn't appear to exist in the system though.

christianhaitian commented 2 years ago

X11 video drivers are not available by default in ArkOS. Just GBM. If you want X11, you'll have to install X11 g31 video drivers for the rk3326 chipset. https://github.com/JustEnoughLinuxOS/libmali/tree/main/lib/aarch64-linux-gnu

mgord9518 commented 2 years ago

@christianhaitian Thanks for the reply, is GBM just something I'd have to build against instead of X? I'm pretty inexperienced with the embedded side of things

Or would connecting the device to the internet, SSHing in and installing X11 be the easier route?

christianhaitian commented 2 years ago

X11 may work but I've never tested it with this chipset. GBM is what most of the distros make use of on this chipset so if you can building against GBM, it would be better I think.

christianhaitian commented 2 years ago

I saw the authors post about the GBM. You can try pointing your binary towards that x11 driver and see if it works. Might be the solution for now for your use case provided it works.

tinspin commented 1 month ago

What is the difference between x11-gbm libmali-bifrost-g52-g2p0-x11-gbm.so and libmali-bifrost-g52-g2p0-gbm.so/libmali-bifrost-g52-g2p0-x11.so; does that support both?

How would one go about to launch a binary towards another driver?

We have devices powerful enough to run everything on X11 now, would be nice with a tutorial on how you can make this work!

I'm considering running startx and then pause the .sh for some time to make sure it has properly started.

What we really need is a X11 CFW.

Edit: nm uConsole solve all of this (X11, Java etc.) + has 4G and GPIO for 169MHz LoRa!