Compile step
  • 20 Apr 2023
  • 1 Minute to read
  • Dark
    Light
  • PDF

Compile step

  • Dark
    Light
  • PDF

Article summary


The gccv7 tool chain is prepared by script

<nvidia_folder>Linux_for_Tegra/sources/kernel/gcc_tool_chain


Compile kernel

$ cd <nvidia_folder>/Linux_for_Tegra/sources/kernel/kernel-4.9/
$ ./compile_kernel.sh

kernel image location

arch/arm64/boot/Image

device-tree location

arch/arm64/boot/dts/
# For Xavier NX with TEK3-NVJETSON
tegra194-p3668-tek3-nvjetson-a1.dtb

# For Xavier NX with TEK8-NX210V
tegra194-p3668-tek8-nx210v-a1-24-cam.dtb

# For Nano with TEK3-NVJETSON
tegra210-tek3-nvjetson-a1.dtb

# For Nano with EVK
tegra210-p3448-0000-p3449-0000-b00-tn.dtb
tegra210-p3448-all-p3449-0000-tevi-ap1302-dual.dtbo

kernel modules location

../modules/lib/


Compile u-boot (Nano only)

$ cd <nvidia_folder>/Linux_for_Tegra/sources/u-boot/
$ ./compile_u-boot.sh

uboot.bin location

./u-boot.bin


Compile cboot (Xavier-NX only)

$ cd <nvidia_folder>/Linux_for_Tegra/sources/cboot/
$ ./compile_cboot.sh

uboot.bin location

./out/build-t194/lk.bin

Was this article helpful?

What's Next