Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77675C433F5 for ; Tue, 28 Sep 2021 17:43:32 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9D52561352 for ; Tue, 28 Sep 2021 17:43:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9D52561352 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=setera.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BCE1782DA7; Tue, 28 Sep 2021 19:43:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=setera.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=setera-org.20210112.gappssmtp.com header.i=@setera-org.20210112.gappssmtp.com header.b="xd1xoAkU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4DF8582EA5; Tue, 28 Sep 2021 19:38:44 +0200 (CEST) Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3F5DA82D88 for ; Tue, 28 Sep 2021 19:38:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=setera.org Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=craigjunk@setera.org Received: by mail-il1-x133.google.com with SMTP id r9so2686443ile.5 for ; Tue, 28 Sep 2021 10:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=setera-org.20210112.gappssmtp.com; s=20210112; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=UTkb5eo0IavR9y0DjvlzKqPbEZMEJ+ujHo5HO51812s=; b=xd1xoAkU/Egl7ghz/5pl3QUt1QIy4Udl404eWvtOPW/N0sZaD8hbiyR/vSmTJryMTm wL61wfIgPgoKCTiiwWnRvzb9Nfs5CxDNTQ0UNghRVPCytvE5EVMVUqovotsVH9S+HbXH kP4s8n6woEJ07yYbtpQLXJaXDjLbKj96KnsZPp3WFjgmjDPGtDRl12BeAIuFFBKJQ779 lsMLHMXqU9YcBj1pcebb64+182+K5ik3xJQ6UcTBdSzd6DUwjo20q8bHfL/3Jqqza7ru XgKCaXKGWh8S52vgFiadj7shbnOYiTUz2t+5vMaPb/7rWNP+j+XioiWsX5RoTj4adRVn GDkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=UTkb5eo0IavR9y0DjvlzKqPbEZMEJ+ujHo5HO51812s=; b=zBW5GjCz6mNsYUP4ESLQMF4IfzLWqCPvfzBx4kt34z6x5IsGdhFkgePPu0RpRWk8F3 5FT7aqWghcodYUCx6gTmuwKiC18ozcYtMFhqps5B5WcHxLwqZxwgTn7DNGXRLnMemq0e ueJT4Ik4NBbiPmPHLOCNmfq4mSVToWGog0bJdVMh5ybd55Cfr26Lj3/5GxxFXjzYShpP fGRLr7wJImSiPRJQi+qvUDQ2N7oXM4rXw7rTxpYE6yXokjfM5Uavou5UFWvqNeEQ4G1o 61iE7uaPHQnjvSc04+Im42Qm7joJyZwHZOspu6vyOJG9UaaOVesRJRZlyyj0j0go4ToH ARtA== X-Gm-Message-State: AOAM530PqaEaKcQ4pAgXjn44VaUXrfY9zLQtkZi5j/x5/Jc/F2GWhs4d vob2+nBeE1zoqs3UP06AMH9u5V4ZCYuvXA== X-Google-Smtp-Source: ABdhPJyNc0jfdDpPXELGFdGL5029RmZCCnqYIAp8R+9AVoiJ7VNx62jsp7wUGl2+L/Bmb/4IlioReg== X-Received: by 2002:a05:6e02:1a0b:: with SMTP id s11mr5434742ild.65.1632850718496; Tue, 28 Sep 2021 10:38:38 -0700 (PDT) Received: from [192.168.0.10] ([206.146.88.252]) by smtp.gmail.com with ESMTPSA id d1sm5052842ils.25.2021.09.28.10.38.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Sep 2021 10:38:38 -0700 (PDT) To: u-boot@lists.denx.de From: Craig Setera Subject: error -22 whilst initialising SD Card - New Raspberry Pi 4b 4GB (C0 stepping) Message-ID: Date: Tue, 28 Sep 2021 12:38:36 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Language: en-US X-Mailman-Approved-At: Tue, 28 Sep 2021 19:43:28 +0200 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hello, I wasn't quite sure where to report this, so I figured I would start with the mailing list.  If there is another place I should go, please feel free to redirect me. I'm a user if IPFire which uses u-boot.  I recently bought a new Raspberry Pi 4b 4gb device, but it fails to boot with a loop that says: |invalid bus width error -22 whilst initialising SD Card |I originally opened up a bug report with the IPFire team (https://bugzilla.ipfire.org/show_bug.cgi?id=12690), but it now appears that this is a|but somewhere in u-boot. I downloaded an Ubuntu 20.04 image that behaves the same way. As I stated in the IPFire issue, I'm seeing this behavior on a Raspberry Pi, but not on an older device. I ran a number of tests:| To validate that this is an issue with newer hardware, I was able to take advantage of another Pi 4 that is probably a year or so old in my Retropie setup. I used that Pi and a Samsung 32G EVO SD card. I tried the following combinations, all with a monitor and keyboard attached (and SERIAL set to off in uEnv.txt): * RaspiOS - "old" Pi 4 - Works * RaspiOS - "new" Pi 4 - Works * IPFire - "old" Pi 4 - Works * IPFire - "new" Pi 4 - Boot loops As discussed in the forum thread, this looks suspiciously like an issue with U-Boot on newer Pi 4 hardware as discussed here: *https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255080 *https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255080#c47 Craig ||