From nobody Thu Aug 24 14:58:17 2023 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 4RWmRf1nyhz4rGP4 for ; Thu, 24 Aug 2023 14:58:22 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (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 (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RWmRc60w4z4Jfy for ; Thu, 24 Aug 2023 14:58:20 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net; dmarc=none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.17.1/8.15.2) with ESMTPS id 37OEwHM8011022 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 24 Aug 2023 07:58:17 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.15.2/Submit) id 37OEwHIR011021 for freebsd-arm@freebsd.org; Thu, 24 Aug 2023 07:58:17 -0700 (PDT) (envelope-from fbsd) Date: Thu, 24 Aug 2023 07:58:17 -0700 From: bob prohaska To: freebsd-arm@freebsd.org Subject: u-boot error on Pi2, ** fs_devread read error - block Message-ID: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Result: default: False [-0.56 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.97)[-0.974]; MID_RHS_WWW(0.50)[]; WWW_DOT_DOMAIN(0.50)[]; NEURAL_HAM_LONG(-0.49)[-0.485]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[zefox.net]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Spamd-Bar: / X-Rspamd-Queue-Id: 4RWmRc60w4z4Jfy A Pi2 running armv7 alpha1 has presented a new error message not seen before, at least by me. Perhaps it'll be of interest: Resetting system ... U-Boot 2023.07.02 (Aug 11 2023 - 07:47:06 +0000) DRAM: 948 MiB RPI 2 Model B (0xa21041) Core: 75 devices, 12 uclasses, devicetree: board MMC: mmc@7e300000: 1 Loading Environment from FAT... ** Bad device specification mmc 0 ** In: serial Out: vidconsole Err: vidconsole Net: No ethernet found. starting USB... Bus usb@7e980000: USB DWC2 scanning bus usb@7e980000 for devices... cannot reset port 1!? 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 U-Boot> usb storage No storage devices, perhaps not 'usb start'ed..? U-Boot> usb reset resetting USB... Bus usb@7e980000: USB DWC2 scanning bus usb@7e980000 for devices... unable to get device descriptor (error=-22) cannot reset port 1!? cannot reset port 2!? cannot reset port 3!? ** fs_devread read error - block 5 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found U-Boot> [I'd typed control-c thinking it was looping] U-Boot> The machine had just finished a build/install cycle and was attempting to reboot, which had been done successfully prior to that. After a few minute's pause for reflection, I tried: U-Boot> boot MMC Device 0 not found no mmc device at slot 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... No EFI system partition No EFI system partition Failed to persist EFI variables BootOrder not defined EFI boot manager: Cannot load any image MMC Device 2 not found no mmc device at slot 2 Device 0: Vendor: External Rev: 0204 Prod: USB3.0 Type: Hard Disk Capacity: 476940.0 MB = 465.7 GB (976773168 x 512) ... is now current device Since the only u-boot executable is on the USB hard disk it looks like disk discovery is initially successful, but something goes wrong afterward. It looked as if the usb disk was found, but either that message was wrong or the discovery forgotten. Next, the Pi2 alone was powercycled, which remained hung with green LED on. A second powercycle booted successfully, no complaints at all. The system presently reports: bob@generic:~ % uname -a FreeBSD generic 14.0-ALPHA2 FreeBSD 14.0-ALPHA2 armv7 1400096 #2 main-n264996-d5b5497e10fd: Wed Aug 23 16:29:57 UTC 2023 root@generic:/usr/obj/usr/src/arm.armv7/sys/GENERIC arm Thanks for reading, bob prohaska