From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 0EC22C54EBD for ; Mon, 9 Jan 2023 13:31:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ACDF385690; Mon, 9 Jan 2023 14:31:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=diskos.nl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=diskos.nl header.i=@diskos.nl header.b="J1/d5xt8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EC40082FE7; Mon, 9 Jan 2023 13:03:01 +0100 (CET) Received: from smtp.delft.diskos.nl (smtp.delft.diskos.nl [45.80.169.141]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AF6E8852E2 for ; Mon, 9 Jan 2023 13:02:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=diskos.nl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joost@diskos.nl Received: from [10.135.128.1] (smtp.delft.diskos.nl [45.80.169.141]) by smtp.delft.diskos.nl (Postfix) with ESMTPSA id 7BF358AF94 for ; Mon, 9 Jan 2023 13:02:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=diskos.nl; s=mail; t=1673265777; bh=hSWBy2ccNI4KcycDhX7g4lG16DmGi2f2YmyZ1sJaiyk=; h=Date:From:Subject:To:From; b=J1/d5xt8qCWUCqFeWO5C+TA2hgblxX56//iUwCMsPRIICYP7hiz4nD4PRszPdIUxt b+HYw0sVN3yRkBbVMfXEH/TpAR5/EhaYFuwFMrtjTpF4QIx8C8uyfFXogbOgKTuEhQ bB1qEiIxjgFb1Gl9h3s0CGPwps/cKB7lXlek0KFT212FVO2u+Kqq8MpGg5yWoBFDAK tk3LBhRhylhcLt16MaQG0naUTpMTgMsgG7icPv0nFroTc2IxAY9bldkLvMHdevbqif OBw7FhF7OhoSM8YqOwa/HzZ6fQ+JLrsKodyTgcXE3P6YZVgwHTaykZWpwwuEtWQIPd nTW0WrN9PoAmQ== Date: Mon, 09 Jan 2023 13:02:52 +0100 From: Joost van Zwieten Subject: regression on Odroid U2: can't read from SD card To: u-boot@lists.denx.de Message-Id: X-Mailer: geary/3.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Mailman-Approved-At: Mon, 09 Jan 2023 14:30:29 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean Dear maintainers, As of commit 4a3ea75de4c5b3053eac326bf1c753ed65df8cb9 (somewhere between v2021.07 and v2021.10) U-Boot on my Odroid U2 can't read files from an SD card (despite being loaded from the SD card itself). During initialization loading the environment from the SD card fails (NOTE: the environment is zeroed): U-Boot 2021.10-rc3-00055-g4a3ea75de4 (Jan 09 2023 - 10:29:52 +0100) CPU: Exynos4412 @ 1 GHz Model: Odroid based on Exynos4412 Type: u3 DRAM: 2 GiB LDO20@VDDQ_EMMC_1.8V: set 1800000 uV; enabling LDO22@VDDQ_EMMC_2.8V: set 2800000 uV; enabling LDO21@TFLASH_2.8V: set 2800000 uV; enabling MMC: SAMSUNG SDHCI: 2, EXYNOS DWMMC: 0 Loading Environment from MMC... sdhci_send_command: Timeout for status update! mmc fail to send stop cmd *** Warning - !read failed, using default environment Boot device: MMC(2) Net: No ethernet found. Hit any key to stop autoboot: 0 In the U-Boot shell, running `ls mmc` and `load mmc` fails: Odroid # mmc list SAMSUNG SDHCI: 2 (SD) EXYNOS DWMMC: 0 Odroid # ls mmc 2:1 /boot sdhci_send_command: Timeout for status update! mmc fail to send stop cmd ** fs_devread read error - block Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** Odroid # load mmc 2:1 0x41000000 /boot/vmlinuz-5.10.0-20-armmp sdhci_send_command: Timeout for status update! mmc fail to send stop cmd ** fs_devread read error - block Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** Can't set block device For reference, running the same commands using the parent of commit 4a3ea75d gives U-Boot 2021.10-rc3-00054-g4412fd8ba2 (Jan 09 2023 - 12:22:54 +0100) CPU: Exynos4412 @ 1 GHz Model: Odroid based on Exynos4412 Type: u3 DRAM: 2 GiB LDO20@VDDQ_EMMC_1.8V: set 1800000 uV; enabling LDO22@VDDQ_EMMC_2.8V: set 2800000 uV; enabling LDO21@TFLASH_2.8V: set 2800000 uV; enabling MMC: SAMSUNG SDHCI: 2, EXYNOS DWMMC: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment Boot device: MMC(2) Net: No ethernet found. Hit any key to stop autoboot: 0 Odroid # mmc list SAMSUNG SDHCI: 2 (SD) EXYNOS DWMMC: 0 Odroid # ls mmc 2:1 /boot 4096 . 4096 .. 250461 config-5.10.0-20-armmp 4973056 vmlinuz-5.10.0-20-armmp 4096 dtbs 83 System.map-5.10.0-20-armmp 22231585 initrd.img-5.10.0-20-armmp 46 dtb-5.10.0-20-armmp 46 dtb 3491 boot.scr Odroid # load mmc 2:1 0x41000000 /boot/vmlinuz-5.10.0-20-armmp 4973056 bytes read in 181 ms (26.2 MiB/s) I'm building U-Boot using the default config for board `odroid` and boot the Odroid from an SD card with firmware (`bl1`, `bl2` and `tzsw`) from Hardkernel's clone of the u-boot repository [1]. There are no peripherals connected apart from the SD card and the serial console. Please let me know if you need more information. Best, Joost [1]: https://github.com/hardkernel/u-boot/tree/33e05ffb159141b640571e91470172d83a2a1273/sd_fuse