LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   i want to compile fat file system module and get fat.o working (https://www.linuxquestions.org/questions/linux-newbie-8/i-want-to-compile-fat-file-system-module-and-get-fat-o-working-150318/)

ramya272 02-25-2004 08:36 AM

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........

Oliv' 02-25-2004 08:55 AM

Quote:

module has been compiled for another version
try insmod -f fat.o
or recompile your kernel with "Set version information on all module symbols" option

ramya272 02-25-2004 09:06 AM

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?

Mara 02-25-2004 09:06 AM

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.

ramya272 02-25-2004 09:09 AM

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?

Mara 02-25-2004 09:15 AM

Do you mean you get the error messages when you're using the same source you compiled the running kernel from?

ramya272 02-26-2004 08:45 AM

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.

Oliv' 02-26-2004 09:56 AM

have you enable the CONFIG_MODVERSIONS option in your kernel?

ramya272 02-26-2004 10:20 AM

yes the option is enabled...what else shud i do?

Oliv' 02-26-2004 11:41 AM

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.