Booting FreeBSD on Rock64

Peter Jeremy peter at
Sun Feb 3 01:23:35 UTC 2019

I'm trying to boot FreeBSD from a USB stick on my Rock64 and running into
problems.  I've looked through the web and haven't gotten anywhere.  It
boots Ubuntu 18.04.1 off an MMC so the board itself is OK.

I've reflashed the SPI with
using the instructions at

I've uncompressed
onto a USB stick and tried booting with the output below.  I have seen some
comments about needing a SDcard present but I get the same results with or
without a blank SDcard inserted.

The positive things:
* It's finding, loading and running the FreeBSD EFI loader

The negative things:
* The SPI loader isn't finding any FDT
* The EFI loader isn't finding any bootable partition.

Does anyone have any suggestions as to what to try next?

DDR version 1.13 20180428
ID:0x805 Y
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=2048MB

U-Boot SPL 2017.09-rockchip-ayufan-1035-gd646df03ac (Oct 26 2018 - 08:35:43)
setup_ddr_param  1
booted from SPI flash
Trying to boot from SPI
NOTICE:  BL31: v1.3(debug):9d3f591
NOTICE:  BL31: Built : 14:39:02, Jan 17 2018
NOTICE:  BL31:Rockchip release version: v1.3
INFO:    ARM GICv2 driver initialized
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 1
INFO:    plat_rockchip_pmu_init: pd status 0xe
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE init
ialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9

U-Boot 2017.09-rockchip-ayufan-1035-gd646df03ac (Oct 26 2018 - 08:36:01 +0000)

Model: Pine64 Rock64
DRAM:  2 GiB
MMC:   rksdmmc at ff520000: 0, rksdmmc at ff500000: 1
SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial at ff130000
Out:   serial at ff130000
Err:   serial at ff130000
Model: Pine64 Rock64
normal boot
Net:   eth0: ethernet at ff540000
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
mmc_init: -95, time 9
Card did not respond to voltage select!
mmc_init: -95, time 9
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   Core Release: 3.10a
USB3:   Register 2000140 NbrPorts 2
Starting the controller
scanning bus 0 for devices... 2 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Device 0: Vendor: SanDisk Rev: 1.00 Prod: Cruzer Facet
            Type: Removable Hard Disk
            Capacity: 7632.0 MB = 7.4 GB (15630336 x 512)
... is now current device
Scanning usb 0:1...
Found EFI removable media binary efi/boot/bootaa64.efi
reading efi/boot/bootaa64.efi
632416 bytes read in 73 ms (8.3 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
## Starting EFI application at 02000000 ...
Card did not respond to voltage select!
mmc_init: -95, time 9
Scanning disk rksdmmc at ff520000.blk...
MMC: block number 0x1 exceeds max(0x0)
MMC: block number 0x1 exceeds max(0x0)
MMC: block number 0x44 exceeds max(0x0)
Card did not respond to voltage select!
mmc_init: -95, time 10
Scanning disk rksdmmc at ff500000.blk...
MMC: block number 0x1 exceeds max(0x0)
MMC: block number 0x1 exceeds max(0x0)
MMC: block number 0x44 exceeds max(0x0)
Scanning disk usb_mass_storage.lun0...
Found 3 disks
Consoles: EFI console  
FreeBSD/arm64 EFI loader, Revision 1.1

   Command line arguments: loader.efi
   EFI version: 2.05
   EFI Firmware: Das U-boot (rev 0.00)
   Console: efi (0)
   Load Path: \efi\boot\bootaa64.efi
   Load Device: UNKNOWN(0001,0004)
Failed to find bootable partition
"Synchronous Abort" handler, esr 0x96000210
ELR:     7cec5768
LR:      7ce957a4
x0 : 0000000000000000 x1 : 0000000000000000
x2 : 0000000000000000 x3 : 0000000000000000
x4 : 000000007cece0d0 x5 : 0000000000000075
x6 : 000000007cec4c70 x7 : 0000000000000064
x8 : 0000000000000000 x9 : 0000000000000074
x10: 000000007ceeeb20 x11: 0000000000000061
x12: 0000000000000000 x13: 000000007af69b8c
x14: 00000000756c2e72 x15: 0000000000000000
x16: 0000000000000045 x17: 0000000000000000
x18: 0000000000000000 x19: 000000007cee91e8
x20: 000000007cecc77e x21: 0000000000000000
x22: 0000000000000000 x23: 000000007ceeeb28
x24: 0000000000000000 x25: 000000007df02390
x26: 8000000000000005 x27: 000000007ceeddc8
x28: 0000000000000000 x29: 000000007cee91a0

Resetting CPU ...
=> part list usb 0

Partition Map for USB device 0  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Type GUID
        Partition GUID
  1     0x00000003      0x0001041a      ""
        attrs:  0x0000000000000000
        type:   c12a7328-f81f-11d2-ba4b-00a0c93ec93b
        guid:   0e587b74-2529-11e9-9906-002590ec5bf2
  2     0x0001041b      0x001f2e1a      ""
        attrs:  0x0000000000000000
        type:   516e7cb4-6ecf-11d6-8ff8-00022d09712b
        guid:   0e587b7d-2529-11e9-9906-002590ec5bf2

Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <>

More information about the freebsd-arm mailing list