AI-64 - SD Problems

I’m wondering if I may have a hardware issue here, maybe someone would know what to check.

I have been using SD cards while messing around with anything that may cause problems with booting.

I have tried 4 cards, all good quality and am getting problems booting from the cards, sometimes fine, mostly issues.

The first sign of problems is an issue reading the status registerL

[    5.866556] Run /init as init process
[    5.873641] mmc1: problem reading SD Status register
Loading, please wait...

then it goes to pot

Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.

Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
[   14.070272] mmc1: error -110 whilst initialising SD card
Begin: Running /scripts/local-block ... done.
[   14.552510] mmc1: error -110 whilst initialising SD card
[   15.044409] mmc1: error -110 whilst initialising SD card
Begin: Running /scripts/local-block ... done.
[   15.549037] mmc1: error -110 whilst initialising SD card
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
...
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.

Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/mmcblk1p2 does not exist.  Dropping to a shell!

or here is another card:

[    5.846131] mmc1: new ultra high speed DDR50 SDHC card at address 0001
[    5.853209] mmcblk1: mmc1:0001 00000 29.3 GiB 
Loading, please wait...
[    5.858906] mmc1: Got data interrupt 0x00000002 even though no data operation was in progress.
[    5.868417] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[    5.874839] mmc1: sdhci: Sys addr:  0x00000008 | Version:  0x00001004
[    5.881260] mmc1: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000007
[    5.887681] mmc1: sdhci: Argument:  0x00000000 | Trn mode: 0x00000033
[    5.894101] mmc1: sdhci: Present:   0x01f70000 | Host ctl: 0x0000001f
[    5.900522] mmc1: sdhci: Power:     0x0000000f | Blk gap:  0x00000080
[    5.906943] mmc1: sdhci: Wake-up:   0x00000000 | Clock:    0x00000207
[    5.913363] mmc1: sdhci: Timeout:   0x00000000 | Int stat: 0x00000000
[    5.919783] mmc1: sdhci: Int enab:  0x03ff008b | Sig enab: 0x03ff008b
[    5.926203] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[    5.932625] mmc1: sdhci: Caps:      0x3fe8c801 | Caps_1:   0x18002407
[    5.939045] mmc1: sdhci: Cmd:       0x00000c1a | Max curr: 0x00000000
[    5.945466] mmc1: sdhci: Resp[0]:   0x00000b00 | Resp[1]:  0x00ea3f7f
[    5.951886] mmc1: sdhci: Resp[2]:   0x325b5900 | Resp[3]:  0x00000900
[    5.958306] mmc1: sdhci: Host ctl2: 0x0000000c
[    5.962733] mmc1: sdhci: ADMA Err:  0x00000000 | ADMA Ptr: 0x000000089511420c
[    5.969848] mmc1: sdhci: ============================================
[    5.978673] mmc1: Got data interrupt 0x00000002 even though no data operation was in progress.
[    5.987265] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[    5.993686] mmc1: sdhci: Sys addr:  0x00000008 | Version:  0x00001004
[    6.000107] mmc1: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000007
[    6.006528] mmc1: sdhci: Argument:  0x00000000 | Trn mode: 0x00000033
[    6.012950] mmc1: sdhci: Present:   0x01f70000 | Host ctl: 0x0000001e
[    6.019370] mmc1: sdhci: Power:     0x0000000f | Blk gap:  0x00000080
[    6.025791] mmc1: sdhci: Wake-up:   0x00000000 | Clock:    0x00000207
[    6.032211] mmc1: sdhci: Timeout:   0x00000000 | Int stat: 0x00000000
[    6.038631] mmc1: sdhci: Int enab:  0x03ff008b | Sig enab: 0x03ff008b
[    6.045051] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[    6.051471] mmc1: sdhci: Caps:      0x3fe8c801 | Caps_1:   0x18002407
[    6.057892] mmc1: sdhci: Cmd:       0x00000c1a | Max curr: 0x00000000
[    6.064312] mmc1: sdhci: Resp[0]:   0x00000b00 | Resp[1]:  0x00ea3f7f
[    6.070734] mmc1: sdhci: Resp[2]:   0x325b5900 | Resp[3]:  0x00000900
[    6.077154] mmc1: sdhci: Host ctl2: 0x0000000c
[    6.081582] mmc1: sdhci: ADMA Err:  0x00000000 | ADMA Ptr: 0x000000089511420c
[    6.088696] mmc1: sdhci: ============================================
Starting version 247.3-7
[    6.266354] mmc1: tried to HW reset card, got error -84
[    6.275404] blk_update_request: I/O error, dev mmcblk1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    6.289266] blk_update_request: I/O error, dev mmcblk1, sector 1 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    6.303076] blk_update_request: I/O error, dev mmcblk1, sector 2 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    6.316938] blk_update_request: I/O error, dev mmcblk1, sector 3 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    6.330774] blk_update_request: I/O error, dev mmcblk1, sector 4 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    6.344622] blk_update_request: I/O error, dev mmcblk1, sector 5 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    6.358441] blk_update_request: I/O error, dev mmcblk1, sector 6 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    6.372247] blk_update_request: I/O error, dev mmcblk1, sector 7 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    6.382463] Buffer I/O error on dev mmcblk1, logical block 0, async page read
[    6.393641] mmc1: Got data interrupt 0x00000002 even though no data operation was in progress.
[    6.402235] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[    6.408657] mmc1: sdhci: Sys addr:  0x00000008 | Version:  0x00001004
[    6.415078] mmc1: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000007
[    6.421499] mmc1: sdhci: Argument:  0x00000000 | Trn mode: 0x00000033
[    6.427920] mmc1: sdhci: Present:   0x01f70000 | Host ctl: 0x0000001b
[    6.434341] mmc1: sdhci: Power:     0x0000000f | Blk gap:  0x00000080
[    6.440762] mmc1: sdhci: Wake-up:   0x00000000 | Clock:    0x0000fa07
[    6.447183] mmc1: sdhci: Timeout:   0x00000000 | Int stat: 0x00000001
[    6.453605] mmc1: sdhci: Int enab:  0x03ff008b | Sig enab: 0x03ff008b
[    6.460026] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000001
[    6.466448] mmc1: sdhci: Caps:      0x3fe8c801 | Caps_1:   0x18002407
[    6.472868] mmc1: sdhci: Cmd:       0x00000c1a | Max curr: 0x00000000
[    6.479289] mmc1: sdhci: Resp[0]:   0x00000b00 | Resp[1]:  0x30101bcb
[    6.485710] mmc1: sdhci: Resp[2]:   0x30303030 | Resp[3]:  0x00000900
[    6.492130] mmc1: sdhci: Host ctl2: 0x00000008
[    6.496558] mmc1: sdhci: ADMA Err:  0x00000000 | ADMA Ptr: 0x000000089511420c
[    6.503672] mmc1: sdhci: ============================================
[    6.514436] mmc1: Got data interrupt 0x00000002 even though no data operation was in progress.
[    6.523031] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[    6.529453] mmc1: sdhci: Sys addr:  0x00000008 | Version:  0x00001004
[    6.535876] mmc1: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000007
[    6.542298] mmc1: sdhci: Argument:  0x00000000 | Trn mode: 0x00000033
[    6.548719] mmc1: sdhci: Present:   0x01f70000 | Host ctl: 0x0000001b
[    6.555141] mmc1: sdhci: Power:     0x0000000f | Blk gap:  0x00000080
[    6.561562] mmc1: sdhci: Wake-up:   0x00000000 | Clock:    0x0000fa07
[    6.567982] mmc1: sdhci: Timeout:   0x00000000 | Int stat: 0x00000001
[    6.574403] mmc1: sdhci: Int enab:  0x03ff008b | Sig enab: 0x03ff008b
[    6.580824] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000001
[    6.587244] mmc1: sdhci: Caps:      0x3fe8c801 | Caps_1:   0x18002407
[    6.593665] mmc1: sdhci: Cmd:       0x00000c1a | Max curr: 0x00000000
[    6.600086] mmc1: sdhci: Resp[0]:   0x00000b00 | Resp[1]:  0x30101bcb
[    6.606506] mmc1: sdhci: Resp[2]:   0x30303030 | Resp[3]:  0x00000900
[    6.612927] mmc1: sdhci: Host ctl2: 0x00000008
[    6.617355] mmc1: sdhci: ADMA Err:  0x00000000 | ADMA Ptr: 0x000000089511420c
[    6.624468] mmc1: sdhci: ============================================
[    6.634872] blk_update_request: I/O error, dev mmcblk1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    6.648679] blk_update_request: I/O error, dev mmcblk1, sector 1 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[    6.680489] Buffer I/O error on dev mmcblk1, logical block 0, async page read

