Flashed u-boot not working

Hello,

I seem to be having an issue with flashing my own u-boot onto the TK1. I have cloned git://nv-tegra.nvidia.com/3rdparty/u-boot.git and am working with the latest branch l4t/l4t-r27.1

I run the default config script “make jetson-tk1_defconfig” and run the cmd:

make CROSS_COMPILE=arm-none-eabi- DTC=../usr/src/kernel-source/scripts/dtc/dtc

Where the DTC path is the path to a dtc binary that I have compiled from the kernel source located at git://github.com/madisongh/linux-tegra.git using the branch patches-l4t-r21.5. The kernel is using the configuration script arch/arm/configs/tegra12_defconfig.

I understand that I am using r27.1 for u-boot whereas I am using r21.5 for the kernel release which could be leading to potential issues, but I did a checkout on u-boot l4t-r21.5 as well (same release as kernel) and it still didn’t work. I am using a later release of u-boot because I need some of the features within the u-boot r27.1 release that the u-boot r21.5 release doesn’t have.

It may also be worth noting that the dtc that I built with the kernel image produced a dtc at version 1.2.0 whereas the minimum dtc version required when building u-boot r27.1 is version 1.4 as indicated by the error message in the Makefile “Your dtc is too old, please upgrade to dtc 1.4 or newer”. In order to get things to compile, I commented out this check in the Makefile for u-boot r27.1. I also tried using the dtc binary that came with the Tegra_Linux_Driver R21.5 package for the DTC path. Although both approaches produced a u-boot-dtb-tegra.bin file that I copied over to <L4T_driver_package>/bootloader/ardbeg, u-boot was still unsuccessful in booting.

The flash script seems to show me all partitions successfully flashed. The tk1 side seems to show everything going smoothly too, except it just hangs on a the line that comes right before u-boot takes over: “WriterThread: Exiting”

This is the response out of serial using minicom when using the sudo ./flash.sh jetson-tk1 mmcblk0p1 cmd:

[0000.000] [TegraBoot] (version UNDEF_BUILD)
[0000.004] Reset reason: power on reset
[0000.007] Processing in recovery mode
[0000.011] Established communication link with host
[0001.096] Downloaded bct successfully 
[0001.100] No Battery Present
[0001.104] Sdram initialization is successful 
[0001.134] Downloaded DTB successfully 
[0001.162] No Battery Present
[0001.280] Downloaded bootloader successfully 
[0001.285] CPU-bootloader entry address: 0x83d88000 
[0001.289] BoardId: 375
[0001.291] Vpr Carveout Base=0x0f4600000 Size=0x00ba00000
[0001.296] Tsec Carveout Base=0x0f2600000 Size=0x002000000
[0001.302] Lp0 Carveout Base=0x0f25ff000 Size=0x000001000
[0001.307] Xusb Carveout Base=0x0f2300000 Size=0x000200000
[0001.312] Platform-DebugCarveout: 0
[0001.339] CPU power rail is up 
[0001.342] Performing RAM repair
[0001.345] CPU clock init successful 
[0001.348] Starting CPU & Halting co-processor
NVRM Initialized shmoo database
NVRM CLOCKS: PLLX0:      696000 Khz
NVRM CLOCKS: PLLM0:      924000 Khz
NVRM CLOCKS: PLLC0:      0 Khz
NVRM CLOCKS: PLLP0:      408000 Khz
NVRM CLOCKS: PLLA0:      11289 Khz
NVRM CLOCKS: CPU:        696000 Khz
NVRM CLOCKS: AVP:        48000 Khz
NVRM CLOCKS: System Bus: 48000 Khz
NVRM CLOCKS: Memory Controller: 924000
NVRM CLOCKS: External Memory Controller: 924000
EEPROM instance-5: No slave at this instance.
EEPROM instance-0: No slave at this instance.
EEPROM instance-0: Querying board info from BCT.
EEPROM instance-0: No board info available for this instance in BCT.
EEPROM instance-1: No slave at this instance.
EEPROM instance-1: Querying board info from BCT.
EEPROM instance-1: Board info present in BCT is invalid.
EEPROM instance-2: No slave at this instance.
EEPROM instance-2: Querying board info from BCT.
EEPROM instance-2: No board info available for this instance in BCT.
EEPROM instance-3: No slave at this instance.
EEPROM instance-3: Querying board info from BCT.
EEPROM instance-3: No board info available for this instance in BCT.
EEPROM instance-4: No slave at this instance.
EEPROM instance-4: Querying board info from BCT.
EEPROM instance-4: Board info present in BCT is invalid.
EEPROM instance-5: No slave at this instance.
EEPROM instance-5: Querying board info from BCT.
EEPROM instance-5: Board info present in BCT is invalid.
EEPROM instance-6: BoardInfo: 0x0001:0x0007:0375:0000:03:B:00:0xff:0xff:0xff:0xff:0xff:0xff
EEPROM instance-7: No slave at this instance.
EEPROM instance-7: Querying board info from BCT.
EEPROM instance-7: No board info available for this instance in BCT.
Final BoardID: proc: 375 and pmu 375
ADJUSTED CLOCKS:
MC clock is set to 924000 KHz
EMC clock is set to 924000 KHz (DDR clock is at 924000 KHz)
PLLX0 clock is set to 696000 KHz
PLLC0 clock is set to      0 KHz
CPU clock is set to 696000 KHz
System and AVP clock is set to  48000 KHz
GraphicsHost clock is set to 163200 KHz
MSENC clock is set to  92400 KHz
Vde clock is set to 204000 KHz

