Jump to content

Jetson Xavier NX/Development/Building the Kernel from Source: Difference between revisions

Line 71: Line 71:
===Compile Jetson Xavier NX kernel and dtb ('''d'''evice '''t'''ree '''b'''lob)===
===Compile Jetson Xavier NX kernel and dtb ('''d'''evice '''t'''ree '''b'''lob)===


<syntaxhighlight lang="bash" style="background-color:cornsilk">
<syntaxhighlight lang="bash">
cd $JETSON_XAVIER_NX_KERNEL_SOURCES
cd $JETSON_XAVIER_NX_KERNEL_SOURCES
TOOLCHAIN_PREFIX=$HOME/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
TOOLCHAIN_PREFIX=$HOME/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
Line 83: Line 83:
here you have to select the modules you want to compile, for example for libguvc something like this is required:
here you have to select the modules you want to compile, for example for libguvc something like this is required:


<syntaxhighlight lang="bash" style="background-color:cornsilk">
<syntaxhighlight lang="bash">
  -> Device Drivers
  -> Device Drivers
     -> USB support (USB_SUPPORT [=y])  
     -> USB support (USB_SUPPORT [=y])  
Line 92: Line 92:
Now compile the kernel image, dtbs and modules:
Now compile the kernel image, dtbs and modules:


<syntaxhighlight lang="bash" style="background-color:cornsilk">
<syntaxhighlight lang="bash">
make -C kernel/kernel-4.9/ ARCH=arm64 O=$TEGRA_KERNEL_OUT LOCALVERSION=-tegra CROSS_COMPILE=${TOOLCHAIN_PREFIX} -j$(nproc) Image
make -C kernel/kernel-4.9/ ARCH=arm64 O=$TEGRA_KERNEL_OUT LOCALVERSION=-tegra CROSS_COMPILE=${TOOLCHAIN_PREFIX} -j$(nproc) Image
make -C kernel/kernel-4.9/ ARCH=arm64 O=$TEGRA_KERNEL_OUT LOCALVERSION=-tegra CROSS_COMPILE=${TOOLCHAIN_PREFIX} -j$(nproc) dtbs
make -C kernel/kernel-4.9/ ARCH=arm64 O=$TEGRA_KERNEL_OUT LOCALVERSION=-tegra CROSS_COMPILE=${TOOLCHAIN_PREFIX} -j$(nproc) dtbs
706

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.