Skip to content

Instantly share code, notes, and snippets.

View tstellanova's full-sized avatar
💭
growing excited

Todd Stellanova tstellanova

💭
growing excited
View GitHub Profile
@tstellanova
tstellanova / jetson_kernel_install.md
Last active February 12, 2016 14:04
Howto install grinch alternative kernel on NVIDIA Jetson TK1 (supports many wifi devices, USB3 by default)

For this process you will need:

  • A flashing computer, preferably an Ubuntu Linux machine (or VM)
  • Micro USB cable, same as the one provided with the Jetson TK1 kit
  • Jetson TK1 and power supply
  • Optional: DB9 null modem cable
  1. Download NVIDIA Linux4Tegra (L4T) Board Support Package (BSP) and Sample Root Filesystem from NVIDIA

wget https://developer.nvidia.com/sites/default/files/akamai/mobile/files/L4T/Tegra124_Linux_R19.3.0_armhf.tbz2
@tstellanova
tstellanova / jetson_wlan0_config.md
Last active April 14, 2018 01:44
Setting up wlan0 wifi on Jetson TK1

Edit /etc/network/interfaces :

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto wlan0
iface wlan0 inet dhcp
 wireless-essid MyHomeWifi
@tstellanova
tstellanova / howto_sdcard_jetson.md
Last active August 29, 2015 14:05
Howto mount sdcard on Jetson TK1

sudo mkdir -p /mnt/sdcard
sudo mount  /dev/mmcblk1p1 /mnt/sdcard

This will only allow root user to write. To allow sudoers to write, edit /etc/fstab:

@tstellanova
tstellanova / jetson_hdmi_config.md
Last active May 26, 2021 10:30
Enable and Disable HDMI display on Jetson TK1

All operations as root:

turn off HDMI:

echo -1 > /sys/kernel/debug/tegra_hdmi/hotplug
echo 4 > /sys/class/graphics/fb0/blank

turn on HDMI:

#include <SDKDDKVer.h>
#include <Windows.h>
#pragma warning(disable:4819)
#pragma warning(disable:4996)
// for OpenCV2
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/gpu/gpu.hpp"
@tstellanova
tstellanova / jetson_tk1_dev_setup.md
Last active November 21, 2015 05:01
Jetson TK1 development environment

Before you begin, ensure that you've setup network access, either with ethernet or wlan.

Setup timezone

sudo dpkg-reconfigure tzdata

Typically we use "US/Pacific-New"

Mount sdcard

[ 3737.049861] Unhandled fault: imprecise external abort (0x1406) at 0x00000000
[ 3737.057007] Internal error: : 1406 [#1] PREEMPT SMP ARM
[ 3737.062292] Modules linked in: dm_crypt ath9k ath9k_common ath9k_hw rfcomm bnep rtc_as3722 ath bluetooth mac80211 parport_pc parport cfg80211 rfkill nvhost_vi
[ 3737.076803] CPU: 0 PID: 622 Comm: NetworkManager Not tainted 3.10.24-grinch-19.3.6 #5
[ 3737.084725] task: eb0905c0 ti: edc98000 task.ti: edc98000
[ 3737.090190] PC is at ath9k_ioread32+0x38/0x78 [ath9k]
[ 3737.095303] LR is at ath9k_hw_wait+0x74/0xa4 [ath9k_hw]
[ 3737.100588] pc : [<bea0ffb8>]    lr : [<be9a8734>]    psr: 80070093
#!/bin/bash
#
# Lock GPU and MEM clocks to max MHz
#
# - benchmarking shows there is no need to override the MEM clock
#
echo
echo "Current GPU:" $[ $(</sys/kernel/debug/clock/gbus/rate) / 1000000] MHz
echo
echo Locking GPU clock to max MHz for debugging porpoises...
@tstellanova
tstellanova / jetson_setup_packages.sh
Last active August 29, 2015 14:06
Script to setup Jetson tk1 development environment
#!/bin/bash
#
# install all essential dev packages
sudo apt-get update
sudo apt-get install -y build-essential locate keychain git cmake cmake-curses-gui libv4l-dev v4l-utils python-numpy python-scipy libavformat-dev libpng-dev libjpeg-dev libtiff-dev libswscale-dev libeigen3-dev libtbb-dev libgtk2.0-dev
sudo dpkg -i /mnt/sdcard/cuda-repo-l4t-r19.2_6.0-42_armhf.deb
# make apt aware of the package you downloaded
sudo apt-get update
@tstellanova
tstellanova / Jetson_tk1_setup2.md
Last active August 29, 2015 14:06
Setup Jetson tk1 -- new instructions

Before you begin, ensure that you've setup network access, either with ethernet or wlan.

Setup timezone

sudo dpkg-reconfigure tzdata

Typically we use "US/Pacific-New"

Mount sdcard