uboot-rockchip: fix boot issues with some SD cards nanopi-r2s-sd-uhs
authorDavid Bauer <mail@david-bauer.net>
Tue, 21 Nov 2023 07:47:11 +0000 (08:47 +0100)
committerDavid Bauer <mail@david-bauer.net>
Tue, 21 Nov 2023 07:49:04 +0000 (08:49 +0100)
commite00ea5db419331815170a90b93b4b530f67a5799
tree09906fa381c3dd2b03177ec3b5f1650e7aec7fc9
parent2634d3f855ee3ca97a311512c0717cf84a8e274a
uboot-rockchip: fix boot issues with some SD cards

Some SD cards fail to boot with the NanoPi R2S

--Snip--
U-Boot TPL 2021.07-OpenWrt-r23596+6-7c43ced160 (Aug 21 2023 - 21:16:14)
DDR4, 333MHz
BW=32 Col=10 Bk=4 BG=2 CS0 Row=15 CS=1 Die BW=16 Size=1024MB
Trying to boot from BOOTROM
Returning to boot ROM...

U-Boot SPL 2021.07-OpenWrt-r23596+6-7c43ced160 (Aug 21 2023 - 21:16:14 +0000)
Trying to boot from MMC1
mmc_load_image_raw_sector: mmc block read error
SPL: failed to boot from all boot devices
--Snap--

Removing the UHS capabilities from the MMC controller makes them boot
again. Linux itself still uses the UHS capabilities.

Signed-off-by: David Bauer <mail@david-bauer.net>
package/boot/uboot-rockchip/patches/106-nanopi-r2s-sd-card-stability.patch [new file with mode: 0644]
package/boot/uboot-rockchip/src/of-platdata/nanopi-r2c-rk3328/dt-plat.c
package/boot/uboot-rockchip/src/of-platdata/nanopi-r2s-rk3328/dt-plat.c