i want to compile fat file system module and get fat.o working
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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........
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.