Date: Mon, 21 Aug 2023 13:37:58 +0300 From: Guy Yur <guyyur@gmail.com> To: Mark Millard <marklmi@yahoo.com> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: Rock64 vs. USB3 for 14.0-ALPHA2 's Rock64 snapshot vs. device tree update(?) Message-ID: <CAC67Hz8tu9FhH=yZLzgcLa-RH0W=4_1TqAnEY%2BRmKuETK8Mwsg@mail.gmail.com> In-Reply-To: <C072DEA1-3CC7-494F-8306-7A8A6CB81C0B@yahoo.com> References: <D6FF636E-EF88-4D74-89B6-01CF37882CD9.ref@yahoo.com> <D6FF636E-EF88-4D74-89B6-01CF37882CD9@yahoo.com> <CAC67Hz-HwHoWX1685CyCfM5uE%2BFqMzQ29hMMC9wDHDn8qHeHQg@mail.gmail.com> <E68DED8A-17E2-4AC3-A564-5F9C331231F6@yahoo.com> <CAC67Hz9C1JTEyDN=WEU6jvdx_GQ6=xKV4BHnZvytuesEkHNS2w@mail.gmail.com> <C072DEA1-3CC7-494F-8306-7A8A6CB81C0B@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000007fcc9106036c796a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Sun, Aug 20, 2023 at 10:08=E2=80=AFPM Mark Millard <marklmi@yahoo.com> w= rote: > On Aug 20, 2023, at 11:08, Guy Yur <guyyur@gmail.com> wrote: > > ... (snip) > > > > I boot from sdcard with msdosfs partition with EFI/BOOT/bootaa64.efi an= d > the dtb in rockchip/ dir in the partition. > > I tested renaming the rockchip dir so the dtb won't be found and there > was still a device tree provided. > > seen in devinfo and ofwdump. > > Back when I established my structure (long ago) this provided > U-Boot's translation of its *.dtb --which did not work for > FreeBSD purposes at the time. FreeBSD's Rock64 related updates > have been based on tracking upstream linux at some point. > Doing what I did got the FreeBSD *.dtb that FreeBSD expected > (at the time. anyway). > > Updating with more correct information for future reference since from my previous post it sounds like u-boot behavior changed when it has not in regards to placing the fdt file in the EFI partition. The real issue is a bug in u-boot 2023.07.02 failing to read the fdt from the EFI partition and the u-boot provided fdt bindings for Rock64 containing wrong xhci definition. Reading fdt file was fixed in: https://source.denx.de/u-boot/u-boot/-/commit/2984d21a28f812c9c1fd2243cc727= 96f69a61585 I believe all issues should be resolved in the next u-boot release. ... (snip) > > I do not know if the Rock64 related support will continue to > be updated to track the linux upstream updates or not. (If not, > then likely snapshots and releases for Rock64 would stop.) > > As stands I do not plan on going down a path that might not > be what FreeBSD ends up with for Rock64 related support if > it is updated. For now, I've just put the Rock64 to the side. > But I'm keeping copies of your notes. > > I think the current fdt that comes with 14.0 works fine for USB3, so at least for now a modern device tree should work. ... (snip) > > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > > =3D=3D=3D Guy Yur --0000000000007fcc9106036c796a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi,</div><br><div class=3D"gmail_quote"><div dir=3D"l= tr" class=3D"gmail_attr">On Sun, Aug 20, 2023 at 10:08=E2=80=AFPM Mark Mill= ard <<a href=3D"mailto:marklmi@yahoo.com">marklmi@yahoo.com</a>> wrot= e:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0= .8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Aug 20, 20= 23, at 11:08, Guy Yur <<a href=3D"mailto:guyyur@gmail.com" target=3D"_bl= ank">guyyur@gmail.com</a>> wrote:<br> <br>... (snip)<br> > <br> > I boot from sdcard with msdosfs partition with EFI/BOOT/bootaa64.efi a= nd the dtb in rockchip/ dir in the partition.<br> > I tested renaming the rockchip dir so the dtb won't be found and t= here was still a device tree provided.<br> > seen in devinfo and ofwdump.<br> <br> Back when I established my structure (long ago) this provided<br> U-Boot's translation of its *.dtb --which did not work for<br> FreeBSD purposes at the time. FreeBSD's Rock64 related updates<br> have been based on tracking upstream linux at some point.<br> Doing what I did got the FreeBSD *.dtb that FreeBSD expected<br> (at the time. anyway).<br> <br></blockquote><div>=C2=A0</div><div>Updating with more correct informati= on for future reference since<br>from my previous post it sounds like u-boo= t behavior=C2=A0changed when<br>it has not in regards to placing the fdt fi= le in the EFI partition.</div><div><br></div><div>The real issue is a bug i= n u-boot 2023.07.02 failing to read the fdt from the EFI partition</div><di= v>and the u-boot provided fdt bindings for Rock64 containing wrong xhci def= inition.</div><div><br></div><div>Reading fdt file was fixed in:<br><a href= =3D"https://source.denx.de/u-boot/u-boot/-/commit/2984d21a28f812c9c1fd2243c= c72796f69a61585">https://source.denx.de/u-boot/u-boot/-/commit/2984d21a28f8= 12c9c1fd2243cc72796f69a61585</a></div><div><br></div><div>I believe all iss= ues should be resolved in the next u-boot release.</div><div><br></div><blo= ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left= :1px solid rgb(204,204,204);padding-left:1ex">... (snip)<br> <br> I do not know if the Rock64 related support will continue to<br> be updated to track the linux upstream updates or not. (If not,<br> then likely snapshots and releases for Rock64 would stop.)<br> <br> As stands I do not plan on going down a path that might not<br> be what FreeBSD ends up with for Rock64 related support if<br> it is updated. For now, I've just put the Rock64 to the side.<br> But I'm keeping copies of your notes.<br> <br></blockquote><div><br></div><div>I think the current fdt that comes wit= h 14.0 works fine for USB3,</div><div>so at least for now a modern device t= ree should work.</div><div><br></div><blockquote class=3D"gmail_quote" styl= e=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddin= g-left:1ex">... (snip)<br> <br> =3D=3D=3D<br> Mark Millard<br> marklmi at <a href=3D"http://yahoo.com" rel=3D"noreferrer" target=3D"_blank= ">yahoo.com</a><br> <br></blockquote><div><br></div><div>=3D=3D=3D</div><div>Guy Yur=C2=A0</div= ></div></div> --0000000000007fcc9106036c796a--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC67Hz8tu9FhH=yZLzgcLa-RH0W=4_1TqAnEY%2BRmKuETK8Mwsg>