Skip to content

Linux kernel 4.4 forked from Nvidia Linux4Tegra for TX1 and TX2. Supports L4T 28.1

Notifications You must be signed in to change notification settings

CSTEZCAN/linux-l4t-4.4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

linux-l4t-4.4

This is the top-level repository for TX1/TX2 kernel and Device Tree. The Nvidia Source URLs can be found in the README.md files of the submodules.

Clone with Submodules

Use the following command to clone this repository and its submodules:

$ git clone --recursive <URL>

Already Cloned but no Submodules?

$ git submodule update --init --recursive

Building the Kernel

NOTE: This is the short version for advanced users. Step-by-step instructions can be found in the Custom Kernel Compilation Wiki.

# Go to the kernel-4.4 directory
$ cd kernel/kernel-4.4

# Set the environment variables
$ export ARCH=arm64
$ export CROSS_COMPILE=<aarch64_toolchain_prefix>

# TX1
$ make tegra21_hdmi2csi_defconfig
# TX2
$ make tegra18_hdmi2csi_defconfig

# Build the kernel, modules and dtb files
$ make -j8

Device Tree

NOTE: This is the short version for advanced users. Step-by-step instructions can be found in the Custom Kernel Compilation Wiki.

The Device Tree source files of the Linux kernel are located in the hardware directory:

TX1:

hardware/nvidia/platform/t210/jetson/kernel-dts/

TX2:

hardware/nvidia/platform/t18x/quill/kernel-dts/

For compiling the Device Trees, go to the kernel directory and run make:

$ cd kernel/kernel-4.4
$ make dtbs

Update Device-Tree

CAUTION:

Do not use extlinux.conf to define the generated .dtb file because u-boot makes changes on-the-fly to the Device Tree Blob. Otherwise, the screen might flicker or the kernel stops during the boot process.

Instead, use the flash script flash.sh from jetpack (or alternatively the Jetson TX1/TX2 64-bit Driver Package, see Custom Kernel Compilation Wiki):

TX1:

  1. Replace the existing .dtb file: JetPack/3.1/64_TX1/Linux_for_Tegra_64_tx1/kernel/dtb/tegra210-jetson-tx1-p2597-2180-a01-devkit.dtb with tegra210-jetson-tx1-p2597-2180-a01-devkit-hdmi2csi.dtb
  2. Flash the DTB partition: $ sudo ./flash.sh -r -k DTB jetson-tx1 mmcblk0p1

TX2:

  1. Replace the existing .dtb file: JetPack/3.1/64_TX2/Linux_for_Tegra_64_tx2/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb with tegra186-quill-p3310-1000-c03-00-base-hdmi2csi.dtb
  2. Flash the DTB partition: $ sudo ./flash.sh -r -k kernel-dtb jetson-tx2 mmcblk0p1

About

Linux kernel 4.4 forked from Nvidia Linux4Tegra for TX1 and TX2. Supports L4T 28.1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published