Difference between revisions of "1012 NVIDIA TK1"

From Sensoray Technical Wiki
Jump to: navigation, search
(Created page with "This page will guide you in using the [http://sensoray.com/1012 Sensoray Model 1012] with [https://developer.nvidia.com/linux-tegra-r214 NVIDIA tegra k1 development] boards. ...")
 
(Flashing a modified kernel image)
Line 16: Line 16:
 
1) Get the modified zImage extlinux.conf and tw6869.ko files for Jetson Tegra K1 and put them in Downloads folder
 
1) Get the modified zImage extlinux.conf and tw6869.ko files for Jetson Tegra K1 and put them in Downloads folder
 
2) Follow Jetson quick-start guide from NVIDIA
 
2) Follow Jetson quick-start guide from NVIDIA
a) quick-start step 1. Download Linux for Tegra package and sample root file system  
+
 
$  wget http://developer.download.Jetson.com/embedded/L4T/r23_Release_v1.0/Tegra210_Linux_R23.1.1_armhf.tbz2
+
a) quick-start step 1. Download Linux for Tegra package and sample root file system  
$  wget http://developer.download.Jetson.com/embedded/L4T/r23_Release_v1.0/Tegra_Linux_Sample-Root-Filesystem_R23.1.1_armhf.tbz2
+
 
b) quick-start step 2. Untar and assemble the rootfs
+
  $  wget http://developer.download.Jetson.com/embedded/L4T/r23_Release_v1.0/Tegra210_Linux_R23.1.1_armhf.tbz2
$  sudo tar xpf ${RELEASE_NAME}
+
 
$  cd Linux_for_Tegra/rootfs/
+
  $  wget http://developer.download.Jetson.com/embedded/L4T/r23_Release_v1.0/Tegra_Linux_Sample-Root-Filesystem_R23.1.1_armhf.tbz2
$  sudo tar xpf ../../Tegra_Linux_Sample-Root-Filesystem_R21.4.0_armhf.tbz2
+
 
$  cd ../
+
b) quick-start step 2. Untar and assemble the rootfs
 +
 
 +
  $  sudo tar xpf ${RELEASE_NAME}
 +
  $  cd Linux_for_Tegra/rootfs/
 +
  $  sudo tar xpf ../../Tegra_Linux_Sample-Root-Filesystem_R21.4.0_armhf.tbz2
 +
  $  cd ../
  
 
3) Modify the kernel to be flashed
 
3) Modify the kernel to be flashed
$ sudo cp ~/Downloads/zImage ~Linux_for_Tegra/zImage
+
 
$ sudo cp ~/Downloads/extlinux.conf ~Linux_for_Tegra/bootloader/ardbeg/jetson-tk1_extlinux.conf.emmc
+
  $ sudo cp ~/Downloads/zImage ~Linux_for_Tegra/zImage
 +
  $ sudo cp ~/Downloads/extlinux.conf ~Linux_for_Tegra/bootloader/ardbeg/jetson-tk1_extlinux.conf.emmc
 +
 
 
4) Get the driver for Sensoray 1012.
 
4) Get the driver for Sensoray 1012.
$ sudo cp ~/Downloads/tw6869.ko ~/Linux_for_Tegra/rootfs/lib/modules/3.10.40-gdacac96/extra/tw6869.ko
+
 
 +
  $ sudo cp ~/Downloads/tw6869.ko ~/Linux_for_Tegra/rootfs/lib/modules/3.10.40-gdacac96/extra/tw6869.ko
 +
 
 
5) Flash the TK1 (step 3. in Jetson's quick-start guide)
 
5) Flash the TK1 (step 3. in Jetson's quick-start guide)
  a) Put your target system into "reset recovery mode" by holding down the RECOVERY
+
 
      button and press RESET button once on the target main board.
+
a) Put your target system into "reset recovery mode" by holding down the RECOVERY button and press RESET button once on the target main board.
  b) Ensure your Linux host system is connected to the target device
+
 
      through the USB cable for flashing.
+
b) Ensure your Linux host system is connected to the target device through the USB cable for flashing.
$ cd ~/Linux_for_Tegra/
+
 
$ sudo ./applybinaries.sh
+
  $ cd ~/Linux_for_Tegra/
$ sudo ./flash.sh jetson-tk1 mmcblk0p1  #This will take less than 10 minutes.
+
  $ sudo ./applybinaries.sh
 +
  $ sudo ./flash.sh jetson-tk1 mmcblk0p1  #This will take less than 10 minutes.
 +
 
 
6) from the TK1 load the Sensoray driver.
 
6) from the TK1 load the Sensoray driver.
$ sudo depmod /lib/modules/3.10.40-gdacac96/extra/tw6869.ko
+
 
$ sudo insmod /lib/modules/3.10.40-gdacac96/extra/tw6869.ko
+
  $ sudo depmod /lib/modules/3.10.40-gdacac96/extra/tw6869.ko
 +
  $ sudo insmod /lib/modules/3.10.40-gdacac96/extra/tw6869.ko
 +
 
 
