Problems encountered when Compiling the Kernel (NVIDIA DRIVE Linux)

Please provide the following info:
Hardware Platform: [Example: DRIVE AGX Xavier™ Developer Kit]
Software Version: [Example: DRIVE Software 10]
Host Machine Version: [Example: native Ubuntu 18.04]

Dear NVidia,

I have now encountered a problem when Compiling the Kernel (NVIDIA DRIVE Linux) following the instructions:
file:///home/dongyao/Downloads/NVidia%20Drive%20AGX%20Xavier/Documentation/Software%20Guide/DRIVE_SW_10.0_References/DRIVE_Software/index.html#page/DRIVE_OS_Linux_SDK_Development_Guide/Appendix/sys_programming_kernel_toolchain.html

I have successfully passed the steps until step 5, which is:
make -C kernel O=${PWD}/out-t186ref-linux tegra_defconfig

The logs from terminal after executing the command:
"(sphinx_1.4) dongyao@dongyao-HP-ZBook-15-G4:~/Downloads/nvidia/sdkm_downloads/drive-oss-src$ make -C kernel 0=${PWD}/out-t186ref-linux clean
make: Entering directory ‘/home/dongyao/Downloads/nvidia/sdkm_downloads/drive-oss-src/kernel’
make: Leaving directory ‘/home/dongyao/Downloads/nvidia/sdkm_downloads/drive-oss-src/kernel’
(sphinx_1.4) dongyao@dongyao-HP-ZBook-15-G4:~/Downloads/nvidia/sdkm_downloads/drive-oss-src$ make -C kernel 0=${PWD}/out-t186ref-linux tegra_defconfig
make: Entering directory ‘/home/dongyao/Downloads/nvidia/sdkm_downloads/drive-oss-src/kernel’
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/bin2c
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/thermal/Kconfig:81:warning: choice value used outside its choice group
drivers/thermal/Kconfig:88:warning: choice value used outside its choice group
drivers/thermal/Kconfig:96:warning: choice value used outside its choice group
drivers/thermal/Kconfig:103:warning: choice value used outside its choice group


*** Can’t find default configuration “arch/x86/configs/tegra_defconfig”!


scripts/kconfig/Makefile:114: recipe for target ‘tegra_defconfig’ failed
make[1]: *** [tegra_defconfig] Error 1
Makefile:543: recipe for target ‘tegra_defconfig’ failed
make: *** [tegra_defconfig] Error 2
make: Leaving directory ‘/home/dongyao/Downloads/nvidia/sdkm_downloads/drive-oss-src/kernel’
"
Can’t find default configuration “arch/x86/configs/tegra_defconfig”!..Which really confused me a lot, How to solve?

BR
D

Hi @dongyao,

It looks your command line isn’t “make -C kernel O=${PWD}/out-t186ref-linux clean” (some typos).
Also did you issue “export ARCH=arm64” mentioned in the document? Why it was looking for x86?

Thanks for the reminding, I did actually typos 0 (zero) instead of o in the command.
For sure, I strictly follow the instruction and I issued “export ARCH=arm64”.
Now everything goes fine through step1 to step6. However, there is still nothing inside the directory , therefore I cannot execute step7, but why?

It worked fine on my side.

$ ls -l ~/nvidia/nvidia_sdk/DRIVE_Software_10.0_Linux_OS_DDPX/DRIVEOS/drive-oss-src/out-t186ref-linux/arch/arm64/boot/
total 48192
drwxrwxr-x 3 vyu vyu 20480 Sep 11 08:11 dts
-rw-rw-r-- 1 vyu vyu 29405192 Sep 11 08:35 Image
-rw-rw-r-- 1 vyu vyu 9979774 Sep 11 08:35 Image.gz
-rw-rw-r-- 1 vyu vyu 9979774 Sep 11 08:35 zImage

Please check your command lines or logs further to see if any clue.
Moreover, a developer did it successfully in below topic. You can take a look at it.