Kernel module build for Ubuntu target OS / Install SDK toolchain

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
Linux
QNX
other

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
1.4.0.7363
other

Host Machine Version
native Ubuntu 18.04
other

I am having trouble locating documentation for the setup of cross-compiling toolchain for the Ubuntu target.

I have a kernel module to build and building on target is failing due to missing kernel sources.
On target, kernel 4.14.150-rt67-tegra is installed but there are no headers available for 4.14, only 4.15.
I install the 4.15 headers but this does not appear to be sufficent.
The kernel module is looking for /lib/module/uname -r/build so it needs the .config et. al. (/usr/src/linux)

I either need a package for the target for kernel src & build files or I need instructions for manual installation of the toolchains and supporting files (which include the kernel src and build files).

Is there a shell file to source to setup the cross build environment?
i.e. What is the procedure to use the cross toolchain to build a kernel module?

Hi @sbarber ,

Please check Compiling the Kernel (NVIDIA DRIVE Linux). Thanks.

I would prefer to not build custom kernels.
Are there supporting packages to do dkms builds for the provided kernel?

In DRIVE OS we do not support target compile of anything including the kernel. Please follow the instructions in the page to cross-compile the kernel on the host. You can get the header files. All sources and toolchains are included in the DRIVE OS SDK. Thanks.