From nobody Sun Jun 06 14:50:43 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5E74395194D for ; Sun, 6 Jun 2021 14:50:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FyfZC0yWgz4tbP for ; Sun, 6 Jun 2021 14:50:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0795D2524D for ; Sun, 6 Jun 2021 14:50:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 156Eog5Z054377 for ; Sun, 6 Jun 2021 14:50:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 156Eog0Q054376 for freebsd-arm@FreeBSD.org; Sun, 6 Jun 2021 14:50:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 256441] U-Boot build for Raspberry Pi 3 (arm64) does not boot from MicroSD card slot when >1 USB storage devices are present Date: Sun, 06 Jun 2021 14:50:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rleigh@codelibre.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256441 Bug ID: 256441 Summary: U-Boot build for Raspberry Pi 3 (arm64) does not boot from MicroSD card slot when >1 USB storage devices are present Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: rleigh@codelibre.net Using 13.0-RELEASE image on a 16GB SD card, written using the RPi imager to= ol. With 0 or 1 USB storage devices inserted, the system boots fine. With 2-4 = USB storage devices inserted, the system will not boot. Looks like U-Boot is getting stuck in this situation and not able to read the second stage bootloader from the SD card mmc0 storage. May be related to #255080 I have transcribed the console output below (may have some minor typos). With 1 USB storage device inserted: ``` Net: No ethernet found starting USB... Bus usb@7e990000: USB DWC2 scanning bus usb@7e980000 for devices... 5 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Hit any key to stop autoboot: 0 [boot continues successfully] ``` With 2 USB storage device inserted: ``` Net: No ethernet found starting USB... Bus usb@7e990000: USB DWC2 scanning bus usb@7e980000 for devices... 6 USB Device(s) found scanning usb for storage devices... 2 Storage Device(s) found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found EFI removable media binary efi/boot/bootaa64.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk mmc@7e300000.blk... ** Unrecognized filesystem type ** Scanning disk usb_mass_storage.lun0... ** Unrecognized filesystem type ** Scanning disk usb_mass_storage.lun0... ERROR: Failure to add disk device usb_mass_storage.lun0, r=3D20 Error: Cannot initialize UEFI sub-system, r=3D20 125912 bytes read in 125 ms (9.6 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC Error: Cannot initialize UEFI sub-system, r=3D20 EFI LOAD FAILED: continuing... MMC Device 1 not found no mmc device at slot 1 Device 0: Vendor: Generic Rev: 2.00 Prod: Flash Disk Type: Removable Hard Disk Capacity: 7680.0 MB =3D 7.5 GB (15728640 x 512) ... is now current device ** Unrecognized filesystem type ** Waiting for Ethernet connection... done. BOOTP broadcast 1 ... [boot never succeeds] ``` --=20 You are receiving this mail because: You are the assignee for the bug.=