cmprovision icon indicating copy to clipboard operation
cmprovision copied to clipboard

Issue with CM4 Programming via Ethernet

Open francescoriga92 opened this issue 1 year ago • 8 comments

Hello everyone,

I'm encountering a problem while trying to program my CM4 (with eMMC) board via Ethernet. When I connect both Ethernet and USB cables, everything works fine. However, when I try programming solely through Ethernet, it doesn't seem to be working (with the cm4 card formatted). I suspect it might be a formatting issue causing the master to not recognize the board and initiate programming via Ethernet.

Has anyone else experienced a similar problem? I would greatly appreciate any insights or solutions you might have. Thank you in advance for your help!

Best regards, bef40f4c-9d02-4d7f-a702-daf1143c2348

francescoriga92 avatar Jan 24 '24 11:01 francescoriga92

To program via Ethernet the device needs to be "factory fresh", i.e. as if it has just come from the factory or has been reset to factory settings. I suspect you have something already programmed in?

JamesH65 avatar Jan 24 '24 11:01 JamesH65

Hi JamesH65, Yes, it's true that the CM4 board was previously programmed. However, I attempted to reformat it using the filesystem FAT32 and tried to restore it to factory conditions. What is the correct formatting method to bring it back to factory settings?

francescoriga92 avatar Jan 24 '24 13:01 francescoriga92

The boot-order says 0xf641 which indicates that this is not the factory boot order. You can reset the EEPROM via rpiboot https://github.com/raspberrypi/usbboot/blob/master/recovery/README.md

timg236 avatar Jan 24 '24 16:01 timg236

You can reset the EEPROM via rpiboot

The TS already has cmprovision setup, so it may be easier if you explain what boot order should be put in the "EEPROM settings" field there...

maxnet avatar Jan 24 '24 16:01 maxnet

Well presumably you'd include 0x2 if you wanted network boot to work e.g. 0xf2641

SD -> USB -> NVME -> Network

timg236 avatar Jan 24 '24 17:01 timg236

Thanks everyone, I did it! I reset the eeprom via rpiboot and everythings works now.

francescoriga92 avatar Jan 26 '24 09:01 francescoriga92

image Do you know how many devices I can flash at a time? Because there seems to be a limit of 5 devices. All devices after 5 give me the error shown in the photo

francescoriga92 avatar Jan 26 '24 09:01 francescoriga92

Do you know how many devices I can flash at a time?

512

All devices after 5 give me the error shown in the photo

Can you connect HDMI to one of the boards being provisioned, and take a photo of any error there?

maxnet avatar Jan 26 '24 19:01 maxnet