This guide documents the fixes and procedures to successfully compile and install the AMD RC RAID driver (version 9.3.2) on Linux Kernel 6.14.x and Ubuntu 24.04/25.04.
This README addresses critical compilation issues encountered with kernel 6.14+ and provides:
- BTF Compilation Fix - Solution for
Unsupported DW_TAG_reference_typeerrors - Updated Makefile - Modified to disable BTF generation for binary blob modules
- Complete build and installation workflow for kernel 6.14.0-29-generic and newer
Install these packages before building:
sudo apt update
sudo apt install -y \
build-essential \
linux-headers-$(uname -r) \
dwarves \
git \
mokutil \
openssl- Kernel Version: 6.14.0-29-generic or newer
- Ubuntu Version: 24.04 LTS or 25.04
- Architecture: x86_64
- Disk Space: ~500MB for build artifacts
cd ~/Downloads
git clone https://github.com/apethree/rcraid-driver-9.3.2-5.x-6.14.git
cd rcraid-driver-9.3.2-5.x-6.14/driver_sdk/srcNote: The kernel 6.14 compatibility patch is already applied in this repository.
make cleansudo makeExpected Output:
------------------------------------------------------------
- building for kernel 6.14.0-29-generic
------------------------------------------------------------
make -C /lib/modules/6.14.0-29-generic/build M=/path/to/src CONFIG_DEBUG_INFO_BTF_MODULES= modules
CC [M] rc_init.o
CC [M] rc_msg.o
CC [M] rc_mem_ops.o
CC [M] rc_event.o
CC [M] rc_config.o
CC [M] vers.o
LD [M] rcraid.o
MODPOST Module.symvers
CC [M] rcraid.mod.o
LD [M] rcraid.ko
Signing module using local certificate
Chosen sha512 for signing
Signing /path/to/rcraid.ko Success
ls -lh rcraid.ko
modinfo rcraid.koExpected:
- File size: ~12MB
- Kernel version:
6.14.0-29-generic - Signature:
sig_id: PKCS#7,sig_hashalgo: sha256
The build process automatically creates and signs the module with a local certificate stored in /var/lib/rccert/certs/.
If you've never built this driver before, the mk_certs script will:
- Generate a 4096-bit RSA signing key
- Create a self-signed X.509 certificate
- Import the certificate into MOK (Machine Owner Key) database
- Sign the
rcraid.komodule
You'll be prompted to set a password - remember this! You'll need it during the next reboot to enroll the key.
Check if your signing key is already enrolled:
mokutil --test-key /var/lib/rccert/certs/module_signing_key.derIf enrolled: module_signing_key.der is already enrolled
If not enrolled: module_signing_key.der is not enrolled
If the key is not enrolled:
sudo mokutil --import /var/lib/rccert/certs/module_signing_key.derEnter a password when prompted. On next reboot:
- MOK Manager will appear (blue screen)
- Select Enroll MOK
- Select Continue
- Enter the password you just set
- Select Reboot
If installing Ubuntu on a RAID array:
# 1. Load the driver in Live environment
sudo insmod rcraid.ko
# 2. Verify RAID disks are visible
lsblk
# 3. Proceed with Ubuntu installation
# 4. Post-install (before reboot)
sudo cp rcraid.ko /target/lib/modules/$(uname -r)/kernel/drivers/scsi/
sudo chroot /target
depmod -a
mkinitramfs -o /boot/initrd.img-$(uname -r) $(uname -r)
exit
# 5. RebootIf Ubuntu is already installed and you're updating the driver:
# 1. Copy module to kernel directory
sudo cp rcraid.ko /lib/modules/$(uname -r)/kernel/drivers/scsi/
# 2. Update module dependencies
sudo depmod -a
# 3. Backup existing initramfs (optional but recommended)
sudo cp /boot/initrd.img-$(uname -r) /boot/initrd.img-$(uname -r).backup
# 4. Rebuild initramfs
sudo mkinitramfs -o /boot/initrd.img-$(uname -r) $(uname -r)
# 5. Load the module (optional - to test before reboot)
sudo modprobe rcraid
# 6. Reboot to use RAID on boot
sudo rebootAfter reboot:
# Check if module is loaded
lsmod | grep rcraid
# Check module info
modinfo rcraid
# Check RAID devices
lsblk
ls /dev/rc*If you upgrade your kernel (e.g., from 6.14.0-29 to 6.14.0-30):
cd ~/Downloads/rcraid-driver-9.3.2-5.x-6.14/driver_sdk/src
# Set new kernel version
export NEW_KVER=$(uname -r)
# Clean and rebuild
sudo make clean
sudo make KVERS=$NEW_KVER
# Install
sudo cp rcraid.ko /lib/modules/$NEW_KVER/kernel/drivers/scsi/
sudo depmod -a $NEW_KVER
sudo mkinitramfs -o /boot/initrd.img-$NEW_KVER $NEW_KVER
# Reboot
sudo rebootSymptom:
Encountered error while encoding BTF.
make[4]: *** [scripts/Makefile.modfinal:57: rcraid.ko] Error 1
Solution: Verify the Makefile was correctly modified:
grep "CONFIG_DEBUG_INFO_BTF_MODULES=" driver_sdk/src/MakefileShould show:
$(MAKE) -C $(KDIR) M=$(shell pwd) CONFIG_DEBUG_INFO_BTF_MODULES= modules
If not, manually edit line 100 in driver_sdk/src/Makefile.
Symptom:
insmod: ERROR: could not insert module rcraid.ko: Required key not available
Solution: Your signing key is not enrolled. See Module Signing section above.
Symptom:
RAID arrays don't appear in lsblk or /dev/
Solution:
# Check if module loaded
lsmod | grep rcraid
# Check kernel logs for errors
dmesg | grep -i rcraid
# Try loading manually
sudo modprobe rcraid
# Check PCI devices
lspci | grep -i raid# Build
cd rcraid-driver-9.3.2-5.x-6.14/driver_sdk/src
sudo make clean && sudo make
# Install
sudo cp rcraid.ko /lib/modules/$(uname -r)/kernel/drivers/scsi/
sudo depmod -a
sudo mkinitramfs -o /boot/initrd.img-$(uname -r) $(uname -r)
# Load
sudo modprobe rcraid
# Verify
lsmod | grep rcraid
dmesg | grep -i rcraid
lsblk- 5.x - 6.14 Linux Kernel :
- Download Linux Live ISO burn onto your USB.
- Modify from
/casper/vmlinuz splash quiet ---to/casper/vmlinuz modprobe.blacklist=ahci,nvme break=mount ---inUSB:/boot/grub/grub.cfg & loopback.cfg. - Boot from USB. Then open
Terminal.

- PreInstall
git dwarves linux-header-xxx mokutil build-essentialin Package management for your linux distro.git clone https://github.com/Bemly/rcraid-driver-9.3.2-5.x-6.14.git git clone https://github.com/Bemly/rcraid-patch-932.git cd rcraid-driver-9.3.2-5.x-6.14/driver_sdk/src patch -p2 < ../../rcraid-patch-932/rcraid-932.patch sudo make clean sudo make sudo insmod rcraid.ko

- Install your Linux distro into Raid Disk. (Dont Reboot)

- PostInstall
sudo cp /tmp/dd/rcraid.ko /target/lib/modules/`uname -r`/kernel/drivers/scsi/rcraid.ko sudo chroot /target # switch chroot view in the following command. depmod -a `uname -r` mkinitramfs -o /boot/initrd.img-`uname -r` `uname -r` reboot

- The key may be registered when restarting. Select
Enroll Keyand enter the password just now to continue and it will take effect.

- All done!
Last Updated: October 4, 2025 Tested On: Ubuntu 24.04 LTS, Kernel 6.14.0-29-generic