• This repository has been archived on 22/Nov/2022
  • Stars
    star
    153
  • Rank 241,914 (Top 5 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Build the NVIDIA Jetson TX2 Kernel on the device itself

buildJetsonTX2Kernel

Deprecated

For versions of L4T newer than L4T 32.3, please see jetson-linux-build https://github.com/jetsonhacks/jetson-linux-build

README

Scripts to help build the 4.9.140 kernel and modules onboard the Jetson TX2 (L4T 32.3.1, JetPack 4.3). For previous versions, visit the 'tags' section.

Note: The kernel source version must match the version of firmware flashed on the Jetson. For example, the source for the 4.9.140 kernel here is matched with L4T 32.3.1. This kernel compiled using this source tree will not work with newer versions or older versions of L4T, only 32.3.1.

Note: You will probably only use these scripts to build and install modules. Even though there are scripts provided to build and copy the new kernel to the boot directory of the device, there is no effect. In newer versions of L4T, the kernel Image is actually signed and stored in a different partition on disk. The copyImage.sh script is legacy. In order to place the newly created Image, you will need to copy it to the correct place on the host and flash the eMMC. It is probably easier to build it on the host in the first place. The flash process on the host signs the Image, and copies it to the appropriate partition.

As of this writing, the "official" way to build the Jetson TX2 kernel is to use a cross compiler on a Linux PC. This is an alternative which builds the kernel onboard the Jetson itself. These scripts will download the kernel source to the Jetson TX2, and then compile the kernel and selected modules. The newly compiled kernel can then be installed. The kernel sources and build objects consume ~3GB.

These scripts are for building the kernel for the 64-bit L4T 32.3.1 (Ubuntu 18.04 based) operating system on the NVIDIA Jetson TX2. The scripts should be run directly after flashing the Jetson with L4T 32.3.1 from a host PC. There are six scripts:

getKernelSources.sh

Downloads the kernel sources for L4T from the NVIDIA website and decompresses them. Note that this also sets the .config file to the current system, and also sets the local version to the current local version, i.e., -tegra

makeKernel.sh

Compiles the kernel using make. The script commands make the kernel Image file. Installing the Image file on to the system is a separate step. Note that the make is limited to the Image and modules.

The other parts of the kernel build, such as building the device tree, require that the result be 'signed' and flashed from the the NVIDIA tools on a host PC.

makeModules.sh

Compiles the modules using make and then installs them.

copyImage.sh

Copies the Image file created by compiling the kernel to the /boot directory. Note that while developing you will want to be more conservative than this: You will probably want to copy the new kernel Image to a different name in the boot directory, and modify /boot/extlinux/extlinux.conf to have entry points at the old image, or the new image. This way, if things go sideways you can still boot the machine using the serial console.

You will want to make a copy of the original Image before the copy, something like:

$ cp /boot/Image $INSTALL_DIR/Image.orig
$ ./copyImage.sh
$ echo "New Image created and placed in /boot"

editConfig.sh

Edit the .config file located in /usr/src/kernel/kernel-4.9 This file must be present (from the getKernelSources.sh script) before launching the file. Note that if you change the local version, you will need to make both the kernel and modules and install them.

removeAllKernelSources.sh

Removes all of the kernel sources and compressed source files. You may want to make a backup of the files before deletion.

Notes:

Make sure to update the eMMC

The copyImage.sh script copies the Image to the current device. If you are building the kernel on an external device, for example a SSD, you will probably want to copy the Image file over to the eMMC in the eMMC's /boot directory. The Jetson will usually try to boot from the eMMC before switching to a different device. Study the boot sequence of the Jetson to properly understand which Image file is being used.

Special thanks to Raffaello Bonghi (https://github.com/rbonghi) for jetson_easy scripts. Special thanks to Shreeyak (https://github.com/Shreeyak) for discussing alternatives to get source directly from NVIDIA git repositories. Special thanks to Alexander Rashed (@alexrashed on Github) for vL4T32.1.0 release

Release Notes

January, 2020

  • vL4T32.3.1
  • L4T 32.3.1 (JetPack 4.3)

May, 2019

  • vL4T32.1.0
  • L4T 32.1.0 (JetPack 4.2)

July, 2018

  • vL4T28.2.1
  • L4T 28.2.1 (JetPack 3.2.1)
  • Fix issue with scripts jetson_variables to determine L4T version. ** Special thanks to Shreeyak (https://github.com/Shreeyak)
  • Refactored scripts/getKernelSources and getKernelSourcesNoGUI

April, 2018

  • vL4T28.2r3
  • L4T 28.2 (JetPack 3.2)
  • Add removeAllKernelSources.sh
  • Add checks to make sure kernel version matches L4T release

April, 2018

  • vL4T28.2r2
  • L4T 28.2 (JetPack 3.2)
  • Add getKernelSourcesNoGUI.sh for cases where the user does not want to edit the .config file through a GUI.

March, 2018

  • vL4T28.2
  • L4T 28.2 (JetPack 3.2 DP)
  • Removed patches for make file cleanup

July, 2017

  • vL4T28.1
  • L4T 28.1 (JetPack 3.1)

March, 2017

  • vL4T27.1
  • L4T 27.1 (JetPack 3.0)
  • Developers Preview

License

MIT License

Copyright (c) 2017-2020 Jetsonhacks Portions Copyright (c) 2015-2018 Raffaello Bonghi (jetson_easy)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

rootOnNVMe

Switch the rootfs to a NVMe SSD on the Jetson Xavier NX and Jetson AGX Xavier
Shell
383
star
2

buildOpenCVTX2

Build and install OpenCV for the NVIDIA Jetson TX2
Shell
276
star
3

jetsonUtilities

Get information about the NVIDIA Jetson OS environment. Lists L4T and JetPack versions, along with major libraries.
Shell
199
star
4

installTensorFlowTX2

Install TensorFlow on the NVIDIA Jetson TX2 Development Kit
Shell
165
star
5

installRealSenseSDK

Install the Intel RealSense SDK on the NVIDIA Jetson Development Kits
Shell
156
star
6

bootFromExternalStorage

Shell scripts to setup a NVIDIA Jetson AGX Xavier, Xavier NX, AGX Orin, or Orin Nano Developer Kit to boot from external storage.
Shell
147
star
7

installROSTX2

Install Robot Operating System (ROS) on NVIDIA Jetson TX2
Shell
133
star
8

buildOpenCVXavier

Build and install OpenCV for the NVIDIA Jetson AGX Xavier
Shell
129
star
9

bootFromUSB

Boot NVIDIA Nano Jetson Developer Kit from a mass storage USB device (Jetson Nano devices A02, B01, 2GB and possibly Jetson TX1)
Shell
127
star
10

installROS2

Scripts to install ROS2 on the NVIDIA jetsons
Shell
115
star
11

gpuGraphTX

Simple moving graph of GPU activity for the Jetson TX1 and Jetson TX2
Python
96
star
12

installROS

Install ROS Melodic on NVIDIA Jetson Development Kits
Shell
89
star
13

installROSXavier

Install Robot Operating System (ROS) on the NVIDIA Jetson AGX Xavier Developer Kit
Shell
82
star
14

installTensorFlowJetsonTX

Install TensorFlow on the NVIDIA Jetson TX1 or TX2 from the provided wheel files
81
star
15

installCaffeJTX1

Scripts to install Caffe and dependencies on the NVIDIA Jetson TX1 Development Kit
Shell
73
star
16

installTensorFlowTX1

Scripts to install TensorFlow on the NVIDIA Jetson TX1 Development Kit
Shell
62
star
17

USB-Camera

Code examples for running V4L2 USB Cameras on NVIDIA Jetson Developer Kits
Python
58
star
18

buildLibrealsense2TX

Build librealsense 2.0 library on the NVIDIA Jetson TX Development kit. Intel RealSense D400 series cameras.
Shell
56
star
19

buildLibrealsense2Xavier

Build librealsense 2.0 library on the NVIDIA Jetson AGX Xavier Developer Kit. Intel RealSense D400 series cameras.
Shell
56
star
20

jetsonTX1GPIO

A straightforward library to interface with the Jetson TX1 GPIO pins
C
52
star
21

installCaffeJTX2

Install Caffe on the NVIDIA Jetson TX2 Development Kit
Shell
49
star
22

jetson-linux-build

Tools to build the Linux kernel and modules on board Jetson Developer Kits
Shell
46
star
23

camera-caps

Examine the camera capabilities for V4l2 cameras
Python
45
star
24

buildJetsonTX1Kernel

Build the 64-bit Jetson TX1 Kernel
Shell
40
star
25

buildOpenCVTX1

Build the OpenCV library from source for NVIDIA Jetson TX1 Development Kit
Shell
39
star
26

gst-explorer

GStreamer Inspector GUI
Python
37
star
27

buildJetsonXavierNXKernel

Build the linux kernel and modules on board the Jetson Xavier NX.
Shell
33
star
28

installACMModule

Install the CDC ACM and USB to Serial Modules for the Jetson TX1 or Jetson TX2 Development Kit
Shell
29
star
29

buildJetsonXavierKernel

Shell
27
star
30

JHPWMDriver

Adafruit 16 Channel Servo Driver for NVIDIA Jetson Development Kit
C++
26
star
31

installROSTX1

Install Robot Operating System (ROS) on NVIDIA Jetson TX1
Shell
25
star
32

installRealSenseROS

Install the ROS wrapper for RealSense SDK
Shell
24
star
33

installGrinch

Install Grinch Kernel
Shell
22
star
34

backupJetson

Backup a NVIDIA Jetson Developer Kit root system
Shell
22
star
35

installLXDE

Install LXDE on the NVIDIA Jetson Developer Kits
Shell
21
star
36

jetsonGPIO

A straightforward library to interface with the Jetson TK1 GPIO pins
C
21
star
37

installROSTK1

Install Robot Operating System (ROS) on NVIDIA Jetson TK1
Shell
20
star
38

installRealSense2ROSTX

Install the ROS Wrapper for librealsense 2 on the NVIDIA Jetson TX Development Kits
Shell
17
star
39

installLibrealsenseTX2

Install the librealsense for Intel RealSense cameras on the NVIDIA Jetson TX2
Shell
15
star
40

postFlash

Post flash L4T 21.X desktop setup for NVIDIA Jetson TK1 Development Kit. See 'Tags' for corresponding version
Shell
15
star
41

buildJetsonModules

Example on how to build modules and drivers for NVIDIA Jetson TK1
Shell
14
star
42

logitech-f710-module

Support for Logitech F710 game controller on Jetson Xavier
Shell
12
star
43

installLibfreenect2

Install libfreenect2 on a Jetson Development Kit. libfreenect2 is a driver for Microsoft Kinect V2
Shell
12
star
44

installLibrealsense

Install librealsense for Intel Realsense cameras on Jetson development kits
C
12
star
45

installJetsonCar

A collection of ROS packages for a Jetson RACECAR
Arduino
12
star
46

postFlashTX1

Some scripts for setting up a development environment on the NVIDIA Jetson TX1
Shell
12
star
47

jetsonRACECAR

Working area for the Jetson RACECAR Project
C++
11
star
48

buildOpenCV

Scripts to build a GPU accelerated OpenCV for the Jetson TK1 Development Kit
Shell
10
star
49

installSweep

Install the Scanse Sweep sdk and Sweep ROS package on a NVIDIA Jetson Dev Kit
Shell
10
star
50

cuda-using-numba

Writing CUDA code in Python with the help of Numba. Some example code.
Python
9
star
51

JHHC-SR04

Interface a HC-SR04 distance sensor to the NVIDIA Jetson TK1
C++
9
star
52

buildJetsonTK1Kernel

Scripts to help build the kernel and modules on the Jetson TK1
Shell
9
star
53

JHVL53L0X

VL53L0X Time of Flight Sensor interface for NVIDIA Jetson Development Kits
C++
7
star
54

compileGolang

Compile Go (Golang) for NVIDIA Jetson Development Kits
Shell
7
star
55

JHLEDBackpack

I2C interface for Adafruit LED Backpack for 7 segment display
C++
7
star
56

installJetsonBot

Turtlebot based robot using a NVIDIA Jetson TK1
Shell
7
star
57

installRealSenseROSTX2

Install the Intel RealSense package for ROS on the NVIDIA Jetson TX2
Shell
7
star
58

installBLDC

Install the VESC BLDC tool on the Jetson Development Kit
Shell
7
star
59

rpi-pico-jetson

Interact with a Raspberry Pi Pico directly from a NVIDIA Jetson
Shell
6
star
60

installPlayStation3Eye

Pre-compiled module for PlayStation 3 Eye camera for NVIDIA Jetson TK1
Shell
6
star
61

JHLidarLite_V2

C++
6
star
62

installLibrealsenseTX1

Install lbrealsense for Intel RealSense cameras on Jetson TX1 Development Kit
Shell
6
star
63

buildJetsonRTCModule

Build a RTC Module for the DS3232 chip for the Jetson TK1 L4T kernel
Shell
5
star
64

goi2c

Jetson I2C interface in Go (Golang)
Go
4
star
65

pico-rc

Code to interface a Raspberry Pi Pico with a R/C radio receiver
Python
3
star
66

install7260LT4211

Install Intel 7260 mini PCIE on NVIDIA Jetson TK1 under LT4 21.1
Shell
3
star
67

installRealSenseROSTX1

Install librealsense and realsense ROS package on NVIDIA Jetson TX1
Shell
3
star
68

installRACECAR

Install the MIT RACECAR ROS software and dependencies
Shell
3
star
69

JHLidarLite

Interface for Lidar-Lite to Jetson TK1
C++
2
star
70

LidarPlotSketch

Sketch for showing lidar data
C++
2
star
71

installPlayStationEyeTX1

Install driver for the PS3Eye Camera on the Jetson TX1
Shell
2
star
72

buildJetsonFTDIModule

An example for building the FTDI Module for the NVIDIA Jetson TK1
Shell
2
star
73

installRealSenseCameraROS

Install the realsense_camera package for ROS on the Jetson TK1
Shell
2
star
74

TX1FTDIModule

Build a FTDI Module for the NVIDIA Jetson TX1 Development Kit
Shell
2
star
75

allxon-ota-example

Example files for an over the air (OTA) update using the Allxon service for NVIDIA Jetson
Python
2
star
76

jetsoncar_teleop

Teleoperation node for JetsonCar
C++
2
star
77

installRazorIMUROS

Install the Sparkfun Razor 9DOF IMU on the Jetson TK1
Shell
1
star
78

femto-ros2

Dockerfile to run Orbbec Femto on NVIDIA Jetson Xavier and Orin
Dockerfile
1
star
79

R200-UVC-Examples

Intel Realsense R200 Examples for UVC on the NVIDIA Jetson Development Kits
QMake
1
star