From owner-freebsd-arm@freebsd.org Sun Jan 3 11:43:34 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EFF324CECE0 for ; Sun, 3 Jan 2021 11:43:34 +0000 (UTC) (envelope-from ajm@ip-ether.net) Received: from balrog.mythic-beasts.com (balrog.mythic-beasts.com [IPv6:2a00:1098:0:82:1000:0:2:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4D7xjL6WSqz4pRF; Sun, 3 Jan 2021 11:43:34 +0000 (UTC) (envelope-from ajm@ip-ether.net) Received: from [5.83.10.113] (port=56917 helo=[10.0.30.30]) by balrog.mythic-beasts.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92.3) (envelope-from ) id 1kw1nF-00060X-1S; Sun, 03 Jan 2021 11:43:33 +0000 Subject: Re: RPi4b 8GB 13.0-Current, XHCI broken, wrong U-Boot ? To: freebsd-arm@freebsd.org References: <007c8658-b7b6-6852-536c-9c36af64506b@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> From: Andy McClements Cc: =?UTF-8?Q?Klaus_K=c3=bcchemann?= , Robert Crowston , Emmanuel Vadot Message-ID: <6610c9a3-1e61-b7e5-c537-3080dd7ee8ae@ip-ether.net> Date: Sun, 3 Jan 2021 11:43:27 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <26D146B8-0362-4008-9A1F-A6CD6B1479BB@googlemail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BlackCat-Spam-Score: 84 X-Spam-Status: No, score=8.4 X-Rspamd-Queue-Id: 4D7xjL6WSqz4pRF X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jan 2021 11:43:35 -0000 On 02/01/2021 19:39, Klaus Küchemann wrote: > thanks a lot, I could reproduce the issue you have with > their firmware files datestamped 27/12/2020 > , it seems that they have mixed up something > @ the rpi-org since I`ve got the following files from them earlier... > > Could you please overwrite on msdos-partition with these files : > https://sourceforge.net/projects/d26853-bcm2711-rpi-4-b-dtb/files/rpi4_pack_freebsd.zip/download > I’m quite sure, that this will fix the SD-card-issue , > So it should boot directly from USB/SSD. > You can begin with only : start4.elf & fixup4.dat , > If that doesn`t work you can also apply u-boot.bin. I've done some further tests using the three previous RPI firmware releases to the current 20201227 release which does not work for me. Again, my environment is: HW: RPi4b 8GB, late 2020 purchase, Sept 3rd EEPROM OS: FreeBSD-13.0-CURRENT-arm64-aarch64-RPI-20201224-3cc0c0d66a0-255241.img.xz Boot device: 128GB USB3 SSD Releases tested: https://github.com/raspberrypi/firmware/archive/1.20201022.zip https://github.com/raspberrypi/firmware/archive/1.20201126.zip https://github.com/raspberrypi/firmware/archive/1.20201201.zip I am happy to say that, WITH PATCH D26853, all of these will successfully allow FreeBSD 20201224 to boot from USB SSD. Also that the vanilla 20201224 img (which I have checked includes the 20201201 firmware) also works fine, WITH PATCH D26853. I have also double-checked that the current firmware release, 20201227, with the patch, DOES NOT WORK. As previously reported, I just see a crash-loop in U-boot, if attempting to boot from USB SSD. With hindsight it was unfortunate that I made the assumption that my initial problem was due to not having the latest firmware. Test details, including dmesgs: Test #9 128GB USB3.0 SSD FreeBSD-13.0-CURRENT-arm64-aarch64-RPI-20201224-3cc0c0d66a0-255241.img.xz 20201224 U-Boot RPI firmware refreshed from firmware-1.20201022.zip bcm2711-rpi-4-b-dtb replaced with D26853 patched version Result: Boots OK. XHCI all working. Dmesg: https://dmesgd.nycbug.org/index.cgi?do=view&id=5856 Test #10 128GB USB3.0 SSD FreeBSD-13.0-CURRENT-arm64-aarch64-RPI-20201224-3cc0c0d66a0-255241.img.xz 20201224 U-Boot RPI firmware refreshed from firmware-1.20201126.zip bcm2711-rpi-4-b-dtb replaced with D26853 patched version Result: Boots OK. XHCI all working. Dmesg: https://dmesgd.nycbug.org/index.cgi?do=view&id=5857 Test #11 128GB USB3.0 SSD FreeBSD-13.0-CURRENT-arm64-aarch64-RPI-20201224-3cc0c0d66a0-255241.img.xz 20201224 U-Boot RPI firmware refreshed from firmware-1.20201201.zip bcm2711-rpi-4-b-dtb replaced with D26853 patched version Result: Boots OK. XHCI all working. Dmesg: https://dmesgd.nycbug.org/index.cgi?do=view&id=5858