Bootloader-Cpu Init at (time stamp): 81014255 us

Pinmux changes applied in kernel way

[bootloader] (version UNDEF_BUILD)
Platform Pre Boot configuration...
NvDdkUsbhBlockDevInit..
Initializing Display
The proc BoardInfo: 0x0177:0x0000:0x03:0x42:0x00
The proc BoardInfo: 0x0177:0x0000:0x03:0x42:0x00
This Pmu Module is not present.
The best display mode is 2560x1600/60Hz, pclk: 268627Khz

DSI PAD calibration done

DSI PAD calibration done

DSI PAD calibration done

DSI PAD calibration done
Entering NvFlash recovery mode / Nv3p Server

Nv3pServer Version 4.13.0000

***: DecodeCSD:
   : readBlkBits=9, readBlkSize=512 Bytes
   : nSectors=(CSIZE+1)*(2**(CSizeMult+2))=4096 * 512 = 2097152 Sectors
   : writeBlkBits=9, writeBlkSize=512 Bytes
   : ERASE_GRP_SIZE=31, ERASE_GRP_MULT=31
   : EraseGrpSize=(31+1)*(31+1)=1024 Sectors (524288 Bytes)
   : WPGrpSize=31744 Sectors (16252928 Bytes)
***: ReadExtCSD:
   : overriding USER Sectors = 30777344 Sectors
   : keep CSD EraseGrpSize = 1024 Sectors (524288 Bytes)
   : keep CSD WPGrpSize = 31744 wBlks (16252928 Bytes)
   : BootPartSize = 4194304 Bytes (8192 Sectors)
***: SetBlockSize to 512 Bytes SKIPPED because CMD16 is illegal for DDR50...
***: SdGetDevInfo: PagesPerBlock = 32 pages (256 Sectors)
***: SdGetDevInfo: TotSecs=TotBlk(120288)*PgPerBlk(32)*SecsPerPg(8)=30793728
Region=1 SD Erase start 512B-sector=0,512B-sector-num=8192 
Region=2 SD Erase start 512B-sector=0,512B-sector-num=8192 
Region=0 SD Erase start 512B-sector=0,512B-sector-num=30777344 
SD Alloc Partid=2, start sector=0,num=2048 
SD Alloc Partid=3, start sector=2048,num=512 
SD Alloc Partid=4, start sector=2560,num=512 
SD Alloc Partid=5, start sector=3072,num=1024 
SD Alloc Partid=6, start sector=4096,num=4096 
SD Alloc Partid=7, start sector=8192,num=1536 
SD Alloc Partid=8, start sector=9728,num=512 
SD Alloc Partid=9, start sector=10240,num=1536 
SD Alloc Partid=10, start sector=11776,num=1536 
SD Alloc Partid=11, start sector=13312,num=512 
SD Alloc Partid=12, start sector=13824,num=3670016 
SD Alloc Partid=13, start sector=3683840,num=1024 
SD Alloc Partid=14, start sector=3684864,num=16384 
SD Alloc Partid=15, start sector=3701248,num=1024 
SD Alloc Partid=16, start sector=3702272,num=1024 
SD Alloc Partid=17, start sector=3703296,num=1024 
SD Alloc Partid=18, start sector=3704320,num=1024 
SD Alloc Partid=19, start sector=3705344,num=512 
SD Alloc Partid=20, start sector=3705856,num=142848 
SD Alloc Partid=21, start sector=3848704,num=512 
Region=0 SD Erase start 512B-sector=4096,512B-sector-num=4096 
Start Downloading PPT
Parallel write enabled

End Downloading PPT
Time taken to download partition: 245 ms

Start Downloading EBT

End Downloading EBT
Time taken to download partition: 247 ms

Start Downloading APP

End Downloading APP
Time taken to download partition: 121124 ms

Start Downloading DTB

End Downloading DTB
Time taken to download partition: 19 ms

Start Downloading GPT

End Downloading GPT
Time taken to download partition: 235 ms
WriterThread: Exiting

Here is what I see on the host side:

sudo ./flash.sh jetson-tk1 mmcblk0p1
kernel_image=/home/austin/Desktop/Tegra_Yocto/Linux_for_Tegra/kernel/zImage
copying bctfile(/home/austin/Desktop/Tegra_Yocto/Linux_for_Tegra/bootloader/ardbeg/BCT/PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_924MHz.cfg)... done.
copying bootloader(/home/austin/Desktop/Tegra_Yocto/Linux_for_Tegra/bootloader/ardbeg/u-boot.bin)... done.
	populating kernel to rootfs... done.
	populating jetson-tk1_extlinux.conf.emmc to rootfs... done.
done.
Making system.img... 
	populating rootfs from /home/austin/Desktop/Tegra_Yocto/Linux_for_Tegra/rootfs ... done.
	Sync'ing system.img ... done.
	Converting RAW image to Sparse image... 

