Skip to content

InES-HPMM/linux-l4t-4.4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

change to linux-l4t-4.9 repository: https://github.com/InES-HPMM/linux-l4t-4.9.git

change to branch hdmi2csi/l4t-r28.2.1: https://github.com/InES-HPMM/linux-l4t-4.4/tree/hdmi2csi/l4t-r28.2.1

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