Synopsis
NVIDIA Jetson Development Toolkit is based on arm64 architecure. Correpsondingly, many system libraries/deep learning libraries cannot be found&intalled easily (compared to x86 platform). To solve such dependencies problem once and for all, NVIDIA offers official flashing tool (Jetpack). This article focuses on the technical details of Jetpack 4.6 flashing.
JetsonHacks offers official flashing turorial videos corresponding to different versions (Jetpack 4.2 installation Jetpack 3.0 installation) which may have some differences but similar to Jetpack 4.6. For older version (e.g., Jetpack 3.0), please ref to Jetson TX2 Flashing Tutorial。
Prequisite
- Host machine: An PC/laptop with Intel/AMDx86 architeture and Ubuntu 18.04 installed, can be connected to network.
- Physical disk: >40GB available.
- Installing Jetpack package: apply for NVIDIA developer account, then download Jetpack (newest version 4.6 is recommend) aat NVIDIA based on board hardware model.
- A Mirco-USB data cable, an HDMI cable, one screen, mouse and keyboard.
Installing Jetpack
- Disconnect the development board, disconnect the development board network cable, and connect the development board and host computer with the data cable. Double-click to run the Jetpack 4.6 installer (or command line install), then type in command:
sdkmanager
(make sure don’t use root here). After login NVIDIA developer account, tick host and target, select device hardware manually. - Create 2 new folders to store libraries files and targets image files.
- Begin downloading and wait patiently to install OS ([Note]The development board is still powered off at this time)
- Sdkmanger will notify whether (auto flash)/(manual flash). Select (manual flash) and switch the board to Recovery Mode, for instance (Jetson TX2):
(a) Ensure that the development board is initially in a power-off state and that the Micro USB cable is properly connected
(b) Power on the development board, press power to boot, then quickly press and hold the recovery key without releasing, press the reset key, and release the recovery key after 2 seconds
(c) At this point there should be 2 green lights on - To verify that you are in the forced recovery state, type in the host command:
lsusb
. IfNvidia Corp
is in device list then success, o.w. back to do step (4) again. - Connect the HDMI cable + screen to the development board. Then click
flash
on sdkmanager. - Wait patiently for the development board to initialize the ubuntu system (configure the account password). Sdkmanager will ask to choose the connection method + enter your account password. In this case, choose to use the
USB connection
withdefault ip address
, and enter the account/password of the ubuntu system of the development board. - Wait patiently for long time until all libraries installed. Click
exit
to quit sdkmanager.
Further Configuration
Connect the development board and check IP address with ifconfig | grep eth0 -a1
. Then it can be accessed by ssh and configure as normal Ubuntu.
Potential Problems and Solutions
- Slow downloading:
Replace the networking environment that can bypass firewall (GFW) and has sufficient bandwidth. - Strange issues in installing process reported by sdkmanager(e.g., dependencies error)
Replace the host machine with cleanUbuntu 18.04, most of these kinds of problems are due to system configuration conflicts, which are very difficult to locate and fix. - Performance bugs (Some CPU cores on board are idle)
rewrite /boot/extlinux/exltinux.confisolcpus=1-2
toisolcpus=
(ref to Performance bug solution to TX2.