---- Raw to Sparse Image Converter v1.0 ----------------------------
  0: RAW:     3706880(    905 blks) ==>          28:3706892
  1: SKP:       32768(      8 blks) ==>     3706920:32780
  2: RAW:        4096(      1 blks) ==>     3706932:4108
  3: SKP:       61440(     15 blks) ==>     3711040:61452
  4: RAW:     1048576(    256 blks) ==>     3711052:1048588
  5: SKP:    32505856(   7936 blks) ==>     4759640:32505868
  6: RAW:     1630208(    398 blks) ==>     4759652:1630220
  7: SKP:    95227904(  23249 blks) ==>     6389872:95227916
  8: RAW:        8192(      2 blks) ==>     6389884:8204
  9: SKP:     3665920(    895 blks) ==>     6398088:3665932
 10: RAW:    17625088(   4303 blks) ==>     6398100:17625100
 11: SKP:        4096(      1 blks) ==>    24023200:4108
 12: RAW:    18690048(   4563 blks) ==>    24023212:18690060
 13: SKP:        8192(      2 blks) ==>    42713272:8204
 14: RAW:     2609152(    637 blks) ==>    42713284:2609164
 15: SKP:        8192(      2 blks) ==>    45322448:8204
 16: RAW:    15773696(   3851 blks) ==>    45322460:15773708
 17: SKP:       12288(      3 blks) ==>    61096168:12300
 18: RAW:       90112(     22 blks) ==>    61096180:90124
 19: SKP:       12288(      3 blks) ==>    61186304:12300
 20: RAW:       94208(     23 blks) ==>    61186316:94220
 21: SKP:       12288(      3 blks) ==>    61280536:12300
 22: RAW:       90112(     22 blks) ==>    61280548:90124
 23: SKP:       12288(      3 blks) ==>    61370672:12300
 24: RAW:        4096(      1 blks) ==>    61370684:4108
 25: SKP:        4096(      1 blks) ==>    61374792:4108
 26: RAW:       81920(     20 blks) ==>    61374804:81932
 27: SKP:       12288(      3 blks) ==>    61456736:12300
 28: RAW:       90112(     22 blks) ==>    61456748:90124
 29: SKP:       12288(      3 blks) ==>    61546872:12300
 30: RAW:       94208(     23 blks) ==>    61546884:94220
 31: SKP:       12288(      3 blks) ==>    61641104:12300
 32: RAW:       90112(     22 blks) ==>    61641116:90124
 33: SKP:       12288(      3 blks) ==>    61731240:12300
 34: RAW:        4096(      1 blks) ==>    61731252:4108
 35: SKP:        4096(      1 blks) ==>    61735360:4108
 36: RAW:       81920(     20 blks) ==>    61735372:81932
 37: SKP:       12288(      3 blks) ==>    61817304:12300
 38: RAW:       90112(     22 blks) ==>    61817316:90124
 39: SKP:       12288(      3 blks) ==>    61907440:12300
 40: RAW:    53538816(  13071 blks) ==>    61907452:53538828
 41: SKP:        4096(      1 blks) ==>   115446280:4108
 42: RAW:    27512832(   6717 blks) ==>   115446292:27512844
 43: SKP:        8192(      2 blks) ==>   142959136:8204
 44: RAW:      425984(    104 blks) ==>   142959148:425996
 45: SKP:        4096(      1 blks) ==>   143385144:4108
 46: RAW:     2224128(    543 blks) ==>   143385156:2224140
 47: SKP:        8192(      2 blks) ==>   145609296:8204
 48: RAW:    26075136(   6366 blks) ==>   145609308:26075148
 49: SKP:        4096(      1 blks) ==>   171684456:4108
 50: RAW:    44445696(  10851 blks) ==>   171684468:44445708
 51: SKP:       61440(     15 blks) ==>   216130176:61452
 52: RAW:      114688(     28 blks) ==>   216130188:114700
 53: SKP:       16384(      4 blks) ==>   216244888:16396
 54: RAW:     1474560(    360 blks) ==>   216244900:1474572
 55: SKP:        4096(      1 blks) ==>   217719472:4108
 56: RAW:      536576(    131 blks) ==>   217719484:536588
 57: SKP:       61440(     15 blks) ==>   218256072:61452
 58: RAW:      114688(     28 blks) ==>   218256084:114700
 59: SKP:       16384(      4 blks) ==>   218370784:16396
 60: RAW:     5181440(   1265 blks) ==>   218370796:5181452
 61: SKP:       61440(     15 blks) ==>   223552248:61452
 62: RAW:      114688(     28 blks) ==>   223552260:114700
 63: SKP:       16384(      4 blks) ==>   223666960:16396
 64: RAW:     8196096(   2001 blks) ==>   223666972:8196108
 65: SKP:       61440(     15 blks) ==>   231863080:61452
 66: RAW:      114688(     28 blks) ==>   231863092:114700
 67: SKP:       16384(      4 blks) ==>   231977792:16396
 68: RAW:    20340736(   4966 blks) ==>   231977804:20340748
 69: SKP:      126976(     31 blks) ==>   252318552:126988
 70: RAW:      528384(    129 blks) ==>   252318564:528396
 71: SKP:      131072(     32 blks) ==>   252846960:131084
 72: RAW:      159744(     39 blks) ==>   252846972:159756
 73: SKP:      126976(     31 blks) ==>   253006728:126988
 74: RAW:      528384(    129 blks) ==>   253006740:528396
 75: SKP:      131072(     32 blks) ==>   253535136:131084
 76: RAW:    12214272(   2982 blks) ==>   253535148:12214284
 77: SKP:      290816(     71 blks) ==>   265749432:290828
 78: RAW:      319488(     78 blks) ==>   265749444:319500
 79: SKP:      176128(     43 blks) ==>   266068944:176140
 80: RAW:     3371008(    823 blks) ==>   266068956:3371020
 81: SKP:        4096(      1 blks) ==>   269439976:4108
 82: RAW:      245760(     60 blks) ==>   269439988:245772
 83: SKP:     3665920(    895 blks) ==>   269685760:3665932
 84: RAW:     1830912(    447 blks) ==>   269685772:1830924
 85: SKP:       61440(     15 blks) ==>   271516696:61452
 86: RAW:      114688(     28 blks) ==>   271516708:114700
 87: SKP:       16384(      4 blks) ==>   271631408:16396
 88: RAW:     2777088(    678 blks) ==>   271631420:2777100
 89: SKP:       61440(     15 blks) ==>   274408520:61452
 90: RAW:      114688(     28 blks) ==>   274408532:114700
 91: SKP:       16384(      4 blks) ==>   274523232:16396
 92: RAW:     1310720(    320 blks) ==>   274523244:1310732
 93: SKP:       61440(     15 blks) ==>   275833976:61452
 94: RAW:      114688(     28 blks) ==>   275833988:114700
 95: SKP:       16384(      4 blks) ==>   275948688:16396
 96: RAW:     3899392(    952 blks) ==>   275948700:3899404
 97: SKP:       61440(     15 blks) ==>   279848104:61452
 98: RAW:      114688(     28 blks) ==>   279848116:114700
 99: SKP:       16384(      4 blks) ==>   279962816:16396
