Re: RPi4b 8GB 13.0-Current, XHCI broken, wrong U-Boot ?

Emmanuel Vadot <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
On Sun, 3 Jan 2021 19:33:31 +0000
Andy McClements <[email protected]> wrote:

> On 03/01/2021 18:29, Andy McClements wrote:
> 
> > Further on this, I have just done another test by replacing only:
> >
> > bcm2711-rpi-4-b.dtb
> >
> > on the FreeBSD 13.0-CURRENT 20201224 img, with the one from the RPI
> > firmware 20201227 release.
> >
> > This **allows booting from USB**, which fails on the stock 20201224 img.
> >
> > So it seems to me that patch D26853 **is not required**, if the upstream
> > file is now working OK.
> 
> *************************
> * A P O L O G I E S  !  *
> *************************
> 
> I have just noticed that with the 20201227 firmware version of 
> 'bcm2711-rpi-4-b.dtb', 'genet0' is missing. USB disk boot is fine, but 
> the onboard GE is not recognised.
> 
> The only way I can get everything working on my RPi4b 8G with FreeBSD 
> 20201224, is to use the D26853 patched version of 'bcm2711-rpi-4-b.dtb'.
> 
> The firmware version I've been referring to as 20201227, has files in it 
> with that datestamp, and was obtained from:
> 
> https://github.com/raspberrypi/firmware/archive/master.zip

 So I did my tests today.

 Indeed we cannot boot from USB with the current re@ generated image.
 As said before in this thread u-boot needs the
raspberrypi,firmware-reset node to be present to reset the usb
controller.
 This also means that we cannot boot from sd and use USB drives from
u-boot currently.
 If, like Andy did, we use only the dtb from rpi-firmware git master
everything works. One issue was genet related but was fixed by
cb00fc7c4d.
 The problem is that if we use start* or fixup* (not sure since those
files have to be synced) from rpi-firmware git master (tested with
commit d06d94e) there is no dtb available for u-boot :
U-Boot> fdt addr fdt_addr
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
U-Boot> fdt addr fdt_addr_r
libfdt fdt_check_header(): FDT_ERR_BADMAGIC

 I really don't want to dig into this rabbit hole now so I'll test
again when rpi-firmware have another release. In the mean time if you
want to usb-boot your rpi4 just download the dtb from the d06d94e
commit and that will work now.

-- 
Emmanuel Vadot <[email protected]> <[email protected]>
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[email protected]"
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.