FreeBSD install on Raspberry Pi model B+ failed

Hi all,

I try to install FreeBSD on an old Raspberry Pi model B+ but I failed every attempts.. So I'm looking for help to understand what I'm doing wrong..

To begin, I try to use different version : FreeBSD-12.4-RELEASE-arm-armv6-RPI-B.img.xz, FreeBSD-13.1-RELEASE-arm-armv6-RPI-B.img.xz and even a FreeBSD-14.0 version but I got same issue: system cannot mount rootfs.
I tried to burn the image with dd or with Etcher tool, but there is no change...

Here is the logs I get when system is booting :
Code:
Consoles: EFI console
    Reading loader env vars from /efi/freebsd/loader.enu
Setting currdev to disk0p1:
FreeBSD/arn EFI loader, Revision 1.1
    Command line arguments: 1
    Image base: 0x1a9d9000 EFI version: 2.80
    EFI Firmware: Das U-Boot (reu 8225.1792)
    Console: efi (0x1000) 
    Load Path: /efi boot bootarn.efi
    Load Device: /VenHw(e61d73b9-a384-4acc-acab-82e828f3628b)/SD(1)/SD (0)/HD (1,MBR, 0x7e9a3273,0x42,0x18fa8) 
Trying ESP: /venHw(e61d73b9-a384-4acc-acab-82e82813628b)/SD(1)/SD(0)/HD(1,MBR, 0x7e9a3273,0x12f.0x18fa8)
Setting currdev to disk0p1:
Trying: /venHw(e61d73b9-a384-4acc-aeab-82e82813628b)/SD(1)/SD (0)/HD (2, MBR, 0x7e9a3273,0x19347,0x5c6c11)
Setting currdev to disk0p2: 
efi_free_pages: illegal free 0x16300000, 0x0

Loading /boot/defaults/loader.conf
Loading /boot/defaults/loader.conf
Loading /boot/device.hints 
Loading /boot/loader.conf
Loading /boot/loader.conf.local
Loading kernel... 
/boot/kernel/kernel text=0x1b4 text-0x58e6f4 text=0x129814 data=0x88c10 data-0x0 0x1e1000 syms=[0x1 +0x1+0xd47a8)
Loading configured modules...
can't find '/boot/entropy'
can't find '/etc/hostid'
/boot/kernel/umodem.ko text=0x15c0 text=0xf70 data=0x238+0x4 syms=[0x4+0xed0+0x4+0xaa1]
loading required module 'ucom'
/boot/kernel/ucom.ko text=0x19f8 text 0x2dc8 data=0x494+0x838 syms=[0x4+0x1480+0x4+0xbcf]

Hit [Enter] to boot inmediately, or any other key for command prompt.
Booting [/boot/kernel/kernel)...
Using DTB provided by EFI at 0x7ef6000.
Kernel entry at 0x14400200... 
Kernel args: (null)


