stuck in u-boot during freeBSD 13 install on raspberry pi 400

hi everybody,

I downloaded the RPI image here, uncompressed it and copied it on a SD card with the dd command :

dd if=FreeBSD-13.0-RELEASE-arm64-aarch64-RPI.img of=/dev/XXX bs=1M conv=sync

the installer started with u-boot booting but ending with an error "serverip is not set". the real issue is this line which is prompted before:

no partition table - mmc 0 **

according to this video on youtube, freeBSD 13 on the raspberry pi 400 just works fine. what am I missing? what did I do wrong?
 
... RPI image ... copied it on a SD card ...

In the video FreeBSD is booting from a USB flash drive, not SD card:

pi.png pi2.png

I'm not familiar with raspberry PI's, if nobody else here on forums can give an advice maybe someone on freebsd-arm@freebsd.org mailing list can be of help.
 
so I will try with a dongle.

otherwise the author of the video added in response to a comment

I tested this earlier and it does boot from the sdcard just fine

so I guess a sd card should be fine too

I have some more info with these commands:

mmc list
It returns:
Code:
device 0: unknown device
mmc part
it returns:
Code:
unknown partition table type 0
mmc info
I have several lines, one of them detects the size of the partition (I suppose it is where the installer has been copied)
Code:
Capacity: 119.1 GiB

u-boot is new for me. I guess something is wrong in the raspberry 400 default configuration (something I bought a week ago, not an old one)
 
I've raised a ticket as it seems that there is a problem with the U-BOOT build. You can use a MicroSD to USB adapter and boot it from USB port though, but ideally it should come from MicroSD slot.
 
So after I accidentally corrupted my FreeBSD VM while trying to increase the storage space with VirtualBox' media manager because I ran out of space on the host file system, I'm now trying to install FreeBSD on my new Raspberry Pi 400.

I've verified that the Raspberry Pi OS boots and seems to work.

I've installed FreeBSD-13.0-RELEASE-arm64-aarch64-RPI.img.xz on a 32G micro SD card. I've tried both the rpi-imager and Fedora Media Writer (mediawriter) to write the image to the micro SD.
I get what appears to be normal boot messages until I see:

Code:
mmc0 is current device
** No partition table - mmc 0 **

Device 0: unknown device
ethernet@7d580000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
bcmgenet: PHY startup failed: -110
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-e4-5f-01-1f-b1-98
I get several more of those timeouts for different files, and then I'm dropped into U-Boot ...

Any ideas as to what could be wrong and how to fix it? I thought "No partition table" sounded particularly wrong ...!
 
I've raised a ticket as it seems that there is a problem with the U-BOOT build. You can use a MicroSD to USB adapter and boot it from USB port though, but ideally it should come from MicroSD slot.
Thank you for that. Could you possibly post the link to the ticket?
 
Any ideas as to what could be wrong and how to fix it?
Could you possibly post the link to the ticket?
The most recent PR regarding U-Boot is PR 255080, which comes with a workaround to fix [1] the problem, booting from SD card on a PI 4. The workaround most likely applies to the PI 400 [2] also since it's based on a PI 4.

[1] Comment # 15 and # 28
[2] listed in Comment # 13 from GitHub Raspberry PI documentation, revision-codes/README.md
 
so I tested both with a micro sd adapter and on an usb key: both work and boot fine. I will test directly on the micro sd with the workaround
 
Note that it is no longer necessary to download the u-boot.bin file from Sourceforge. Just pkg install u-boot-rpi-arm64 and copy the file to the boot partition of the Raspberry Pi 400.

(File is located in /usr/local/share/u-boot/u-boot-rpi-arm64/u-boot.bin after installation)

Be sure to get at least version 2021.04, earlier versions don't work.
 
It booted off the SD card. Rebooted then locked up completely during boot
Security policy loaded: MAC/ntpd (mac_ntpd)
with no more information than that

I also notice during boot there's a 10 second count down (press enter to boot) that takes about 4 seconds per "second".

I was hoping to migrate services to from rpi 3 to 4 (400), without much drama. Fail. (yes, distinct SD cards per device)
 
Do you have any USB devices attached at boot time?
Just the SD card, ethernet and HDMI. I should have tried without ethernet now that I think about it, just to see if it made a difference. I've since splashed the SD card back to Raspberry Pi OS (basically Debian with firmware).
 
Back
Top