Looking for instructions to build a sdcard from scratch

G2 operating system and special app's (e.g. p2app) discussion only--post Thetis and piHPSDR questions in their own sub-forums
Post Reply
DL8LAQ
Posts: 240
Joined: Sun Apr 09, 2017 3:28 pm
Location: JO43XU

Looking for instructions to build a sdcard from scratch

Post 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.
73, Norbert - DL8LAQ - ANAN-G2 w/display - Richie's latest Thetis version and pihpsdr by N1GP&DL1YCF
DL8LAQ
Posts: 240
Joined: Sun Apr 09, 2017 3:28 pm
Location: JO43XU

Re: Looking for instructions to build a sdcard from scratch

Post 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 ...
73, Norbert - DL8LAQ - ANAN-G2 w/display - Richie's latest Thetis version and pihpsdr by N1GP&DL1YCF
Post Reply

Return to “G2 Operating System & Applications”