Flashing An Existing Image to TX2
caution
You must have exactly the same version of patched BSP to flash the image correctly. This is because the image file only backs up the main partition, and the rest of the booting partitions are prepared by the BSP at flashing time.
#
Pre-requisite- A host machine running Ubuntu 16 or 18
- Prepared the Patched L4T BSP (e.g. patched with Auvidea's Firmware)
- Have the .img file ready
- A bare TX2 module
- A Dev Kit with the stock 19V supply
- A micro USB cable for flashing
- HDMI Monitor and cable
- (Optionally) A Ethernet cable or WiFi Antenna connected, for updating the Ubuntu packages to the latest
#
Flashing Stepswarning
Make sure ./apply_binaries.sh
is executed once before ANY flashing, after a BSP update / overwrite from the board overlay.
Make sure patched BSP is ready.
- If it is prepared by someone else in a zip file. Make sure it is unzipped with permission preserved
sudo tar -xpf ***
- If it is prepared by someone else in a zip file. Make sure it is unzipped with permission preserved
Power off the dev kit
- The CR5 red LED should not light up. Otherwise, removing or installing TX2 module while the dev kit is powered may damage the system electrically
Install the TX2 module firmly, and plug-in the power for dev kit
Boot TX2 into recovery mode
- You could enter the recovery mode by
- PWR - press and release (Skip if the board is already powered on)
- REC - press and hold
- RST - press and release
- Wait 2 sec
- REC - release
- (Advanced) if not successful, you could still enter by interrupting the bootloader in the UART0 console, and by typing
enterrcm
- You could enter the recovery mode by
With the OTG micro-USB attached (hidden on the left of the antennas) to the host. Check the connection by opening a terminal, key in
lsusb
It should show
ID 0955:7c18 NVidia Corp.
The image to be flashed should be symlinked as
./bootloader/system.img
- For example:
cd bootloader
andsudo ln -s ../../../images/backup_190413.img system.img
- It should always be named
system.img
- For example:
Go back to the root of the BSP folder, flash all board partitions by
sudo ./flash.sh -r jetson-tx2 mmcblk0p1 # flash all partitions # Below only for reference# sudo ./flash.sh -k kernel-dtb jetson-tx2 mmcblk0p1 # flash kernel device tree-blob# other -k options: cpu-bootloader, bootloader-dtb, LNX, kernel
The process should end with
*** The target t186ref has been flashed successfully. ***
You are done!
- Sanity check with
sha1sum –c /etc/nv_tegra_release
- Sanity check with
Nvidia Official Reference: Flashing and Booting the Target Device