Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where does dldrconfig look for the kernel sources?

Kernel look sources
0
Posted

Where does dldrconfig look for the kernel sources?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123