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

Troubleshooting • CM4 Network Boot using Waveshare Compute Module 4 PoE Board

$
0
0
Hello,

I am working on a project with a colleague, trying to convert a CM4 USB boot to network boot. The CM4 is currently mounted on a Waveshare Compute Module 4 PoE Board (https://www.waveshare.com/product/raspb ... -board.htm) . The current setup is to boot Bookworm Desktop OS via USB SSD. I want to convert to network boot of Bookworm Lite OS. I have set up an external system running dnsmasq to act as DHCP and TFTP server. I have also set up NFS on the external system. I am familiar with the process after sucessfully setting up such a system using Raspberry Pi 4 systems. Boot files were copied from the CM4 system's USB SSD to the TFTP server system to serve up during network boot, so it should be the same exact boot files used regardless of the boot method.

When I unplug the USB SSD to network boot I get error messages on startup:

Code:

[    3.932421] cpufreq: cpufreq_online ->get() failed[    4.956411] cpufreq: cpufreq_online ->get() failed[    5.980370] cpufreq: cpufreq_online ->get() failed[    7.004379] cpufreq: cpufreq_online ->get() failed[    7.004489] cpufreq-dt: cpufreq-dt: failed register driver: -19[    8.028311] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 2 config (-110 82)[    9.052379] raspberrypi-exp-gpio soc:firmware:gpio: Failed to get GPIO 2 config (-110 82)[   10.204385] bcm2835_vchiq fe00b840.mailbox: failed to send firmware property: -110
While I was watching
sudo journalctl -u dnsmasq -f
on my main TFTP server system I saw messages about the CM4 requesting file bcm2711-rpi-cm4.dtb . At first I thought this was in error and it should have been requesting
bcm2711-rpi-cm4-io.dtb
instead so I edited config.txt to add the line
device_tree=bcm2711-rpi-cm4-io.dtb
. This was my mistake as I thought my colleague was using the Raspberry Pi CM4 IO board but I was corrected to the fact that he was using the Waveshare Compute Module 4 PoE Board. In any case, after the change to config.txt I was able to successfully boot the system and load the root filesystem as expected. I thought I was good, but I was then informed that external camera connections were no longer functioning. My colleague insists that bcm2711-rpi-cm4.dtb is the correct DTB file to use, as this was the one successfully being used during USB boot. However, I cannot get this file to work correctly with network booting. I don't understand why behavior would be different between the two boot methods using the same DTB file.

Does anyone have any experience using this Waveshare CM4 PoE Board with network booting that they can share? Any insights as to the error message meanings? Is there a different DTB file or other config.txt settings I should be using? I'm pretty certain I have all of the dnsmasq (DHCP & TFTP) and NFS stuff set up correctly, but I'll take suggestions on that too.

Thanks!

Statistics: Posted by nsunshine — Wed Feb 12, 2025 11:09 pm



Viewing all articles
Browse latest Browse all 3974

Trending Articles