kernel modules

Hi,
When I build kernel modules, the command line used as blow:
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=…/kernel_output tegra_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=…/kernel_output -j2
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=…/kernel_output modules_install INSTALL_MOD_PATH=…/kernel_output/modules_install_path

But the ko modules I build are bigger than nvidia provided. Such as mac80211.ko, mine is 24MB, and nvidia’s is only 1.2MB.I don’t know what happend and what shoud I do?

hello 499377441,

may I have confirmation that you had check documentation for prerequisites,
for example, Building the NVIDIA Kernel, and Preparing to Build External Kernel Modules.
thanks

hello JerryChang,
Yes, I followed its instructions to build my kernel.

hello 499377441,

please include the commands to strip unnecessary symbols from kernel modules.
you might also refer to Topic 1055518 for reference.
thanks

hello JerryChang,
OK, thank you so much!

See also:
https://devtalk.nvidia.com/default/topic/1066506/jetson-tx2/why-the-built-modules-based-on-nvidia-official-kernel-source-/post/5401303/#5401303