LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-07-2004, 06:41 PM   #1
mcalizo
Member
 
Registered: Aug 2003
Location: Manila, Philippines
Distribution: RH
Posts: 43

Rep: Reputation: 15
No module raid0 found during kernel compile


Hi all

I got a error during 2.6.8 kernel compile, my old and working kernel is 2.4.20. below is the error generated after make all command


Kernel: arch/i386/boot/bzImage is ready
sh /home/src/linux-2.6.9/arch/i386/boot/install.sh 2.6.9StableMikE arch/i386/boot/bzImage System.map ""
No module raid0 found for kernel 2.6.9StableMikE
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2

Bellow is the lsmod output of my working kernel (2.4.20-30.9smp)

[root@bir-proxy linux-2.6.9]# /sbin/lsmod
Module Size Used by Not tainted
ipt_TOS 1656 17 (autoclean)
ipt_multiport 1176 5 (autoclean)
ipt_limit 1688 37 (autoclean)
ipt_state 1080 11 (autoclean)
ipt_LOG 4280 37 (autoclean)
ipt_unclean 8024 0 (autoclean)
ipt_ULOG 4808 0 (autoclean)
ip_conntrack_ftp 5424 0 (unused)
ip_nat_irc 3408 0 (unused)
ip_conntrack_irc 4208 1 [ip_nat_irc]
autofs 13684 0 (autoclean) (unused)
e1000 60704 1
tg3 53064 1
iptable_nat 22936 2 (autoclean) [ip_nat_irc]
ip_conntrack 29928 4 (autoclean) [ipt_state ip_conntrack_ftp ip_nat_irc ip_conntrack_irc iptable_nat]
iptable_mangle 2776 1 (autoclean)
ipt_REJECT 3992 0 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 15864 13 [ipt_TOS ipt_multiport ipt_limit ipt_state ipt_LOG ipt_unclean ipt_ULOG iptable_nat iptable_mangle ipt_REJECT iptable_filter]
keybdev 2976 0 (unused)
mousedev 5688 0 (unused)
hid 22404 0 (unused)
input 6208 0 [keybdev mousedev hid]
usb-ohci 22248 0 (unused)
usbcore 82816 1 [hid usb-ohci]
ext3 73408 5
jbd 56368 5 [ext3]
raid0 3848 1
mptscsih 39408 7
mptbase 43040 3 [mptscsih]
sd_mod 13452 14
scsi_mod 110872 2 [mptscsih sd_mod]
[root@bir-proxy linux-2.6.9]#


Here is the .config of my new kernel:

CONFIG_BLK_DEV_3W_XXXX_RAID=y
#
# Multi-device support (RAID and LVM)
#
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=y
CONFIG_MD_RAID0=y
CONFIG_MD_RAID1=y
# CONFIG_MD_RAID10 is not set
CONFIG_MD_RAID5=y
# CONFIG_MD_RAID6 is not set
CONFIG_MD_MULTIPATH=y
CONFIG_BLK_DEV_DM=y
# CONFIG_DM_CRYPT is not set
# CONFIG_DM_SNAPSHOT is not set
# CONFIG_DM_MIRROR is not set
# CONFIG_DM_ZERO is not set
#
# Fusion MPT device support
#
CONFIG_FUSION=y
CONFIG_FUSION_MAX_SGE=40
CONFIG_FUSION_CTL=m
CONFIG_FUSION_LAN=y

Below is my new module.conf file:

alias eth0 tg3
alias eth1 tg3
alias eth2 e1000
alias eth3 e1000
alias usb-controller usb-ohci

Here is some of my modprobe.conf:
alias irda-dongle-5 litelink
alias irda-dongle-6 airport
alias md-personality-3 raid1
alias md-personality-4 raid5
alias md-personality-7 multipath

What would be the problem? Im stuck wit this problem. Even at Google i cant see any solutions?

Help me
 
Old 12-07-2004, 08:04 PM   #2
ythevenot
LQ Newbie
 
Registered: Oct 2003
Posts: 12

Rep: Reputation: 0
Hi Mcalizo,

I've the same problem than you.
i got the same error message when running mkinitrd (no module raid0 found for kernel 2.6.9).

i've posted a new thread in redhat category, the title is : mkinitrd failed with message "no module raid0 found for kernel 2.6.9"

I got some answer there asking me to install modutils and compile the kernel with all the raid options. I havn't done any of that yet (just read this answer few minutes ago).

i've also found a thread on another forum with same kind of problem:
http://kerneltrap.org/node/view/2870

I've tried to apply the patch provided but it gave me an error...

Hope someone can help us.

yannick
 
Old 12-08-2004, 12:09 AM   #3
mcalizo
Member
 
Registered: Aug 2003
Location: Manila, Philippines
Distribution: RH
Posts: 43

Original Poster
Rep: Reputation: 15
raid0 not found solution

ythevenot

I have just found out that the cause of the error, it is like this during build insmod is looking for raid0.o, but when i take a look at my /lib/modules/2.6.x/kernel/drivers/md/ i found out that the compiled module is raid0.ko. So i just

cp raid0.ko raid0.o

And then try to

make bzImage
make module
make module_install
make install

make sure also that your .config looks like this:

#
# Multi-device support (RAID and LVM)
#
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m
# CONFIG_MD_RAID10 is not set
CONFIG_MD_RAID5=m
# CONFIG_MD_RAID6 is not set
#CONFIG_MD_MULTIPATH is not set
# CONFIG_BLK_DEV_DM is not set
 
  


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
Compile in kernel or module? maginotjr Slackware 4 06-30-2005 11:54 AM
Message with kernel No module aic7xxx found for kernel 2.4.28 abefroman Red Hat 1 01-31-2005 06:41 AM
No module raid0 found for kernel 2.6.9 mcalizo Red Hat 3 12-23-2004 11:33 AM
mkinitrd failed with message "no module raid0 found for kernel 2.6.9" ythevenot Red Hat 3 12-07-2004 09:15 PM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM


All times are GMT -5. The time now is 09:40 AM.

Main Menu
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