Jump to content

Compiling Jetson TX1/TX2 source code: Difference between revisions

m (Updating X1 links to TX1 links to avoid redirection to top of the page instead of the actual section)
Line 371: Line 371:
'''NOTE:''' Use mmcblk1p1 for SDcard and mmcblk0p1 for emmc.
'''NOTE:''' Use mmcblk1p1 for SDcard and mmcblk0p1 for emmc.


'''NOTE:''' I also found this way to do it from the board, but it could cause errors (see [https://devtalk.nvidia.com/default/topic/1021660/is-there-any-other-method-in-l4t-r28-1-to-update-dtb-file-for-tx1-besides-flashing-the-dtb-partitio-/ here]):
=== Flash DTB from the Jetson device itself ===


*'''TX1'''
You'll need to generate signed/encrypted dtb files through the flash scripts and then flash it to the kernel-dtb partition of the Jetson device.


1. To generate the signed/encrypted dtb file follow these steps (tested JP 4.2 TX2):
<pre>
<pre>
sudo dd if=tegra210-jetson-tx1-p2597-2180-a01-devkit.dtb of=/dev/mmcblk0p13
cd $DEVDIR
sudo ./flash.sh --no-flash -r -k kernel-dtb jetson-tx2 mmcblk0p1
</pre>
</pre>


*'''TX2'''
The above command will generate the following encrypted dtb file:
<pre>
$DEVDIR/bootloader/tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt
</pre>
 
2. Check the partition labels of your Jetson device:
<pre>
nvidia@nvidia-desktop:~$ ls -al /dev/disk/by-partlabel
total 0
drwxr-xr-x 2 root root 660 jun 26 11:42 .
drwxr-xr-x 8 root root 160 jun 26 11:45 ..
lrwxrwxrwx 1 root root  16 jun 26 11:42 adsp-fw -> ../../mmcblk0p11
lrwxrwxrwx 1 root root  16 jun 26 11:42 adsp-fw_b -> ../../mmcblk0p12
lrwxrwxrwx 1 root root  15 jun 26 11:42 APP -> ../../mmcblk0p1
lrwxrwxrwx 1 root root  16 jun 26 11:42 BMP -> ../../mmcblk0p22
lrwxrwxrwx 1 root root  16 jun 26 11:42 BMP_b -> ../../mmcblk0p23
lrwxrwxrwx 1 root root  15 jun 26 11:42 bootloader-dtb -> ../../mmcblk0p6
lrwxrwxrwx 1 root root  15 jun 26 11:42 bootloader-dtb_b -> ../../mmcblk0p7
lrwxrwxrwx 1 root root  16 jun 26 11:42 bpmp-fw -> ../../mmcblk0p13
lrwxrwxrwx 1 root root  16 jun 26 11:42 bpmp-fw_b -> ../../mmcblk0p14
lrwxrwxrwx 1 root root  16 jun 26 11:42 bpmp-fw-dtb -> ../../mmcblk0p15
lrwxrwxrwx 1 root root  16 jun 26 11:42 bpmp-fw-dtb_b -> ../../mmcblk0p16
lrwxrwxrwx 1 root root  16 jun 26 11:42 CAC -> ../../mmcblk0p30
lrwxrwxrwx 1 root root  15 jun 26 11:42 cpu-bootloader -> ../../mmcblk0p4
lrwxrwxrwx 1 root root  15 jun 26 11:42 cpu-bootloader_b -> ../../mmcblk0p5
lrwxrwxrwx 1 root root  16 jun 26 11:42 eks -> ../../mmcblk0p10
lrwxrwxrwx 1 root root  16 jun 26 11:42 FBNAME -> ../../mmcblk0p21
lrwxrwxrwx 1 root root  16 jun 26 11:42 kernel -> ../../mmcblk0p26
lrwxrwxrwx 1 root root  16 jun 26 11:42 kernel_b -> ../../mmcblk0p27
lrwxrwxrwx 1 root root  16 jun 26 11:42 kernel-dtb -> ../../mmcblk0p28
lrwxrwxrwx 1 root root  16 jun 26 11:42 kernel-dtb_b -> ../../mmcblk0p29
lrwxrwxrwx 1 root root  15 jun 26 11:42 mts-bootpack -> ../../mmcblk0p2
lrwxrwxrwx 1 root root  15 jun 26 11:42 mts-bootpack_b -> ../../mmcblk0p3
lrwxrwxrwx 1 root root  16 jun 26 11:42 sc7 -> ../../mmcblk0p19
lrwxrwxrwx 1 root root  16 jun 26 11:42 sc7_b -> ../../mmcblk0p20
lrwxrwxrwx 1 root root  16 jun 26 11:42 sce-fw -> ../../mmcblk0p17
lrwxrwxrwx 1 root root  16 jun 26 11:42 sce-fw_b -> ../../mmcblk0p18
lrwxrwxrwx 1 root root  15 jun 26 11:42 secure-os -> ../../mmcblk0p8
lrwxrwxrwx 1 root root  15 jun 26 11:42 secure-os_b -> ../../mmcblk0p9
lrwxrwxrwx 1 root root  16 jun 26 11:42 SOS -> ../../mmcblk0p24
lrwxrwxrwx 1 root root  16 jun 26 11:42 SOS_b -> ../../mmcblk0p25
lrwxrwxrwx 1 root root  16 jun 26 11:42 UDA -> ../../mmcblk0p31
</pre>
 
The partition of interest is the following:
<pre>
kernel-dtb -> ../../mmcblk0p28
</pre>
 
3. Flash the encrypted dtb file into the kernel-dtb Jetson device partition:
Transfer the encrypted dtb file to your jetson device.
<pre>
scp $DEVDIR/bootloader/tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt nvidia@10.251.101.96:
</pre>


Overwrite dtb partition, and perform warm-reboot to take effect:
<pre>
<pre>
sudo dd if=tegra186-quill-p3310-1000-c03-00-base.dtb of=/dev/mmcblk0p13
sudo dd if=tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt of=/dev/mmcblk0p28 bs=1M
sudo reboot
</pre>
</pre>


1,433

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.