JetsonHacks

Developing on NVIDIA® Jetson™ for AI on the Edge

This is a place that gathers up some of the more helpful command lines related to the Jetson Development Kits.

Jetson Information

Ubuntu Version

$ cat /etc/lsb-release

L4T Version

$ cat /etc/nv_tegra_release

Kernel Version

$ uname -a

CPU Information

$ lscpu

Hardware Information

$ sudo lshw

Disk Usage

$ df -h

Running Processes

$ top

List USB Devices

$ lsusb

USB Devices

List the USB devices and associated drivers.

$ usb-devices

Force Recovery Mode

Place the Jetson into Force Recovery Mode

$ sudo reboot –-force forced-recovery

Helpful Information

dmesg

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

Xorg is the Ubuntu display server. You can monitor the Xorg log in real time:

$ sudo tail -f /var/log/Xorg.0.log

List Partitions

sudo gdisk -l /dev/mmcblk0

Serial USB devices

From: https://unix.stackexchange.com/questions/144029/command-to-determine-ports-of-a-device-like-dev-ttyusb0

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.

#!/bin/bash

for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do
(
syspath=”${sysdevpath%/dev}”
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”
)
done

Disclaimer

Some links here are affiliate links. If you purchase through these links I will receive a small commission at no additional cost to you. As an Amazon Associate, I earn from qualifying purchases.

Books, Ideas & Other Curiosities