Hi, I tried to compile a kernel (to test a patched driver). I installed the srpm, did an rpmbuild, ... all works. After installing and booting the new kernel the systems hangs with setuproot: /moving dev failed: No such efil or directory setuproot: error mounting /proc setuproot: error mounting /sys switchroot: mount failed ... I think the systems does not load the storag-drivers (at least I don`t find their messages). The initrd is found and loaded, should the kernel have the drivers here ? cu romal
On Wed, 2008-01-02 at 00:09 +0100, Robert M. Albrecht wrote:> Hi, > > I tried to compile a kernel (to test a patched driver). > > I installed the srpm, did an rpmbuild, ... all works. > > After installing and booting the new kernel the systems hangs with > > setuproot: /moving dev failed: No such efil or directory > setuproot: error mounting /proc > setuproot: error mounting /sys > switchroot: mount failed ... > > I think the systems does not load the storag-drivers (at least I don`t > find their messages). The initrd is found and loaded, should the kernel > have the drivers here ? > > cu romalI''d probably retry running mkinitrd by hand, I believe it will give you decent error messages if the drivers aren''t built/installed correctly (assuming /etc/modprobe.conf is correct....) man 8 mkinitrd -Eric> > _______________________________________________ > Fedora-kernel-list mailing list > Fedora-kernel-list@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-kernel-list
Hi, I did it manually, no message at all, but the file is generated. Should this be generated automatic ? [root@helios ~]# mkinitrd -f /boot/initrd-2.6.24-rc3-git7-ahci.img 2.6.24-rc3-git7-ahci [root@helios ~]# cat /etc/modprobe.conf alias snd-card-0 snd-hda-intel options snd-card-0 index=0 options snd-hda-intel index=0 alias eth0 sky2 [root@helios ~]# [root@helios ~]# ll /boot/initrd-2.6.24-* -rw------- 1 root root 2472631 4. Dez 08:32 /boot/initrd-2.6.24-0.66.rc3.git7.fc9.img -rw------- 1 root root 2319134 2. Jan 09:34 /boot/initrd-2.6.24-rc3-git7-ahci.img [root@helios ~]# cu romal Eric Paris schrieb:> On Wed, 2008-01-02 at 00:09 +0100, Robert M. Albrecht wrote: >> Hi, >> >> I tried to compile a kernel (to test a patched driver). >> >> I installed the srpm, did an rpmbuild, ... all works. >> >> After installing and booting the new kernel the systems hangs with >> >> setuproot: /moving dev failed: No such efil or directory >> setuproot: error mounting /proc >> setuproot: error mounting /sys >> switchroot: mount failed ... >> >> I think the systems does not load the storag-drivers (at least I don`t >> find their messages). The initrd is found and loaded, should the kernel >> have the drivers here ? >> >> cu romal > > I''d probably retry running mkinitrd by hand, I believe it will give you > decent error messages if the drivers aren''t built/installed correctly > (assuming /etc/modprobe.conf is correct....) > > man 8 mkinitrd > > -Eric > > >> _______________________________________________ >> Fedora-kernel-list mailing list >> Fedora-kernel-list@redhat.com >> https://www.redhat.com/mailman/listinfo/fedora-kernel-list
Hi, I updated to rawhides kernel 123 (yum update kernel) and got the same problem. Is this a general problem with buildung kernels ? cu romal Robert M. Albrecht schrieb:> Hi, > > I did it manually, no message at all, but the file is generated. Should > this be generated automatic ? > > [root@helios ~]# mkinitrd -f /boot/initrd-2.6.24-rc3-git7-ahci.img > 2.6.24-rc3-git7-ahci > > [root@helios ~]# cat /etc/modprobe.conf > alias snd-card-0 snd-hda-intel > options snd-card-0 index=0 > options snd-hda-intel index=0 > alias eth0 sky2 > [root@helios ~]# > > [root@helios ~]# ll /boot/initrd-2.6.24-* > -rw------- 1 root root 2472631 4. Dez 08:32 > /boot/initrd-2.6.24-0.66.rc3.git7.fc9.img > -rw------- 1 root root 2319134 2. Jan 09:34 > /boot/initrd-2.6.24-rc3-git7-ahci.img > [root@helios ~]# > > > cu romal > > > Eric Paris schrieb: >> On Wed, 2008-01-02 at 00:09 +0100, Robert M. Albrecht wrote: >>> Hi, >>> >>> I tried to compile a kernel (to test a patched driver). >>> >>> I installed the srpm, did an rpmbuild, ... all works. >>> >>> After installing and booting the new kernel the systems hangs with >>> >>> setuproot: /moving dev failed: No such efil or directory >>> setuproot: error mounting /proc >>> setuproot: error mounting /sys >>> switchroot: mount failed ... >>> >>> I think the systems does not load the storag-drivers (at least I don`t >>> find their messages). The initrd is found and loaded, should the kernel >>> have the drivers here ? >>> >>> cu romal >> >> I''d probably retry running mkinitrd by hand, I believe it will give you >> decent error messages if the drivers aren''t built/installed correctly >> (assuming /etc/modprobe.conf is correct....) >> >> man 8 mkinitrd >> >> -Eric >> >> >>> _______________________________________________ >>> Fedora-kernel-list mailing list >>> Fedora-kernel-list@redhat.com >>> https://www.redhat.com/mailman/listinfo/fedora-kernel-list > > _______________________________________________ > Fedora-kernel-list mailing list > Fedora-kernel-list@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-kernel-list
On Wed, 2008-01-02 at 09:35 +0100, Robert M. Albrecht wrote:> Hi, > > I did it manually, no message at all, but the file is generated. Should > this be generated automatic ? > > [root@helios ~]# mkinitrd -f /boot/initrd-2.6.24-rc3-git7-ahci.img > 2.6.24-rc3-git7-ahci > > [root@helios ~]# cat /etc/modprobe.conf > alias snd-card-0 snd-hda-intel > options snd-card-0 index=0 > options snd-hda-intel index=0 > alias eth0 sky2 > [root@helios ~]#odd, there should be some lines in there for your storage driver, I have: alias scsi_hostadapter libata alias scsi_hostadapter1 ata_piix there is probably some sort of kudzu magic that could be used to generate that, or you can figure out which drivers you need and add them in by hand. Then rebuilt the initrd and try again.... -Eric
Hi, indeed, this helps. I added the drivers plus ahci to modprobe.conf and generated a new initrd and the systems boots. Thanks. cu romal Eric Paris schrieb:> On Wed, 2008-01-02 at 09:35 +0100, Robert M. Albrecht wrote: >> Hi, >> >> I did it manually, no message at all, but the file is generated. Should >> this be generated automatic ? >> >> [root@helios ~]# mkinitrd -f /boot/initrd-2.6.24-rc3-git7-ahci.img >> 2.6.24-rc3-git7-ahci >> >> [root@helios ~]# cat /etc/modprobe.conf >> alias snd-card-0 snd-hda-intel >> options snd-card-0 index=0 >> options snd-hda-intel index=0 >> alias eth0 sky2 >> [root@helios ~]# > > odd, there should be some lines in there for your storage driver, I > have: > > alias scsi_hostadapter libata > alias scsi_hostadapter1 ata_piix > > there is probably some sort of kudzu magic that could be used to > generate that, or you can figure out which drivers you need and add them > in by hand. Then rebuilt the initrd and try again.... > > -Eric