Jetson Nano Kernel Problem

I am having a problem compiling the latest kernel for Jetson Nano. I followed the guide here: Kernel Customization — Jetson Linux<br/>Developer Guide 34.1 documentation

I manually downloaded and extracted the kernel sources, then tried to build the kernel using the steps in that guide. I am using the latest Linux toolchain files from here: Welcome — Jetson Linux<br/>Developer Guide 34.1 documentation

The kernel stops compiling mid way through with these errors:


CC [M] drivers/net/wireless/realtek/rtl8821cu/hal/phydm/halrf/halrf_kfree.o
CC [M] drivers/net/wireless/realtek/rtl8821cu/hal/phydm/rtl8821c/phydm_regconfig8821c.o
CC [M] drivers/net/wireless/realtek/rtl8821cu/platform/platform_ops.o
CC [M] drivers/net/wireless/realtek/rtl8821cu/hal/phydm/halrf/rtl8821c/halrf_8821c.o
CC [M] drivers/net/wireless/realtek/rtl8821cu/hal/phydm/rtl8821c/phydm_hal_api8821c.o
CC [M] drivers/net/wireless/realtek/rtl8821cu/hal/phydm/halrf/rtl8821c/halhwimg8821c_rf.o
CC [M] drivers/net/wireless/realtek/rtl8821cu/hal/btc/halbtc8821cwifionly.o
CC [M] drivers/net/wireless/realtek/rtl8821cu/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.o
CC [M] drivers/net/wireless/realtek/rtl8821cu/core/rtw_mp.o
CC [M] drivers/net/wireless/realtek/rtl8821cu/hal/btc/halbtc8821c1ant.o
CC [M] drivers/net/wireless/realtek/rtl8821cu/hal/btc/halbtc8821c2ant.o
LD [M] drivers/net/wireless/realtek/rtl8821cu/rtl8821cu.o
scripts/Makefile.build:649: recipe for target ‘drivers/net/wireless’ failed
make[2]: *** [drivers/net/wireless] Error 2
scripts/Makefile.build:649: recipe for target ‘drivers/net’ failed
make[1]: *** [drivers/net] Error 2
Makefile:1122: recipe for target ‘drivers’ failed
make: *** [drivers] Error 2

I have not touched these files so not sure what is going on here. Can you help?

Best Regards,
Casey

Jetpack 34.x doesn’t compatibility with jetson nano you needed jetpack 32.x branch .Jetson Linux Archive | NVIDIA Developer
Recommended using GCC7 for this branch .

1 Like

Hello,

Ok I have tried going with 32.7.2 now and Linaro 7.3.1 2018.05 toolchain (following the steps here: https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3261/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/kernel_custom.html#

But now I am getting the following problem during the build:

labuser@Linux01:~/Downloads/public_sources/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9$ TEGRA_KERNEL_OUT=kernel_out
labuser@Linux01:~/Downloads/public_sources/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9$ export CROSS_COMPILE=$HOME/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
labuser@Linux01:~/Downloads/public_sources/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9$ export LOCALVERSION=-tegra
labuser@Linux01:~/Downloads/public_sources/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9$ mkdir -p $TEGRA_KERNEL_OUT
labuser@Linux01:~/Downloads/public_sources/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9$ make ARCH=arm64 0=$TEGRA_KERNEL_OUT tegra_defconfig

configuration written to .config

labuser@Linux01:~/Downloads/public_sources/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9$ make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j4
make[1]: Entering directory ‘/home/labuser/Downloads/public_sources/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9/kernel_out’
GEN ./Makefile
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig


*** Configuration file “.config” not found!


*** Please run some configurator (e.g. “make oldconfig” or
*** “make menuconfig” or “make xconfig”).


…/scripts/kconfig/Makefile:37: recipe for target ‘silentoldconfig’ failed
make[3]: *** [silentoldconfig] Error 1
…/Makefile:575: recipe for target ‘silentoldconfig’ failed
make[2]: *** [silentoldconfig] Error 2
make[1]: *** No rule to make target ‘include/config/auto.conf’, needed by ‘include/config/kernel.release’. Stop.
make[1]: Leaving directory ‘/home/labuser/Downloads/public_sources/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9/kernel_out’
Makefile:171: recipe for target ‘sub-make’ failed
make: *** [sub-make] Error 2

Best Regards,
Casey

Seems the .config file was not created at the expected location, … or else.
You may try these steps for native building such as (this is already an old post, you would adapt for your L4T version):

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