100: RAW:     2777088(    678 blks) ==>   279962828:2777100
101: SKP:       61440(     15 blks) ==>   282739928:61452
102: RAW:      114688(     28 blks) ==>   282739940:114700
103: SKP:       16384(      4 blks) ==>   282854640:16396
104: RAW:     1314816(    321 blks) ==>   282854652:1314828
105: SKP:       61440(     15 blks) ==>   284169480:61452
106: RAW:      114688(     28 blks) ==>   284169492:114700
107: SKP:       16384(      4 blks) ==>   284284192:16396
108: RAW:     9490432(   2317 blks) ==>   284284204:9490444
109: SKP:       61440(     15 blks) ==>   293774648:61452
110: RAW:      114688(     28 blks) ==>   293774660:114700
111: SKP:       16384(      4 blks) ==>   293889360:16396
112: RAW:     7184384(   1754 blks) ==>   293889372:7184396
113: SKP:       61440(     15 blks) ==>   301073768:61452
114: RAW:      114688(     28 blks) ==>   301073780:114700
115: SKP:       16384(      4 blks) ==>   301188480:16396
116: RAW:     2985984(    729 blks) ==>   301188492:2985996
117: SKP:       61440(     15 blks) ==>   304174488:61452
118: RAW:      114688(     28 blks) ==>   304174500:114700
119: SKP:       16384(      4 blks) ==>   304289200:16396
120: RAW:   136912896(  33426 blks) ==>   304289212:136912908
121: SKP:        8192(      2 blks) ==>   441202120:8204
122: RAW:       90112(     22 blks) ==>   441202132:90124
123: SKP:      172032(     42 blks) ==>   441292256:172044
124: RAW:    47767552(  11662 blks) ==>   441292268:47767564
125: SKP:        4096(      1 blks) ==>   489059832:4108
126: RAW:     4509696(   1101 blks) ==>   489059844:4509708
127: SKP:        4096(      1 blks) ==>   493569552:4108
128: RAW:      208896(     51 blks) ==>   493569564:208908
129: SKP:        4096(      1 blks) ==>   493778472:4108
130: RAW:    39784448(   9713 blks) ==>   493778484:39784460
131: SKP:     3665920(    895 blks) ==>   533562944:3665932
132: RAW:     4587520(   1120 blks) ==>   533562956:4587532
133: SKP:      126976(     31 blks) ==>   538150488:126988
134: RAW:    58630144(  14314 blks) ==>   538150500:58630156
135: SKP:       90112(     22 blks) ==>   596780656:90124
136: RAW:     6250496(   1526 blks) ==>   596780668:6250508
137: SKP:     2138112(    522 blks) ==>   603031176:2138124
138: RAW:      323584(     79 blks) ==>   603031188:323596
139: SKP:       24576(      6 blks) ==>   603354784:24588
140: RAW:    45641728(  11143 blks) ==>   603354796:45641740
141: SKP:        4096(      1 blks) ==>   648996536:4108
142: RAW:        4096(      1 blks) ==>   648996548:4108
143: SKP:       28672(      7 blks) ==>   649000656:28684
144: RAW:      241664(     59 blks) ==>   649000668:241676
145: SKP:     4063232(    992 blks) ==>   649242344:4063244
146: RAW:    27054080(   6605 blks) ==>   649242356:27054092
147: SKP:     6500352(   1587 blks) ==>   676296448:6500364
148: RAW:    33046528(   8068 blks) ==>   676296460:33046540
149: SKP:      507904(    124 blks) ==>   709343000:507916
150: RAW:    57245696(  13976 blks) ==>   709343012:57245708
151: SKP:     1474560(    360 blks) ==>   766588720:1474572
152: RAW:    16785408(   4098 blks) ==>   766588732:16785420
153: SKP:     3665920(    895 blks) ==>   783374152:3665932
154: RAW:    11628544(   2839 blks) ==>   783374164:11628556
155: SKP:     1474560(    360 blks) ==>   795002720:1474572
156: RAW:    16400384(   4004 blks) ==>   795002732:16400396
157: SKP:   235257856(  57436 blks) ==>   811403128:235257868
158: RAW:        8192(      2 blks) ==>   811403140:8204
159: SKP:   939515904( 229374 blks) ==>   811411344:939515916
160: RAW:        8192(      2 blks) ==>   811411356:8204
161: SKP:       57344(     14 blks) ==>   811419560:57356
162: RAW:        4096(      1 blks) ==>   811419572:4108
163: SKP:       61440(     15 blks) ==>   811423680:61452
164: RAW:      671744(    164 blks) ==>   811423692:671756
165: SKP:    32882688(   8028 blks) ==>   812095448:32882700
166: RAW:      618496(    151 blks) ==>   812095460:618508
167: SKP:    99913728(  24393 blks) ==>   812713968:99913740
168: RAW:    41992192(  10252 blks) ==>   812713980:41992204
169: SKP:  1031749632( 251892 blks) ==>   854706184:1031749644
170: RAW:        8192(      2 blks) ==>   854706196:8204
171: SKP:   268427264(  65534 blks) ==>   854714400:268427276
172: RAW:        8192(      2 blks) ==>   854714412:8204
173: SKP:   671080448( 163838 blks) ==>   854722616:671080460
174: RAW:        8192(      2 blks) ==>   854722628:8204
175: SKP:       57344(     14 blks) ==>   854730832:57356
176: RAW:        4096(      1 blks) ==>   854730844:4108
177: SKP:       61440(     15 blks) ==>   854734952:61452
178: RAW:       53248(     13 blks) ==>   854734964:53260
179: SKP:    33501184(   8179 blks) ==>   854788224:33501196
180: RAW:      143360(     35 blks) ==>   854788236:143372
181: SKP:   100388864(  24509 blks) ==>   854931608:100388876
182: RAW:      413696(    101 blks) ==>   854931620:413708
183: SKP:  2012852224( 491419 blks) ==>   855345328:2012852236
184: RAW:       12288(      3 blks) ==>   855345340:12300
185: SKP:       53248(     13 blks) ==>   855357640:53260
186: RAW:        4096(      1 blks) ==>   855357652:4108
187: SKP:       61440(     15 blks) ==>   855361760:61452
188: RAW:        4096(      1 blks) ==>   855361772:4108
189: SKP:    33550336(   8191 blks) ==>   855365880:33550348
190: RAW:       32768(      8 blks) ==>   855365892:32780
191: SKP:   100499456(  24536 blks) ==>   855398672:100499468
192: RAW:        8192(      2 blks) ==>   855398684:8204
193: SKP:     3665920(    895 blks) ==>   855406888:3665932
194: RAW:    10407936(   2541 blks) ==>   855406900:10407948
195: SKP:  1999183872( 488082 blks) ==>   865814848:1999183884
196: RAW:        8192(      2 blks) ==>   865814860:8204
197: SKP:       57344(     14 blks) ==>   865823064:57356
198: RAW:        4096(      1 blks) ==>   865823076:4108
199: SKP:       61440(     15 blks) ==>   865827184:61452
200: RAW:       32768(      8 blks) ==>   865827196:32780
201: SKP:    33521664(   8184 blks) ==>   865859976:33521676
202: RAW:       20480(      5 blks) ==>   865859988:20492
203: SKP:   100511744(  24539 blks) ==>   865880480:100511756
204: RAW:    10952704(   2674 blks) ==>   865880492:10952716
205: SKP:        8192(      2 blks) ==>   876833208:8204
206: RAW:       49152(     12 blks) ==>   876833220:49164
207: SKP:  2002255872( 488832 blks) ==>   876882384:2002255884
208: RAW:        8192(      2 blks) ==>   876882396:8204
209: SKP:       57344(     14 blks) ==>   876890600:57356
210: RAW:        4096(      1 blks) ==>   876890612:4108
211: SKP:       61440(     15 blks) ==>   876894720:61452
212: RAW:     1867776(    456 blks) ==>   876894732:1867788
213: SKP:    31686656(   7736 blks) ==>   878762520:31686668
214: RAW:     2379776(    581 blks) ==>   878762532:2379788
215: SKP:    98152448(  23963 blks) ==>   881142320:98152460
216: RAW:        8192(      2 blks) ==>   881142332:8204
217: SKP:     3665920(    895 blks) ==>   881150536:3665932
218: RAW:   107188224(  26169 blks) ==>   881150548:107188236
219: SKP:  1902403584( 464454 blks) ==>   988338784:1902403596
220: RAW:        8192(      2 blks) ==>   988338796:8204
221: SKP:       57344(     14 blks) ==>   988347000:57356
222: RAW:        4096(      1 blks) ==>   988347012:4108
223: SKP:       61440(     15 blks) ==>   988351120:61452
224: RAW:       45056(     11 blks) ==>   988351132:45068
225: SKP:    33509376(   8181 blks) ==>   988396200:33509388
226: RAW:       24576(      6 blks) ==>   988396212:24588
227: SKP:   100507648(  24538 blks) ==>   988420800:100507660
228: RAW:     3694592(    902 blks) ==>   988420812:3694604
229: SKP:        8192(      2 blks) ==>   992115416:8204
230: RAW:      172032(     42 blks) ==>   992115428:172044
231: SKP:        8192(      2 blks) ==>   992287472:8204
232: RAW:      126976(     31 blks) ==>   992287484:126988
233: SKP:        8192(      2 blks) ==>   992414472:8204
234: RAW:       49152(     12 blks) ==>   992414484:49164
235: SKP:        8192(      2 blks) ==>   992463648:8204
236: RAW:      110592(     27 blks) ==>   992463660:110604
237: SKP:        8192(      2 blks) ==>   992574264:8204
238: RAW:     1802240(    440 blks) ==>   992574276:1802252
239: SKP:  2007269376( 490056 blks) ==>   994376528:2007269388
-- Total: -----------------------------------------------------------
240 CHUNK 15032385536(3670016 blks) ==>   994376540(242767 blks)

