armbian-build/config
Sven-Ola Tuecke 2be970ac84 OrangePi-RV2: Speedup for fast SD cards with the Linux MMC kernel driver.
Disable U-Boot CONFIG_MMC_UHS_SUPPORT otherwise a fast SD card does not
report "1.8 Volt mode switch possible" on kernel init which in turn does
not enable SDR104 for my SDXC card.

Fast mode ok is visible in the kernel log after booting from SD card:

root@orangepirv2:~# dmesg |grep mmc
[    2.198816] mmc0: SDHCI controller on d4280000.sdh [d4280000.sdh] using ADMA
[    2.224576] mmc1: SDHCI controller on d4280800.sdh [d4280800.sdh] using ADMA
[    2.272657] mmc0: set tx_delaycode: 159
[    2.273950] mmc0: pass window [6 68)
[    2.276301] mmc0: pass window [72 198)
[    2.277591] mmc0: pass window [219 255)
[    2.277599] mmc0: tuning done, use the firstly delay_code:134
[    2.277611] mmc0: new ultra high speed SDR104 SDXC card at address b36b

With UHS already enabled in u-boot, no tuning and no SDR104 mode is switched on
in the Linux kernel. Seems to be a side effect of an un-complete mmc_deinit() in
u-boot/driver/mmc/mmc.c. With MMC_UHS_SUPPORT disabled, the SD card does report
SD_ROCR_S18A with then leads to enter spacemit_sdhci_execute_sw_tuning() and the
subsequent switch to SDK104 or probably other 1.8 Volt modes is fine. This is at
least true for my OrangePi RV2 board.

Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
..
boards OrangePi-RV2: Speedup for fast SD cards with the Linux MMC kernel driver. 2026-02-19 22:10:34 -05:00
bootenv Address rpardini review round 2: major cleanup 2026-01-12 13:18:53 +01:00
bootscripts fix: address review comments 2026-01-12 13:18:53 +01:00
cli create generic config/dir for ubuntu questing to allow boot questing images 2026-01-16 08:10:03 -05:00
desktop Enable riscv64 arhitecture on riscv64. It is slow but it works. 2026-02-03 18:14:41 +01:00
distributions Add Ubuntu 25.10 / 26.04 questing and resolute as csc build target, demote Bookworm to csc 2025-11-15 23:09:24 +01:00
its
kernel RV1106: Reduce kernel memory footprint 2026-02-15 20:18:10 +01:00
optional followup #9164 2ba07662b - add ubuntu resolute,questing to optional-cli 2026-02-01 00:40:32 +01:00
sources RV1106: Reduce kernel memory footprint 2026-02-15 20:18:10 +01:00
templates config/templates: introduce targets-all-kernels.yaml for optimized kernel inventory-ing 2025-11-17 12:21:10 +01:00
aptly-temp.conf
armbian.key Armbian repository signining: add new key 2025-06-25 07:50:18 +02:00