LinuxQuestions.org
Visit Jeremy's Blog.
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, 10: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, 07:57 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,470
Blog Entries: 4

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525
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, 08:08 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,470
Blog Entries: 4

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525
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, 05: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, 09:04 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,470
Blog Entries: 4

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:00 PM
Third-party modules compilation... rickthemick Debian 4 11-26-2004 03:31 AM
Kernel Modules and modules.conf init Linux - General 0 02-20-2004 07: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 06:52 AM
Modules Compilation problem Vencalator Linux - Newbie 9 10-07-2003 12:51 PM


All times are GMT -5. The time now is 10:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration