This is a place that gathers up some of the more helpful command lines related to the Jetson Development Kits.
$ cat /etc/lsb-release
$ cat /etc/nv_tegra_release
$ uname -a
$ sudo lshw
$ df -h
List USB Devices
List the USB devices and associated drivers.
Force Recovery Mode
Place the Jetson into Force Recovery Mode
$ sudo reboot –force forced-recovery
dmesg prints the kernel message buffer. The messages typically consist of messages produced by device drivers. Useful when working with new hardware, e.g. USB devices. On newer installations (Newer Ubuntu 14.04, Ubuntu 16.04), you can monitor the dmesg buffer:
$ sudo dmesg –follow
Xorg is the Ubuntu display server. You can monitor the Xorg log in real time:
$ sudo tail -f /var/log/Xorg.0.log
sudo gdisk -l /dev/mmcblk0
Serial USB devices
Below is a quick and dirty bash script which walks through devices in /sys looking for USB devices with a ID_SERIAL attribute. Typically only real USB devices will have this attribute, and so we can filter with it. If we don’t, you’ll see a lot of things in the list that aren’t physical devices.
for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do
devname=”$(udevadm info -q name -p $syspath)”
[[ “$devname” == “bus/”* ]] && continue
eval “$(udevadm info -q property –export -p $syspath)”
[[ -z “$ID_SERIAL” ]] && continue
echo “/dev/$devname – $ID_SERIAL”