install-custom-kernel.sh

SYNOPSIS

install-custom-kernel.sh
    [-h|--help]
    [--dry-run]
    [--verbose]
    [--source <path>]
    [--dest <path>]
    [--backup-postfix <postfix>]
    [--kernel-version <version>]

DESCRIPTION

Installs a previously compiled Linux Kernel in the system. It requires the kernel and modules build directories, copies them to the right locations in the system, and modifies the boot system to use them.

The script backs up the existing kernel and modules before installing the new ones. It then updates the initrd and boot configuration using nv-update-initrd and nv-update-extlinux.

This script is only supported on Tegra platforms (Jetson). It is not needed on DGX Spark.

This script requires elevated privileges. It will prompt if sudo requires it.

OPTIONS

--source <path>

Specify the source directory for the Linux for Tegra build. Default is ext/l4t.

--dest <path>

Specify the destination root directory for installation. Default is /.

--backup-postfix <postfix>

Postfix to use when backing up existing kernel files. Default is original.

--kernel-version <version>

Specify the kernel version to install. Default is the currently running kernel version.

--dry-run

Print the commands to execute, but do not perform the operations.

--verbose

Enable verbose output. Print the commands being executed.

-h, --help

Display help message and exit.

EXAMPLES

./install-custom-kernel.sh
./install-custom-kernel.sh --dry-run
./install-custom-kernel.sh --verbose --source ./ext/l4t
./install-custom-kernel.sh --backup-postfix backup

SEE ALSO

build-custom-kernel