done.
system.img built successfully. 
copying dtbfile(/home/austin/Desktop/Tegra_Yocto/Linux_for_Tegra/kernel/dtb/tegra124-jetson_tk1-pm375-000-c00-00.dtb)... done.
copying cfgfile(/home/austin/Desktop/Tegra_Yocto/Linux_for_Tegra/bootloader/ardbeg/cfg/gnu_linux_fastboot_emmc_full.cfg) to flash.cfg... done.
creating gpt(ppt.img)... 

*** GPT Parameters ***
Device Sector Size ------- 512
device size -------------- 15766388736
bootpart size ------------ 8388608
userpart size ------------ 15758000128
Erase Block Size --------- 2097152
FS Buffer size ----------- 4096
Partition Config file ---- flash.cfg
Visible partition flag --- GP1
Primary GPT output ------- PPT->ppt.img
Secondary GPT output ----- GPT->gpt.img
Target device name ------- none

*** PARTITION LAYOUT(20 partitions) ***
[     BCT] BH            0        16383       8.0MiB 
[     PPT] UH            0         4095       2.0MiB ppt.img
[      PT] UH         4096         8191       2.0MiB 
[     EBT] UH         8192        16383       4.0MiB u-boot.bin
[     LNX] UH        16384        49151      16.0MiB 
[     SOS] UH        49152        61439       6.0MiB 
[     NVC] UH        61440        65535       2.0MiB 
[     MPB] UH        65536        77823       6.0MiB 
[     MBP] UH        77824        90111       6.0MiB 
[     GP1] UH        90112        94207       2.0MiB 
[     APP] UV        94208     29454335   14336.0MiB system.img
[     DTB] UV     29454336     29462527       4.0MiB tegra124-jetson_tk1-pm375-000-c00-00.dtb
[     EFI] UV     29462528     29593599      64.0MiB 
[     USP] UV     29593600     29601791       4.0MiB 
[     TP1] UV     29601792     29609983       4.0MiB 
[     TP2] UV     29609984     29618175       4.0MiB 
[     TP3] UV     29618176     29626367       4.0MiB 
[     WB0] UV     29626368     29630463       2.0MiB 
[     UDA] UV     29630464     30773247     558.0MiB 
[     GPT] UH     30773248     30777343       2.0MiB gpt.img
copying flasher(/home/austin/Desktop/Tegra_Yocto/Linux_for_Tegra/bootloader/ardbeg/fastboot.bin)... done.
Existing flashapp(/home/austin/Desktop/Tegra_Yocto/Linux_for_Tegra/bootloader/nvflash) reused.
*** Flashing target device started. ***
./nvflash  --bct PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_924MHz.cfg --setbct --configfile flash.cfg  --create --bl fastboot.bin --odmdata 0x6009C000 --go
Nvflash 4.13.0000 started
BR_CID: 0x34001001741141021c00000015fc8400
rcm version 0X400001
Skipping BoardID read at miniloader level
System Information:
   chip name: unknown
   chip id: 0x40 major: 1 minor: 1
   chip sku: 0x0
   chip uid: 0x00000001741141021c00000015fc8400
   macrovision: disabled
   hdcp: disabled
   jtag: disabled
   sbk burned: false
   board id: 0
   warranty fuse: 0
   dk burned: false
   boot device: emmc
   operating mode: 3
   device config strap: 0
   device config fuse: 0
   sdram config strap: 0

