SD card driver bug on Jetson TK1?

I bought a 128GB Class10 UHS-I SDXC card(DNF-SDX128C10) to install jedroid and ubuntu.
I made 2 partitions on it and both partitions are formatted with ext4.
I inserted it to Jetson TK1 and tried to copy sample file system to it.
But I got IO errors and failed to copy files.

I thought that SDXC card is broken, but I could copied files to it using USB card reader or sd card reader on my old laptop (both sd card reader supports SDHC but SDXC).

Ubuntu on the SDXC card is working with USB card reader, but I want to use it with sd card reader on Jetson TK1, not with USB card reader.

Following is dmesg when I insert my sd card to Jetson TK1.

[ 60.752001] sdhci-tegra sdhci-tegra.2: Found T2T coeffs data
[ 60.759718] sdhci-tegra sdhci-tegra.2: 200MHz tap hole coeffs found
[ 61.337226] **********Auto tuning windows*************
[ 61.337306] WIN_ATTR legend: 0-BOUN_ST, 1-BOUN_END, 2-HOLE
[ 61.337376] win[0]: 0(0) - 8(1)
[ 61.337439] win[1]: 16(0) - 95(1)
[ 61.337500] win[2]: 103(0) - 185(1)
[ 61.337556] win[3]: 192(0) - 255(1)
[ 61.337601] ***************************************
[ 61.337702] ********tuning windows after inserting holes*****
[ 61.337747] WIN_ATTR legend: 0-BOUN_ST, 1-BOUN_END, 2-HOLE
[ 61.337807] win[0]:-65(0) - 7(2)
[ 61.337863] win[1]:16(0) - 18(1)
[ 61.337914] win[2]:19(0) - 19(1)
[ 61.337966] win[3]:20(0) - 91(2)
[ 61.338019] win[4]:93(2) - 95(1)
[ 61.342020] win[5]:103(0) - 175(2)
[ 61.343852] win[6]:177(2) - 185(1)
[ 61.343928] win[7]:192(0) - 255(1)
[ 61.343977] ***********************************************
[ 61.344039] **********Tuning values*********
[ 61.346240] **estimated values**
[ 61.346324] T2T_Vmax 59, T2T_Vmin 82, 1'st_hole_Vmax 8, UI_Vmax 84
[ 61.346371] **Calculated values**
[ 61.346425] T2T_Vmax 59, 1'st_hole_Vmax 8, UI_Vmax 84
[ 61.346478] T2T_Vmin 59, 1'st_hole_Vmin 8, UI_Vmin 84
[ 61.346522] ***********************************
[ 61.346610] ***********final tuning windows**********
[ 61.346663] win[0]: -49 - 1
[ 61.351845] win[1]: 32 - 2
[ 61.351919] win[2]: 35 - 3
[ 61.351972] win[3]: 36 - 79
[ 61.352022] win[4]: 106 - 79
[ 61.354203] win[5]: 119 - 157
[ 61.354269] win[6]: 196 - 169
[ 61.354321] win[7]: 208 - 239
[ 61.354365] ********************************
[ 61.354426] best tap win - (36-79), best tap value 57
[ 61.354534] sdhci-tegra sdhci-tegra.2: sdhci_tegra_verify_best_tap: tuning freq 200000000hz, best tap 57
[ 61.363963] mmc1: new ultra high speed SDR104 SDXC card at address 59b4
[ 61.367456] mmcblk mmc1:59b4: Card claimed for testing.
[ 61.367812] mmcblk1: mmc1:59b4 SDU1 119 GiB 
[ 61.379195] mmcblk1: p1 p2

#I did write test to the SD card and I got following error messages from serial port.
sudo mount /dev/mmcblk1p2 jetson/sd
cd jetson/sd
dd if=/dev/random of=test bs=1024 count=1
cp /boot/zImage ./
ls

