我正在尝试编译我们从源代码获得的驱动程序,并且正在通过新的目标环境解决这些问题。 我看到的一个令人不安的事情是以下警告:
WARNING: Symbol version dump /usr/src/linux-2.6.38/Module.symvers is missing; modules will have no dependencies and modversions.我在网上花费了相当长的时间,并且在其他问题被问到时经常在输出中显示,但是我没有看到关于这是否是问题的任何评论。
无论如何,我如何告诉linux / ubuntu生成Module.symvers?
I am trying to compile a driver that we have from source and I am working through the issues with a new target environment. One of the slightly disturbing things I see is the following warning:
WARNING: Symbol version dump /usr/src/linux-2.6.38/Module.symvers is missing; modules will have no dependencies and modversions.I spent a fair amount of time looking on the web and this is shown in output frequently when other questions are asked, but I didn't see any commentary about whether or not this is an issue.
In any case, how would I tell linux/ubuntu to generate Module.symvers?
最满意答案
Module.symvers是在编译内核时生成的,应该作为内核构建环境包的一部分提供给用户,但是可能会在Ubuntu上看到(可能在那里出现了问题?)例如,Fedora和openSUSE提供一个或多个“ kernel-devel“(和/或类似名称)的软件包,通过/lib/modules/<version>/build/Module.symvers该构建环境并使文件可达。 当使用自编译的内核时,替换为build目录(所有.o文件都在其中)的适当路径的替换/ lib / modules / version / build。
Module.symvers is generated when the kernel itself is compiled and ought to be provided to the user as part of the kernel build environment package, however that may look on Ubuntu (possibly broken there?) Fedora and openSUSE for example ship one or more “kernel-devel” (and/or similarly-named) packages that ship this build environment and make the file reachable through /lib/modules/<version>/build/Module.symvers. When using a self-compiled kernel, substitue /lib/modules/version/build for the appropriate path to the build directory (where all the .o files are).
更多推荐
发布评论