LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-25-2004, 08:36 AM   #1
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Rep: Reputation: 15
Unhappy 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........
 
Old 02-25-2004, 08:55 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
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
 
Old 02-25-2004, 09:06 AM   #3
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Original Poster
Rep: Reputation: 15
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?
 
Old 02-25-2004, 09:06 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
Old 02-25-2004, 09:09 AM   #5
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Original Poster
Rep: Reputation: 15
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?
 
Old 02-25-2004, 09:15 AM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you mean you get the error messages when you're using the same source you compiled the running kernel from?
 
Old 02-26-2004, 08:45 AM   #7
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Original Poster
Rep: Reputation: 15
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.
 
Old 02-26-2004, 09:56 AM   #8
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
have you enable the CONFIG_MODVERSIONS option in your kernel?
 
Old 02-26-2004, 10:20 AM   #9
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Original Poster
Rep: Reputation: 15
yes the option is enabled...what else shud i do?
 
Old 02-26-2004, 11:41 AM   #10
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Does the following command give you an error message?
modprobe fat
if yes, which one???
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The FAT file system oookiezooo Linux - General 1 12-03-2005 10:35 AM
The FAT/NTFS file system oookiezooo General 1 12-02-2005 01:54 PM
I have to build , load and compile a FAT fs module into the kernel.wat should i do? ramya272 Linux - Newbie 2 02-06-2004 09:46 AM
formating floppy with fat file system in redhat linux 7.3 !!! hitesh_linux Linux - General 1 06-17-2003 10:30 AM
undeleting a file from a fat file system qanopus Linux - General 2 01-09-2003 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration