How to Change the Kernel Version ?

Hello,
when i run the ‘uname -r’ command i get ‘4.9.140+’ .
I have video card of Avermedia and the Avermedia’s support said me that i need Xavier kernel will be ‘4.9.140-tegra’.

  1. What different between ‘4.9.140+’ to ‘4.9.140-tegra’?
  2. How i can to change the kernel version ?

You just need to export this value before building kernel.

export LOCALVERSION=-tegra
make O=$TEGRA_KERNEL_OUT tegra_defconfig
make O=$TEGRA_KERNEL_OUT

This name would affect the path of modprobe. For example, the driver modules would be under /lib/modules/4.9.140-tegra under normal case and “sudo modprobe” would go to this path to search specific module. When I said “normal case”, I mean the default case from jetpack/sdkmanager.

However, if your kernel has “uname -r” equal to 4.9.140+, the modprobe would search /lib/modules/4.9.140+/.
This would cause many functionalities being lost because many drivers are installed in 4.9.140-tegra by default.

Hello ,
How i export this value ? i have tried execute with buildJetsonXavierKernel in jestonhack but i received this error:
"aa@aa-desktop:~/buildJetsonXavierKernel$ ./getKernelSources.sh
NVIDIA Jetson Xavier
Jetpack UNKNOWN [L4T 32.1.0]

==== L4T Kernel Version Mismatch! =============

This repository branch is for installing the kernel sources for L4T 31.0.1
You are attempting to use these kernel sources on a L4T 32.1.0 system.
The kernel sources do not match their L4T release!

Please git checkout the appropriate kernel sources for your release

You can list the tagged versions.
$ git tag -l
And then checkout the latest version:
For example
$ git checkout v1.0-L4T32.1.0"

I use with Linux 18.4 L4T 32.01.01 JetPack 4.2 .

This script is not our official tool. Please directly build it by following the L4T document.