i want to compile fat file system module and get fat.o working
this may sound silly...but i just have to do this........
i am trying to compile a fat file system module and load it into the kernel which does not have fat file system support but can take loadable modules.I configured this kernel with this feature from a base kernel that has fat fs support in it.im using the source code already available in the base kernel inside /usr/src/linux-2.4.18-14/fs/fat.there r 8 .c files in this location.i tried to compile these files but not working.The base kernel has a fat.o module which is not getting inserted into the second kernel giving the message,"module has been compiled for another version." can i use the source code files from the base kernel for my configured second kernel? if so how do i compile it and get the fat.o working? please help........ |
Quote:
or recompile your kernel with "Set version information on all module symbols" option |
oh...ok...but is it possible to actually compile the fat fs module and then load using insmod?will recompiling kernel with "Set version information on all module symbols" option help me in compiling the module?
|
The easiest method is to run 'make menuconfig' in the sources your kernel was build from, choose fat as module and run 'make modules'. Then copy the fat module and try to locad it. It should work.
"module has been compiled for another version." means you have two different kernel versions. If you have the sources of the kernel you'd like to insert the module, do as above. |
but the kernels are not of diff. versions.I have a linux version 8 base kernel...from which i configured a second kernel without fat fs support.
when i tried what u said...i got the message " module has been compiled for another version".....what do i do? |
Do you mean you get the error messages when you're using the same source you compiled the running kernel from?
|
yes...i got the error message.."couldnt find the version for which module was compiled " when i used the same sorce i compiled the running kernel from.
|
have you enable the CONFIG_MODVERSIONS option in your kernel?
|
yes the option is enabled...what else shud i do?
|
Does the following command give you an error message?
modprobe fat if yes, which one??? |
All times are GMT -5. The time now is 05:41 PM. |