Error when compiling the 5.15 kernel provided by DRIVE OS 6.0.8.1

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.3.10904
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

I’m receiving the following error when I reach step 8 (compile OOT modules) following this documentation:

make -f /drive/drive-linux/kernel/source/oss_src/kernel/scripts/Makefile.build obj=/tmp/nv-oot/drivers/platform/tegra/uncore_pmu

need-builtin=
need-modorder=1
/drive/toolchains/aarch64–glibc–stable-2022.03-1/bin/aarch64-buildroot-linux-gnu-gcc -Wp,-MMD,/tmp/nv-oot/drivers/platform/tegra/.mc-hwpm.o.d -nostdinc -isystem /drive/toolchains/aarch64–glibc–stable-2022.03-1/bin/…/lib/gcc/aarch64-buildroot-linux-gnu/9.3.0/include -I/drive/drive-linux/kernel/source/oss_src/kernel/arch/arm64/include -I./arch/arm64/include/generated -I/drive/drive-linux/kernel/source/oss_src/kernel/include -I./include -I/drive/drive-linux/kernel/source/oss_src/kernel/arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I/drive/drive-linux/kernel/source/oss_src/kernel/include/uapi -I./include/generated/uapi -include /drive/drive-linux/kernel/source/oss_src/kernel/include/linux/compiler-version.h -include /drive/drive-linux/kernel/source/oss_src/kernel/include/linux/kconfig.h -I/drive/drive-linux/kernel/source/oss_src/kernel/ubuntu/include -I/tmp/nv-oot/include -I/tmp/nv-oot/include -I/tmp/nv-oot/drivers/gpu/host1x/hw/ -I/tmp/nv-oot/drivers/video/tegra/host/ -I/tmp/nv-oot/drivers/gpu/host1x/include -I/include -I/tmp/nv-oot -include /drive/drive-linux/kernel/source/oss_src/kernel/include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -DKASAN_SHADOW_SCALE_SHIFT= -fmacro-prefix-map=/drive/drive-linux/kernel/source/oss_src/kernel/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mgeneral-regs-only -DCONFIG_CC_HAS_K_CONSTRAINT=1 -Wno-psabi -mabi=lp64 -fno-asynchronous-unwind-tables -fno-unwind-tables -mbranch-protection=pac-ret+leaf -Wa,-march=armv8.5-a -DARM64_ASM_ARCH=‘“armv8.5-a”’ -DKASAN_SHADOW_SCALE_SHIFT= -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -fno-var-tracking -femit-struct-debug-baseonly -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=1344 -DMODULE -DKBUILD_BASENAME=‘“mc_hwpm”’ -DKBUILD_MODNAME=‘“mc_hwpm”’ -D__KBUILD_MODNAME=kmod_mc_hwpm -c -o /tmp/nv-oot/drivers/platform/tegra/mc-hwpm.o /tmp/nv-oot/drivers/platform/tegra/mc-hwpm.c
/tmp/nv-oot/drivers/video/tegra/host/nvdla/nvdla.c:24:10: fatal error: uapi/linux/tegra-soc-hwpm-uapi.h: No such file or directory
24 | include <uapi/linux/tegra-soc-hwpm-uapi.h>

That file is only found in:

/drive/drive-linux/kernel/source/oss_src/hwpm/include/uapi/linux/tegra-soc-hwpm-uapi.h
/drive/drive-linux/kernel/source/oss_src/nvidia/include/uapi/linux/tegra-soc-hwpm-uapi.h

And neither of the parent directories are in the -I lists during compilation.

You can close this ticket, I was following the wrong documentation (6.0.8 instead of 6.0.8.1). I was able to build to completion following the correct documentation (6.0.8.1).

Thank you!

1 Like

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