Date: Wed, 3 Mar 2021 05:15:44 -0800 From: Mark Millard <marklmi@yahoo.com> To: Emmanuel Vadot <manu@bidouilliste.com> Cc: "freebsd-arm@freebsd.org" <arm@freebsd.org> Subject: Re: RPi4 Status and sysutils/rpi-firmware [BETA4 with *.dtb start4.elf fixup4.dat updates works in my context, no u-boot update] Message-ID: <2AE81A2C-61FD-4A19-AF6F-B8D22DEAA34E@yahoo.com> In-Reply-To: <20210303131212.482447d7581308f7393197a4@bidouilliste.com> References: <20210302122057.86ba62bb1daa7f922134ecd9@bidouilliste.com> <3399FAC5-6594-4AF6-B9F1-F2CFAB3E64EA@yahoo.com> <A04DE97F-AE75-4283-9266-36DB1F2FE1CD@yahoo.com> <20210303090531.3bc790d12f456ee45c470825@bidouilliste.com> <5DA731CD-9EFC-440F-9BDF-615CB7D289ED@yahoo.com> <20210303131212.482447d7581308f7393197a4@bidouilliste.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-Mar-3, at 04:12, Emmanuel Vadot <manu at bidouilliste.com> = wrote: > On Wed, 3 Mar 2021 04:00:32 -0800 > Mark Millard <marklmi@yahoo.com> wrote: >=20 >>=20 >>=20 >> On 2021-Mar-3, at 00:05, Emmanuel Vadot <manu at bidouilliste.com> = wrote: >>=20 >>> On Tue, 2 Mar 2021 12:33:29 -0800 >>> Mark Millard <marklmi@yahoo.com> wrote: >>>=20 >>>>=20 >>>>=20 >>>>> On 2021-Mar-2, at 10:50, Mark Millard <marklmi at yahoo.com> = wrote: >>>>>=20 >>>>=20 >>>> So I tried to start an approximate replicate-problems sequence, >>>> documented below. >>>>=20 >>>>=20 >>>>> On 2021-Mar-2, at 03:20, Emmanuel Vadot <manu at bidouilliste.com> = wrote: >>>>>=20 >>>>>=20 >>>>>> Over the past years I've handled the update of the >>>>>> sysutils/rpi-firmware and sysutils/u-boot-rpi* ports. >>>>>> For that I've bought a lot of different RPI to ensure that we = could >>>>>> boot on all different models that the RPI Foundation folks = deliver to >>>>>> us. >>>>>=20 >>>>> Thanks for the past effort of supporting the RPi*'s. >>>>> I can easily understand the frustration. >>>>>=20 >>>>> Do not take the below as a request for any action on >>>>> your part. They are just notes about the current >>>>> context as seen from my somewhat different environment. >>>>>=20 >>>>>> . . . >>>>>>=20 >>>>>> 1/ Take the latest BETA4 image for RPI and burn on your sdcard >>>>>> 2/ Boot with or without hdmi screen. >>>>>> 3/ You will see that u-boot fails to init usb : >>>>>> starting USB... >>>>>> Bus xhci_pci: probe failed, error -110 >>>>>> No working controllers found >>>>=20 >>>> I made a FreeBSD-13.0-BETA4-arm64-aarch64-RPI.img on >>>> a microsd card and replicated this. >>>>=20 >>>>>> If you drop to u-boot prompt and do 'usb list' it will say that = the >>>>>> usb system is stopped and you can of course not start it without = having >>>>>> the above error. >>>>>> 4/ If you boot to FreeBSD everything that we support seems to = work >>>>>> except for usb (of course). >>>>>> 5/ Take the two files proposed as a fix from upstream >>>>>> = (https://github.com/raspberrypi/firmware/issues/1518#issuecomment-77935532= 0) >>>>>> and copy them to the sdcard. >>>>=20 >>>> I did not try the issue 1518 files: Skipping (5) and (6). >>>>=20 >>>>>> 6/ Boot that and you will see that usb is working again in u-boot = and >>>>>> in FreeBSD, perfect. >>>>>> 7/ Update the ports using [1] or download the files from >>>>>> github.com/raspberrypi/firmware and copy them on the sdcard (The = issue >>>>>> should be fixed right ?) >>>>=20 >>>> Here I also included the *.dtb files relevant to >>>> RPi4B's (and analogous), resulting in the following >>>> files being updated on the otherwise BETA4 media: >>>=20 >>> I also did that, sorry if I wasn't clear. >>> I've updated all the start* fixup* *dtb and bootcode.bin files on = the >>> sdcard as this is what would have been done if the ports was updated >>> on the futur images that we provide. >>=20 >> I just looked at your patch and it specified the version >> before the updates to the firmware were released, likely >> explaining our differing results: >>=20 >> +TIMESTAMP =3D 1614679337 >> +SHA256 = (raspberrypi-firmware-1.20210222.g20210222-cb8cbb2_GH0.tar.gz) =3D = bb34b5d0cb04d4ec2161954af78310825ee7f6a580f313af523ff50ddd71fa52 >> +SIZE (raspberrypi-firmware-1.20210222.g20210222-cb8cbb2_GH0.tar.gz) = =3D 192229572 >>=20 >>=20 >> https://github.com/raspberrypi/firmware/commits/master shows . . . >>=20 >> cb8cbb2 is: >>=20 >> Commits on Feb 22, 2021 >> kernel: Bump to 5.10.17 >>=20 >>=20 >> Then there are 2 more relevant updates . . . >>=20 >> 7872272 is: >>=20 >> Commits on Feb 24, 2021 >> firmware: platform: vl805: Get BAR2 address from PCIe BAR2 registers >>=20 >> (That is the one for fixing issue 1518 but it has another >> issue that solidly needs a fix. See below.) >>=20 >>=20 >> 5985247 is: >>=20 >> Commits on Feb 25, 2021 >> firmware: arm_loader: Return all borrowed DMA channels >>=20 >> (Specifically DMA channel 6 is known to have been messed >> up by the firmware.) >>=20 >>=20 >> I used materials originally taken from 5985247 so we did >> not match in what we tested. >=20 > Crap, yes indeed, I first did this patch when I saw a commit with > updated files but did not test at that time and didn't looked again > later ... > Well, I'll test this update and commit an update if that fixes things > for me but this will still be my last update on this ports. >=20 > Thanks for looking deeper ;) You are welcome. I'll note that I did not use a U-boot update: that part of 13.0-BETA4 was left as-is in my testing. (This could end up as another source of variations in behavior.) >>>> # ls -Tldt /boot/msdos/* >>>> -rwxr-xr-x 1 root wheel 49090 Feb 27 03:24:30 2021 = /boot/msdos/bcm2711-rpi-4-b.dtb >>>> -rwxr-xr-x 1 root wheel 48794 Feb 27 03:24:30 2021 = /boot/msdos/bcm2711-rpi-400.dtb >>>> -rwxr-xr-x 1 root wheel 49202 Feb 27 03:24:30 2021 = /boot/msdos/bcm2711-rpi-cm4.dtb >>>> -rwxr-xr-x 1 root wheel 5448 Feb 27 03:24:28 2021 = /boot/msdos/fixup4.dat >>>> -rwxr-xr-x 1 root wheel 2228800 Feb 27 03:24:28 2021 = /boot/msdos/start4.elf >>>> . . . (others unchanged) . . . >>>>=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2AE81A2C-61FD-4A19-AF6F-B8D22DEAA34E>