Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4829

Troubleshooting • Raspberry Pi 4B (8GB) V3D refuses to work under Ubuntu Server (24.04 LTS)

$
0
0
Hi all, I have a headless Raspberry Pi 4B w/8GB RAM and a 512GB mSD card. It has Ubuntu Server 24.04 LTS installed on it, and I want to make use of the GPU (VideoCore) for Vulkan computations. Note that I have tried to make use of the GPU in the past with earlier versions of Ubuntu Server, but I have never ever succeeded getting anything to actually run on the GPU.

I installed `mesa-vulkan-drivers` and a lot of other stuff related to Vulkan via apt and added `dtoverlay=vc4-fkms-v3d,cma-256` to my config.txt file. When I restarted, `cat /proc/device-tree/v3dbus/v3d@7ec04000/status` and `cat /proc/device-tree/soc/firmwarekms@7e600000/status` both returned "okay".

I tried to run vkcube over X11 forwarding to my laptop, and I got just a black window. In the terminal it says `vkcube: ./cube/cube.c:1403: demo_prepare_buffers: Assertion `!err' failed.` (when I get vkcube to use llvmpipe instead, it works and appears fine. I get what looks like 12fps.)

I also tried running every single one of the Sascha Williems Vulkan demos, but none of them worked on the V3D; they work at excruciatingly low FPS on llvmpipe as usual though. glxgears uses llvmpipe and there doesn't seem to be a way to switch what GPU that it uses. Finally, vulkaninfo DOES show the V3D in output, but it apparently supports 0 extensions and overall looks much like a dummy device. I then tried to run an NCNN-Vulkan application (pure compute, no graphics) on the V3D, and it appears to have segfaulted with the very cryptic error message `unknown NIR ALU inst: div 16 %168 = u2f16 %150`.

Overall it seems like Ubuntu recognizes and is trying to make use of the V3D in the system but it can't actually do anything meaningful. Is there anything I'm doing wrong, and is there a known fix for my problem?

Statistics: Posted by hackerdagreat57 — Sat Jun 15, 2024 12:16 am



Viewing all articles
Browse latest Browse all 4829

Trending Articles