Giter Site home page Giter Site logo

linux-l4t-4.4's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.