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):
- L4T 21.8 Home : https://developer.nvidia.com/linux-tegra-r218
- Download Driver Package : Tegra124_Linux_R21.8.0_armhf.tbz2
- Download Sample Root Filesystems : Tegra_Linux_Sample-Root-Filesystem_R21.8.0_armhf.tbz2
Host need to run Ubuntu 14.04 (x86 / x64)
Install Jetpack 3.1
- Jetpack 3.1 Home : https://developer.nvidia.com/embedded/jetpack-3_1
- Download Jetpack : JetPack-L4T-3.1-linux-x64.run (need to login into NVIDIA Developer Portal)
Host need to run Ubuntu 14.04 ( 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
- Press
O
and press Enter (creates a new table) - Press
N
and press Enter (creates a new partition) - Press
P
and press Enter (makes a primary partition) - Then press
1
and press Enter (creates it as the 1st partition) - Finally, press
W
(this will write any changes to disk)
- Okay now you have a partition, now you need a filesystem.
- Run
sudo mkfs.ext4 /dev/sdb1
- 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
- Install
vsFTPd
: https://linux-sys-adm.com/how-to-setup-vsftpd/ - Install
vsFTPd
:
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 :
- 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
,
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
Install cuDNN 2.0 on Jetson TK1 (native compilation)
- Download cuDNN 2.0 : cudnn-6.5-linux-ARMv7-v2.tgz
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°CTboard_tegra-virtual-0
Adapter: Virtual device
temp1: +48.0°CTdiode_tegra-virtual-0
Adapter: Virtual device
temp1: +57.0°C