[Bug 268068] sysutils/u-boot-rock-pi-4 - support for rock-pi-4se?

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 01 Dec 2022 18:17:57 UTC

--- Comment #5 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Jon Theil Nielsen from comment #4)

Looking in:


I see a rk3399-rock-pi-4b.dts listed. It has been around since then (5.10)
from what I can tell.


(5.16) lists a rk3399-rock-pi-4b-plus.dts as well.

So it seems that both U-Boot and Linux mainlines have rock-pi-4b support
to some extent and have been for some time. Thus the Linux one should be
in the main [so: 14] source tree.

I see in my somewhat old FreeBSD main [so: 14] source tree:


I do not see them in my somewhat old stable/13 source tree.

I do not see a /boot/dtb/rockchip/rk3399-rock-pi-4.dtb in my main [so: 14]

Because FreeBSD is set up for the Linux dts content, you likely need
to put the FreeBSD built rk3399-rock-pi-4.dtb appropriately placed
in the msdosfs file system. U-Boot will pick up the .dtb you provide
and hand it's content over to the FreeBSD loader.

I do such for the Rock64, placing the .dtb at: dtb/rockchip/rk3328-rock64.dtb
Then U-Boot uses it and hands to over to the FreeBSD loader. If I have
the .dtb missing from there for some reason, U-Boot uses its internal
one that does not match what the FreeBSD kernel handles and the boot fails
via the kernel. (The Rock64 already has its .dtb built installed into
/boot/dtb/rockchip/ for FreeBSD, including via stable/13 and releng/13.* .)

So, likely some makefile(s) needs to list the rk3399-rock-pi-4b.dts
as one to be built and to put the .dtb into /boot/dtb/rockchip/ on
for you to then copy to the msdosfs as dtb/rockchip/rk3399-rock-pi-4b.dtb .
(Installing the appropriate U-Boot itself is a separate issue.)

You are receiving this mail because:
You are the assignee for the bug.