Installing FreeBSD on Rock Pi N10

Hi, anyone still working on FreeBSD 13.0 support for N10? I saw this post: FreeBSD 13-CURRENT for Rock Pi N10 but the download link does not work.

What should be the rough instructions of going around installing one of these: http://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/13.0/ on N10?

Thanks.

EDIT: Alternatively, are there instructions for us to install our fav distro (Arch? nixos?) on N10? It would be great to get that kind of flexibility.

Which model do you have A, B or C?
If B or C, I can prepare an installation image for you to test.

I have updated the link for model A

Hi, thanks for the reply.

I have model C, but I am also curious on how to do it myself.

Thanks for the work in FreeBSD and Rock Pi chips!

I would be happy to test a Model C for you too.

I’m out of luck :-), I have MODEL А, and the mainline U-boot doesn’t work on it.

But I prepared an installation image of FreeBSD-13.0-RC5,
and in theory it should run on MODEL В / C.

I wonder if I did everything right?
I would be grateful for your feedback.

Here is the download link.

MODEL A+/B/C
FreeBSD-aarch64-13.0-RELEASE-Rock-Pi-N10-20210420.img.xz

MODEL A
FreeBSD-aarch64-13.0-RELEASE-Rock-Pi-N10а-20210420.img.xz

I have written your image to the sd card.
Here are the logs from the unsuccessful boot of the FreeBSD card. And my build root sd card,

nuc11:~ # pastebinit linux-boot.txt
http://ix.io/2V79
nuc11:~ # pastebinit freebsd.txt
http://ix.io/2V7a

This is the details of the sd card I wrote to.

[ 4526.655409] mmc0: new ultra high speed SDR104 SDHC card at address aaaa
[ 4526.655693] mmcblk0: mmc0:aaaa SC32G 29.7 GiB
[ 4526.677832] GPT:Primary header thinks Alt. header is not at the end of the disk.
[ 4526.677836] GPT:3499999 != 62333951
[ 4526.677837] GPT:Alternate GPT header not at the end of the disk.
[ 4526.677838] GPT:3499999 != 62333951
[ 4526.677839] GPT: Use GNU Parted to correct GPT errors.
[ 4526.677848] mmcblk0: p1 p2 p3

Here is the contents of my build root sd card, that I use to boot into the MMC card

[ 2.298768] mmcblk1: mmc1:aaaa SU08G 7.40 GiB
[ 2.311056] mmcblk1: p1 p2 p3 p4

root@n10c:~# mount | grep mmcblk1p3
/dev/mmcblk1p3 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=936,iocharset=utf8,shortname=mixed,errors=remount-ro,x-systemd.automount)

