LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 11-15-2005, 06:32 AM   #1
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
configure and compile own kernel


I am running Suse 10.0
kernelversion is 2.6.13-15
I want to include the filesystemdriver xfs in the kernel (not as module).
Compilation did run without problems; kernelmodules too.
But as I made mkinitrd, the script included xfs.ko in initrd.

Any solutions for that problem?
 
Old 11-15-2005, 07:18 AM   #2
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
Yeah, you won't need to mkinitrd. Instead try doing this:
http://www.linuxquestions.org/questi...mpiling+kernel
Specifically go near to the end of that thread. broch's, which is post #4.
 
Old 11-15-2005, 07:47 AM   #3
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Original Poster
Rep: Reputation: 164Reputation: 164
I think you didnīt understand my question:

i want to include the filesystemdriver xfs in the kernel and donīt want to compile the filesystemdriver as module.

I checked the xfs option as included in the kernel (not module), but after compiling the kernel and the modules, the filesystemdriver was loaded as module.
 
Old 11-15-2005, 09:26 AM   #4
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
I think that you don't understand: it is up to you how you manage xfs: module or kernel. You need to recompile it.
If I remember it correctly SuSE's config requires to compile FS (any) as a module. In your case grab vanilla kernel then you will be able to compile fs in kernel.
 
Old 11-15-2005, 10:06 AM   #5
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Original Poster
Rep: Reputation: 164Reputation: 164
No!

I compiled the xfs filesystem directly into the kernel.
But mkinitrd added xfs.ko to initrd without need.
Cause: /etc/sysconfig/kernel must be changed; there is a list kernelmodules added to initrd.
 
Old 11-15-2005, 10:20 AM   #6
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
1) check out your .config (after you compiled kernel, not before)
2) have you at least changed kernel name? If you havend, then module is still there from previous kernel.

mkinitrd reads only what's in your kernel, can't make modules. If you really compiled fs into kernel, then mkinitrd will not be able to make modules. initrd is only a helper image that allows to load modules before kernel starts to look for necessary crap (ie disk controllers, fs and so on), so obviously it can't make modules if there is none.
 
Old 11-15-2005, 01:14 PM   #7
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Original Poster
Rep: Reputation: 164Reputation: 164
I have compiled the kernel: xfs is included in the kernel (not as module)
compiled the modules; installed the modules
edited /etc/sysconfig/kernel: deleted xfs.ko from the kernels module list.
mkinitrd.

xfs.ko is not loaded.
 
Old 11-15-2005, 03:38 PM   #8
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
this is pretty bizarre way of getting required result, but important thing is that it worked for you.
 
Old 11-16-2005, 06:17 AM   #9
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Original Poster
Rep: Reputation: 164Reputation: 164
Yes, the straight forward way should be:
configure kernel
compile kernel and modules, make mkinitrd
kernel should only load modules, which are necessary.
I included xfs in the kernel, but xfs.ko was loaded too. I proved that with lsmod.
 
  


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
How do you compile/configure/install sonofamre Linux - Newbie 1 08-22-2005 09:32 AM
can't compile/configure/make anything oracleofmist Linux - Software 7 10-28-2004 09:55 AM
General Configure/Compile Question dadepfan Linux - Software 2 08-02-2004 12:37 PM
glibc compile error (during configure) ixion Linux From Scratch 1 06-08-2003 11:09 AM
configure/compile help puma Linux - Software 2 05-19-2003 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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