LinuxQuestions.org
Help answer threads with 0 replies.
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-26-2004, 10:07 AM   #1
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Rep: Reputation: 15
Unhappy insmod gives error message


i have configured a kernel without FAT fs support from a base kernel version 8.This new kernel has ext2 ,ext3 support.now if i copy the fat directory into the second kernel and try to configure it using
./config
error msg : " file/dir not found" appears

if i try to insmod the fat.o of the base kernel into the new kernel(configured from base kernel) the error msg appears
" cannot find kernel version for which module was compiled"

how do i get the fat dir working on my configured kernel?
please help....
 
Old 02-26-2004, 10:29 AM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
When you configure the kernel, with make menuconfig or make xconfig, add the support for the fat filesystem as a module.
It should be in the filesystem section, under DOS/FAT filesystems

Then recompile your kernel.

--Rounan
 
Old 02-26-2004, 10:40 AM   #3
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Original Poster
Rep: Reputation: 15
could u plz explain a bit more....very very newbie to config....
 
Old 02-26-2004, 12:21 PM   #4
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Well, if you compiled your kernel, at some point you typed
"make menuconfig"
or
"make xconfig"

And got a list of all the options you could compile into the kernel, either directly (* in menuconfig), or as a module (M in menuconfig).
In the Filesystems section, you didn't specify that you wanted to use the fat filesystem. You need to either compile it into the kernel, in which case it's available all the time, or as a module,in which case it will be loaded as you need it.

For more info, read the kernel howto at:
http://www.linuxdocs.org/HOWTOs/Kernel-HOWTO.html

--Rounan
 
Old 02-27-2004, 11:01 AM   #5
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Original Poster
Rep: Reputation: 15
alright now if fat fs is built as a module....can i use the fat.o formed on another kernel configured without fat fs support configured from the same base kernel?
 
Old 02-27-2004, 11:07 AM   #6
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
possibly, but probably not.

stumbling blocks would be:
The module might not have been compiled with the same specs (cpu optimization, etc) or the same version of GCC as the kernel. This can lead to strange behaviour, something you DEFINATELY don't want with a filesystem.

The kernel might not realise it has a fat module if you didn't put it in the config - in trying to read a fat filesystem, it might decide it can't do it because it wasn't compiled to recognize fat, even if you stick fat.o in /lib/modules/<kernelversion>. I don't know since i've never tried.

Especially since it's a filesystem, just recompile.

--Rounan
 
Old 02-27-2004, 11:33 AM   #7
ramya272
Member
 
Registered: Feb 2004
Posts: 41

Original Poster
Rep: Reputation: 15
but if i recompile then the kernel wil just build the fat.o on its own....i cant even insmod it and see how it works......:-(
 
Old 02-27-2004, 12:19 PM   #8
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
... if you build it as a module, then you'll get a fat.o built for your kernel. So it'll work with your kernel. I don't see the difference between that fat.o and the one you have now except that the new one will work, and this one might not.
You can still insmod and rmmod the module - it will just be the RIGHT module.

.. I don't think I understand the problem. Perhaps rephrase?

--Rounan
 
  


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
insmod error 98steve600 Linux - General 1 03-28-2005 03:50 AM
Insmod error Horos23 Linux - Software 2 01-27-2005 10:28 AM
insmod error cstringer18 Linux - Newbie 1 03-01-2004 04:15 PM
Insmod Error and Other Difficulties General_Tso Slackware 21 03-30-2003 02:01 AM
insmod error Rex_chaos Linux - General 4 05-17-2002 10:43 PM

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

All times are GMT -5. The time now is 04:55 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