From nobody Sun Oct 31 05:57:12 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 A5DC2182751E for ; Sun, 31 Oct 2021 05:57:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-8.consmr.mail.gq1.yahoo.com (sonic316-8.consmr.mail.gq1.yahoo.com [98.137.69.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hhln02lDmz3r8W for ; Sun, 31 Oct 2021 05:57:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635659837; bh=PZ+cxg3jE2W+6MCaKh4TCIA9iA5TrAa5ceSmiAe5LKI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=SLpuI0Mgx5I1ORqzUz+pHvZBsp2QsOFi2N4tvX3JFUxFL5MjPeAHU5KECRaOKUB0yV42uW4ZpZ/Sva7DygG0JyJUfgFsADycmnkmKgIE5U3BalRccM9zFe3x6Ih3/Oh0W/vVzXz7M8CB6iOwjfsn9LUrJcafcNwoHb9mz4q2TUMYc08XafxF/WSgemoUYMZA3GOuSo/ekqaBbvwRq1hKudc2JWatNb0SWap+TOxjZMD3u+b3S/ShZK2GM3sRAhECNasT/oDMvb5HMOA+1/so2oXIgwusFmYLI3bVif5y8kBmk2qqamhDAf0/4oFtlWHWwccOuOj0xIhuK7ELyqqcdA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635659837; bh=vjkMtD4YQFtzhC8h5ky07ltC+IC3ORI8FXs6yhyqga5=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=P4WpYh/WF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OGBAZvN2m_w Tnid0qd5pGMSEyqriHmcuBn62KS5dr.LQR0E_P8OY5QDSs77PUIuYwgTFsnkrx5.Yv3s4_3YPGQc I707GZmVW8HDP0rzPGEfjnzuuzmCOQc1Yg.yzeaq5p65BHF8LOFCYycrWpMY9Wopaq7Fm7lIsk87 veNggs.57tBCtlk073RSJLj8ehfCDyYOABZ.i4MQXiqiVgYi7TX8ZJlaVHeAkmc3B3FJLRUujaf4 nrt7Qr2hDKWeQ_e8a0vRYSLKdhDv1k5tTQSWo_ZCk1tlLntx04frVI6nndCCiZc33BaWRtnlNVPk bj_Z4sFIHKy9yB6F8bzhNiyE4jTm3EZN2b5yo6e9jvM2Qi0IogJu7rtIqZOrgbBVhNS.SaPN83dz eIbhlV3g1rPPTpyQ0cCzATRcAHajcuOgEPFJ1iFrhJuh_Uojt1TUscQ1wC_OW9lVknFpidqABgP4 wiOzHeyzbK0bZ1imwlxyRfn67uTYFIgDtTcAIC1AUbBW46km.dfF7vQLZT8vXKlJLvuy.KkMKXNa yXByT8TS1VgJ3rI8y63w1 X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Sun, 31 Oct 2021 05:57:17 +0000 Received: by kubenode550.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 050087900515a3fcca97652687d405ea; Sun, 31 Oct 2021 05:57:15 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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: Troubles booting Pi2 from USB using bootcode.bin method In-Reply-To: <20211030213553.GA25712@www.zefox.net> Date: Sat, 30 Oct 2021 22:57:12 -0700 Cc: Free BSD Content-Transfer-Encoding: quoted-printable Message-Id: <97151A41-3077-4507-A477-92318605911F@yahoo.com> References: <41C0A656-D898-4381-BB81-034D54CA04A0@yahoo.com> <02806205-6685-41FD-B2D1-415C82FBCF92@yahoo.com> <20211028191635.GA19540@www.zefox.net> <7AC0733A-3FC9-4FA6-A6D7-0689A8ACB4CA@yahoo.com> <20211029182430.GA22414@www.zefox.net> <086D6998-A96F-4560-92C5-4E2CE05FF668@yahoo.com> <20211030213553.GA25712@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4Hhln02lDmz3r8W X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Oct-30, at 14:35, bob prohaska wrote: > On Sat, Oct 30, 2021 at 01:41:52AM -0700, Mark Millard via freebsd-arm = wrote: > . . . > I've captured one failure session at > http://www.zefox.net/~fbsd/rpi2/bootproblems/bootlog-usb3-solo.fail > but cannot reliably reproduce it.=20 Later below I'll list some notes about the failure modes shown in >=20 > http://www.zefox.net/~fbsd/rpi2/bootproblems/ >> When the console offers the >> U-Boot>=20 >> prompt, is that coming from bootcode.bin, or something else? The U-Boot> prompt is from u-boot.bin (i.e., U-Boot itself). This is after bootcode.bin and start.elf do their part of the boot sequence. >> Could anything be learned from trying to boot the armv7-configured >> disk on a Pi3B or B+ ? You could try the same microsd card, USB3 powered hub, and USB3 drive on a RPi3B or RPi3B+ . This would not use the bcm2709-rpi-2-b.dtb = . >> That's a relatively easy experiment. I'm >> trying to use a rather old Pi with a comparatively new USB drive. >> The Pi3s on hand are at least somewhat more modern. >=20 In my RPi2B v1.1 context, when I have access, the USB3 portable SSD is is first generation USB3 as I remember --but does not require a powered hub. Failure mode notes: For: . . . Found 4 ports, multi_tt =3D 0 Enabling PORT POWER on port 1 Enabling PORT POWER on port 2 Enabling PORT POWER on port 3 Enabling PORT POWER on port 4 Waiting for devices to respond to reset Found device on port 1 Found highspeed device Set address 7 Num devices =3D 4, addr =3D 7 get_config_descriptor 85 bytes device class =3D 0 interface_desc[1] =3D 4 Device found: type =3D Mass storage, addr =3D 7 Trying booting from MSD device addr 7 Retrieving the config descriptor Found ep_in =3D 00000001, ep_out =3D 00000002 GetMaxLun returned 0, max_lun =3D 0 Sending and retrying TEST_UNIT_READY Failed to test volume, probably not ready init_msd returned -2 Failed initialising mass storage device Trying booting from Ethernet device addr 5 Trying booting from Ethernet device addr 5 Trying booting from Ethernet device addr 5 . . . This failure mode never even reads a file from the USB3 drive. U-Boot is not relevant. Not even the RPi* firmware on the USB3 drive is relevant. For: . . . U-Boot 2020.10 (Apr 09 2021 - 04:09:01 +0000) DRAM: 948 MiB RPI 2 Model B (0xa21041) MMC: mmc@7e300000: 1 Loading Environment from FAT... In: serial Out: vidconsole Err: vidconsole Net: No ethernet found. starting USB... Bus usb@7e980000: USB DWC2 scanning bus usb@7e980000 for devices... unable to get device descriptor = (error=3D-22) . . . This made it to U-Boot. usb_ready_retry, usb_pgood_delay, and/or usb_max_blk use might help? For: . . . U-Boot 2020.10 (Apr 09 2021 - 04:09:01 +0000) DRAM: 948 MiB Error binding driver 'bcm283x_pinctrl': -12 Error binding driver 'serial_pl01x': -12 Error binding driver 'dwc2_usb': -12 Error binding driver 'sdhci-bcm2835': -12 Error binding driver 'simple_bus': -12 Error binding driver 'bcm2835_video': -12 Some drivers failed to bind Error binding driver 'simple_bus': -12 Some drivers failed to bind initcall sequence 3b3e2498 failed at call 0001a270 (err=3D-12) ### ERROR ### Please RESET the board ### This made it to U-Boot but seems to be a different failure mode. I've no clue about the drivers that "failed to bind" or why. I again wonder about unreliable I/O but have not specific evidence. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)