[what's the issue?]
bnx2: no version for "struct_module" found: kernel tainted.
[why does it happen?]
That the kernel was built with CONFIG_MODVERSIONS=y but the
module was built with CONFIG_MODVERSIONS=n (i.e., without
symbol versioning information).
[How to get rid of this?]
Build the kernel and module with the same config options.
[Action]
run "make" to compile the driver, not "make modules SUBDIRS=drivers/net/"
but if Module.symvers exist, you can run "make modules SUBDIRS=drivers/net/" to compile it.
# rpm -ivh kernel-2.6.18-128.el5.src.rpm
# cd /usr/src/redhat/SPECS/
# rpmbuild -bb kernel-2.6.spec (Ctrl+C after gpg shown up)
# cd /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.x86_64/
# cp /boot/config-2.6.18-128.el5 .config
# make
阅读(1728) | 评论(0) | 转发(0) |