[ 651.899644] mmc1: Data CRC error, intmask: 200000
[ 651.904563] sdhci: =========== REGISTER DUMP (mmc1)===========
[ 651.910544] sdhci: Sys addr: 0x00000000 | Version: 0x00000303
[ 651.916510] sdhci: Blk size: 0x00007200 | Blk cnt: 0x000002b8
[ 651.922464] sdhci: Argument: 0x07f9ad28 | Trn mode: 0x00000023
[ 651.928413] sdhci: Present: 0x01fb0000 | Host ctl: 0x00000013
[ 651.934354] sdhci: Power: 0x0000000d | Blk gap: 0x00000000
[ 651.940296] sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 651.946242] sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
[ 651.952187] sdhci: Int enab: 0x02ff000b | Sig enab: 0x02fc000b
[ 651.958130] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[ 651.964076] sdhci: Caps: 0x376fd080 | Caps_1: 0x10002f73
[ 651.970016] sdhci: Cmd: 0x0000193a | Max curr: 0x00000000
[ 651.975950] sdhci: Host ctl2: 0x0000308b
[ 651.979984] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0xac042010
[ 651.985910] sdhci: ===========================================
[ 652.015993] mmcblk1: error -84 transferring data, sector 133803304, nr 720, cmd response 0x900, card status 0xc00
[ 652.027251] end_request: I/O error, dev mmcblk1, sector 133803328
[ 652.033595] end_request: I/O error, dev mmcblk1, sector 133803336
[ 652.040069] end_request: I/O error, dev mmcblk1, sector 133803344
[ 652.046510] end_request: I/O error, dev mmcblk1, sector 133803352
[ 652.053079] end_request: I/O error, dev mmcblk1, sector 133803360
[ 652.059412] end_request: I/O error, dev mmcblk1, sector 133803368
[ 652.065741] end_request: I/O error, dev mmcblk1, sector 133803376
[ 652.071995] end_request: I/O error, dev mmcblk1, sector 133803384
[ 652.078433] end_request: I/O error, dev mmcblk1, sector 133803392
[ 652.084715] end_request: I/O error, dev mmcblk1, sector 133803400
[ 652.092547] Buffer I/O error on device mmcblk1p2, logical block 1082789
[ 652.099354] Buffer I/O error on device mmcblk1p2, logical block 1082790
[ 652.106460] Buffer I/O error on device mmcblk1p2, logical block 1082791
[ 652.113188] Buffer I/O error on device mmcblk1p2, logical block 1082792
[ 652.119973] Buffer I/O error on device mmcblk1p2, logical block 1082793
[ 652.126735] Buffer I/O error on device mmcblk1p2, logical block 1082794
[ 652.133606] Buffer I/O error on device mmcblk1p2, logical block 1082795
[ 652.140316] Buffer I/O error on device mmcblk1p2, logical block 1082796
[ 652.147134] Buffer I/O error on device mmcblk1p2, logical block 1082797
[ 652.153841] Buffer I/O error on device mmcblk1p2, logical block 1082798
[ 652.160684] Buffer I/O error on device mmcblk1p2, logical block 1082799
[ 652.167428] Buffer I/O error on device mmcblk1p2, logical block 1082800
[ 652.174270] Buffer I/O error on device mmcblk1p2, logical block 1082801
[ 652.180973] Buffer I/O error on device mmcblk1p2, logical block 1082802
[ 652.187959] Buffer I/O error on device mmcblk1p2, logical block 1082803
[ 652.194650] Buffer I/O error on device mmcblk1p2, logical block 1082804
[ 652.201401] Buffer I/O error on device mmcblk1p2, logical block 1082805
[ 652.208124] Buffer I/O error on device mmcblk1p2, logical block 1082806
[ 652.214952] Buffer I/O error on device mmcblk1p2, logical block 1082807
[ 652.221636] Buffer I/O error on device mmcblk1p2, logical block 1082808
[ 652.228386] Buffer I/O error on device mmcblk1p2, logical block 1082809
[ 652.235067] Buffer I/O error on device mmcblk1p2, logical block 1082810
[ 652.241861] Buffer I/O error on device mmcblk1p2, logical block 1082811
[ 652.248570] Buffer I/O error on device mmcblk1p2, logical block 1082812
[ 652.255278] Buffer I/O error on device mmcblk1p2, logical block 1082813
[ 652.261955] Buffer I/O error on device mmcblk1p2, logical block 1082814
[ 652.268758] Buffer I/O error on device mmcblk1p2, logical block 1082815
[ 652.275426] Buffer I/O error on device mmcblk1p2, logical block 1082816
[ 652.282121] Buffer I/O error on device mmcblk1p2, logical block 1082817
[ 652.288787] Buffer I/O error on device mmcblk1p2, logical block 1082818
[ 652.295551] Buffer I/O error on device mmcblk1p2, logical block 1082819
[ 652.302217] Buffer I/O error on device mmcblk1p2, logical block 1082820
[ 652.308914] Buffer I/O error on device mmcblk1p2, logical block 1082821
[ 652.315580] Buffer I/O error on device mmcblk1p2, logical block 1082822
[ 652.322342] Buffer I/O error on device mmcblk1p2, logical block 1082823
[ 652.329008] Buffer I/O error on device mmcblk1p2, logical block 1082824
[ 652.335704] Buffer I/O error on device mmcblk1p2, logical block 1082825
[ 652.342381] Buffer I/O error on device mmcblk1p2, logical block 1082826
[ 652.349148] Buffer I/O error on device mmcblk1p2, logical block 1082827
[ 652.355815] Buffer I/O error on device mmcblk1p2, logical block 1082828
[ 652.362510] Buffer I/O error on device mmcblk1p2, logical block 1082829
[ 652.369173] Buffer I/O error on device mmcblk1p2, logical block 1082830
[ 652.375934] Buffer I/O error on device mmcblk1p2, logical block 1082831
[ 652.382599] Buffer I/O error on device mmcblk1p2, logical block 1082832
[ 652.389292] Buffer I/O error on device mmcblk1p2, logical block 1082833
[ 652.395963] Buffer I/O error on device mmcblk1p2, logical block 1082834
[ 652.402723] Buffer I/O error on device mmcblk1p2, logical block 1082835
[ 652.409389] Buffer I/O error on device mmcblk1p2, logical block 1082836
[ 652.416084] Buffer I/O error on device mmcblk1p2, logical block 1082837
[ 652.422748] Buffer I/O error on device mmcblk1p2, logical block 1082838
[ 652.429509] Buffer I/O error on device mmcblk1p2, logical block 1082839
[ 652.436175] Buffer I/O error on device mmcblk1p2, logical block 1082840
[ 652.442868] Buffer I/O error on device mmcblk1p2, logical block 1082841
[ 652.449544] Buffer I/O error on device mmcblk1p2, logical block 1082842
[ 652.456317] Buffer I/O error on device mmcblk1p2, logical block 1082843
[ 652.462987] Buffer I/O error on device mmcblk1p2, logical block 1082844
[ 652.469679] Buffer I/O error on device mmcblk1p2, logical block 1082845
[ 652.476343] Buffer I/O error on device mmcblk1p2, logical block 1082846
[ 652.483103] Buffer I/O error on device mmcblk1p2, logical block 1082847
[ 652.489767] Buffer I/O error on device mmcblk1p2, logical block 1082848
[ 652.496460] Buffer I/O error on device mmcblk1p2, logical block 1082849
[ 652.503125] Buffer I/O error on device mmcblk1p2, logical block 1082850
[ 652.509884] Buffer I/O error on device mmcblk1p2, logical block 1082851
[ 652.516550] Buffer I/O error on device mmcblk1p2, logical block 1082852
[ 652.523242] Buffer I/O error on device mmcblk1p2, logical block 1082853
[ 652.529905] Buffer I/O error on device mmcblk1p2, logical block 1082854
[ 652.536665] Buffer I/O error on device mmcblk1p2, logical block 1082855
[ 652.543330] Buffer I/O error on device mmcblk1p2, logical block 1082856
[ 652.550027] Buffer I/O error on device mmcblk1p2, logical block 1082857
[ 652.556690] Buffer I/O error on device mmcblk1p2, logical block 1082858
[ 652.563450] Buffer I/O error on device mmcblk1p2, logical block 1082859
[ 652.570115] Buffer I/O error on device mmcblk1p2, logical block 1082860
[ 652.576808] Buffer I/O error on device mmcblk1p2, logical block 1082861
[ 652.583483] Buffer I/O error on device mmcblk1p2, logical block 1082862
[ 652.590242] Buffer I/O error on device mmcblk1p2, logical block 1082863
[ 652.596908] Buffer I/O error on device mmcblk1p2, logical block 1082864
[ 652.603600] Buffer I/O error on device mmcblk1p2, logical block 1082865
[ 652.610264] Buffer I/O error on device mmcblk1p2, logical block 1082866
[ 652.617041] Buffer I/O error on device mmcblk1p2, logical block 1082867
[ 652.623706] Buffer I/O error on device mmcblk1p2, logical block 1082868
[ 652.630400] Buffer I/O error on device mmcblk1p2, logical block 1082869
[ 652.637066] Buffer I/O error on device mmcblk1p2, logical block 1082870
[ 652.643829] Buffer I/O error on device mmcblk1p2, logical block 1082871
[ 652.650494] Buffer I/O error on device mmcblk1p2, logical block 1082872
[ 652.657187] Buffer I/O error on device mmcblk1p2, logical block 1082873
[ 652.663850] Buffer I/O error on device mmcblk1p2, logical block 1082874
[ 652.670611] Buffer I/O error on device mmcblk1p2, logical block 1082875
[ 652.677278] Buffer I/O error on device mmcblk1p2, logical block 1082876
[ 652.683976] Buffer I/O error on device mmcblk1p2, logical block 1082877
[ 652.690639] Buffer I/O error on device mmcblk1p2, logical block 1082878

