NVIDIA Tegra
NVIDIA Tegra Linux Driver Package

Development Guide
31.1 Release


 
Flashing and Booting the Target Device
 
Before You Begin
Increasing Internal Memory Partition for Root File System
Determining the Success of a Driver Update
Use the flash.sh helper script to flash the board with the boot loader and kernel, and optionally, flash the root file system to internal eMMC.
Before You Begin
The following directories must be present:
bootloader—boot loader plus flashing tools, such as NvFlash, CFG, BCT, etc.
kernel—a kernel Image /vmlinux.uimg, DTB files, and kernel modules
rootfs—the root file system that you download
This directory starts empty and you populate it with the sample file system.
nv_tegra—NVIDIA® Tegra® user space binaries and sample applications
Additionally, before running these commands, you must have the USB cable connected to the recovery port.
To flash using a USB
Use the USB device mode default configuration script and associated README that describes how the USB flashing port operates in device mode.
For details, see Quick Start Guide.
To flash the boot loader and kernel
1. Put the target into reset/recovery mode.
Power on the carrier board and hold the RECOVERY button.
Then press the RESET button.
2. Run the flash.sh script that is in the top-level directory of this release. The script must be supplied with the target board (jetson-xavier) for the root file system:
sudo ./flash.sh <platform> <rootdev>
Where <rootdev> depends on where the root file system is located:
For a root file system on the Jetson-Xavier internal eMMC, execute the script as follows:
sudo ./flash.sh jetson-xavier mmcblk0p1
To RAM boot to NFS
1. Put the device into reset/recovery mode.
Power on the carrier board and hold the RECOVERY button.
Then press the RESET button.
2. Execute the command:
sudo ./flash.sh -N <ip-addr-of-linux-host>:/<path-to-NFS-rootfs> --rcm-boot jetson-xavier eth0
Flash Script Usage
Locate the most up-to-date usage information by running flash.sh -h (using the flash.sh script included in the release). The basic usage is as follows.
sudo ./flash.sh [options] <platform> <rootdev>
Specify the required parameters and one or more of the options.
Increasing Internal Memory Partition for Root File System
The suggested rootfs partition size for the Jetson-Xavierplatform is 15 gigabytes (GB). It is specified by default in the <target_board>.conf file used by the flash.sh script.
Use the -S <size-in-bytes> argument to flash.sh to change the partition size.
To flash for a larger partition
Execute the following command:
$ sudo ./flash.sh -S <size> <platform> <rootdev>
Where:
<size> is the desired size for the partition, such as 8589934592 (or 8 GiB) for 8 GB, if you want to decrease the size of the partition.
<rootdev> is the rootfs partition internal memory, for example mmcblk0p1.
Determining the Success of a Driver Update
After updating drivers on a target board, verify that the update completed successfully. You can determine the success or failure of a driver update by using the following commands.
To determine the success of a driver update
Execute the following command on a booted target device:
$ sha1sum -c /etc/nv_tegra_release
If the driver update succeeded, the output displays the word OK after the file name. A typical success message looks like this:
/usr/lib/xorg/modules/drivers/nvidia_drv.so: OK
The driver update fails if the file is missing. A typical error message looks like this:
sha1sum: /usr/lib/xorg/modules/drivers/nvidia_drv.so: No such file or directory
/usr/lib/xorg/modules/drivers/nvidia_drv.so: FAILED open or read
The driver update also fails if the new file is different from the existing file, producing an error such as:
/usr/lib/xorg/modules/drivers/nvidia_drv.so: FAILED