Code Monkey home page Code Monkey logo

jetpack-agx-build's Introduction

Jetson Build Assistant Scripts

Background

After you download lots of files through JetPack-L4T-xxx-linux-x64-yyy.run or sdkmanager, you still need to download toolchains, kernel source code and other stuffs to setup the development environment on your Linux Host PC, in addition, you need also collect some handy commands to build the code, flash the images, etc. So, these scripts are to help developer to setup the develop environment and provide the handy commands.

Introduction

Installing

Clone this repo under the top folder downloaded by Jetpack as "build"

git clone https://github.com/jtagxhub/jetpack-agx-build.git build

File Tree

The relevant files for this scripts and their layout.

 $TOP
  ├── build                 --> This Build Assistant Scripts
  │   ├── bspsetup.sh
  │   ├── config
  │   ├── envsetup.sh
  │   ├── flashsetup.sh
  │   ├── kernelbuild.sh
  │   ├── README.md
  ├── jetpack_download
  │   ├── Jetson_Linux_XXXX_aarch64.tbz2
  │   ├── public_sources.tbz2
  │   └── Tegra_Linux_Sample-Root-Filesystem_XXXX_aarch64.tbz2
  ├── out                   --> kernel build output, images will be copied into Linux_for_Tegra for flash
  │   ├── KERNEL
  │   └── MODULES
  ├── prebuilts
  │   └── gcc
  │       ├── bsp           --> toolchain for bsp build
  │       └── kernel        --> toolchain for kernel build
  ├── sources               --> source code
  └── [Xavier|Nano|64_TX2|64_TX1]     --> All images are put under this for flash
      └── Linux_for_Tegra
          ├── apply_binaries.sh
          ├── bootloader
          ├── build_l4t_bup.sh
          ├── flash.sh
          ├── kernel
          └── rootfs

Commands

  • source build/envsetup.sh

This command must be executed under the TOP folder downloaded by Jetpack

This command is to setup some basic env variables, some configurable variables will be saved into $TOP/build/.config

  • l4tout_setup

re-setup "Linux_for_Tegra"

  • bspsetup

download and setup the toolchains download and setup kernel source code with git repo

  • kbuild

build kernel source code, output to $TOP/out/KERNEL, $TOP/out/MODULES copy the generated Image and dtbs to $OUT/kernel. If "-a" specified, modules will also be copied

  • kdefconfig

generate .config from defconfig (make xxx_defconfig)

  • kmenuconfig

generate the menu of kernel config

  • ksavedefconfig

save the kernel config to $TOP/kernel/arch/arm64/$KERNEL_DEFCONFIG

  • flash

flash images with passing options to flash.sh

  • flash_no_rootfs

flash all images excpet rootfs/APP partition, valid for Xavier and TX2

  • flash_kernel

flash kernel partition, valid for Xavier

  • update_kernel

update kernel on device by scp, valid for Nano, TX1 and TX2

How to Use

Initial setup

After download files with Jetpack, run below commands to setup others:

  • source build/envsetup.sh
  • l4tout_setup
  • bspsetup

Normally use

  • source build/envsetup.sh

This need to be run in any new shell, then you can build kernel or flash board with other commands.

jetpack-agx-build's People

Contributors

jtagxhub avatar

Watchers

 avatar

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.