Date: Fri, 15 Dec 2023 16:56:40 +0100 From: Emmanuel Vadot <manu@bidouilliste.com> To: Harry <freebsd@omnilan.de> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: u-boot-nanopi-r5c [Was: Re: 14-BETA5 panic on rk3566] Message-ID: <20231215165640.78bab647c883368b8fc9c34e@bidouilliste.com> In-Reply-To: <5211ad65-5289-4776-b839-7c681de77bf4@omnilan.de> References: <2CE509A2-AECF-4562-A080-589AC7888F21@edc.ro> <20231012184430.952dd9d5a26c97ee225c9e77@bidouilliste.com> <5211ad65-5289-4776-b839-7c681de77bf4@omnilan.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Fri, 15 Dec 2023 12:06:02 +0100 Harry <freebsd@omnilan.de> wrote: > On 10/12/23 18:44, Emmanuel Vadot wrote: > >> can this be merged to 14-STABLE > >> /sys/dev/iicbus/pmic/rockchip/rk8xx_clocks.c > >> this seems to cause a panic > >> clkidef.name =3D (nclks =3D 2) ? clknames[0] : "clk32kout1"; > >> > > It's a bit too late tbh, also I don't consider rk356x stable even in > > 15-CURRENT, so this will be merged in stable/14 at some point but for > > now if you want to run on rk356x please use 15-CURRENT. >=20 >=20 > Hi Emmanuel, >=20 > thanks for your great FreeBSD contributions! Highly appreciate the=20 > Porting-FreeBSD-to-a-new-ARM-Board publication too! Thanks. > Quick question - I'm new to arm/u-boot, but some FreeBSD src & ports=20 > experience here... >=20 > In u-boot-2023.10 there's (master/)configs/nanopi-r5c-rk3568_defconfig=20 > added. > Simply copy'n'paste the ports/sysutils/u-boot-nanopi-r4s to=20 > u-boot-nanopi-r5c isn't enough... (after updating u-boot-master from=20 > 2023.07 to 2023.10, done that) >=20 > I don't understand sysutils/atf-master resp. sysutils/atf-rk3399. > Simply creating new rk3568 slave ports doesn't work since PLAT rk3568=20 > isn't implemenmted upstream...=A0 I guess I would have to adjust=20 > sysutils/u-boot-nanopi-r5c to get rid of the AT-F dependency first... but Yes upstream TF-A doesn't have rk356x support right now so we have to use the ones provided at https://github.com/rockchip-linux/rkbin > You mention running 15-CURRENT on rk356x >=20 > How to boot? >=20 > Would highly appreciate links - I'm currently trying to deploy=20 > FriendlyELEC R5C here - I could successfully start 14-stable, but just=20 > by try'n'error metgod, gluing lots of different loader blobs onto=20 > SDcard.=A0 I need to learn a lot, so I'm trying to do it a little bit=20 > smarter than try'n'error... >=20 >=20 > Thanks in advance, >=20 > -harry >=20 >=20 U-Boot also doesn't support the DRAM controller so we also need an external blob from rkbin. That's the main reason I haven't done ports for u-boot on rk356x so one have to compile u-boot themselve. It can be simply done like any other u-boot targets and only needs two env variable : export BL31=3D/path/to/rkbin/bin/rk35/rk3568_bl31_v1.43.elf export ROCKCHIP_TPL=3D/path/to/rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.18.bin Cheers, --=20 Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20231215165640.78bab647c883368b8fc9c34e>