RCM communication completed
BCT sent successfully
sending file: tegra124-jetson_tk1-pm375-000-c00-00.dtb
- 59661/59661 bytes sent
tegra124-jetson_tk1-pm375-000-c00-00.dtb sent successfully
odm data: 0x6009c000
downloading bootloader -- load address: 0x83d88000 entry point: 0x83d88000
sending file: fastboot.bin
- 594363/594363 bytes sent
fastboot.bin sent successfully
waiting for bootloader to initialize
bootloader downloaded successfully
ML execution and Cpu Handover took 1 Secs
Partition backup took 0 Secs
setting device: 2 3
deleting device partitions
creating partition: BCT
creating partition: PPT
creating partition: PT
creating partition: EBT
creating partition: LNX
creating partition: SOS
creating partition: NVC
creating partition: MPB
creating partition: MBP
creating partition: GP1
creating partition: APP
creating partition: DTB
creating partition: EFI
creating partition: USP
creating partition: TP1
creating partition: TP2
creating partition: TP3
creating partition: WB0
creating partition: UDA
creating partition: GPT
sending file: ppt.img
\ 2097152/2097152 bytes sent
ppt.img sent successfully
padded 15 bytes to bootloader
sending file: u-boot.bin
- 507712/507712 bytes sent
u-boot.bin sent successfully
sending file: system.img
- 994376540/994376540 bytes sent
system.img sent successfully
sending file: tegra124-jetson_tk1-pm375-000-c00-00.dtb
- 59661/59661 bytes sent
tegra124-jetson_tk1-pm375-000-c00-00.dtb sent successfully
sending file: gpt.img
\ 2097152/2097152 bytes sent
gpt.img sent successfully
Create, format and download  took 131 Secs
Time taken for flashing 134 Secs
*** The target ardbeg has been flashed successfully. ***
Reset the board to boot from internal eMMC.

