From nobody Thu Aug 01 13:01:26 2024 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 4WZTcc1S3zz5Skny for ; Thu, 01 Aug 2024 13:01:36 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mail.bsd4all.net (mail.bsd4all.net [94.130.200.20]) (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 ECDSA (P-384) client-digest SHA384) (Client CN "mail.bsd4all.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WZTcb0RXvz44XL for ; Thu, 1 Aug 2024 13:01:34 +0000 (UTC) (envelope-from herbert@gojira.at) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gojira.at header.s=mail202005 header.b=ssCyVjvJ; dmarc=none; spf=pass (mx1.freebsd.org: domain of herbert@gojira.at designates 94.130.200.20 as permitted sender) smtp.mailfrom=herbert@gojira.at Date: Thu, 01 Aug 2024 15:01:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gojira.at; s=mail202005; t=1722517286; bh=94VCZqcJv5DrEp3vMDgC/B7olLXQLtbK4DWmcfF4Eu0=; h=Date:Message-ID:From:To:Subject:MIME-Version:Content-Type; b=ssCyVjvJLzo5sAPUj1Dzq/YDd5LRmwZwbrN4d2A5FMH8MxLgp0lhcOmmKQhaEhcBz DGT942jZrYlFJfDQSs7n0N9VRNpYQSKQXJ1C8tcZNpc/z4FT3kMRXLqF0iE1Qgh9pG Tx7hWMVcO7rJ6gZK2UwMWHwxB4Z3tqBHWTa1Lw39fcaaYeAC3gsZr5M5H0hi7Luubg g60guXRUSkEdK1yy+7NA+F0XGVvIo54wcAxN04Vd7VAYTRZRDrdUMXo9fSHcAPYf/c zK2C/XPHOlolMJcDvWKj0rjazX6lMb8Ccmx4o8w7iRvhnt5i3ilC4xmyGgddcfsYxh RCP/yb39PkzJw== Message-ID: <8734notn15.wl-herbert@gojira.at> From: "Herbert J. Skuhra" To: Subject: Re: SD card timeouts on older Raspberry Pi 4 models on 14.1-BETA In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/31.0 Mule/6.0 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 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.48 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.980]; R_DKIM_ALLOW(-0.20)[gojira.at:s=mail202005]; R_SPF_ALLOW(-0.20)[+ip4:94.130.200.20]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:24940, ipnet:94.130.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[gojira.at]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gojira.at:+] X-Rspamd-Queue-Id: 4WZTcb0RXvz44XL On Tue, 07 May 2024 18:50:38 +0200, Mike Karels wrote: > > I tried to install 14.1-BETA1 on one of the first-generation Raspberry Pi 4 > systems. The kernel loads and starts, but is unable to mount the root file > system due to timeout errors like this: > > sdhci_bcm1-slot0: Controller timeout > [register dump] > mmcsd0: Error indicated: 1 Timeout > [several timeouts later] > Mounting from ufs:/dev/ufs/rootfs failed with error 19. > > Mark Millard also saw the error on a similar-vintage RPi4, but not on a newer > model (C0T). The EEPROM had been updated on his older RPi4 recently; my > EEPROM was updated a year or so ago. My RPi3 boots also; it seems to use > the same driver for the sdhci. I have used the same SD card for both BETA1 > and a recent snapshot of -current, with only BETA1 failing. If I recall > correctly, 14.0 worked on the SD card too. > > I tested several recent snapshots of -current, and they seemed to work without > problems. I haven't noticed relevant differences between 14.1 and -current, > e.g. the sdhci controller driver, but something must be different. Anyone have > an idea, or suggestion on where to look? It would be nice to resolve this > before 14.1-RELEASE. > > Mike > > Excerpts from the boot log: > > sdhci_bcm1: mem 0x7e340000-0x7e3400ff irq 79 on simplebus1 > mmc1: on sdhci_bcm1 > ... > mmcsd0: 63GB at mmc1 50.0MHz/4bit/65535-block > ... > sdhci_bcm1-slot0: Controller timeout > sdhci_bcm1-slot0: ============== REGISTER DUMP ============== > sdhci_bcm1-slot0: Sys addr: 0x000000c8 | Version: 0x00001002 > sdhci_bcm1-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000001 > sdhci_bcm1-slot0: Argument: 0x0747afff | Trn mode: 0x00000012 > sdhci_bcm1-slot0: Present: 0x1fff0a06 | Host ctl: 0x00000007 > sdhci_bcm1-slot0: Power: 0x0000000f | Blk gap: 0x00000080 > sdhci_bcm1-slot0: Wake-up: 0x00000000 | Clock: 0x00000107 > sdhci_bcm1-slot0: Timeout: 0x00000003 | Int stat: 0x00000021 > sdhci_bcm1-slot0: Int enab: 0x01ff003b | Sig enab: 0x01ff0008 > sdhci_bcm1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000 > sdhci_bcm1-slot0: Caps: 0x45ee6432 | Caps2: 0x0000a525 > sdhci_bcm1-slot0: Max curr: 0x00080008 | ADMA err: 0x00000000 > sdhci_bcm1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000 > sdhci_bcm1-slot0: =========================================== > mmcsd0: Error indicated: 1 Timeout > ... > mmcsd0: Error indicated: 1 Timeout > mountroot: waiting for device /dev/ufs/rootfs... > Mounting from ufs:/dev/ufs/rootfs failed with error 19. Could you resolve this issue? I am running stable/14-n268234-f5fabf3dcfb on my Raspberry Pi 4 and have the same issue after updating U-Boot from 2024.01 to 2024.04. :-( Do I/we need a newer firmware?