fb8: 1824x984(1824x98488,8) 32bpp
fb8: fbsuap: 1. pitch 7296, base 8x1e513888, screen_size 7287632
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
bca2835_cpufreq8: <CPU Frequency Control> on cpu0
gpioled0: <GPIO LEDs) on ofubus0
Timecounters tick every 1.8000 msec
usbus1: 488Mbps High Speed USB v2.8
ugen1.1: DHCOTG OTG Root HUB> at usbus1
uhub0 on usbus1
uhub0: DHCOTG OTG Root HUB, class 9/8, rev 2.88/1.88, addr 1> on usbus1
mmcsd0: 16GB <SDHC 00000 0.0 SN 0000000 MFG 09/2020 by by 0 00>) at mmc 50.0MHz/4bit/65535-block
bcn2035 cpufreq0: ARM 700Hz, Core 250MHz. SDRAM 400z. Turbo OFF
mmcsd0: Error indicated: 2 Bad CRC
mmcsd0: Error indicated: 2 Bad CRC
mmcsd0: Error indicated: 2 Bad CRC
uhub0: 1 port with 1 removable, self powered
Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
mmcsd0: Error indicated: 1 Timeout
mmcsd0: Error indicated: 1 Timeout
ugen1.2: <vendor 0x0424 product 0x9514) at usbus1
uhub1 on uhub0
uhub1: (vendor 0x0424 product 514, class 9/0, rev 2.00/2.00, addr 2> on usbus
uhub1: MTT enabled
Root mount waiting for: usbus1
uhub1: 5 ports with 4 removable, self powered
ugen1.3: <vendor 0x0424 product 0xec00> at usbus1 
smsc0 on uhubi
smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00. addr 3 an usbusi
Mmuntroot: waiting for device /dev/ufs/rootfs...
smsc0: chip exec00, rev. 0002
miibus0: <MII bus> on smsc0
smscphy0: (SMC LRH0700 10/100 Interface> PHY 1 on milbus
smscphy0: 10baseT, 10baseT-FDX, 100baseTX, 100base TX-FDX, auto
ue0: <USB Ethernet> on smsc0
ue0: Ethernet address: b0:27:eb:60:90:13 Mounting from ufs:/dev/ufs/rootfs failed with error 19.
Loader variables:
    vfs.root.mount.from-ufs: /dev/ufs/rootfs
    vfs.root.mountfrom.options-ru
Manual root filesystem specification: 
    <fstype>: <device> [options]
        Mount <device> using filesystem <fstype> 
        and with the specified (optional) option list.
        
      eg. ufs:/dev/do@sia
        zfs:zroot/ROOT/default
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd /)
          
    ?                List valid disk boot devices
    .                Yield 1 second (for background tasks)
    <empty line>     Abort manual input
    
mountroot>

If I list "valid boot devices" detected by system :
Code:
mountroot> ?
List of GEOM managed disk devices: 
    diskid/DISK-00000000 mmcsd0
    
mountroot>

I don't know why it sees a 000000 disk-ID..
I tried to install linux on the same SDCARD (and same Rasp Pi device) without any issue..

I tried to guess the partition but no success :
Code:
mountroot> ufs:/dev/mmcsd0a5
Trying to mount root from ufs:/dev/mmcsd0a5..
Mounting from ufs:/dev/mmcsd0a5 failed with error 19.

mountroot> ufs:/dev/mmcsd0
Trying to mount root from ufs:/dev/mmcsd0..
mmcsd0: Error indicated: 1 Timeout
g_vfs_done() : mmcsd0[READ(offset=65536, lenght=8192)]error = 5
Mounting from ufs:/dev/mmcsd0a5 failed with error 5

I checked the SDCARD FS table on an Ubuntu system :
Rich (BB code):
tchupy@Ubuntu-1:~$ sudo lsblk -f /dev/sdb
NAME   FSTYPE FSVER LABEL     UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sdb                                                                               
├─sdb1 vfat   FAT16 MSDOSBOOT 5EF9-0E0D                                           
├─sdb2                                                                            
└─sdb5 ufs    2     rootfs    6386fa96795e40b6  

tchupy@Ubuntu-1:~$  sudo fdisk -l /dev/sdb
Disk /dev/sdb: 14,56 GiB, 15633743872 bytes, 30534656 sectors
Disk model: VBOX HARDDISK   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb1638e38

Device     Boot  Start     End Sectors Size Id Type
/dev/sdb1  *      1071  103382  102312  50M  c W95 FAT32 (LBA)
/dev/sdb2       103383 6291431 6188049   3G a5 FreeBSD

I also managed to mount the ufs partition to validate that I had access to all FreeBSD folders..

Now, I really have no clue on what I can do.. So maybe here, anyone has an idea to help me..

thanks a lot
 
Same issue..

Code:
mountroot> ufs:/dev/mmcsd0s2a
Trying to mount root from ufs:/dev/mmcsd0s2a [ ]...
mountroot: waiting for device /dev/mmcsd0s2a...
Mounting from ufs:/dev/mmcsd0s2a failed with error 19.
 
the card shows some data errors
try another one
otherwise looks ok
i have a pi zero running 13.0 and dmesg looks pretty much the same
 
Hi
I bought a new SDcard and.... it's working !
so it was just a SDcard errors :( (don't know why there was no issue with Linux, but whatever)

Thanks
 
Back
Top