From owner-freebsd-arm@freebsd.org Sat Jan 2 17:35:38 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 C4CB74D87CB for ; Sat, 2 Jan 2021 17:35:38 +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 4D7TZ16Pnlz4hgS for ; Sat, 2 Jan 2021 17:35:37 +0000 (UTC) (envelope-from ajm@ip-ether.net) Received: from [5.83.10.113] (port=53203 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 1kvkoO-00022G-CS for freebsd-arm@freebsd.org; Sat, 02 Jan 2021 17:35:36 +0000 Subject: Re: RPi4b 8GB 13.0-Current, XHCI broken, wrong U-Boot ? References: <007c8658-b7b6-6852-536c-9c36af64506b@ip-ether.net> From: Andy McClements To: freebsd-arm Message-ID: Date: Sat, 2 Jan 2021 17:35:28 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BlackCat-Spam-Score: 9 X-Spam-Status: No, score=0.9 X-Rspamd-Queue-Id: 4D7TZ16Pnlz4hgS X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ajm@ip-ether.net designates 2a00:1098:0:82:1000:0:2:1 as permitted sender) smtp.mailfrom=ajm@ip-ether.net X-Spamd-Result: default: False [-0.50 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1098:0:82:1000:0:2:1:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1098::82:1000:0:2:1]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[ip-ether.net]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1098:0:82:1000:0:2:1:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[2a00:1098:0:82:1000:0:2:1:from]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:44684, ipnet:2a00:1098::/32, country:GB]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2] 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: Sat, 02 Jan 2021 17:35:38 -0000 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 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 ... 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