Jetson TK 1 Configuration Note

Install, Backup, Restore L4T 21.8, Install Jetpack 3.1, Make Swap, Automount HDD, etc.

Install, Backup & Restore (L4T21.8):

Host need to run Ubuntu 14.04 (x86 / x64)

Make Swap

  • Install Gparted using Ubuntu Software Center in Jetson TK1
  • Insert your SD card
  • Configure that SD card as linux-swap partition using Gparted
  • Open fstab in Jetson TK1,
sudo gedit /etc/fstab
  • Add below line at the end of config,
/dev/mmcblk1p1 none swap sw 0 0
  • Reboot and open Resource Monitoring app in Jetson TK1 to verify that swap work.

Automount HDD

  • Attach HDD into Jetson TK1
  • Run sudo fdisk /dev/sdb
  1. Press O and press Enter (creates a new table)
  2. Press N and press Enter (creates a new partition)
  3. Press P and press Enter (makes a primary partition)
  4. Then press 1 and press Enter (creates it as the 1st partition)
  5. Finally, press W (this will write any changes to disk)
  • Okay now you have a partition, now you need a filesystem.
  1. Run sudo mkfs.ext4 /dev/sdb1
  2. Now you can add it to /etc/fstab
#device        mountpoint             fstype    options  dump   fsck

/dev/sdb1 /home/yourname/mydata ext4 defaults 0 1

This assumes the partition is formatted as ext4 as per mkfs above

  • Then on the next reboot it will auto mount.

https://askubuntu.com/questions/154180/how-to-mount-a-new-drive-on-startup

FTP Server Setup

sudo apt-get install vsftpd
  • Configure,
sudo gedit /etc/vsftpd.conf
  • Add the following line,
anonymous_enable=NO
local_enable=YES
write_enable=YES
allow_writeable_chroot=YES
chroot_local_user=YES
file_open_mode=0777
local_umask=022
  • Restart vsFTPd,
service vsftpd restart
  • Configure vsFTPd to use external drive :

https://askubuntu.com/questions/741164/how-to-change-vsftpds-default-directory-to-instead-of-the-users-home-directo

  • Just add this line to /etc/vsftpd.conf:
local_root=/media/HDD

Upgrade L4T OS (Ubuntu 14.04) to Ubuntu 16.04

  • Installation procedure (take several hour to complete),

https://forums.developer.nvidia.com/t/how-to-successfully-update-jetson-tk1-to-ubuntu-16-04/62174

  • if you forgot to delete obsolete package durring do-release-upgrade ,

https://askubuntu.com/questions/539235/how-to-remove-obsolete-packages-after-failed-release-upgrade-via-do-release-upgr

NOTE :

we can use VS Code + Remote Development Extension to remote Jetson TK1

libopenblas-dev available to be install via apt.

Installing CUDA 6.5 after Jetson TK1 upgraded to Ubuntu 16.05 is not possible.

Install CUDA 6.5 on Jetson TK1 (native compilation)

  • Procedure :

https://elinux.org/Jetson/Installing_CUDA

  • Download CUDA 6.5 (.deb) for Jetson TK1

https://developer.nvidia.com/cuda-toolkit-65#linux-arm

Install cuDNN 2.0 on Jetson TK1 (native compilation)

tar -zxvf cudnn-6.5-linux-ARMv7-R2-rc1.tgzcd cudnn-6.5-linux-ARMv7-R2-rc1cp cudnn.h /usr/local/cuda-6.5/include
cp libcudnn* /usr/local/cuda-6.5/lib

L4T Uninstall Desktop App for Free Space

sudo apt-get updatesudo apt-get purge aisleriot gnome-sudoku gnome-mahjongg gnome-mines ace-of-penguins gnomine gbrainy libreoffice* webbrowser-app empathy thunderbird* transmission-common rhythmbox eog brasero evince shotwell simple-scan gnome-media cheese totem totem-plugins gnome-calculator remmina firefoxsudo apt-get clean
sudo apt-get autoremove

Failed To Load Kernel Module After Upgrade to Ubuntu 16.06

  • Run dmesg , if you find error log like this,
  • Then just check status system-modules-load.service show you module that failed to load,
  • Just comment that module from,
/etc/modules-load.d/cups-filters.conf
/etc/modules-load.d/modules.conf

Monitor Temperature

  • Install lm-sensor ,
sudo apt install lm-sensors
  • run sensors ,
CPU-therm-virtual-0
Adapter: Virtual device
temp1: +61.0°C (crit = +105.0°C)
GPU-therm-virtual-0
Adapter: Virtual device
temp1: +57.0°C (crit = +105.0°C)
MEM-therm-virtual-0
Adapter: Virtual device
temp1: +56.5°C (crit = +105.0°C)
PLL-therm-virtual-0
Adapter: Virtual device
temp1: +57.5°C
Tboard_tegra-virtual-0
Adapter: Virtual device
temp1: +48.0°C
Tdiode_tegra-virtual-0
Adapter: Virtual device
temp1: +57.0°C

IoT Engineer, Software Developer & Machine Learning Enthusiast