Re: Rock64 vs. USB3 for 14.0-ALPHA2 's Rock64 snapshot vs. device tree update(?)

Guy Yur <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <CAC67Hz8tu9FhH=yZLzgcLa-RH0W=4_1TqAnEY+RmKuETK8Mwsg@mail.gmail.com>
Hi,

On Sun, Aug 20, 2023 at 10:08 PM Mark Millard <[email protected]> wrote:

> On Aug 20, 2023, at 11:08, Guy Yur <[email protected]> wrote:
>
> ... (snip)
> >
> > I boot from sdcard with msdosfs partition with EFI/BOOT/bootaa64.efi and
> 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/2984d21a28f812c9c1fd2243cc72796f69a61585

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)
>
> ===
> Mark Millard
> marklmi at yahoo.com
>
>
===
Guy Yur
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.