NintendoSwitchPkg icon indicating copy to clipboard operation
NintendoSwitchPkg copied to clipboard

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

Open valpackett opened this issue 5 years ago • 3 comments

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

valpackett avatar Mar 07 '19 23:03 valpackett

@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.

imbushuo avatar Mar 08 '19 07:03 imbushuo

thanks! 32 works

valpackett avatar Mar 08 '19 12:03 valpackett

does this fully work on switch?

Owen-sys avatar Jul 07 '20 20:07 Owen-sys