SD Card Shows Wrong Size

Hello!

I am using TX2 with custom carrier board. Jetpack 4.4.1 installed on TX2. I can’t flash this TX2 with older versions of Jetpack 4.4.1. We were using Jetpack 3.1 and it had no problem with SD card.

I am testing with Sandisk Ultra microSD XC 256GB. Randomly, on some boot SD Card doesn’t show up with right size. “lsblk” shows it as:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 1G 0 loop /var/log
loop1 7:1 0 16M 1 loop
mmcblk2 179:0 0 30,6M 0 disk
mmcblk0 179:32 0 29,1G 0 disk
├─mmcblk0p1 179:33 0 28G 0 part /
├─mmcblk0p2 179:34 0 4M 0 part
├─mmcblk0p3 179:35 0 4M 0 part
├─mmcblk0p4 179:36 0 512K 0 part
├─mmcblk0p5 179:37 0 512K 0 part
├─mmcblk0p6 179:38 0 512K 0 part
├─mmcblk0p7 179:39 0 512K 0 part
├─mmcblk0p8 179:40 0 3M 0 part
├─mmcblk0p9 179:41 0 3M 0 part
├─mmcblk0p10 179:42 0 2M 0 part
├─mmcblk0p11 179:43 0 4M 0 part
├─mmcblk0p12 179:44 0 4M 0 part
├─mmcblk0p13 179:45 0 604K 0 part
├─mmcblk0p14 179:46 0 604K 0 part
├─mmcblk0p15 179:47 0 1M 0 part
├─mmcblk0p16 179:48 0 1M 0 part
├─mmcblk0p17 179:49 0 2M 0 part
├─mmcblk0p18 179:50 0 2M 0 part
├─mmcblk0p19 179:51 0 6M 0 part
├─mmcblk0p20 179:52 0 6M 0 part
├─mmcblk0p21 179:53 0 2M 0 part
├─mmcblk0p22 179:54 0 128M 0 part
├─mmcblk0p23 179:55 0 128M 0 part
├─mmcblk0p24 179:56 0 63M 0 part
├─mmcblk0p25 179:57 0 512K 0 part
├─mmcblk0p26 179:58 0 256K 0 part
├─mmcblk0p27 179:59 0 256K 0 part
├─mmcblk0p28 179:60 0 80M 0 part
├─mmcblk0p29 179:61 0 80M 0 part
├─mmcblk0p30 179:62 0 512K 0 part
├─mmcblk0p31 179:63 0 512K 0 part
├─mmcblk0p32 259:0 0 300M 0 part
└─mmcblk0p33 259:1 0 321,8M 0 part
mmcblk0boot0 179:64 0 8M 1 disk
mmcblk0boot1 179:96 0 8M 1 disk
mmcblk0rpmb 179:128 0 4M 0 disk

This is the dmesg log when error happens:

[    1.427352] gpio tegra-gpio wake71 for gpio=125(P:5)
[    1.427417] mmc2: SDHCI controller on 3400000.sdhci [3400000.sdhci] using ADMA 64-bit with 64 bit addr
[    1.485626] ata1: SATA link down (SStatus 0 SControl 300)
[    1.489294] mmc2: new SD card at address d555
[    1.489759] mmcblk2: mmc2:d555 SD032 30.6 MiB
[    1.497366] mmc0: mmc_decode_ext_csd: CMDQ supported: depth: 31, cmdq_support: 1
[    1.513986] mmc0: periodic cache flush enabled
[    1.514002] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    1.514501] mmcblk0: mmc0:0001 HBG4a2 29.1 GiB 
[    1.514777] mmcblk0boot0: mmc0:0001 HBG4a2 partition 1 8.00 MiB
[    1.514981] mmcblk0boot1: mmc0:0001 HBG4a2 partition 2 8.00 MiB
[    1.515192] mmcblk0rpmb: mmc0:0001 HBG4a2 partition 3 4.00 MiB
[    1.516209] OPE platform probe
[    1.516279] OPE platform probe successful
[    1.520280]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30 p31 p32 p33
[    1.535268] usb 1-2: new high-speed USB device number 2 using tegra-xusb

If I plug it out and plug back in, size becomes right.

mmcblk2      179:128  0 238,3G  0 disk 
└─mmcblk2p1  179:129  0 238,3G  0 part 

I tried changing partition table type to gpt and mbr. Also tried ext4 and exfat fstypes. Doesn’t make a difference.

I tried 10 piece of brand new SD cards. All have same behaviour. These SD cards works on laptop without this problem.

How can we track down this issue? Any help appreciated.

Hello,

  1. Could you also try if jetpack4.5 would have this problem?

  2. How is the reproduce rate about this issue? For example, if you hotplug the card for 10 times, how many times could it get detected as wrong size?

  3. Are those 10 sdcards all different brands?

  4. Will you see this problem on nvidia devkit?

Thank you for your answer.

  1. I tried with Jetpack 4.5, same error happens. I saw SD card as 30,6M.

  2. I made a reboot test with 100+ tries, I can say roughly %20.

  3. All same brand and model, Sandisk Ultra microSD XC 256GB. I also tried same brand with different capacities.

Just for note, older series TX2 with Jetpack 3.1 is OK with same carrier board with these micro SDs.

  1. Haven’t tested it with devkit yet.

Hi,

I may need your help to check this issue on devkit. Since I am not sure if I can get this sd card.

Also, I don’t think compared with jetpack3.1 would help here since the kernel version has lots difference. If you can use rel-32 based release and find if some version do not have this problem then maybe we can get more hint.

If you cannot, then we should start to check if this is custom board only issue.

Hello,

We check with devkit, we also see wrong size on that. In addition, I check same micro SD with older TX2 using Jetpack 4.4.1, problem exists on that too.

  1. Could you clarify what is “older TX2” here?

  2. We will check other sdcard on our devkit too. Will update here if I find something.

Older versions of TX2, I mean which accepts Jetpack versions before JP4.4.1. Latest arriving TX2 modules doesnt accept Jetpacks before version 4.4.1.

I got what you mean. Some modules are updated because of the PCN so only jp4.4.1 supports them.

Hello,

We test 2 kinds of sdcard on our devkit with jetpack4.4.1 and cannot reproduce your issue.

Please check if only this card would hit problem.

Also, please share us the full dmesg with this card connected.