From nobody Wed Jun 29 14:09:34 2022 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 77F3A868DAB for ; Wed, 29 Jun 2022 14:09:45 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-23.consmr.mail.gq1.yahoo.com (sonic311-23.consmr.mail.gq1.yahoo.com [98.137.65.204]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LY3Hr2kD2z4dLd for ; Wed, 29 Jun 2022 14:09:44 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1656511777; bh=aUceiRjXSoktlzxttGecTpdqvoRImAJCaCRbFHrqgdE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=qOf5mAPAzxsfcdK2TpeKwKXYnenjIwEfm3apL/9atyjt7LLHgIzcSF3cAYlfOlqqqL3xa8QkFC+JI9c6QlJ32zx5qaK3OmZujyO+BqkUJWn1c8M+CmGmHdoyEEMw9rqvZ9GVZzFdFbcRhEMOObonlzZHB3qXazCI2E03rohh7giBG5YVJO7XfpD1cTPhU1GqkJCJjNJeO0ttySE1Tg4FiB0MVciL23LIJFzpkpGT+eoCelkU2W8GGeus9fO7tXHllYlDh/442vd8zm3vjFkU6jAM/FbLQMonupEldCThxA2YNhOi4ReHx8JopqnyOk6vGwY0wM4/LjdAanoqhOmsGA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1656511777; bh=+QMbxoxb4DYGVLwhtSlmVuNF5/mi2nP7xNVVPUW7aPd=; h=X-Sonic-MF:Subject:From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4n5PLEt2E86Gq_6py2LAPKd3REUMblfgotu4B4GfiVOF5bnBYXT3ia ARpX1MtsXdf40uZGRdcxTjaNaePkBx8.cgfV0V0ilKqhMYrpH7wrdX1rp8gKuFTBfe8q74W.SRUw yWfFesGt9gTsVWdmknrVoSxk4Qev_Qo_QGReMCJQYBySiDWpNgqMwXxmew5OGvrVz9pNSrKBzAlX NNKhXB8H2asfXW2BvYevxcNtPCvZlTUAqLm9olO4lfUcYqriRkvgK_lk2SLmKbRU8bAZw8v54AId ix9Ue7ZCKvyGVqFRbnPWNRHi2CpsFZMkFwTETucBVIs929lPzrH.Ztr.46IPcWJg9piW.XYSq3Ex GlRD_G058dHStiqo.KXMNna95s6kQ6zC.ZrkwM_M3l_YUkqDKtZlc31_nsBUCr5hMdf2IwnDbL_D XpCecJtcFmAqjmyeuDM0Iq.m7kinXuPl5AhG8dOcGWTwnkZBmull_uZD4gi4GcNddbGknJW9STxU ddf8B_pOEqSi57AvU_Lz_FfB7UUvwyoGJ34XldsiPqbAOfy6HfITWuLQOyAbgA5kcbyJzEIqvl7b NentGka7gxLfSUOSljMn0MnlS.yrMGH78hzFBlf9FxzRoM09KjdZn X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Wed, 29 Jun 2022 14:09:37 +0000 Received: by hermes--production-gq1-56bb98dbc7-6v5v5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a9a8e8769e650464bf642aee32d0df6d; Wed, 29 Jun 2022 14:09:35 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: U-Boot fails to load from SD when a USB dual HDD device is attached From: Mark Millard In-Reply-To: <12609da5-c560-f336-762f-32fc5fa71d48@amaranth.digital> Date: Wed, 29 Jun 2022 07:09:34 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <12609da5-c560-f336-762f-32fc5fa71d48@amaranth.digital> To: Bradley Proffit X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4LY3Hr2kD2z4dLd X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=qOf5mAPA; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.204 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.47 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.204:from]; NEURAL_HAM_SHORT(-0.97)[-0.966]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] X-ThisMailContainsUnwantedMimeParts: N On 2022-Jun-29, at 02:06, Bradley Proffit = wrote: > I'm running FreeBSD 13.1 on the Raspberry Pi 4B, with a new dual = SATA-to-USB hard drive docking station, and I've noticed a peculiar = situation: U-Boot fails to load FreeBSD from the SD card when the = docking station is plugged in and has two hard drives in it (presenting = two USB storage devices to U-Boot), but still succeeds when: >=20 > =E2=80=A2 the device is not attached; > =E2=80=A2 the device is attached but only has one hard drive in = it, presenting one USB storage device to U-Boot; > =E2=80=A2 when the device with one hard drive in it, and another = USB storage device, such as a flash drive, are plugged in. > Any clue what might be causing this problem? I wonder if this might be = an issue with voltage sag/over-voltage on the USB interface causing the = SD card not to select, or something similar, although the docking = station has its own power supply and so should not be drawing a = substantial current from the pi. >=20 > I've included what errors I collected through the serial interface. >=20 >=20 >=20 > U-Boot 2021.07 (May 12 2022 - 07:00:33 +0000) >=20 > DRAM: 3.9 GiB > RPI 4 Model B (0xc03112) > MMC: mmc@7e300000: 3, 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: Register 5000420 NbrPorts 5 > Starting the controller > USB XHCI 1.00 > scanning bus xhci_pci for devices... 3 USB Device(s) found > scanning usb for storage devices... 2 Storage Device(s) found > Hit any key to stop autoboot: 0=20 > U-Boot> boot > switch to partitions #0, OK > mmc0 is current device > Scanning mmc 0:1... > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > Scanning disk mmc@7e300000.blk... > Disk mmc@7e300000.blk not ready > Scanning disk emmc2@7e340000.blk... > ** Unrecognized filesystem type ** >=20 > ... >=20 > run bootcmd > switch to partitions #0, OK > mmc0 is current device > Couldn't find partition dhcp 0:1 > MMC Device 1 not found > no mmc device at slot 1 > MMC Device 2 not found > no mmc device at slot 2 >=20 > Device 0: Vendor: ASMT Rev: 0 Prod: ASM1156-PM =20 > Type: Hard Disk > Capacity: 305245.3 MB =3D 298.0 GB (625142448 x 512) > ... is now current device > Couldn't find partition dhcp 0:1 > BOOTP broadcast 1 > BOOTP broadcast 2 > DHCP client bound to address 192.168.1.33 (1246 ms) > *** ERROR: `serverip' not set > Cannot autoload with TFTPGET > missing environment variable: pxeuuid > Retrieving file: pxelinux.cfg/01-dc-a6-32-90-1f-1e > *** ERROR: `serverip' not set > Retrieving file: pxelinux.cfg/C0A80121 > *** ERROR: `serverip' not set > Retrieving file: pxelinux.cfg/C0A8012 > *** ERROR: `serverip' not set > Retrieving file: pxelinux.cfg/C0A801 > *** ERROR: `serverip' not set > Retrieving file: pxelinux.cfg/C0A80 > *** ERROR: `serverip' not set > Retrieving file: pxelinux.cfg/C0A8 > *** ERROR: `serverip' not set > Retrieving file: pxelinux.cfg/C0A > *** ERROR: `serverip' not set > Retrieving file: pxelinux.cfg/C0 > *** ERROR: `serverip' not set > Retrieving file: pxelinux.cfg/C > *** ERROR: `serverip' not set > Retrieving file: pxelinux.cfg/default-arm-bcm283x-rpi > *** ERROR: `serverip' not set > Retrieving file: pxelinux.cfg/default-arm-bcm283x > *** ERROR: `serverip' not set > Retrieving file: pxelinux.cfg/default-arm > *** ERROR: `serverip' not set > Retrieving file: pxelinux.cfg/default > *** ERROR: `serverip' not set > Config file not found > BOOTP broadcast 1 > BOOTP broadcast 2 > DHCP client bound to address 192.168.1.33 (907 ms) > *** ERROR: `serverip' not set > Cannot autoload with TFTPGET > BOOTP broadcast 1 > BOOTP broadcast 2 > DHCP client bound to address 192.168.1.33 (1312 ms) > *** ERROR: `serverip' not set > Cannot autoload with TFTPGET > U-Boot>=20 >=20 See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256441 The problem is not limited or specific to FreeBSD's use of U-Boot. For example, demonstrated with Fedora 33 and some openbsd version as well. The problem is not new. =3D=3D=3D Mark Millard marklmi at yahoo.com