Open
Description
Working branches:
- Coreforge rpi-6.6.y-gpu: https://github.com/Coreforge/linux/tree/rpi-6.6.y-gpu
- Coreforge rpi-6.12.y-gpu: https://github.com/Coreforge/linux/tree/rpi-6.12.y-gpu
Just received an OEM AMD Radeon RX 6700 XT in the mail. I was able to get it at MSRP+Shipping, which is something of a miracle these days:
I will be interested in seeing what, if anything, the card does when powered up and plugged into the Compute Module 4 IO Board!
The following issues are closely related:
- Test GPU (Sapphire Radeon RX 550 2GB)
- Test GPU (VisionTek Radeon 5450 1GB)
- Having trouble with AMD Radeon RX 6700 XT on CM4 — Raspberry Pi Forums
- Can't get RX 6700 XT running on Raspberry Pi CM4 — AMD Freedesktop GitLab issue
Current steps to get this card working with Pi OS Bookworm
Last updated: 2025-01-03
- Clone the Raspberry Pi Linux kernel patching the default Raspberry Pi
6.6.y
kernel tree with Coreforge's GPU-enablement patch (or just check out Coreforge's branch directly). - Before compiling the kernel, run
make menuconfig
and select the options:
1. Kernel Features > Page Size > 4 KB (for Box86 compatibility)
2. Kernel Features > Kernel support for 32-bit EL0 > Fix up misaligned multi-word loads and stores in user space
3. Kernel Features > Fix up misaligned loads and stores from userspace for 64bit code
4. Device Drivers > Graphics support > AMD GPU (optionally SI/CIK support too)
5. Device Drivers > Graphics support > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) > Force Architecture can write-combine memory - Recompile the kernel following Raspberry Pi's instructions
- Install the AMD firmware:
sudo apt install -y firmware-amd-graphics
- Reboot the Pi with the card attached using an appropriate PCIe riser and external ATX power supply.
Confirm everything is working by plugging a monitor into the graphics card; then confirm the card's GPU is in use by running glxinfo -B
(part of the mesa-utils
package), for example:
$ sudo apt install -y mesa-utils
$ DISPLAY=:0 glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: AMD (0x1002)
Device: AMD Radeon RX 6700 XT (navi22, LLVM 15.0.6, DRM 3.54, 6.6.51-v8-16k+) (0x73df)
Version: 23.2.1
Accelerated: yes
Video memory: 12288MB
...
(Prepend DISPLAY=:0
if running commands over SSH.)