From nobody Sat Jul 02 19:00:02 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 4065E8ABA0B for ; Sat, 2 Jul 2022 19:00:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-20.consmr.mail.gq1.yahoo.com (sonic306-20.consmr.mail.gq1.yahoo.com [98.137.68.83]) (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 4Lb1bh1GQqz4VGC for ; Sat, 2 Jul 2022 19:00:16 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1656788409; bh=YtrRQR6voBwM7heK6x6Cv0K1MqT6+aBYPJsWPzOBh7A=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=ou1I/8FcDvFydKqE49IqRrXXzTtNno+ooDbapRE8bH3IAA7Vo1W+2h2bvXmtFhwpr60H+iLBF6GzFMd0BvJaqKjjUdfNfpbmNgYlxb7Yc7XH4aX0rq0JZAyFBeluQVqhuv9GY+6nTlu1n/WfoT220m85pGN5f0t5xOE8lb3H2SXPfstLxooi87rLq8A9Mjm0Qsu+wThLIbM1D7oEHRuv+KlU83wOD9uq+ULvl/L3kJVp27k+MvB3ToWrUBLeQyuRdH2NxabbIeP9nCS10HvIgqPOdWi6BS8fEfrpyO8p/2E5SM+UgrbtwaRSqWGayxjhEsMEGXVN/BtEsaJWRKSovw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1656788409; bh=UaHR+UAMXoji7Qq0RWI0alMq16QHElCF5YJqOxfv8d7=; h=X-Sonic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EmhnPO2OjzLhU16HKynNNE3Te4FBAW.hdyzkN4VkJVs419gl Q6_CQocWkL0yrPE3BbOlwqVemAqUE0xSret7_6d.ivwtv_udEMZbv8g9RtYFfZhGI4gCb1ugiSu7 uWsmFjI1OyNFDYRk3jQxDnb3jn7E3b2QyjRCupK6V.9XfNGfc7HxA2ggs3RYqJVzUnBvr6x_uarv w_pZoizdhoAs3WrNEz7IOApqm4LRz5qA4dxm7fem7vYoPP0GSwclNHi2NtPndh0ygy0KvuIy4rya Y3eQv_8VwGFEIR55yA7LZs7pe0gCFhVieDbr4m2mpfPWQes.C3VASIcJjRdHEQNq6RHIdRw8BHet 1KoaNdsTrYixC9HCJTQKzzjI2I.b67nZT2eDH3GIJetwTuC1EXrlttmLoSyf_x5c8kMNjBQ8UEVD phMzil1l1_zOk4NQKSyyQ7Mxrauq7f36lS.B4wWamwiy2YNGB1TmLtdEmbfXChxkESirVEXdo5gv jeocwc_gNqbMbDt5phRQWi62TOFP5pj85kep_lZ6DXDTYliIhlsWTpTCl24LIVkmSSpQ19W9eGke EZA-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Sat, 2 Jul 2022 19:00:09 +0000 Received: by hermes--production-ne1-7864dcfd54-mdwhz (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 87f564464f20f5e1e07c8125370ff282; Sat, 02 Jul 2022 19:00:04 +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: RPi3 usb boot hang on stable/13 From: Mark Millard In-Reply-To: <3BDD64A4-8BC3-4E14-B17C-1958F6CBB87F@yahoo.com> Date: Sat, 2 Jul 2022 12:00:02 -0700 Cc: Free BSD Content-Transfer-Encoding: quoted-printable Message-Id: <24D669B0-728D-4910-884A-B2230AE442F9@yahoo.com> References: <20220702165800.GA10701@www.zefox.net> <3BDD64A4-8BC3-4E14-B17C-1958F6CBB87F@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4Lb1bh1GQqz4VGC X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="ou1I/8Fc"; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.83 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 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)[]; 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)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.83:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; 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-Jul-2, at 10:34, Mark Millard wrote: > On 2022-Jul-2, at 09:58, bob prohaska wrote: >=20 >> Lately an RPi3 running stable/13 has started hanging on boot from USB >> The disk is on a powered hub. >>=20 >> When gracefully rebooted it ends with: >>=20 >> ..... >> MESS:00:00:03.166523:0: Device tree loaded to 0x4000 (size 0x63cd) >> MESS:00:00:03.172180:0: uart: Set PL011 baud rate to 103448.300000 Hz >> MESS:00:00:03.178716:0: uart: Baud rate change done... >> MESS:00:00:03.182145:0: uart: Baud rate change done... >> MESS:00:00:03.187830:0: gpioman: gpioman_get_pin_num: pin = SDCARD_CONTROL_POWER not defined >> MMC: mmc@7e300000: 1 >> Loading Environment from FAT... OK >> In: serial >> Out: vidconsole >> Err: vidconsole >> Net: No ethernet found. >> starting USB... >> Bus usb@7e980000: scanning bus usb@7e980000 for devices... 6 USB = Device(s) found >> scanning usb for storage devices... 1 Storage Device(s) found >> Hit any key to stop autoboot: 0=20 >>=20 >> Device 0:=20 >=20 > That is U-Boot output. Looks like the output stopped before > the load of even the FreeBSD loader: FreeBSD is not involved > yet so it is not a FreeBSD problem. Hmm. I looked at an old RPI3 boot-session log I have around and it shows more text than you report. Is your serial connection having problems? An example that is missing is the line "U-Boot . . ." that identifies the version and build time of U-Boot. That is rather generic material to be missing. (I did not have a microsd card present. Such could be an example of expected differences.) QUOTE (of a similar range of text) MESS:00:00:03.285409:0: Device tree loaded to 0x4000 (size 0x7640) MESS:00:00:03.292968:0: uart: Set PL011 baud rate to 103448.300000 Hz MESS:00:00:03.299261:0: uart: Baud rate change done... MESS:00:00:03.302695:0: uart: Baud rate change done... MESS:00:00:03.308421:0: gpioman: gpioman_get_pin_num: pin = SDCARD_CONTROL_POWER not defined U-Boot 2022.04 (Apr 23 2022 - 03:14:35 +0000) DRAM: 948 MiB RPI 3 Model B (0x2a02082) Core: 72 devices, 10 uclasses, devicetree: board MMC: mmc@7e300000: 2 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... 4 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Hit any key to stop autoboot: 2 1 0=20 MMC Device 0 not found no mmc device at slot 0 MMC Device 1 not found no mmc device at slot 1 switch to partitions #0, OK mmc2 is current device Scanning mmc 2:1... libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk mmc@7e300000.blk... Scanning disk usb_mass_storage.lun0... Found 9 disks Missing RNG device for EFI_RNG_PROTOCOL ** Unable to read file ubootefi.var ** Failed to load EFI variables BootOrder not defined EFI boot manager: Cannot load any image Device 0: Vendor: Samsung Rev: 0 Prod: PSSD T7 Touch =20 Type: Hard Disk Capacity: 953869.7 MB =3D 931.5 GB (1953525168 x 512) ... is now current device Scanning usb 0:1... END QUOTE There is the difference (yours then mine): MMC: mmc@7e300000: 1 vs. MMC: mmc@7e300000: 2 I wonder it if is some sort of clue about something. >> At that point the console is unresponsive.=20 >=20 > Nasty. >=20 >> The machine has a history of not always finding the USB disk, but = this >> appears to be new behavior. As with the disk discovery problem, the >> error can be worked around by simple repetition. Once booted it's=20 >> stable but network response remains erratic. >>=20 >> There's some indication that power-cycling the hard disk helps. >>=20 >> At the moment uname -a reports >>=20 >> FreeBSD pelorus.zefox.org 13.1-STABLE FreeBSD 13.1-STABLE #5 = stable/13-n251597-7c500f98b8d: Fri Jul 1 21:52:12 PDT 2022 = bob@pelorus.zefox.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 >=20 > But FreeBSD is not involved yet at the failure point. >=20 > What vintage of U-Boot? >=20 > # strings u-boot.bin | grep "U-Boot 20" >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com