Xavier/JetPack 5.0.2/Flashing Board/Flash Filesystem: Difference between revisions
m (Emadrigal moved page Xavier/JetPack 4.0/Flash Filesystem to Xavier/JetPack 4.0/Flashing Board/Flash Filesystem) |
m (Fherrera moved page Xavier/JetPack 4.1/Flashing Board/Flash Filesystem to Xavier/JetPack 5.0.2/Flashing Board/Flash Filesystem: update) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Xavier/Head}} | {{Xavier/Head|previous=JetPack 4.1/Flashing Board|next=JetPack 4.1/Flashing Board/Flash Kernel|keywords=jetpack,flashing,image,flash,flashing board,filesystem}} | ||
</noinclude> | </noinclude> | ||
<!-- If you want a custom title for the page, un-comment and edit this line: | <!-- If you want a custom title for the page, un-comment and edit this line: | ||
{{DISPLAYTITLE:NVIDIA Jetson Xavier - <descriptive page name>|noerror}} | {{DISPLAYTITLE:NVIDIA Jetson Xavier - <descriptive page name>|noerror}} | ||
--> | --> | ||
=Flash Filesystem= | ==Flash Filesystem== | ||
==EMMC== | ===EMMC=== | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
Line 16: | Line 17: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==USB== | ===USB=== | ||
'''Important:''' Only for 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]. | ||
To flash the filesystem to USB you need to put the filesystem on the USB first | To flash the filesystem to USB you need to put the filesystem on the USB first | ||
Line 55: | Line 56: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== SD Card == | === SD Card === | ||
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 <code>extlinux.conf</code>, so before copying the filesystem into the SD card run: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
JETPACK_DIR=/home/$USER/JetPack/ | JETPACK_DIR=/home/$USER/JetPack/ | ||
Line 70: | Line 71: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== NFS == | === NFS === | ||
1) First you need to set up your NFS server using [ | 1) First you need to set up your NFS server using [[Setting_Up_A_NFS_Service|these instructions]]. | ||
2) Open file in $JETPACK_DIR/Xavier/Linux_for_Tegra/rootfs/etc/network/interfaces and add | 2) Open file in <code>$JETPACK_DIR/Xavier/Linux_for_Tegra/rootfs/etc/network/interfaces</code> and add: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
auto eth0 | auto eth0 | ||
Line 79: | Line 80: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
3) Then flash the board to generate and install the initrd image to use | 3) Then flash the board to generate and install the initrd image to use NFS, you need to do this every time that you recompile the kernel | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
Line 88: | Line 89: | ||
<noinclude> | <noinclude> | ||
{{Xavier/Foot| | {{Xavier/Foot|JetPack 4.1/Flashing Board|JetPack 4.1/Flashing Board/Flash Kernel}} | ||
</noinclude> | </noinclude> |
Latest revision as of 15:26, 17 August 2022
Flash Filesystem
EMMC
JETPACK_DIR=/home/$USER/JetPack/ cd $JETPACK_DIR/Xavier/Linux_for_Tegra/ sudo ./flash.sh jetson-xavier mmcblk0p1
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 here.
To flash the filesystem to USB you need to put the filesystem on the USB first
1) Insert your USB flash/drive in your PC and check where it was mounted:
$ mount /dev/sdb1 on /media/$USER/EF02-5626 type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
2) Format the USB drive in your PCB
umount /dev/sdb1 sudo mkfs.ext4 /dev/sdb1
3) Copy the filesystem to the USB drive. It takes a while, its size is around 2.4GB
JETPACK_DIR=/home/$USER/JetPack/ DEVDIR=/home/$USER/devdirs/ mkdir $DEVDIR/images/fs sudo mount /dev/sdb1 $DEVDIR/images/fs cd $JETPACK_DIR/Xavier/Linux_for_Tegra/rootfs/ sudo cp -a * $DEVDIR/images/fs && sync
4) Unmount the USB drive and remove it
sudo umount $DEVDIR/images/fs
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:
cd $JETPACK_DIR/Xavier/Linux_for_Tegra/ sudo ./flash.sh jetson-xavier sdb1 #it can be other mount point
SD Card
Similar to USB but you need to replace the extlinux.conf
, so before copying the filesystem into the SD card run:
JETPACK_DIR=/home/$USER/JetPack/ sudo cp $JETPACK_DIR/Xavier/Linux_for_Tegra/bootloader/t186ref/p2771-0000/extlinux.conf.sdcard $JETPACK_DIR/Xavier/Linux_for_Tegra/rootfs/boot/extlinux/extlinux.conf
then flash it
cd $JETPACK_DIR/Xavier/Linux_for_Tegra/ sudo ./flash.sh jetson-xavier mmcblk1p1
NFS
1) First you need to set up your NFS server using these instructions.
2) Open file in $JETPACK_DIR/Xavier/Linux_for_Tegra/rootfs/etc/network/interfaces
and add:
auto eth0 iface eth0 inet manual
3) Then flash the board to generate and install the initrd image to use NFS, you need to do this every time that you recompile the kernel
JETPACK_DIR=/home/$USER/JetPack/ cd $JETPACK_DIR/Xavier/Linux_for_Tegra/ sudo ./flash.sh -N $MY_IPADDRESS:$JETPACK_DIR/Xavier/Linux_for_Tegra/rootfs --rcm-boot jetson-xavier eth0