I have loaded the cards up on a ubuntu machine and checked the filesystems, no problems.

Anyone any ideas?

Hi @AndrewCapon , which brand of microSD, I’ve personally seen this issue with Samsung EVO microSD, i know TI has seen it with PHY microSD… The best supported ones seem to be SanDisk Ultra/Plus/etc…

I’m pretty sure it’s just a new SOC, with a new driver, and not fully 100% debugged with every brand of microSD’s…

Note… We may want to create a list of “broken” microSD’s…

Regards,

Hi @RobertCNelson

The two Samsung Evo cards I have tried give the interrupt problem. (32 GB Evo and 128 GB Evo Plus), I can’t quite find the other one at the moment but it was a cheapo 16 GB card.

The first problem (mmc1: problem reading SD Status register) is on a Toshiba Exceria 64gb which had been working perfectly. I have just re-flashed this and it is now booting ok.

I would like to copy my emmc to this card, I notice /usr/sbin/enable-beagle-flasher. Do I just copy /etc/beagle-flasher/bbai64-emmc-to-microsd to /etc/default/beagle-flasher and run that script?

Cheers

Andy

exactly!

Sorry should it be beagle-flasher or enable-beagle-flasher?

enable-beagle-flasher : just set’s it up do on the next bootup…

beagle-flasher : do the flash right now…

Regards,

1 Like

Nice one, thanks Robert :slight_smile: