Jump to content

Compiling Jetson TX1/TX2 source code: Difference between revisions

Line 621: Line 621:
==== Emmc ====
==== Emmc ====
To flash the filesystem in the emmc you need to run:
To flash the filesystem in the emmc you need to run:
*'''TX1'''
<pre>
<pre>
cd $DEVDIR/64_TX1/Linux_for_Tegra_64_tx1/
cd $DEVDIR/
sudo ./flash.sh jetson-tx1 mmcblk0p1
sudo ./flash.sh jetson-tx1 mmcblk0p1
</pre>
</pre>
*'''TX2'''
<pre>
cd $DEVDIR/
sudo ./flash.sh jetson-tx2 mmcblk0p1
</pre>
==== USB ====
==== USB ====
'''Important:''' Only for USB tegra needs a firmware that is loaded from the filesystem so the USB port is not enabled on uboot and then it causes problems to mount the fs from there, you can read about it [https://devtalk.nvidia.com/default/topic/933850/jetson-tx1/tx1-boot-from-usb/?offset=2#4871443 here].
'''Important:''' Only for USB tegra needs a firmware that is loaded from the filesystem so the USB port is not enabled on uboot and then it causes problems to mount the fs from there, you can read about it [https://devtalk.nvidia.com/default/topic/933850/jetson-tx1/tx1-boot-from-usb/?offset=2#4871443 here].
Line 644: Line 654:
mkdir $DEVDIR/images/fs
mkdir $DEVDIR/images/fs
sudo mount /dev/sdb1 $DEVDIR/images/fs  
sudo mount /dev/sdb1 $DEVDIR/images/fs  
cd $DEVDIR/64_TX1/Linux_for_Tegra_64_tx1/rootfs/
cd $DEVDIR/rootfs/
sudo cp -a * $DEVDIR/images/fs  && sync
sudo cp -a * $DEVDIR/images/fs  && sync
</pre>
</pre>
Line 652: Line 662:
</pre>
</pre>
5) Finally connect the USB drive to the Jetson board put the Jetson on recovery mode, flash the board to look for the filesystem on the USB port:
5) Finally connect the USB drive to the Jetson board put the Jetson on recovery mode, flash the board to look for the filesystem on the USB port:
*'''TX1'''
<pre>
<pre>
cd $DEVDIR/64_TX1/Linux_for_Tegra_64_tx1/
cd $DEVDIR/
sudo ./flash.sh jetson-tx1 sda1 #it can be other mount point
sudo ./flash.sh jetson-tx1 sda1 #it can be other mount point
</pre>
*'''TX2'''
<pre>
cd $DEVDIR/
sudo ./flash.sh jetson-tx2 sda1 #it can be other mount point
</pre>
</pre>


Line 660: Line 679:


Similar to USB but you need to replace the extlinux.conf so before copying the filesystem into the SD card run:
Similar to USB but you need to replace the extlinux.conf so before copying the filesystem into the SD card run:
*'''TX1'''
<pre>
<pre>
sudo cp $DEVDIR/64_TX1/Linux_for_Tegra_64_tx1/bootloader/t210ref/p2371-2180-devkit/extlinux.conf.sdcard $DEVDIR/64_TX1/Linux_for_Tegra_64_tx1/rootfs/boot/extlinux/extlinux.conf
sudo cp $DEVDIR/bootloader/t210ref/p2371-2180-devkit/extlinux.conf.sdcard $DEVDIR/rootfs/boot/extlinux/extlinux.conf
</pre>
 
 
*'''TX2'''
<pre>
sudo cp $DEVDIR/bootloader/t186ref/p2771-0000/extlinux.conf.sdcard $DEVDIR/rootfs/boot/extlinux/extlinux.conf
</pre>
</pre>


Line 667: Line 694:


<pre>
<pre>
cd $DEVDIR/64_TX1/Linux_for_Tegra_64_tx1/
cd $DEVDIR/
</pre>
 
*'''TX1'''
<pre>
sudo ./flash.sh jetson-tx1 mmcblk1p1  
sudo ./flash.sh jetson-tx1 mmcblk1p1  
</pre>
*'''TX2'''
<pre>
sudo ./flash.sh jetson-tx2 mmcblk1p1
</pre>
</pre>


Line 674: Line 711:
1) First you need to set up your NFS server using [https://developer.ridgerun.com/wiki/index.php/Getting_Started_Guide_for_DM8168_EVM#Setting_up_an_NFS_server these instructions].
1) First you need to set up your NFS server using [https://developer.ridgerun.com/wiki/index.php/Getting_Started_Guide_for_DM8168_EVM#Setting_up_an_NFS_server these instructions].


2) Open file in $DEVDIR/64_TX1/Linux_for_Tegra_64_tx1/rootfs/etc/network/interfaces and add
2) Open file in $DEVDIR/rootfs/etc/network/interfaces and add
<pre>
<pre>
auto eth0
auto eth0
Line 683: Line 720:


<pre>
<pre>
cd $DEVDIR/64_TX1/Linux_for_Tegra_64_tx1/
cd $DEVDIR/
MY_IPADDRESS=192.169.0.3
MY_IPADDRESS=192.169.0.3
sudo ./flash.sh -N $MY_IPADDRESS:$DEVDIR/64_TX1/Linux_for_Tegra_64_tx1/rootfs jetson-tx1 eth0
sudo ./flash.sh -N $MY_IPADDRESS:$DEVDIR/rootfs jetson-tx1 eth0 #use jetson-tx2 for TX2
</pre>
</pre>


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