Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Dec 2022 18:17:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        uboot@FreeBSD.org
Subject:   [Bug 268068] sysutils/u-boot-rock-pi-4 - support for rock-pi-4se?
Message-ID:  <bug-268068-39090-S4POq48GQY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-268068-39090@https.bugs.freebsd.org/bugzilla/>
References:  <bug-268068-39090@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268068

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

Looking in:

https://elixir.bootlin.com/linux/v5.10/source/arch/arm64/boot/dts/rockchip

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

https://elixir.bootlin.com/linux/v5.16/source/arch/arm64/boot/dts/rockchip

(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:

sys/contrib/device-tree/src/arm64/rockchip/rk3399-rock-pi-4b.dts
sys/contrib/device-tree/src/arm64/rockchip/rk3399-rock-pi-4b-plus.dts

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]
install.

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.d=
tb
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
installation,
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.)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268068-39090-S4POq48GQY>