I am trying to compile and insert the r8169 realtek ethernet driver. My kernel version is
ebin@sony:~$ uname -r 4.2.0-rc3-custom I have the full source of the same in my local disk, which is used to install the current kernel. The module compiles successfully when I run make -C /lib/modules/uname -r/build M=pwdmodules
but when I insert the module, it shows
ebin@sony:~/linux_testing/linux-stable/drivers/net/ethernet/realtek$ sudo insmod r8169.ko insmod: ERROR: could not insert module r8169.ko: Unknown symbol in module ebin@sony:~/linux_testing/linux-stable/drivers/net/ethernet/realtek$ dmesg [16717.311216] r8169: Unknown symbol mii_ethtool_gset (err 0) When I grepped through the source, I found
EXPORT_SYMBOL(mii_ethtool_gset); already exported in the mii.c. So I guess it is not the problem of unexported symbol. Let me know if I have to provide any other info. Please help.
miiis compiled as a module, you need to insert it (sudo modprobe mii) before inserting your module. Unlike tomodprobe,insmoddoes not load dependent modules automatically.ERROR: could not insert module r8169.ko: Invalid parametersdmesg[ 8157.140018] r8169: disagrees about version of symbol mii_ethtool_gset [ 8157.140027] r8169: Unknown symbol mii_ethtool_gset (err -22)