LinuxQuestions.org
Review your favorite Linux distribution.
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 12-03-2007, 09:26 AM   #1
iggi
LQ Newbie
 
Registered: Nov 2007
Posts: 29

Rep: Reputation: 16
kernel compilation: new modules


Hi,

I was reading about compiling the kernel when I bumped onto NTFS support. Have some questions regarding this topic:

1) Say I don't want to download the 'ntfs.ko' file (which works perfectly by the way)... If I wanted to do it myself and ran 'make menuconfig', selected NTFS support as module would I also need to download the source code seperately or is it already available? Or to rephrase: are the 'NTFS' options in menuconfig always available regardless whether you have the necessary source files?

2) Whenever I try to do a make in the "/usr/src/kernels/2.6.18-53.el5-i686" directory... I get this kind of output:

Code:
[root@localhost 2.6.18-53.el5-i686]# make modules
scripts/kconfig/conf -s arch/i386/Kconfig
#
# configuration written to .config
#
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
make[1]: *** No rule to make target `arch/i386/kernel/msr.c', needed by `arch/i386/kernel/msr.o'.  Stop.
make: *** [arch/i386/kernel] Error 2

[root@localhost 2.6.18-53.el5-i686]# make dep
*** Warning: make dep is unnecessary now.
[root@localhost 2.6.18-53.el5-i686]# make bzImage

  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'.  Stop.
make: *** [init] Error 2
What does it mean? It stops me from compiling eg. the ntfs module or even tweak some kernel options...

Thanks again guys, really apreciate your help!

Dirk
 
Old 12-04-2007, 06:57 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

A LQ search would have given you several explanations.

evilDagmar has defined the options very well.

Quote:
1) Say I don't want to download the 'ntfs.ko' file (which works perfectly by the way)... If I wanted to do it myself and ran 'make menuconfig', selected NTFS support as module would I also need to download the source code seperately or is it already available? Or to rephrase: are the 'NTFS' options in menuconfig always available regardless whether you have the necessary source files?
When you do a 'menuconfig' you are setting up for a '.config' for the session that will create the object files. Yes the options are there for you to select within the menuconfig session. This just a session that you use to create the .config file that will be used to direct the compiler.
 
Old 12-04-2007, 07:08 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by iggi View Post

What does it mean? It stops me from compiling eg. the ntfs module or even tweak some kernel options...

Thanks again guys, really apreciate your help!

Dirk
I refer you to the 'Kernel-HOWTO'.

Also 'Compiling the Linux Kernel' would be another guide. These links and others can be found in the 'Slackware-Links' . If you look at the 'Linux Kernel section', you will find other useful links about the kernel.
 
Old 12-06-2007, 04:55 AM   #4
iggi
LQ Newbie
 
Registered: Nov 2007
Posts: 29

Original Poster
Rep: Reputation: 16
Ok, thanks... missed that post (interesting to read). I know menuconfig generates the .config file. I only wonder whether everything listed is by default provided in the kernel 'package' you download. Eg. can I add NTFS support (=listed) as a module without downloading it's source code seperately?

Dirk
 
Old 12-06-2007, 08:04 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by iggi View Post
Ok, thanks... missed that post (interesting to read). I know menuconfig generates the .config file. I only wonder whether everything listed is by default provided in the kernel 'package' you download. Eg. can I add NTFS support (=listed) as a module without downloading it's source code seperately?

Dirk
You can load the module if it was made available at the compile session. If you are referring to using the 'NTFS-3g' then you will need to get the 'NTFS-3G' Slackware package, along with the FUSE Library package. This will allow you to do r/w with a NTFS.

These links and others are available from 'Slackware-Links' .
 
  


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
Kernel Modules in /lib/modules kaplan71 Linux - General 1 04-02-2007 11:00 AM
Third-party modules compilation... rickthemick Debian 4 11-26-2004 02:31 AM
Kernel Modules and modules.conf init Linux - General 0 02-20-2004 06:51 PM
new kernel (2.4.22 up from 2.4.20-6) - missing modules - use old modules? Simon Bridge Linux - Software 1 02-04-2004 05:52 AM
Modules Compilation problem Vencalator Linux - Newbie 9 10-07-2003 11:51 AM

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

All times are GMT -5. The time now is 05:19 PM.

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