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

m
no edit summary
No edit summary
mNo edit summary
Line 109: Line 109:
</syntaxhighlight>
</syntaxhighlight>


=== Copy kernel, device tree and modules into JetPack 4.4 Jetson Xavier NX installation directory ===
=== Copy kernel, device tree, and modules into JetPack 4.4 Jetson Xavier NX installation directory ===


<source lang="bash">
<source lang="bash">
Line 132: Line 132:
* Connect the power adapter to the Power Jack [J16].
* Connect the power adapter to the Power Jack [J16].
* The device will automatically power on in Force Recovery Mode.
* The device will automatically power on in Force Recovery Mode.
* Execute on a terminal of your host PC the "lsusb" command and you will must see the following output to confirm that the Jetson is in recovery mode:
* Execute on a terminal of your host PC the "lsusb" command and you will see the following output to confirm that the Jetson is in recovery mode:
** ''Bus 001 Device 010: ID 0955:7e19 NVidia Corp.''
** ''Bus 001 Device 010: ID 0955:7e19 NVidia Corp.''
* Remove the jumper from the Force Recovery Mode pins.
* Remove the jumper from the Force Recovery Mode pins.
Line 177: Line 177:
The image flashed to the kernel partition is actually a U‑Boot image. U‑Boot loads the Linux kernel from /boot/Image in the root file system.
The image flashed to the kernel partition is actually a U‑Boot image. U‑Boot loads the Linux kernel from /boot/Image in the root file system.


For this reason, you cannot update Linux kernel image using the ‑k kernel switch. You may update /boot/Image by either of these means:
For this reason, you cannot update the Linux kernel image using the ‑k kernel switch. You may update /boot/Image by either of these means:
* Modify /boot/extlinux/extlinux.conf to add a new boot entry.
* Modify /boot/extlinux/extlinux.conf to add a new boot entry.
* Follow the instructions and example provided in /boot/extlinux/extlinux.conf. By this means you can always use cp or scp to replace /boot/Image with a custom-built kernel and launch it with U‑Boot.
* Follow the instructions and example provided in /boot/extlinux/extlinux.conf. By this means you can always use cp or scp to replace /boot/Image with a custom-built kernel and launch it with U‑Boot.