root@n10c:~# ls -la /boot
total 196928
drwxr-xr-x 5 root root 4096 Jan 1 1970 .
drwxr-xr-x 21 root root 4096 Mar 24 23:39 …
-rwxr-xr-x 1 root root 31848960 Mar 28 20:46 Image
-rwxr-xr-x 1 root root 25735176 Mar 29 00:43 Image-5.11.10
-rwxr-xr-x 1 root root 19737088 Mar 27 22:32 Image-5.11.10-bk
-rwxr-xr-x 1 root root 29463040 Mar 27 07:09 Image-5.11.9
-rwxr-xr-x 1 root root 29336064 Mar 26 22:39 Image-5.7.2
-rwxr-xr-x 1 root root 4617743 Mar 29 22:06 System.map-4.4.167-14-rockchip-g53bdb2fa44e8
-rwxr-xr-x 1 root root 4715368 Mar 29 22:06 System.map-4.4.167-8-rockchip-g1175e66f8e9a
-rwxr-xr-x 1 root root 143760 Mar 29 22:06 config-4.4.167-14-rockchip-g53bdb2fa44e8
-rwxr-xr-x 1 root root 143817 Mar 29 22:06 config-4.4.167-8-rockchip-g1175e66f8e9a
drwxr-xr-x 6 root root 4096 Jan 1 1980 dtbs
drwxr-xr-x 2 root root 4096 Mar 28 19:55 extlinux
drwxr-xr-x 2 root root 4096 Mar 27 16:50 extlinux-x
-rwxr-xr-x 1 root root 8093631 Mar 29 22:06 initrd.img-4.4.167-14-rockchip-g53bdb2fa44e8
-rwxr-xr-x 1 root root 6351579 Mar 29 22:06 initrd.img-4.4.167-8-rockchip-g1175e66f8e9a
-rwxr-xr-x 1 root root 53805 Mar 28 22:49 rk3399pro-rock-pi-n10-51110.dtb
-rwxr-xr-x 1 root root 53805 Mar 27 16:51 rk3399pro-rock-pi-n10-51110.dtb-bk
-rwxr-xr-x 1 root root 53805 Mar 26 23:05 rk3399pro-rock-pi-n10-5119.dtb
-rwxr-xr-x 1 root root 51118 Mar 26 22:39 rk3399pro-rock-pi-n10-572.dtb
-rwxr-xr-x 1 root root 53805 Mar 28 20:46 rk3399pro-rock-pi-n10.dtb
-rwxr-xr-x 1 root root 20240392 Mar 29 22:06 vmlinuz-4.4.167-14-rockchip-g53bdb2fa44e8
-rwxr-xr-x 1 root root 20891656 Mar 29 22:06 vmlinuz-4.4.167-8-rockchip-g1175e66f8e9a
root@n10c:~#
-rwxr-xr-x 1 root root 25735176 Mar 29 00:43 Image-5.11.10
-rwxr-xr-x 1 root root 19737088 Mar 27 22:32 Image-5.11.10-bk
-rwxr-xr-x 1 root root 29463040 Mar 27 07:09 Image-5.11.9
-rwxr-xr-x 1 root root 29336064 Mar 26 22:39 Image-5.7.2
-rwxr-xr-x 1 root root 4617743 Mar 29 22:06 System.map-4.4.167-14-rockchip-g53bdb2fa44e8
-rwxr-xr-x 1 root root 4715368 Mar 29 22:06 System.map-4.4.167-8-rockchip-g1175e66f8e9a
-rwxr-xr-x 1 root root 143760 Mar 29 22:06 config-4.4.167-14-rockchip-g53bdb2fa44e8
-rwxr-xr-x 1 root root 143817 Mar 29 22:06 config-4.4.167-8-rockchip-g1175e66f8e9a
drwxr-xr-x 6 root root4096 Jan 1 1980 dtbs
drwxr-xr-x 2 root root4096 Mar 28 19:55 extlinux
drwxr-xr-x 2 root root4096 Mar 27 16:50 extlinux-x
-rwxr-xr-x 1 root root 8093631 Mar 29 22:06 initrd.img-4.4.167-14-rockchip-g53bdb2fa44e8
-rwxr-xr-x 1 root root 6351579 Mar 29 22:06 initrd.img-4.4.167-8-rockchip-g1175e66f8e9a
-rwxr-xr-x 1 root root53805 Mar 28 22:49 rk3399pro-rock-pi-n10-51110.dtb
-rwxr-xr-x 1 root root53805 Mar 27 16:51 rk3399pro-rock-pi-n10-51110.dtb-bk
-rwxr-xr-x 1 root root53805 Mar 26 23:05 rk3399pro-rock-pi-n10-5119.dtb
-rwxr-xr-x 1 root root51118 Mar 26 22:39 rk3399pro-rock-pi-n10-572.dtb
-rwxr-xr-x 1 root root53805 Mar 28 20:46 rk3399pro-rock-pi-n10.dtb
-rwxr-xr-x 1 root root 20240392 Mar 29 22:06 vmlinuz-4.4.167-14-rockchip-g53bdb2fa44e8
-rwxr-xr-x 1 root root 20891656 Mar 29 22:06 vmlinuz-4.4.167-8-rockchip-g1175e66f8e9a

@heitbaum

Hi
I carefully looked at the startup log
but neither my u-boot nor FreeBSD launches there
This means that the old u-boot with emmc or spi is working.
My u-boot with SD card won’t start
You can try to change the value of the variable
boot_targets = mmc1 usb0 nvme0 mmc0 pxe dhcp
this will give the SD card a higher priority and it will be polled

Changing the value of the boot_target variable is done in U-boot
To do this, you need to interrupt the work of u-boot by pressing the SPACE key at startup and then you can give various commands.
For example printenv
The env set boot_target “mmc0 usb0 nvme0 mmc1 dhcp pxe” command will set the desired order for polling the device.
The saveenv command will save the value of all variables.
You can also completely clear the contents of emmc or spi flash from u-boot - this will allow you to start u-boot directly from the SD card.

I followed the process on the wiki - https://wiki.radxa.com/RockpiN10/dev/usb-install

rkdeveloptool db rk3399pro_loader_*.bin
rkdeveloptool wl 64 idbloader.img
rkdeveloptool wl 16384 uboot.img
rkdeveloptool wl 24576 trust.img

to rewrite the eMMC with the files from https://dl.radxa.com/rockpin10/images/loader/

Ctrl+C nor let’s me stop the uboot. So have created a new topic for help… we will see, then I can try your sd card out again.