Difference between revisions of "Jetson/General debug"

From eLinux.org
Jump to: navigation, search
(Created page with "Empty")
 
Line 1: Line 1:
Empty
+
==Get prepared==
 +
This section is to share some debug tips for users to understand the basic flow of how to use/debug jetson platform.
 +
 
 +
Currently this page is applicable to L4T- rel-32.3 <br>
 +
==SDKM==
 +
SDKManager is a GUI tool to replace old Jetpack.  This tool has two basic functions: flash the board(driver package/BSP) and install the SDK(cuda/tensorRT/etc).
 +
<br>
 +
https://developer.nvidia.com/nvidia-sdk-manager
 +
<br>
 +
To run sdkm, you have to prepare a x86 host with '''ubuntu 16.04''' or '''18.04'''. 
 +
Some users asked whehter it supports ARM version so that they can flash jetson by another ARM device.<br>
 +
Currently, it is not supported.
 +
<br>
 +
Flash and install SDK could be separate.  It means you could flash the board and skip the installation of SDK and vice versa. 
 +
 +
*How to debug if flashing process is stuck in sdkm?
 +
In general, the flahs process would finish in 10 minutes.  If it lasts longer than this, the flash process probably has problem.
 +
To debug flash, I would suggest to use flash.sh directly instead of SDKM GUI tool.
 +
'''flash.sh'''
 +
This is a official tool to flash jetson platform. This tool is also installed and used by SDKM.
 +
After you choose the flash button in sdkm, it would download a package "Linux_for_Tegra" on your host.  The flash.sh is inside this folder.
 +
For more detail about how to use flash.sh, please refer to Jetson quick start guide -> https://developer.nvidia.com/embedded/downloads
 +
 
 +
*What log should I prepare for flash problem?
 +
To debug flash problem. You need two parts of log for forum admin to check.
 +
'''1. The result of flash.sh '''
 +
This log should be seen after you run above flash.sh
 +
'''2. The result from device'''
 +
During the flash, the host would send some binary to device and use it to flash. It is a protocol over usb. To dump this log, you need to enable serial console on UART.
 +
https://www.jetsonhacks.com/2017/03/24/serial-console-nvidia-jetson-tx2/  <please search different platform if you are not using TX2>
 +
and you shall see the log start to dump in the meantime when flash.sh starts to flash board.
 +
 
 +
==Boot==

Revision as of 02:53, 30 March 2020

Get prepared

This section is to share some debug tips for users to understand the basic flow of how to use/debug jetson platform.

Currently this page is applicable to L4T- rel-32.3

SDKM

SDKManager is a GUI tool to replace old Jetpack. This tool has two basic functions: flash the board(driver package/BSP) and install the SDK(cuda/tensorRT/etc).
https://developer.nvidia.com/nvidia-sdk-manager
To run sdkm, you have to prepare a x86 host with ubuntu 16.04 or 18.04. Some users asked whehter it supports ARM version so that they can flash jetson by another ARM device.
Currently, it is not supported.
Flash and install SDK could be separate. It means you could flash the board and skip the installation of SDK and vice versa.

  • How to debug if flashing process is stuck in sdkm?

In general, the flahs process would finish in 10 minutes. If it lasts longer than this, the flash process probably has problem. To debug flash, I would suggest to use flash.sh directly instead of SDKM GUI tool.

flash.sh
This is a official tool to flash jetson platform. This tool is also installed and used by SDKM. 
After you choose the flash button in sdkm, it would download a package "Linux_for_Tegra" on your host.   The flash.sh is inside this folder.
For more detail about how to use flash.sh, please refer to Jetson quick start guide -> https://developer.nvidia.com/embedded/downloads
  • What log should I prepare for flash problem?

To debug flash problem. You need two parts of log for forum admin to check.

1. The result of flash.sh  
This log should be seen after you run above flash.sh
2. The result from device 
During the flash, the host would send some binary to device and use it to flash. It is a protocol over usb. To dump this log, you need to enable serial console on UART.
https://www.jetsonhacks.com/2017/03/24/serial-console-nvidia-jetson-tx2/  <please search different platform if you are not using TX2>
and you shall see the log start to dump in the meantime when flash.sh starts to flash board.

Boot