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

ktuluu

New Member


Messages: 3

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?
 

T-Daemon

Daemon

Reaction score: 835
Messages: 1,703

... 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.
 
OP
ktuluu

ktuluu

New Member


Messages: 3

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)
 

TTKDroid

New Member

Reaction score: 3
Messages: 4

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.
 

dbdemon

Member

Reaction score: 19
Messages: 30

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 ...!
 

dbdemon

Member

Reaction score: 19
Messages: 30

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?
 

T-Daemon

Daemon

Reaction score: 835
Messages: 1,703

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
 
OP
ktuluu

ktuluu

New Member


Messages: 3

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
 

eternal_noob

Aspiring Daemon

Reaction score: 426
Messages: 654

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.
 
Top