Booting FreeBSD on Rock64

Peter Jeremy peter at
Mon Feb 4 11:01:10 UTC 2019

On 2019-Feb-03 12:40:45 +0800, Ganbold Tsagaankhuu <ganbold at> wrote:
>On Sun, Feb 3, 2019 at 11:46 AM Peter Jeremy <peter at> wrote:
>> 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.
>Did you try to boot from network?

I hadn't because setting up a diskless/netboot environment is a lot more
fiddly and the posting I'd found suggested that the Rock64 was especially

>You can stop at u-boot prompt when
>appears "Hit any key to stop autoboot:". Sometimes it is hard to press any
>key at this moment.

I just hold one hand on the spacebar and push the reset button with the
other hand.

>You can set bootdelay to something not 0.
>Then you can do something like:
>setenv ipaddr
>env set serverip
>env set bootargs boot.nfsroot.server=${serverip}
>boot.nfsroot.path=/var/arm64 comconsole_speed=${baudrate}
>tftpboot ${kernel_addr_r} loader.efi
>tftpboot ${fdt_addr_r} rk3399-rockpro64.dtb
>bootefi ${kernel_addr_r} ${fdt_addr_r}

That leaves off all the server side steps:
* Unpack the memstick image (or similar) into a filesystem and NFS export it
  with maproot=root for the Rock64 address
* Edit the etc/fstab in the exported filesystem and update the root mountpoint
  to match the NFS-exported root.
* Setup a tftp server and copy loader.efi and rk3399-rockpro64.dtb from
  the root filesystem into /tftpboot
* Optionally reconfigure your DHCP server to have the appropriate filename,
  next-server and root-path config.
* Ensure the Rock64 is connected via GigE because it doesn't work reliably
  on FastEthernet (it appears to hang and stop sending NFS requests).

Having worked through all that, I did actually manage to boot into the
installer before running out of time.

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