8) Restart with Sensoray 1012 attached
 
8) Restart with Sensoray 1012 attached
$ sudo reboot
+
 
 +
  $ sudo reboot
 +
 
 
7) MPlayer is used by the demo
 
7) MPlayer is used by the demo
$ sudo apt-add-repository universe
+
 
$ sudo apt-get update
+
  $ sudo apt-add-repository universe
$ sudo apt-get install libasound2-dev zlib1g-dev libxv-dev
+
  $ sudo apt-get update
$ sudo apt-get install mplayer mencoder
+
  $ sudo apt-get install libasound2-dev zlib1g-dev libxv-dev
 +
  $ sudo apt-get install mplayer mencoder
 +
 
 
8) Run the demo
 
8) Run the demo
$ wget http://www.sensoray.com/downloads/sdk_812_linux_1.1.9.zip
+
 
$ unzip sdk_812_linux_1.1.9.zip
+
  $ wget http://www.sensoray.com/downloads/sdk_812_linux_1.1.9.zip
password:<not included in this doc>
+
  $ unzip sdk_812_linux_1.1.9.zip
$ ~/sdk_812_1.1.9_linux/demo-sample/PyGTK/demoSX12.py
+
  password:<not included in this doc>
 +
  $ ~/sdk_812_1.1.9_linux/demo-sample/PyGTK/demoSX12.py

Revision as of 15:04, 14 December 2015

This page will guide you in using the Sensoray Model 1012 with NVIDIA tegra k1 development boards.

This requires a modified kernel and driver.

The modified kernel can be flashed onto the TK1 from the development PC, installed by the TK1 or the modifications can be made by the TK1 and recompiled.

The driver needs to be modified before being compiled.

Flashing a modified kernel image

Instructions for flashing a Jetson Tegra K1 to run R21.4 with modifications to work with Sensoray Model 1012 Required: Jetson TK1 and host computer running Linux

Procedure: 1) Get the modified zImage extlinux.conf and tw6869.ko files for Jetson Tegra K1 and put them in Downloads folder 2) Follow Jetson quick-start guide from NVIDIA

a) quick-start step 1. Download Linux for Tegra package and sample root file system

  $   wget http://developer.download.Jetson.com/embedded/L4T/r23_Release_v1.0/Tegra210_Linux_R23.1.1_armhf.tbz2
  $   wget http://developer.download.Jetson.com/embedded/L4T/r23_Release_v1.0/Tegra_Linux_Sample-Root-Filesystem_R23.1.1_armhf.tbz2

b) quick-start step 2. Untar and assemble the rootfs

  $   sudo tar xpf ${RELEASE_NAME}
  $   cd Linux_for_Tegra/rootfs/
  $   sudo tar xpf ../../Tegra_Linux_Sample-Root-Filesystem_R21.4.0_armhf.tbz2
  $   cd ../

3) Modify the kernel to be flashed

  $ sudo cp ~/Downloads/zImage ~Linux_for_Tegra/zImage
  $ sudo cp ~/Downloads/extlinux.conf ~Linux_for_Tegra/bootloader/ardbeg/jetson-tk1_extlinux.conf.emmc

4) Get the driver for Sensoray 1012.

  $ sudo cp ~/Downloads/tw6869.ko ~/Linux_for_Tegra/rootfs/lib/modules/3.10.40-gdacac96/extra/tw6869.ko

5) Flash the TK1 (step 3. in Jetson's quick-start guide)

a) Put your target system into "reset recovery mode" by holding down the RECOVERY button and press RESET button once on the target main board.

b) Ensure your Linux host system is connected to the target device through the USB cable for flashing.

  $ cd ~/Linux_for_Tegra/	
  $ sudo ./applybinaries.sh
  $ sudo ./flash.sh jetson-tk1 mmcblk0p1  #This will take less than 10 minutes.

6) from the TK1 load the Sensoray driver.

  $ sudo depmod /lib/modules/3.10.40-gdacac96/extra/tw6869.ko
  $ sudo insmod /lib/modules/3.10.40-gdacac96/extra/tw6869.ko

8) Restart with Sensoray 1012 attached

  $ sudo reboot

7) MPlayer is used by the demo

  $ sudo apt-add-repository universe	
  $ sudo apt-get update
  $ sudo apt-get install libasound2-dev zlib1g-dev libxv-dev
  $ sudo apt-get install mplayer mencoder

8) Run the demo

  $ wget http://www.sensoray.com/downloads/sdk_812_linux_1.1.9.zip
  $ unzip sdk_812_linux_1.1.9.zip
  password:<not included in this doc>
  $ ~/sdk_812_1.1.9_linux/demo-sample/PyGTK/demoSX12.py
Personal tools
Namespaces

Variants
Actions
Toolbox