Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jan 2021 17:35:28 +0000
From:      Andy McClements <ajm@ip-ether.net>
To:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: RPi4b 8GB 13.0-Current, XHCI broken, wrong U-Boot ?
Message-ID:  <aaefd44f-9dfd-be08-b446-d85c1df185a9@ip-ether.net>
In-Reply-To: <D22EDD0F-8A8E-466C-BCEC-C8E2B3EA9A6B@googlemail.com>
References:  <007c8658-b7b6-6852-536c-9c36af64506b@ip-ether.net> <D22EDD0F-8A8E-466C-BCEC-C8E2B3EA9A6B@googlemail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/01/2021 10:10, Klaus Küchemann wrote:

> if you want to get rid of that smoke   see :
> https://reviews.freebsd.org/D26853
> dtc -I dts -O dtb -o bcm2711-rpi-4-b.dtb bcm2711-rpi-4-b.dts
> cp bcm2711-rpi-4-b.dtb /boot/msdos

I've tried four more tests, using a version of bcm2711-rpi-4-b.dtb with 
the D26853 patch applied.

Briefly, with the patch, my RPi4B will now attach the USB controller and 
all dependant devices including genet0, and an attached SSD. The only 
thing that failed to work, was actually booting from the SSD with no SD 
card present, this caused a crash in U-boot.

Details follow including links to the dmesgs.

Hardware & OS image same as before:

HW: RPi4b 8GB, late 2020 purchase, Sept 03 bootloader flashed
OS: 
FreeBSD-13.0-CURRENT-arm64-aarch64-RPI-20201224-3cc0c0d66a0-255241.img.xz

Test 5:
Boot device: 32GB SD card
U-Boot: 20201224
RPI firmware: 20201224
bcm2711-rpi-4-b-dtb replaced with D26853 patched version

Result: Boots OK. USB all working.

Dmesg: https://dmesgd.nycbug.org/index.cgi?do=view&id=5852

Test 6:
Boot device: 32GB SD card
U-Boot: 20201224
RPI firmware: DOS partition files replaced with those from 
'firmware-master.zip'
bcm2711-rpi-4-b-dtb replaced with D26853 patched version

Result: Boots OK. USB all working.

Dmesg: https://dmesgd.nycbug.org/index.cgi?do=view&id=5853

Test 7:
Boot device: 120GB USB3.0 SSD
U-Boot: 20201224
RPI firmware: DOS partition files replaced with those from 
'firmware-master.zip'
bcm2711-rpi-4-b-dtb replaced with D26853 patched version

Result: U-boot crash loop

<quote>
U-Boot 2020.10 (Dec 24 2020 - 04:18:29 +0000)

DRAM:  7.9 GiB
RPI 4 Model B (0xd03114)
MMC:   mmc@7e300000: 1, emmc2@7e340000: 0
Loading Environment from FAT... In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   eth0: ethernet@7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: probe failed, error -110
No working controllers found
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
starting USB...
Bus xhci_pci: probe failed, error -110
No working controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
Bus xhci_pci: probe failed, error -110
No working controllers found
"Synchronous Abort" handler, esr 0x96000044
elr: 000000000009bd2c lr : 0000000000091a10 (reloc)
elr: 000000003b278d2c lr : 000000003b26ea10
x0 : 0000000000000000 x1 : b900080152b00000
x2 : 003aeea8f0000000 x3 : 0000000000000000
x4 : 000000003b2d30b0 x5 : 000000003aeea920
x6 : 0000000000000021 x7 : 656c696674646603
x8 : 0000000000000000 x9 : 0000000000000008
x10: 00000000ffffffd0 x11: 0000000000000006
x12: 000000000001869f x13: 0000000000006198
x14: 0000000000000000 x15: 00000000fffffffe
x16: 0000000000004110 x17: 0000000000000000
x18: 000000003ae58d90 x19: 000000003b2d30b0
x20: 0000000000000030 x21: 0000000000000001
x22: 00000000ffffffff x23: 000000000000000b
x24: 000000003b2bf8ef x25: 000000003b2c7ad6
x26: 0000000000000001 x27: 0000000000000020
x28: 000000003b2e4e94 x29: 000000003ae4c480

Code: f9400c02 927ef421 f9000c62 8b010001 (f9000843)
Resetting CPU ...

resetting ...

</quote>

Test 8:
Boot device: 32GB SD card
Secondary disk device: USB 3.0 SSD
U-Boot: 20201224
RPI firmware: DOS partition files replaced with those from 
'firmware-master.zip'
bcm2711-rpi-4-b-dtb replaced with D26853 patched version

Result: Boots OK. USB all working. Second disk device is recognised.

Dmesg: https://dmesgd.nycbug.org/index.cgi?do=view&id=5854





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aaefd44f-9dfd-be08-b446-d85c1df185a9>