From nobody Tue May 07 16:57:46 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 4VYkx022F0z5JDDB for ; Tue, 07 May 2024 16:57:56 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4VYkwz3mG1z4X9R for ; Tue, 7 May 2024 16:57:55 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1715101067; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CkmlEVu9I7ToC696sU7SEcAOyG5D40fSTawmVKNkeBE=; b=gR8hB0xy4/OuJTWTlQ7ORQp6IQ2kkbmW46k5QXmo5eMjBfz+P+vyoO6TY1pPi5fBXkRaiC /O15Y2382trL/NGZy6qYmJ3ocshuXSueI/XpqFiLz93fEqv509e8c+FDaHWXevZ5T1wPMU radY+XxG7YU1SiDLMQOuCo6YTJHYD3A= Received: from skull.home.blih.net (lfbn-lyo-1-2174-135.w90-66.abo.wanadoo.fr [90.66.97.135]) by mx.blih.net (OpenSMTPD) with ESMTPSA id f975016e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 7 May 2024 16:57:47 +0000 (UTC) Date: Tue, 7 May 2024 18:57:46 +0200 From: Emmanuel Vadot To: Mike Karels Cc: FreeBSD ARM List Subject: Re: SD card timeouts on older Raspberry Pi 4 models on 14.1-BETA Message-Id: <20240507185746.5b6f87941dd42c9259ff9af1@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd15.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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR] X-Rspamd-Queue-Id: 4VYkwz3mG1z4X9R Hi Mike, On Tue, 07 May 2024 11:50:38 -0500 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. I don't think that kernel itself have some major diff in this area, so it might be u-boot ? But iirc both main and 2024Q2 have the same u-boot version, can you try swapping u-boot from a main image on the 14.1 just to be sure ? Cheers, > 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. > > > -- Emmanuel Vadot