imbushuo / NintendoSwitchPkg

WIP UEFI EDK2 Implementation for Nintendo Switch or generic Tegra210 platforms
GNU General Public License v2.0
271 stars 21 forks source link

New SD/MMC driver fails to read blocks from the SD card #9

Open valpackett opened 5 years ago

valpackett commented 5 years ago

EFI Shell is displayed instead of bootaa64.efi from the SD card. GPT partitions show up in the EFI Shell.

Replacing the shell with FreeBSD boot1.efi shows "Failed Reading block" errors:

photo

The card is this:

mmcsd0: 16GB <SDHC SL16G 8.0 SN 92C00EE4 MFG 06/2015 by 3 SD> at mmc0 48.0MHz/4bit/65535-block
imbushuo commented 5 years ago

@myfreeweb In https://github.com/imbushuo/NintendoSwitchPkg/blob/da0dd9a0a3db451d422083a42cede3553a0d7bcf/Drivers/SdMmcDxe/EfiBlkDeviceOp.c#L86 Can you try to modify 128 to some smaller value to see if situation improves?

1 will absolutely work, but probably too slow. This value shall be adaptive and I think SDMMC1 auto calibration is necessary to be added later.

valpackett commented 5 years ago

thanks! 32 works

Owen-sys commented 4 years ago

does this fully work on switch?