head /sys/block/mmcblk1/* > log
cat log

==> /sys/block/mmcblk1/alignment_offset <==
0

==> /sys/block/mmcblk1/bdi <==

==> /sys/block/mmcblk1/capability <==
50

==> /sys/block/mmcblk1/dev <==
179:32

==> /sys/block/mmcblk1/device <==

==> /sys/block/mmcblk1/discard_alignment <==
0

==> /sys/block/mmcblk1/ext_range <==
256

==> /sys/block/mmcblk1/force_ro <==
0
==> /sys/block/mmcblk1/holders <==

==> /sys/block/mmcblk1/inflight <==
0 0

==> /sys/block/mmcblk1/mmcblk1p1 <==

==> /sys/block/mmcblk1/mmcblk1p2 <==

==> /sys/block/mmcblk1/power <==

==> /sys/block/mmcblk1/queue <==

==> /sys/block/mmcblk1/range <==
16

==> /sys/block/mmcblk1/removable <==
0

==> /sys/block/mmcblk1/ro <==
0

==> /sys/block/mmcblk1/size <==
250279936

==> /sys/block/mmcblk1/slaves <==

==> /sys/block/mmcblk1/stat <==
386 239 4994 682 58 26 12560 10521 0 3342 11199

==> /sys/block/mmcblk1/subsystem <==

==> /sys/block/mmcblk1/uevent <==
MAJOR=179
MINOR=32
DEVNAME=mmcblk1
DEVTYPE=disk
NPARTS=2

head /sys/block/mmcblk1/device/* > log
cat log

==> /sys/block/mmcblk1/device/block <==

==> /sys/block/mmcblk1/device/cid <==
744a4553445531200206a11f1f00e800

==> /sys/block/mmcblk1/device/csd <==
400e00325b590003babd7f800a400000

==> /sys/block/mmcblk1/device/date <==
08/2014

==> /sys/block/mmcblk1/device/driver <==

==> /sys/block/mmcblk1/device/erase_size <==
512

==> /sys/block/mmcblk1/device/fwrev <==
0x2

==> /sys/block/mmcblk1/device/hwrev <==
0x0

==> /sys/block/mmcblk1/device/manfid <==
0x000074

==> /sys/block/mmcblk1/device/name <==
SDU1 

==> /sys/block/mmcblk1/device/oemid <==
0x4a45

==> /sys/block/mmcblk1/device/power <==

==> /sys/block/mmcblk1/device/preferred_erase_size <==
4194304

==> /sys/block/mmcblk1/device/scr <==
0245800300000000

==> /sys/block/mmcblk1/device/serial <==
0x06a11f1f

==> /sys/block/mmcblk1/device/subsystem <==

==> /sys/block/mmcblk1/device/type <==
SD

==> /sys/block/mmcblk1/device/uevent <==
DRIVER=mmcblk
MMC_TYPE=SD
MMC_NAME=SDU1 
MODALIAS=mmc:block

I have the same problem depending on the SD card.
I get the same errors using the following SD card:
Sandisk Extreme PRO SD XC I (64 GB), Class 10; UHS Speed Class 3.
However, using a “slower” SD card works:
Samsung SD HC I (32 GB), Class 10; UHS Speed Class 1.

I have the same problem.
Is there a solution?

I’m looking at the Tegra K1 Embedded Design Guide, which states the SD card and SDIO interfaces support up to UHS-I (UHS-II not supported). What is the exact SD card you are using, and how was it partitioned and formatted?

Looking back at the original post, it looks like the UHS-1 should be supported. It’ll probably take some research to learn more about SD card requirements. More details are needed.

It would be useful if anyone has tried various larger SD cards of type SDHC or SDXC would post the details of the card and if it failed or succeeded.

1 Like

My solution is buy other SD cards from different venders.
I bought 5 SD cards.

Following SD cards cause errors on Jetson TK1:
Transcend SDHC card 32GB Class10 UHS-I TS32GSDHC10U1E
Transcend microSDHC card 16GB Class10 UHS-I TS16GUSDU1E
Team SDHC card Class 10 (UHS-1 32GB)

Following SD cards worked without error on Jetson TK1:
Gigastone microSDHC card 32GB Class10 GJM10/32G
Toshiba SDHC card Class10 UHS-I (16GB, 40MB/s)

I didn’t changed partition on thoese SD cards.
I formated them with “sudo mkfs.ext4 /dev/mmcblk1p1”

Just adding some SD card info to the pool. I’ve found these to work both as a root partition and for data:

Samsung SDHC Class 6, 16GB, Model MB-SSAGB/AM.
Sandisk Ultra SDHC Class 10, 16GB (model uncertain, marked BL1429650227D).

I found this works for data, but fails as a root file system:

ADATA SDXC, UHS-I/Class 10, 16GB, Model ASDH16GUICL10-R.
EDIT: The logo on this card shows HC, but is specified in other places as XC.
1 Like

My card is
Transcend SDHC card 32GB Class10 UHS-I TS32GSDU1

I found in Release notes mention of this error:


(issue 200081682)
however, as I understand it, there mention is a problem using the card as a root file system, but I have problem with the usual copying the data on the card

At the other Jetson this card is working properly

Hi sv_91_, I have a few questions regarding the SD card issue:

  • Do other SD cards besides the TS32GSDU1 work without issue on both Jetson boards?
  • Do both Jetson boards have identical software configurations?
  • If available, have you tried a third Jetson board as well?
  1. Yes, with the card “Komputer bay professional 64Gb 10 class” does not work.
  2. Yes, Jetson boards have identical software configurations. I also tested on firmware 21.4, grinch 19.3, grinch 21.3.4 (current)
  3. Yes, on the third Jetson all also works.
    All this suggests that the problem is with a particular Jetson

You’ll likely need to RMA that particular Jetson if it’s still within warranty. The procedure is on the top of this thread: https://devtalk.nvidia.com/default/topic/793798/embedded-systems/some-jetson-web-links/

Kingston SDXC Class 10 (SD10V/64GB)

Works fine.
Rather slow though. Write speed: ~15Mb/sec.