Nicolo
2006-Sep-15 09:46 UTC
RE: [Xen-users] Compiling Kernel with raid driver for my Dellpoweredge 2850 RAID Controler
In fact, my original kernel is 2.4.27-2-386 version using megaraid2 mod in my debian sarge. It will be installed with cdrom so I don''t know if it''s run in mod or inside the kernel ... how can I see it ? My xen kernel is a 2.6.16 version ... and doesn''t have megaraid2 in .config file I can''t make init fileinitrd.img , because megaraid2 is a 2.4.27 mod and not a 2.6.16 ... Error : FATAL: Module megaraid2 not found. I have the megaraid2 module here : /lib/modules/2.4.27-2-386/kernel/drivers/scsi/megaraid2.o I don''t know if I have to do : depmod 2.4.27-2-386 mkinitrd -k -o /boot/initxen.img 2.4.27-2-386 or depmod 2.4.27-2-386 mkinitrd -k -o /boot/initxen.img 2.6.16-xen or depmod 2.6.16-xen mkinitrd -k -o /boot/initxen.img 2.4.27-2-386 or depmod 2.6.16-xen mkinitrd -k -o /boot/initxen.img 2.6.16-xen --builtin=xxx ??? what would you like to do ? Sorry I''m newbi in kernel building ;-) Thanks Nicolo -----Message d''origine----- De : Petersson, Mats [mailto:Mats.Petersson@amd.com] Envoye : jeudi 14 septembre 2006 18:46 A : Nicolo Objet : RE: [Xen-users] Compiling Kernel with raid driver for my Dellpoweredge 2850 RAID Controler> -----Original Message----- > From: Nicolo [mailto:nicolo@unimedecine.org] > Sent: 14 September 2006 17:40 > To: Petersson, Mats; xen-users@lists.xensource.com > Subject: RE: [Xen-users] Compiling Kernel with raid driver > for my Dellpoweredge 2850 RAID Controler > > When I try : > mkinitrd -k -o /boot/initxen.img 2.6.16-xen > > I have an error on my megaraid2 module : > > /usr/sbin/mkinitrd: The working directory > /tmp/mkinitrd.TtbbHR will be kept. > /usr/sbin/mkinitrd: add_modules_dep_2_5: modprobe failed > FATAL: Module megaraid2 not found. > WARNING: This failure MAY indicate that your kernel will not boot! > but it can also be triggered by needed modules being compiled into > the kernel. > > Some one know how to past it ?Do depmod first? Do you actually have a megaraid2 module? [Or is it builtin to the kernel - in which case use --builtin=xxx to tell mkinitrd that]. -- Mats> > Thanks > > Nicolas > > -----Message d''origine----- > De : xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com]De la part de Petersson, > Mats > Envoye : jeudi 14 septembre 2006 17:24 > A : Nicolo; xen-users@lists.xensource.com > Objet : RE: [Xen-users] Compiling Kernel with raid driver for my > Dellpoweredge 2850 RAID Controler > > > > > > -----Original Message----- > > From: xen-users-bounces@lists.xensource.com > > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Nicolo > > Sent: 14 September 2006 16:08 > > To: xen-users@lists.xensource.com > > Subject: [Xen-users] Compiling Kernel with raid driver for my > > Dell poweredge 2850 RAID Controler > > > > Hello > > > > > > > > I have a problem to boot my xen kernel, > > > > I have a debian sarge 3.1 stable, download > > xen-3.0.2-src.tgz, extract and > > compil it with the command "make world" > > But at boot I have an error : "cannot open root filesystem sda1" > > > > My raid controler is a perc4/di raid 5 controler > > lspci -v said : > > 0000:02:0e.0 RAID bus controller: Dell PowerEdge Expandable > > RAID controller > > 4 (rev 06) > > > > So I would like to know how to compil my kernel (2.6.16) with > > raid support ? > > Must I have to set y instead of m for these options or for > > some of these > > options : > > CONFIG_MEGARAID_NEWGEN=m > > CONFIG_MEGARAID_MM=m > > CONFIG_MEGARAID_MAILBOX=m > > CONFIG_MEGARAID_LEGACY=m > > CONFIG_MEGARAID_SAS=m > > You have a choice: You can either include a "initrd" that has the > relevant modules, or use "bultin" rather than modules (i.e. give "y" > instead of "m" for the config entries - bear in mind that you may need > other modules for MEGARAID driver to work - lsmod should give you > details of which modules are linked to which other modules. I > think for > example SATA requires SCSI drivers to be built too). > > -- > Mats > > > > Thanks for your reply > > > > Nicolo > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > > > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Petersson, Mats
2006-Sep-15 10:34 UTC
RE: [Xen-users] Compiling Kernel with raid driver for my Dellpoweredge 2850 RAID Controler
> -----Original Message----- > From: Nicolo [mailto:nicolo@unimedecine.org] > Sent: 15 September 2006 10:47 > To: Petersson, Mats; xen-users@lists.xensource.com > Subject: RE: [Xen-users] Compiling Kernel with raid driver > for my Dellpoweredge 2850 RAID Controler > > In fact, my original kernel is 2.4.27-2-386 version using > megaraid2 mod in > my debian sarge. > It will be installed with cdrom so I don''t know if it''s run > in mod or inside > the kernel ... how can I see it ? > > My xen kernel is a 2.6.16 version ... and doesn''t have > megaraid2 in .config > file > I can''t make init fileinitrd.img , because megaraid2 is a > 2.4.27 mod and not > a 2.6.16 ... > Error : FATAL: Module megaraid2 not found. > > I have the megaraid2 module here : > /lib/modules/2.4.27-2-386/kernel/drivers/scsi/megaraid2.o > > I don''t know if I have to do : > depmod 2.4.27-2-386 > mkinitrd -k -o /boot/initxen.img 2.4.27-2-386 > > or > depmod 2.4.27-2-386 > mkinitrd -k -o /boot/initxen.img 2.6.16-xen > > or > depmod 2.6.16-xen > mkinitrd -k -o /boot/initxen.img 2.4.27-2-386 > > or > depmod 2.6.16-xen > mkinitrd -k -o /boot/initxen.img 2.6.16-xenThis one.> > > --builtin=xxx ??? what would you like to do ?Tell mkinitrd that you have module xxx built into the kernel rather than a module. So for example: mkinitrd --builtin=megaraid2 -k -o /boot/initrd-2.6.16-xen 2.6.16-xen Of course, this will NOT work if you haven''t configured megaraid2 in the kernel as a "y"... Check your configuration before you try this. -- Mats> > Sorry I''m newbi in kernel building ;-) > > Thanks > Nicolo > -----Message d''origine----- > De : Petersson, Mats [mailto:Mats.Petersson@amd.com] > Envoye : jeudi 14 septembre 2006 18:46 > A : Nicolo > Objet : RE: [Xen-users] Compiling Kernel with raid driver for my > Dellpoweredge 2850 RAID Controler > > > -----Original Message----- > > From: Nicolo [mailto:nicolo@unimedecine.org] > > Sent: 14 September 2006 17:40 > > To: Petersson, Mats; xen-users@lists.xensource.com > > Subject: RE: [Xen-users] Compiling Kernel with raid driver > > for my Dellpoweredge 2850 RAID Controler > > > > When I try : > > mkinitrd -k -o /boot/initxen.img 2.6.16-xen > > > > I have an error on my megaraid2 module : > > > > /usr/sbin/mkinitrd: The working directory > > /tmp/mkinitrd.TtbbHR will be kept. > > /usr/sbin/mkinitrd: add_modules_dep_2_5: modprobe failed > > FATAL: Module megaraid2 not found. > > WARNING: This failure MAY indicate that your kernel will not boot! > > but it can also be triggered by needed modules being compiled into > > the kernel. > > > > Some one know how to past it ? > > Do depmod first? > > Do you actually have a megaraid2 module? [Or is it builtin to the > kernel - in which case use --builtin=xxx to tell mkinitrd that]. > > -- > Mats > > > > > Thanks > > > > Nicolas > > > > -----Message d''origine----- > > De : xen-users-bounces@lists.xensource.com > > [mailto:xen-users-bounces@lists.xensource.com]De la part de > Petersson, > > Mats > > Envoye : jeudi 14 septembre 2006 17:24 > > A : Nicolo; xen-users@lists.xensource.com > > Objet : RE: [Xen-users] Compiling Kernel with raid driver for my > > Dellpoweredge 2850 RAID Controler > > > > > > > > > > > -----Original Message----- > > > From: xen-users-bounces@lists.xensource.com > > > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Nicolo > > > Sent: 14 September 2006 16:08 > > > To: xen-users@lists.xensource.com > > > Subject: [Xen-users] Compiling Kernel with raid driver for my > > > Dell poweredge 2850 RAID Controler > > > > > > Hello > > > > > > > > > > > > I have a problem to boot my xen kernel, > > > > > > I have a debian sarge 3.1 stable, download > > > xen-3.0.2-src.tgz, extract and > > > compil it with the command "make world" > > > But at boot I have an error : "cannot open root filesystem sda1" > > > > > > My raid controler is a perc4/di raid 5 controler > > > lspci -v said : > > > 0000:02:0e.0 RAID bus controller: Dell PowerEdge Expandable > > > RAID controller > > > 4 (rev 06) > > > > > > So I would like to know how to compil my kernel (2.6.16) with > > > raid support ? > > > Must I have to set y instead of m for these options or for > > > some of these > > > options : > > > CONFIG_MEGARAID_NEWGEN=m > > > CONFIG_MEGARAID_MM=m > > > CONFIG_MEGARAID_MAILBOX=m > > > CONFIG_MEGARAID_LEGACY=m > > > CONFIG_MEGARAID_SAS=m > > > > You have a choice: You can either include a "initrd" that has the > > relevant modules, or use "bultin" rather than modules (i.e. give "y" > > instead of "m" for the config entries - bear in mind that > you may need > > other modules for MEGARAID driver to work - lsmod should give you > > details of which modules are linked to which other modules. I > > think for > > example SATA requires SCSI drivers to be built too). > > > > -- > > Mats > > > > > > Thanks for your reply > > > > > > Nicolo > > > > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nicolo
2006-Sep-15 11:45 UTC
RE: [Xen-users] Compiling Kernel with raid driver for myDellpoweredge 2850 RAID Controler
I''m sorry but my mkinitrd doesn''t take this option : mkinitrd --builtin=megaraid2 -k -o /boot/initrd-2.6.16-xen 2.6.16-xen /usr/sbin/mkinitrd: illegal option -- - $Id: mkinitrd,v 1.201 2004/05/16 22:00:48 herbert Exp $ megaraid2 is present in kernel 2.4 but not at all in kernel 2.6 when a try to compil my xen kernel, I do a "make" in my xen source download directory witch doesn''t have .config file I have a .config file in a sub directory named : linux-2.6.16-xen I try to activate CONFIG_MEGARAID_LEGACY to Y ( M before) I try to compil and when it''s done I see in my ./ linux-2.6.16-xen/.config that my CONFIG_MEGARAID_LEGACY come to M (original parameter) and my new compiled kernel do the same size :( Nicolo -----Message d''origine----- De : xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com]De la part de Petersson, Mats Envoye : vendredi 15 septembre 2006 12:34 A : Nicolo; xen-users@lists.xensource.com Objet : RE: [Xen-users] Compiling Kernel with raid driver for myDellpoweredge 2850 RAID Controler> > or > depmod 2.6.16-xen > mkinitrd -k -o /boot/initxen.img 2.6.16-xenThis one.> > > --builtin=xxx ??? what would you like to do ?Tell mkinitrd that you have module xxx built into the kernel rather than a module. So for example: mkinitrd --builtin=megaraid2 -k -o /boot/initrd-2.6.16-xen 2.6.16-xen Of course, this will NOT work if you haven''t configured megaraid2 in the kernel as a "y"... Check your configuration before you try this. -- Mats _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Petersson, Mats
2006-Sep-15 11:51 UTC
RE: [Xen-users] Compiling Kernel with raid driver for myDellpoweredge 2850 RAID Controler
> -----Original Message----- > From: Nicolo [mailto:nicolo@unimedecine.org] > Sent: 15 September 2006 12:46 > To: Petersson, Mats; xen-users@lists.xensource.com > Subject: RE: [Xen-users] Compiling Kernel with raid driver > for myDellpoweredge 2850 RAID Controler > > I''m sorry but my mkinitrd doesn''t take this option : > > mkinitrd --builtin=megaraid2 -k -o /boot/initrd-2.6.16-xen 2.6.16-xen > /usr/sbin/mkinitrd: illegal option -- - > $Id: mkinitrd,v 1.201 2004/05/16 22:00:48 herbert Exp $That''s a fairly old version of mkinitrd - I don''t know how to help here...> > megaraid2 is present in kernel 2.4 but not at all in kernel 2.6So, you shouldn''t need it then... ;-)> > when a try to compil my xen kernel, I do a "make" in my xen > source download > directory witch doesn''t have .config file > I have a .config file in a sub directory named : linux-2.6.16-xen > I try to activate CONFIG_MEGARAID_LEGACY to Y ( M before) > I try to compil and when it''s done I see in my ./ > linux-2.6.16-xen/.config > that my CONFIG_MEGARAID_LEGACY come to M (original parameter) > and my new > compiled kernel do the same size :(The same size kernel may be an effect of the megaraid_legacy only adding a few bytes to the actual size, and with the effects of alignments (padding out to a fixed size) the difference can''t be seen. It''s much better to see if you have the relevant .ko files.> > Nicolo > -----Message d''origine----- > De : xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com]De la part de > Petersson, Mats > Envoye : vendredi 15 septembre 2006 12:34 > A : Nicolo; xen-users@lists.xensource.com > Objet : RE: [Xen-users] Compiling Kernel with raid driver for > myDellpoweredge 2850 RAID Controler > > > > > or > > depmod 2.6.16-xen > > mkinitrd -k -o /boot/initxen.img 2.6.16-xen > > This one. > > > > > > --builtin=xxx ??? what would you like to do ? > > Tell mkinitrd that you have module xxx built into the kernel > rather than > a module. > > So for example: > mkinitrd --builtin=megaraid2 -k -o /boot/initrd-2.6.16-xen 2.6.16-xen > > Of course, this will NOT work if you haven''t configured > megaraid2 in the > kernel as a "y"... Check your configuration before you try this. > > -- > Mats > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users