Hello,
I want to rebuild the module iwlwifi on my Xavier for wifi support. uname -r returned 4.9.140-tegra. I downloaded the source code for linux-4.9.140. I ran the commands below as root:
cd kernelbuild/linux-4.9.140 #directory of the source code
make clean
make proper
cp /lib/modules/4.9.140-tegra/build/Module.symvers ./
zcat /proc/config.gz > .config
vim .config #CONFIG_LOCALVERSION="-tegra"
vim Makefile #EXTRAVERSION = -tegra
make oldconfig
make -j8 modules_prepare
make -j8 modules
cp drivers/net/wireless/intel/iwlwifi/iwlwifi.ko /lib/modules/4.9.140-tegra/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko
reboot
After rebooting the board, module iwlwifi can’t be loaded correctly, and “dmesg | grep iwl” shows:
iwlwifi: no symbol version for module_layout
iwlwifi: Unknown symbol dma_alloc_from_coherent (err 0)
iwlwifi: Unknown symbol dma_release_from_coherent (err 0)
iwlwifi: Unknown symbol debugfs_create_file (err 0)
I am new to linux, and don’t know how to deal with the problem. Can anyone help me? Thanks a lot.