Where does dldrconfig look for the kernel sources?
By default, ‘dldrconfig’ looks for the symbolic link ‘/lib/modules/(kernelversion)/build’ If this link exists and points to a valid directory, then ‘dldrconfig’ will use this directory as the kernel sources’ location. If the link does not exist, ‘dldrconfig’ will try to use ‘/usr/src/linux’ or ‘/usr/local/src/linux’. Note that if your kernel sources are in ‘/usr/local/src/linux’, but you also have a ‘/usr/src/linux’ link pointing to an invalid or empty directory, then ‘dldrconfig’ will try to use ‘/usr/src/linux’ and it will fail. The kernel source tree must be exactly the same that was used to build the kernel that you are running. Otherwise, ‘dldrconfig’ might refuse to build the module or the driver will not work properly.