How to boot FreeBSD installed on the USB Ultra fit adapter instead of using the sd card

Hello.

I’m trying to understand if and how I can boot my radxa zero 3W board via USB. Basically I’ve bought the SanDisk Ultra Fit adapter and I’ve installed FreeBSD in there. As boot loader I’ve installed ED2K/UEFI by Jared McNeill. From what I see the board can boot only via sd card. I’ve removed the sd card and I’ve attached only the USB Ultra fit adater (it does not require one sd card inside it) to the USB port,but the monitor does not turn on and FreeBSD does not boot. Nothing happens. What do u suggest me to try ?

Thanks.
 
What bootloader does it have?
u-boot?
If so, poke around in the u-boot setup (you probably will need a serial console for that) with u-boot commands. some commands that might give you info
printenv
boot* (boot-something)
bootflow
help (if u-boot have this enabled. Not all implementations do)
In general, u-boot can be configured to boot from usb and many other devices.
 
---> What bootloader does it have ?

ED2K/UEFI by Jared McNeill : https://github.com/jaredmcneill/quartz64_uefi

>If so, poke around in the u-boot setup (you probably will need a serial console for that) with u-boot commands. some >commands that might give you info
>printenv
>boot* (boot-something)
>bootflow
>help (if u-boot have this enabled. Not all implementations do)
>In general, u-boot can be configured to boot from usb and many other devices.

I will try to connect a serial console.
 
----> Some (but not all) UEFI implementations provide a UEFI shell.

I can't use it if I don't insert the sd card inside the slot because the monitor does not turn on.
 
Aha, so it is perhaps similar to the Raspberry Pi setup - the UEFI / EDK2 bootloader is a secondary bootloader, stored on a partition on the medium you are booting from?
If so, what is the primary bootloader? u-boot?
 
EDK2 might be different. If you go to boot devices and boot order. See if the bootloader can find the usb device's EFI file.
That might work.
If the EDK2/BIOS can see the EFI file it will probably boot.
 
After thinking I doubt EDK2 on USB will bootup. If it does than yes. You can run FreeBSD on it by picking boot device.

I am messing alot with MinnowboardMax and it uses EDK2. To boot the microSD card I have to pick "EFI Misc Device" from boot order...That is what mmcsd0 shows up as on their EDK2.BIOS.
 
so it is perhaps similar to the Raspberry Pi setup
RPi is the only ARM platform I have been able to boot off USB based u-boot with.

Solid Run iMX6 Hummingboard has dip switches for boot order but USB setting never worked.
Same with Espressobin. It has boot order jumpers but they never worked for me.
 
allwinner has fuses for boot order. but no usb either. also both allwinner and rockchip have proprietary serial flash controllers they support for booting. however the spi flash itself seems to be a standard chip that can talk to any spi controller
 
What about to install the bootloader on the sd card and the rest of the system (home ; usr ; var) to the USB "stick" using a custom loader.conf ? What counts for me is that FreeBSD does not use (or that it uses partially) the driver that manage the sd card adapter because it is very fragile. It crashes often.
 
The first problem that I should fix is that the SanDisk Ultra fit :


is correctly recognized by FreeBSD x64 bit installed on my PC :

Code:
da2 at umass-sim2 bus 2 scbus8 target 0 lun 0
da2: <USB SanDisk 3.2Gen1 1.00> Removable Direct Access SPC-5 SCSI device
da2: Serial Number 00022809093025015021
da2: 400.000MB/s transfers
da2: 238710MB (488878080 512 byte sectors)
da2: quirks=0x2<NO_6_BYTE>

but not fully recognized on the Radxa board :

Code:
ugen0.5: <USB SanDisk 3.2Gen1> at usbus0

# gpart show
=>       40  249737143  mmcsd0  GPT  (119G)
         40         24          - free -  (12K)
         64      20416       1  linux-data  (10M)
      20480      10240       2  linux-data  (5.0M)
      30720     100352          - free -  (49M)
     131072      65536       3  efi  (32M)
     196608  249540568       4  freebsd-ufs  (119G)
  249737176          7          - free -  (3.5K)
 
First problem solved :

Code:
# kldload umass
# gpart show

=>       40  249737143  mmcsd0  GPT  (119G)
         40         24          - free -  (12K)
         64      20416       1  linux-data  (10M)
      20480      10240       2  linux-data  (5.0M)
      30720     100352          - free -  (49M)
     131072      65536       3  efi  (32M)
     196608  249540568       4  freebsd-ufs  (119G)
  249737176          7          - free -  (3.5K)

=>       40  488878000  da0  GPT  (233G)
         40         24       - free -  (12K)
         64      10240    1  linux-data  (5.0M)
      10304      20480    2  linux-data  (10M)
      30784     100288       - free -  (49M)
     131072      65536    3  efi  (32M)
     196608  488681432    4  freebsd-ufs  (233G)

=>       40  488878000  diskid/DISK-00022809093025015021  GPT  (233G)
         40         24                                    - free -  (12K)
         64      10240                                 1  linux-data  (5.0M)
      10304      20480                                 2  linux-data  (10M)
      30784     100288                                    - free -  (49M)
     131072      65536                                 3  efi  (32M)
     196608  488681432                                 4  freebsd-ufs  (233G)
 
Back
Top