Page 1 of 1

Looking for instructions to build a sdcard from scratch

Posted: Tue Nov 18, 2025 7:18 pm
by DL8LAQ
Hi all,

I tried to use a raspberry pi 4 with the latest raspbian os to build an image for the G2, but failed.

Is there anyone who was able to do that and can share some hints?

I used some hints from Laurence viewtopic.php?p=30109#p30109 to install the xdma driver on a fresh OS.
sudo apt install raspberrypi-kernel-headers did not find a package, so I rebuild the kernel https://www.raspberrypi.com/documentati ... ernel.html and got a V7 kernel.

Than followed Laurence' instructions to this point "...if that works you will now have xdma entries in the /dev folder", but there are no xdma files.
lsmod | grep xdma shows "xdma 90112 0"
But the display doesn't work.

Re: Looking for instructions to build a sdcard from scratch

Posted: Tue Nov 18, 2025 8:38 pm
by DL8LAQ
I don't like to say that, but I used chatgpt to get some help :-)
It seems xmda ist working.
The parameter dtparam=pcie=on in /boot/firmware/config.txt was missing and now the xdma files are present in /dev

More hints:
Interrupt-Modus: MSI vs. Legacy (common source of error)
Some CM4 carriers support MSI, others do not.
The ANAN-G2 usually needs MSI.
Add "options xdma enable_msi=1" to /etc/modprobe.d/xdma.conf
There was no xdma.conf, so I created a new file.
Check:
❯ dmesg | grep -i msi
[ 5.563671] xdma: unknown parameter 'enable_msi' ignored
ups! I did forget "sudo update-initramfs -u" and reboot!
But still unkown parameter :-(

More digging into this tomorrow ...