[SeaBIOS] Failure to detect high-capacity SD card
Chris
coderight at gmail.com
Fri Aug 24 15:48:27 CEST 2018
On Fri, Aug 24, 2018 at 9:28 AM, Chris <coderight at gmail.com> wrote:
> So far it has worked on the first attempt every time. So it needs only
> the delay and nothing else.
>
> I still need to test with all my SD cards. Though I only have a 64GB
> Sandisk and a handful of 32GB Samsung. The question is whether or not
> the delay is dependent on the card type or if it's just the controller
> that needs to stabilize.
OK, I tested all the cards I have and everything works. Attached is
the simplified patch. Hopefully someone can test other cards. I'm
interested to know if 128+GB and 16GB works.
Chris
-------------- next part --------------
diff --git a/src/hw/sdcard.c b/src/hw/sdcard.c
index 6410340..910bc58 100644
--- a/src/hw/sdcard.c
+++ b/src/hw/sdcard.c
@@ -501,6 +501,9 @@ sdcard_controller_setup(struct sdhci_s *regs, int prio)
if (volt < 0)
return;
+ // Let card/controller stabilize
+ msleep(5);
+
// Initialize card
struct sddrive_s *drive = malloc_fseg(sizeof(*drive));
if (!drive) {
More information about the SeaBIOS
mailing list