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

m
no edit summary
No edit summary
mNo edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
{{JetsonNano/Head|previous=Development/Getting_into_the_Board|next=GStreamer/Accelerated_Elements|keywords=jetson nano kernel, DTB, build, compile, flashing, clone,clonning the image,compiling the kernel,downloading the kernel source,downloading the kernel,kernel source,source code|title=How to build NVIDIA Jetson Nano kernel|description=This page provides the steps to compile,build and flashing the kernel,DTBs and to clone a sdcard image}}
{{JetsonNano/Head|previous=Development/Getting_into_the_Board|next=GStreamer/Accelerated_Elements|metakeywords=jetson nano kernel, DTB, build, compile, flashing, clone, cloning the image, compiling the kernel, downloading the kernel source, downloading the kernel, kernel source, source code|title=How to build NVIDIA Jetson Nano kernel|metadescription=This page provides the steps to compile, build and flashing the kernel, DTBs and to clone a sdcard image}}
</noinclude>
</noinclude>


Line 15: Line 15:
Previous versions:
Previous versions:


* [https://developer.ridgerun.com/wiki/index.php?title=Compiling_Jetson_Nano_source_code_L4T_32.2.1 Compiling Jetson Nano source code L4T 32.2.1]
* [[Compiling_Jetson_Nano_source_code_L4T_32.2.1 Compiling Jetson Nano source code L4T 32.2.1]]
* [https://developer.ridgerun.com/wiki/index.php?title=Compiling_Jetson_Nano_source_code_L4T_32.1 Compiling Jetson Nano source code L4T 32.1]
* [[Compiling_Jetson_Nano_source_code_L4T_32.1 Compiling Jetson Nano source code L4T 32.1]]


==Build Kernel==
==Build Kernel==
Line 72: Line 72:
This guide assumes that the user already has sdk-manager installed. This link contains details about how to install sdk-manager: https://developer.nvidia.com/nvidia-sdk-manager https://docs.nvidia.com/sdk-manager/download-run-sdkm/index.html
This guide assumes that the user already has sdk-manager installed. This link contains details about how to install sdk-manager: https://developer.nvidia.com/nvidia-sdk-manager https://docs.nvidia.com/sdk-manager/download-run-sdkm/index.html


NVIDIA_SDK_MANAGER contains the directory where Nvidia SDK manager was installed. For example.
NVIDIA_SDK_MANAGER contains the directory where NVIDIA SDK manager was installed. For example.
<source lang="bash">
<source lang="bash">
export NVIDIA_SDK_MANAGER=$HOME/nvidia/nvidia_sdk/
export NVIDIA_SDK_MANAGER=$HOME/nvidia/nvidia_sdk/
Line 104: Line 104:
===Apply root filesystem patch===
===Apply root filesystem patch===


With the default root file system the changes in the device tree are lost when the board is power off. This is a known issue (https://devtalk.nvidia.com/default/topic/1072091/jetson-nano/how-to-modify-the-dts-file-for-jetson-nano-board/)
With the default root file system, the changes in the device tree are lost when the board is powered off. This is a known issue (https://devtalk.nvidia.com/default/topic/1072091/jetson-nano/how-to-modify-the-dts-file-for-jetson-nano-board/)
Apply this patch to avoid losing the changes added in the device tree.
Apply this patch to avoid losing the changes added to the device tree.


====Create patch file====
====Create patch file====