Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jan 2021 21:16:10 +0100
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        Andy McClements <ajm@ip-ether.net>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: RPi4b 8GB 13.0-Current, XHCI broken, wrong U-Boot ?
Message-ID:  <20210105211610.66a4e784b73382a74863ec09@bidouilliste.com>
In-Reply-To: <44de05f0-0c41-b6c8-b3f6-a4374f20eca1@ip-ether.net>
References:  <007c8658-b7b6-6852-536c-9c36af64506b@ip-ether.net> <D22EDD0F-8A8E-466C-BCEC-C8E2B3EA9A6B@googlemail.com> <aaefd44f-9dfd-be08-b446-d85c1df185a9@ip-ether.net> <5B626DCC-6F7C-4554-803C-F488A1ED9BEB@googlemail.com> <56d10ea4-3284-3e4c-9521-8bf1008caa2b@ip-ether.net> <26D146B8-0362-4008-9A1F-A6CD6B1479BB@googlemail.com> <6610c9a3-1e61-b7e5-c537-3080dd7ee8ae@ip-ether.net> <eb72b668-7a02-c873-5af8-b292b5eb12a5@ip-ether.net> <44de05f0-0c41-b6c8-b3f6-a4374f20eca1@ip-ether.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 3 Jan 2021 19:33:31 +0000
Andy McClements <ajm@ip-ether.net> 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 <manu@bidouilliste.com> <manu@freebsd.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210105211610.66a4e784b73382a74863ec09>