Hi, I’m building Jetpack6.2 kernel and met a err. It’s okay to build kernel and dtbs, but when I build oot module it comes this err
make: Entering directory '/NVME/xinhao/orinnx/out'
================================================================================
make modules - conftest ...
================================================================================
mkdir -p /NVME/xinhao/orinnx/out/out/nvidia-conftest/nvidia;
cp -av /NVME/xinhao/orinnx/out/nvidia-oot/scripts/conftest/* /NVME/xinhao/orinnx/out/out/nvidia-conftest/nvidia/;
'/NVME/xinhao/orinnx/out/nvidia-oot/scripts/conftest/conftest.h' -> '/NVME/xinhao/orinnx/out/out/nvidia-conftest/nvidia/conftest.h'
'/NVME/xinhao/orinnx/out/nvidia-oot/scripts/conftest/conftest.sh' -> '/NVME/xinhao/orinnx/out/out/nvidia-conftest/nvidia/conftest.sh'
'/NVME/xinhao/orinnx/out/nvidia-oot/scripts/conftest/Makefile' -> '/NVME/xinhao/orinnx/out/out/nvidia-conftest/nvidia/Makefile'
make: Leaving directory '/NVME/xinhao/orinnx/out'
make -j 12 ARCH=arm64 \
src=/NVME/xinhao/orinnx/out/out/nvidia-conftest/nvidia obj=/NVME/xinhao/orinnx/out/out/nvidia-conftest/nvidia \
CC=/NVME/xinhao/toochain/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-gcc LD=/NVME/xinhao/toochain/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-ld \
NV_KERNEL_SOURCES=/NVME/xinhao/orinnx/out/kernel/kernel-jammy-src \
NV_KERNEL_OUTPUT=/NVME/xinhao/orinnx/out/kernel/kernel-jammy-src \
-f /NVME/xinhao/orinnx/out/out/nvidia-conftest/nvidia/Makefile
make[1]: Entering directory '/NVME/xinhao/orinnx/out'
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make[1]: Leaving directory '/NVME/xinhao/orinnx/out'
make[1]: Entering directory '/NVME/xinhao/orinnx/out'
The Module.symvers file is missing, or does not contain any
symbols exported from the kernel. This could cause the NVIDIA
kernel modules to be built against a configuration that does
not accurately reflect the actual target kernel.
The Module.symvers file check can be disabled by setting the
environment variable IGNORE_MISSING_MODULE_SYMVERS to 1.
/NVME/xinhao/orinnx/out/out/nvidia-conftest/nvidia/Makefile:255: recipe for target 'module_symvers_sanity_check' failed
make[1]: *** [module_symvers_sanity_check] Error 1
make[1]: Leaving directory '/NVME/xinhao/orinnx/out'
make[1]: *** Waiting for unfinished jobs....
Makefile:41: recipe for target 'conftest' failed
make: *** [conftest] Error 2
I tried set
export IGNORE_MISSING_MODULE_SYMVERS=1
but there is another err.
CC [M] /NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/hal/t234/ip/mss_gpu_hub/t234_mss_gpu_hub.o
CC [M] /NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/hal/t234/ip/scf/t234_scf.o
CC [M] /NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/hal/t234/ip/pcie/t234_pcie.o
CC [M] /NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/hal/t234/ip/vi/t234_vi.o
CC [M] /NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/hal/t234/ip/nvdec/t234_nvdec.o
LD [M] /NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.o
WARNING: Symbol version dump "Module.symvers" is missing.
Modules may not have dependencies or modversions.
You may get many unresolved symbol warnings.
MODPOST /NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/Module.symvers
WARNING: modpost: "module_layout" [/NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.ko] undefined!
WARNING: modpost: "clk_unprepare" [/NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.ko] undefined!
WARNING: modpost: "of_machine_is_compatible" [/NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.ko] undefined!
WARNING: modpost: "cdev_del" [/NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.ko] undefined!
WARNING: modpost: "kmalloc_caches" [/NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.ko] undefined!
WARNING: modpost: "__kmalloc" [/NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.ko] undefined!
WARNING: modpost: "cdev_init" [/NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.ko] undefined!
WARNING: modpost: "msleep" [/NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.ko] undefined!
WARNING: modpost: "clk_enable" [/NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.ko] undefined!
WARNING: modpost: "debugfs_create_dir" [/NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.ko] undefined!
WARNING: modpost: suppressed 59 unresolved symbol warnings because there were too many)
make[3]: *** No rule to make target 'scripts/module.lds', needed by '/NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.ko'. Stop.
make[3]: *** Waiting for unfinished jobs....
CC [M] /NVME/xinhao/orinnx/out/hwpm/drivers/tegra/hwpm/nvhwpm.mod.o
scripts/Makefile.modpost:139: recipe for target '__modpost' failed
make[2]: *** [__modpost] Error 2
Makefile:1830: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
Makefile:55: recipe for target 'hwpm' failed
make: *** [hwpm] Error 2
How can I build oot module correctly? Thanks