I am already aware of these somewhat similar threads, but they don’t seem to help me in my situation:

https://devtalk.nvidia.com/default/topic/802953/jetson-tk1/how-to-compile-amp-install-mainline-u-boot-/
https://devtalk.nvidia.com/default/topic/935452/jetson-tk1/compiled-u-boot-from-source-does-not-work/
https://devtalk.nvidia.com/default/topic/905345/built-tx1-u-boot-from-source/

Can someone please help me out, it would be much appreciated.

Thanks,

Austin

aowens,

"I understand that I am using r27.1 for u-boot whereas I am using r21.5 for the kernel release which could be leading to potential issues,
=> that’s very true :)

"but I did a checkout on u-boot l4t-r21.5 as well (same release as kernel) and it still didn’t work.
=> What is ‘still didn’t work’? Because it’s missing features you mentioned below?
=> What is the issue you are trying to resolve?

"I am using a later release of u-boot because I need some of the features within the u-boot r27.1 release that the u-boot r21.5 release doesn’t have.
=> What is the features inside u-boot r27.1 that is not in r21.5 that you will need? Possible to port it over to r21.5 yourself?

Chijen,

Thanks for your response.

=> “What is ‘still didn’t work’? Because it’s missing features you mentioned below?”
==> Still didn’t work as in everything seems to be going fine (no error messages on host or TK1 side) except that the boot ROM code on the TK1 seems to be hanging after printing the line “WriterThread: Exiting”. The code snippets I placed in the thread are nearly identical, if not the same, for both u-boot l4t-r21.5 and u-boot l4t-r27.1. NOTE: I’m assuming the boot ROM code is having difficulties launching the bootloader for reasons that I’m trying to find out so I can resolve the issue. But I guess it’s also reasonable to assume that the boot ROM code has already passed control over to the bootloader and the bootloader is dropping the baton here. I imagine the only reasons the boot ROM code would fail to hand off control to u-boot is if there is a BOARDID mismatch, which shouldn’t be the case since I am using the Jetson-TK1 and haven’t overwritten the EEPROM with a new board ID (its still commented in jetson-tk1.conf as “#BOARDID=“0x177 0x00 0x03”;”).

In short, code on the TK1 hangs and I am never able to get to a u-boot shell prompt, let alone even boot the Linux kernel.

=> What is the features inside u-boot r27.1 that is not in r21.5 that you will need? Possible to port it over to r21.5 yourself?
==> There are several great features that I’d like to incorporate like the new timing features where u-boot gives you timing statistics and stores that info in the OS device tree so userspace applications can access it. Disabling of L2 cache is also appealing to me for benchmarking purposes. I also am interested in adding several additional cmds to the u-boot shell as well as support for booting from different booting media. I could port them over myself from r21.5 to r27.1 if I could even get u-boot r21.5 to launch, but It seems like the underlying issue here is independent from u-boot versions seeing as how the two versions of the bootloader are acting up in the same manner.

aowens,
When you first got the TK1 board, did it work? Like to ensure not an issue with board itself. R21.5 is the right version of BSP for TK1.

Chijen,

Yes, it worked when I first got the board. It even works when I switch back to using the original u-boot that came with the driver package.

Anyone still there? I still haven’t been able to resolve this issue.

Hi aowens,

As our previous comments, to use R27.1 u-boot on TK1 could be leading to potential issues, this is not suggested as it’s out of current scope we can support.
Hopes other developers could share their experiences if they had ever completed similar task on their project before.

Thanks

Hi Kayccc,

I did a checkout on u-boot l4t-r21.5 as well (same release as kernel) and it still didn’t work.

Hi all,

Curious if anyone else has had experience putting their own bootloader on the TK1 and how exactly it was done.

Thanks,

Austin

Hi Guys,

We are facing with very strange problem on bootloader. We created custom board based on TK1 CD575M - A1 with SDIN8DE4 - 16G Taiwan made one and SKYHYNIX CFR-PBA 4 rams. We did full SHMOO test successfully and created necessary files. Successfully flashed IMG files in to the system. However, system stops on very early stage of the booting.

It is very strange because when we flash android os on this exact same system it works. Last month, we made 10pcs of exact same sample boards which were working fine. When we flash L4T in to this system, it shows following error. Please help us to sort out this issue guys. Thanks!

Here I attached my log and i have no clue with this problem at all.

U-Boot SPL 2014.10-rc2-g3127911 (Jun 07 2016 - 21:00:01)                        
                                                                                
                                                                                
U-Boot 2014.10-rc2-g3127911 (Jun 07 2016 - 21:00:01)                            
                                                                                
TEGRA124                                                                        
Board: NVIDIA Jetson TK1                                                        
I2C:   ready                                                                    
DRAM:  2 GiB                                                                    
MMC:   Tegra SD/MMC: 0, Tegra SD/MMC: 1                                         
*** Warning - bad CRC, using default environment                                
                                                                                
tegra-pcie: PCI regions:                                                        
tegra-pcie:   I/O: 0x12000000-0x12010000                                        
tegra-pcie:   non-prefetchable memory: 0x13000000-0x20000000                    
tegra-pcie:   prefetchable memory: 0x20000000-0x40000000                        
tegra-pcie: 2x1, 1x1 configuration                                              
ERROR: tegra-pcie: failed to power on PHY: -110                                 
                                                   
at /dvs/git/dirty/git-master_linux/3rdparty/u-boot/drivers/pci/pci_tegra.c:740/)
ERROR: tegra-pcie: failed to enable controller                                  
at /dvs/git/dirty/git-master_linux/3rdparty/u-boot/drivers/pci/pci_tegra.c:1055)
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
Net:   No ethernet found.                                                       
Hit any key to stop autoboot:  0                                                
MMC: no card present                                                            
switch to partitions #0, OK                                                     
mmc0(part 0) is current device                                                  
Scanning mmc 0...                                                               
GPT: last_usable_lba incorrect: 1D58FFF > 1D52000                               
get_partition_info_efi: *** ERROR: Invalid GPT ***                              
GPT: my_lba incorrect: 1D59FFF != 1D51FFF                                       
get_partition_info_efi: *** ERROR: Invalid Backup GPT ***                       
** Invalid partition 1 **                                                       
GPT: last_usable_lba incorrect: 1D58FFF > 1D52000                               
get_partition_info_efi: *** ERROR: Invalid GPT ***                              
GPT: my_lba incorrect: 1D59FFF != 1D51FFF                                       
get_partition_info_efi: *** ERROR: Invalid Backup GPT ***                       
** Invalid partition 1 **                                                       
GPT: last_usable_lba incorrect: 1D58FFF > 1D52000                               
get_partition_info_efi: *** ERROR: Invalid GPT ***                              
GPT: my_lba incorrect: 1D59FFF != 1D51FFF                                       
get_partition_info_efi: *** ERROR: Invalid Backup GPT ***                       
** Invalid partition 1 **                                                       
GPT: last_usable_lba incorrect: 1D58FFF > 1D52000                               
get_partition_info_efi: *** ERROR: Invalid GPT ***                              
GPT: my_lba incorrect: 1D59FFF != 1D51FFF                                       
get_partition_info_efi: *** ERROR: Invalid Backup GPT ***                       
** Invalid partition 1 **                                                       
GPT: last_usable_lba incorrect: 1D58FFF > 1D52000                               
get_partition_info_efi: *** ERROR: Invalid GPT ***                              
GPT: my_lba incorrect: 1D59FFF != 1D51FFF                                       
get_partition_info_efi: *** ERROR: Invalid Backup GPT ***                       
** Invalid partition 1 **                                                       
GPT: last_usable_lba incorrect: 1D58FFF > 1D52000                               
get_partition_info_efi: *** ERROR: Invalid GPT ***                              
GPT: my_lba incorrect: 1D59FFF != 1D51FFF                                       
get_partition_info_efi: *** ERROR: Invalid Backup GPT ***                       
** Invalid partition 1 **                                                       
(Re)start USB...                                                                
USB0:   USB EHCI 1.10                                                           
scanning bus 0 for devices... 1 USB Device(s) found                             
USB1:   USB EHCI 1.10                                                           
scanning bus 1 for devices... 1 USB Device(s) found                             
       scanning usb for storage devices... 0 Storage Device(s) found            
       scanning usb for ethernet devices... 0 Ethernet Device(s) found          
                                                                                
USB device 0: unknown device                                                    
No ethernet found.                                                              
missing environment variable: pxeuuid                                           
missing environment variable: bootfile                                          
Retrieving file: pxelinux.cfg/00000000                                          
No ethernet found.                                                              
missing environment variable: bootfile                                          
Retrieving file: pxelinux.cfg/0000000                                           
No ethernet found.                                                              
missing environment variable: bootfile                                          
Retrieving file: pxelinux.cfg/000000                                            
No ethernet found.                                                              
missing environment variable: bootfile                                          
Retrieving file: pxelinux.cfg/00000                                             
No ethernet found.                                                              
missing environment variable: bootfile                                          
Retrieving file: pxelinux.cfg/0000                                              
No ethernet found.                                                              
missing environment variable: bootfile                                          
Retrieving file: pxelinux.cfg/000                                               
No ethernet found.                                                              
missing environment variable: bootfile                                          
Retrieving file: pxelinux.cfg/00                                                
No ethernet found.                                                              
missing environment variable: bootfile                                          
Retrieving file: pxelinux.cfg/0                                                 
No ethernet found.                                                              
missing environment variable: bootfile                                          
Retrieving file: pxelinux.cfg/default-arm-tegra124                              
No ethernet found.                                                              
missing..