mmcblk1: unable to read partition table

Test and fix the Kernel 5.4 features
Post Reply
akschu
Posts: 9
Joined: Tue Jan 28, 2020 9:56 am
languages_spoken: english
ODROIDs: HC1, Advanced Go
Has thanked: 0
Been thanked: 1 time
Contact:

mmcblk1: unable to read partition table

Post by akschu »

Hello,

I built a custom 5.4.3 kernel on my HC2 from here:
https://github.com/mihailescu2m/linux/a ... -5.4.y.zip

However, every 3rd or 4th boot, it fails to start with:

[ 3.252256] blk_update_request: I/O error, dev mmcblk1, sector 1 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 3.267159] blk_update_request: I/O error, dev mmcblk1, sector 3 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 3.283774] Buffer I/O error on dev mmcblk1, logical block 0, async page read
[ 3.296100] mmcblk1: unable to read partition table

I can't tell if it's a flaky sd or if the mmcblk driver on linux is flaky. Has anyone seen this before? Obviously the system fails to boot if linux can't find the root filesystem due to a missing partition table. Booting again until it works is frustrating because I have to have a console cable hooked up all of the time.

Thanks,
schu

User avatar
odroid
Site Admin
Posts: 35602
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1204 times
Been thanked: 879 times
Contact:

Re: mmcblk1: unable to read partition table

Post by odroid »

Did you have no such issue with our stock kernel 4.14?

akschu
Posts: 9
Joined: Tue Jan 28, 2020 9:56 am
languages_spoken: english
ODROIDs: HC1, Advanced Go
Has thanked: 0
Been thanked: 1 time
Contact:

Re: mmcblk1: unable to read partition table

Post by akschu »

I build the 4.14 kernel from: https://github.com/hardkernel/linux/arc ... 4.14.y.zip and it doesn't seem to fail anymore. I set the machine to reboot 30 seconds after it started and let it boot in a loop for an hour without issue. So it seems my sd card is fine and that there is some bug with 5.4.y.

Any thoughts on how to fix it or is there any debug information I can provide?

I was also seeing this periodically:

Code: Select all

[   10.197461] mmc1: tuning execution failed: -5
[   10.305417] dwmmc_exynos 12220000.mmc: Unexpected command timeout, state 3
[   10.406917] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63)
[   54.241492] mmc1: tried to HW reset card, got error -110
[   96.557405] dwmmc_exynos 12220000.mmc: Unexpected command timeout, state 3
[  123.681422] random: crng init done
[  140.257819] blk_update_request: I/O error, dev mmcblk1, sector 4735768 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[  182.577403] dwmmc_exynos 12220000.mmc: Unexpected command timeout, state 3
[  226.273818] blk_update_request: I/O error, dev mmcblk1, sector 4735769 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[  268.593403] dwmmc_exynos 12220000.mmc: Unexpected command timeout, state 3
[  312.289815] blk_update_request: I/O error, dev mmcblk1, sector 4735770 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[  354.609402] dwmmc_exynos 12220000.mmc: Unexpected command timeout, state 3
[  398.305831] blk_update_request: I/O error, dev mmcblk1, sector 4735771 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[  440.625403] dwmmc_exynos 12220000.mmc: Unexpected command timeout, state 3
[  484.321822] blk_update_request: I/O error, dev mmcblk1, sector 4735772 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[  526.641401] dwmmc_exynos 12220000.mmc: Unexpected command timeout, state 3
[  570.337815] blk_update_request: I/O error, dev mmcblk1, sector 4735773 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[  612.657401] dwmmc_exynos 12220000.mmc: Unexpected command timeout, state 3
[  656.353814] blk_update_request: I/O error, dev mmcblk1, sector 4735774 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[  698.673401] dwmmc_exynos 12220000.mmc: Unexpected command timeout, state 3
[  742.369814] blk_update_request: I/O error, dev mmcblk1, sector 4735775 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[  784.689400] dwmmc_exynos 12220000.mmc: Unexpected command timeout, state 3
[  828.385814] blk_update_request: I/O error, dev mmcblk1, sector 4735776 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 0
[  870.705400] dwmmc_exynos 12220000.mmc: Unexpected command timeout, state 3
[  914.401813] blk_update_request: I/O error, dev mmcblk1, sector 4735777 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 0
[  956.721399] dwmmc_exynos 12220000.mmc: Unexpected command timeout, state 3 

akschu
Posts: 9
Joined: Tue Jan 28, 2020 9:56 am
languages_spoken: english
ODROIDs: HC1, Advanced Go
Has thanked: 0
Been thanked: 1 time
Contact:

Re: mmcblk1: unable to read partition table

Post by akschu »

I just noticed you moved my thread. Thanks!

User avatar
odroid
Site Admin
Posts: 35602
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1204 times
Been thanked: 879 times
Contact:

Re: mmcblk1: unable to read partition table

Post by odroid »

We couldn't reproduce the issue with our a few different SD card samples.
Can you tell us the brand and model name of your SD cards?

akschu
Posts: 9
Joined: Tue Jan 28, 2020 9:56 am
languages_spoken: english
ODROIDs: HC1, Advanced Go
Has thanked: 0
Been thanked: 1 time
Contact:

Re: mmcblk1: unable to read partition table

Post by akschu »

It's this one:

https://ameridroid.com/collections/stor ... uhs-1-card

Which is branded sandisk when I got it.

Basically a sandisk ultra card.

I've also noted that this JMicon bridge is pretty buggy, it put my disk to sleep when I was trying to use it, I eventually disabled the spin-down and installed hd-idle.

At some point I'll create a new thread announcing this, but thought I would mention that I've ported slackware to the HC2 and have ZFS running on it:

http://mirrors.aptalaska.net/slackware/ ... ckwarearm/

User avatar
odroid
Site Admin
Posts: 35602
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1204 times
Been thanked: 879 times
Contact:

Re: mmcblk1: unable to read partition table

Post by odroid »

We couldn't reproduce the issue with our Sandisk UHS1 cards.
https://www.hardkernel.com/shop/16gb-mi ... xu4-linux/

We will compare the SD clock frequency settings between Kernel 4.14 and 5.4 in the next week.

User avatar
odroid
Site Admin
Posts: 35602
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1204 times
Been thanked: 879 times
Contact:

Re: mmcblk1: unable to read partition table

Post by odroid »

@akschu,
There was no significant difference in the SD device drivers and we still can't reproduce the issue with our various SD card samples.

We will contact Ameridroid to borrow a couple of their SD cards to reproduce the issue.
What is the capacity of your card?

User avatar
odroid
Site Admin
Posts: 35602
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1204 times
Been thanked: 879 times
Contact:

Re: mmcblk1: unable to read partition table

Post by odroid »

We've tested Ameridroid's Sandisk Ultra (Grey color) 16GB and 32GB cards. There was no stability nor performance issue with Kernel 5.4 so far.

Do you have other UHS-1 micro-SD cards to narrow down root causes?
These users thanked the author odroid for the post:
Ameridroid (Wed Mar 18, 2020 6:02 am)

Post Reply

Return to “Linux Kernel 5.4 Development Party”

Who is online

Users browsing this forum: No registered users and 0 guests