(flash.sh) _BASE_KERNEL_VERSION is wrong

Hi

I’m using jenkins docker to create our demo_image.

sudo ./flash.sh --no-flash jetson-xavier-nx-devkit-emmc mmcblk0p1

But the display is always show nothing.

Turn out that the flash.sh of docker is worng:

###############################################################################
# L4T BSP Information:
# R32 , REVISION: 7.1
###############################################################################
...
_BASE_KERNEL_VERSION=4.9.253-tegra-ab36

It put the additional text for kernel version, lead to the modules unloaded(uncopied) for script.

cp: cannot stat '/home/jenkins/workspace/nvidia-Jetpack-build_kernel-4.9/3/Linux_for_Tegra/rootfs/lib/modules/4.9.253-tegra-ab36/kernel/drivers/net/wireless/bcmdhd/bcmdhd.ko': No such file or directory

I figure out that 36 is the jenkins ${BUILD_NUMBER}.
image

Please tell me how the _BASE_KERNEL_VERSION is created, so I can continue fixing the bug.


Besides, the jetpack of jetson-nano happens, too.

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.253-tegra-ab36 (root@762660e2034b) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02) ) #1 SMP PREEMPT Wed Aug 24 18:13:30 CST 2022

But the flash.sh didn’t show the log.


And the kernel version we compiled is OK.

$ echo "Kernel Linux version is : $(cat include/config/kernel.release)"
Kernel Linux version is : 4.9.253-tegra

Hi,
The print in default system image is:

[    0.000000] Linux version 4.9.253-tegra (buildbrain@mobile-u64-5374-d5000) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #1 SMP PREEMPT Sun Apr 17 02:37:44 PDT 2022

The version is 4.9.253. Not sure why ab36 pops up. Do you hit issue if you follow developer guide to compile kernel and flash the system?

Yes, I had tested the script on local computer.
But put on the jenkins docker always gets the result.
So I came here for help…

I also grep the entire jetpack, and find no such a string name _BASE_KERNEL_VERSION.
Please tell me the how the _BASE_KRNEL_VERSION is defined.

Hi,
By default it is 4.9.253-tegra. Not sure why there is additional ab36 in your string.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.