arm64 as Tier 1 for FreeBSD 13

Mark Millard marklmi at yahoo.com
Fri Jan 31 08:04:43 UTC 2020


Here is how I updated a Rock64 bootable microsdcard to
also be able to boot an RPi4 (no file or disk usage
conflicts).

I took my Rock64 microsdcard and did the following,
using only FreeBSD and its ports. Note that /boot/efi/
is the msdos file system mount point for this
example. This sequence started on the Rock64:

Using the port sysutils/rpi-firmware and what it installs, I
did (ignore any messages from my habitual -aRx use):

cp -aRx /usr/local/share/rpi-firmware/ /boot/efi/
cp -aRx /boot/efi/config_rpi4.txt /boot/efi/config.txt

Then, using the port sysutils/u-boot-rpi4 and what it installs,
I did:

cp -aRx /usr/local/share/u-boot/u-boot-rpi4/u-boot.bin /boot/efi/

After shutting down the Rock64 I put the microsdcard in the
RPi4 and turned it on.

It booted fine:

# uname -apKU
FreeBSD Rock64OrRPI4 13.0-CURRENT FreeBSD 13.0-CURRENT #39 r356426M: Mon Jan  6 19:55:34 PST 2020     markmi at FBSDFHUGE:/usr/obj/cortexA53_clang/arm64.aarch64/usr/src/arm64.aarch64/sys/GENERIC-NODBG  arm64 aarch64 1300075 1300075

(I have a serial console configuration set up.)



For reference, the contents of /usr/local/share/rpi-firmware/
was in part:

# ls -laT /usr/local/share/rpi-firmware/
total 42992
drwxr-xr-x   3 root  wheel      2048 Jan 30 20:14:38 2020 .
drwxr-xr-x  78 root  wheel      1536 Jan 30 20:14:35 2020 ..
-rw-r--r--   1 root  wheel     18693 Nov 22 09:06:45 2019 COPYING.linux
-rw-r--r--   1 root  wheel      1594 Nov 22 09:06:45 2019 LICENCE.broadcom
-rw-r--r--   1 root  wheel      5888 Jan 30 13:26:31 2020 armstub8-gic.bin
-rw-r--r--   1 root  wheel      5888 Jan 30 13:26:31 2020 armstub8.bin
-rw-r--r--   1 root  wheel     24201 Nov 22 09:06:45 2019 bcm2708-rpi-b-plus.dtb
. . .
-rw-r--r--   1 root  wheel     52304 Nov 22 09:06:45 2019 bootcode.bin
-rw-r--r--   1 root  wheel        89 Jan 30 13:26:19 2020 config.txt
-rw-r--r--   1 root  wheel       147 Jan 30 13:26:19 2020 config_rpi3.txt
-rw-r--r--   1 root  wheel       135 Jan 30 13:26:20 2020 config_rpi4.txt
-rw-r--r--   1 root  wheel       110 Jan 30 13:26:19 2020 config_rpi_0_w.txt
-rw-r--r--   1 root  wheel      6744 Nov 22 09:06:45 2019 fixup.dat
. . .
-rw-r--r--   1 root  wheel   5751280 Nov 22 09:06:45 2019 kernel7l.img
-rw-r--r--   1 root  wheel  13455872 Nov 22 09:06:45 2019 kernel8.img
drwxr-xr-x   2 root  wheel      7680 Jan 30 20:14:38 2020 overlays
-rw-r--r--   1 root  wheel   2880356 Nov 22 09:06:45 2019 start.elf
. . .
-rw-r--r--   1 root  wheel   4857160 Nov 22 09:06:45 2019 start_db.elf
-rw-r--r--   1 root  wheel   3794600 Nov 22 09:06:45 2019 start_x.elf

and the contents of /usr/local/share/rpi-firmware/overlays/ was
in part:

# ls -laT /usr/local/share/rpi-firmware/overlays/
total 940
drwxr-xr-x  2 root  wheel    7680 Jan 30 20:14:38 2020 .
drwxr-xr-x  3 root  wheel    2048 Jan 30 20:14:38 2020 ..
-rw-r--r--  1 root  wheel  109920 Nov 22 09:06:45 2019 README
-rw-r--r--  1 root  wheel     569 Nov 22 09:06:45 2019 act-led.dtbo
-rw-r--r--  1 root  wheel    1027 Nov 22 09:06:45 2019 adau1977-adc.dtbo
-rw-r--r--  1 root  wheel    1587 Nov 22 09:06:45 2019 adau7002-simple.dtbo
-rw-r--r--  1 root  wheel    2425 Nov 22 09:06:45 2019 ads1015.dtbo
-rw-r--r--  1 root  wheel    2425 Nov 22 09:06:45 2019 ads1115.dtbo
. . .
-rw-r--r--  1 root  wheel    1112 Nov 22 09:06:45 2019 vc4-kms-kippah-7inch.dtbo
-rw-r--r--  1 root  wheel    2337 Nov 22 09:06:45 2019 vc4-kms-v3d.dtbo
-rw-r--r--  1 root  wheel     758 Nov 22 09:06:45 2019 vga666.dtbo
-rw-r--r--  1 root  wheel    1171 Nov 22 09:06:45 2019 w1-gpio-pullup.dtbo
-rw-r--r--  1 root  wheel    1036 Nov 22 09:06:45 2019 w1-gpio.dtbo
-rw-r--r--  1 root  wheel    1558 Nov 22 09:06:45 2019 w5500.dtbo
-rw-r--r--  1 root  wheel    1056 Nov 22 09:06:45 2019 wittypi.dtbo

Finally, the contents of /usr/local/share/u-boot/u-boot-rpi4/
was:

# ls -laT /usr/local/share/u-boot/u-boot-rpi4/
total 496
drwxr-xr-x  2 root  wheel     512 Dec  4 13:19:26 2019 .
drwxr-xr-x  9 root  wheel     512 Dec  4 13:19:26 2019 ..
-rw-r--r--  1 root  wheel     124 Dec  4 13:16:13 2019 README
-rw-r--r--  1 root  wheel      37 Dec  4 13:16:13 2019 metadata
-rw-r--r--  1 root  wheel  445896 Dec  4 13:16:13 2019 u-boot.bin


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-arm mailing list