|
发表于 2011-5-15 10:21:37
|
显示全部楼层
When you attempt to load the kernel module you receive a "insmod: error inserting ... Invalid module format"
This type of error can be diagnosed by running:
dmesg
The output from this command will indicate the source of the problem.
Common reasons for this error include:
Using the wrong kernel preemption option.
Your kernel module was compiled with a different gcc version than your kernel. In this case simply re-emerge the kernel and nvidia kernel module.
[edit] Preemption
In this case you'll probably see a message like: should be "<arch><kernel> preempt <gcc version>"
If the kernel is not compiled to be a preemptible kernel then trying to insert the nvidia.ko module will fail. To make the kernel preemptible use your favorite text editor to modify your kernel's configuration file (.config by default) and be sure to ammend: CONFIG_PREEMPT=y
As well as commenting out all other CONFIG_PREEMPT type options.
凑字数~~~~ |
|