I am no longer able to build a working initrd for kernels 2.4.18-19.8.0
or 2.4.20-2.2 using the below upgraded (rawhide) packages 

mkinitrd-3.4.28-1 
kernel-source-2.4.20-2.2 
kernel-pcmcia-cs-3.1.31-11 
kudzu-0.99.83-1 
hwdata-0.64-1 
modutils-devel-2.4.22-1 
modutils-2.4.22-1 


I'm getting kernel panics - the panic says to try specifying an init! 

Steps to reproduce: 

cd /boot 
mv initrd-2.4.18-19.8.0.img initrd-2.4.18-19.8.0.img.old 
mkinitrd initrd-2.4.18-19.8.0.img 2.4.18-19.8.0 
reboot 

I first noticed it with kernel-2.4.20-2.2.athlon.rpm 
I upgraded the above packages to current rawhide to satisfy dependencies
of kernel 2.4.20 package. At first I thought it was the new kernel,
further investigation seems to indicate a broken initrd is being
created. 

My /etc/modules.conf: 
alias parport_lowlevel parport_pc 
alias scsi_hostadapter aic7xxx 
alias eth0 3c59x 
alias usb-controller usb-uhci 
options ide-cd dma=1 
alias sound-slot-0 es1371 
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L
>/dev/null 2>&1 || : 
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S
>/dev/null 2>&1 || : 

the first .img below is from running mkinitrd with ONLY the aic7xxx line
in modules.conf 

the second is from running mkinitrd against the modules.conf above 

the third was generated from the original redhat 8.0 mkinitrd/modutils
when installing the errata kernel 

ls -la /boot/initrd-2.4.18-19.8.0.* 
-rw-r--r--    1 root     root       270301 Jan  4 23:39
/boot/initrd-2.4.18-19.8.0.img 
-rw-r--r--    1 root     root       270300 Jan  4 23:13
/boot/initrd-2.4.18-19.8.0.img.broken 
-rw-rw-r--    1 root     root       258524 Dec 23 16:01
/boot/initrd-2.4.18-19.8.0.img.old 


Notice they're all different sizes. I wonder why the one from a stripped
down modules.conf is a byte BIGGER?  

Here's my 'cat /etc/fstab' 
LABEL=/            /                  ext3    defaults        1 1 
LABEL=/boot        /boot              ext3    defaults        1 2 
none               /dev/pts           devpts  gid=5,mode=620  0 0 
none               /proc              proc    defaults        0 0 
none               /dev/shm           tmpfs   defaults        0 0 
/dev/sda6          swap               swap    defaults        0 0 
/dev/cdrom         /mnt/cdrom         iso9660 noauto,owner,kudzu,ro 0 0 
/dev/cdrom1        /mnt/cdrom1        iso9660 noauto,owner,kudzu,ro 0 0 
/dev/fd0           /mnt/floppy        auto    noauto,owner,kudzu 0 0 
/dev/sda1          /mnt/cdrive        vfat    defaults        0 0 
/dev/sda2          /mnt/edrive        vfat    defaults        0 0 
/dev/hdb1          /mnt/ddrive        vfat    defaults        0 0 

and the mkinitrd output (against modules.conf as above) 

mkinitrd -f -v initrd-2.4.18-19.8.0.img 2.4.18-19.8.0 
Using modules:  ./kernel/drivers/scsi/scsi_mod.o
./kernel/drivers/scsi/sd_mod.o ./kernel/drivers/scsi/aic7xxx/aic7xxx.o
./kernel/fs/jbd/jbd.o ./kernel/fs/ext3/ext3.o 
Using loopback device /dev/loop0 
/sbin/nash -> /tmp/initrd.yB1Zrx/bin/nash 
/sbin/insmod.static -> /tmp/initrd.yB1Zrx/bin/insmod 
`/lib/modules/2.4.18-19.8.0/./kernel/drivers/scsi/scsi_mod.o' ->
`/tmp/initrd.yB1Zrx/lib/scsi_mod.o' 
`/lib/modules/2.4.18-19.8.0/./kernel/drivers/scsi/sd_mod.o' ->
`/tmp/initrd.yB1Zrx/lib/sd_mod.o' 
`/lib/modules/2.4.18-19.8.0/./kernel/drivers/scsi/aic7xxx/aic7xxx.o' ->
`/tmp/initrd.yB1Zrx/lib/aic7xxx.o' 
`/lib/modules/2.4.18-19.8.0/./kernel/fs/jbd/jbd.o' ->
`/tmp/initrd.yB1Zrx/lib/jbd.o' 
`/lib/modules/2.4.18-19.8.0/./kernel/fs/ext3/ext3.o' ->
`/tmp/initrd.yB1Zrx/lib/ext3.o' 
Loading module scsi_mod.o 
Loading module sd_mod.o 
Loading module aic7xxx.o 
Loading module jbd.o 
Loading module ext3.o 

I did a "rpm -Uvh --oldpackage --nodeps mkinitrd-3.4.28-1.i386.rpm" 

then reran mkinitrd -f -v initrd-2.4.18-19.8.0.img 2.4.18-19.8.0 

Using modules:  ./kernel/drivers/scsi/scsi_mod.o
./kernel/drivers/scsi/sd_mod.o ./kernel/drivers/scsi/aic7xxx/aic7xxx.o
./kernel/fs/jbd/jbd.o ./kernel/fs/ext3/ext3.o 
Using loopback device /dev/loop0 
/sbin/nash -> /tmp/initrd.5XaC9O/bin/nash 
/sbin/insmod.static -> /tmp/initrd.5XaC9O/bin/insmod 
`/lib/modules/2.4.18-19.8.0/./kernel/drivers/scsi/scsi_mod.o' ->
`/tmp/initrd.5XaC9O/lib/scsi_mod.o' 
`/lib/modules/2.4.18-19.8.0/./kernel/drivers/scsi/sd_mod.o' ->
`/tmp/initrd.5XaC9O/lib/sd_mod.o' 
`/lib/modules/2.4.18-19.8.0/./kernel/drivers/scsi/aic7xxx/aic7xxx.o' ->
`/tmp/initrd.5XaC9O/lib/aic7xxx.o' 
`/lib/modules/2.4.18-19.8.0/./kernel/fs/jbd/jbd.o' ->
`/tmp/initrd.5XaC9O/lib/jbd.o' 
`/lib/modules/2.4.18-19.8.0/./kernel/fs/ext3/ext3.o' ->
`/tmp/initrd.5XaC9O/lib/ext3.o' 
Loading module scsi_mod 
Loading module sd_mod 
Loading module aic7xxx 
Loading module jbd 
Loading module ext3 

Looks pretty much the same. 

And I still get a kernel panic from this initrd created with the older
mkinitrd! I also still get a "big" initrd 

ls -la /boot/initrd-2.4.18-19.8.0.* 
-rw-r--r--    1 root     root       270708 Jan  5 00:13
/boot/initrd-2.4.18-19.8.0.img 
-rw-r--r--    1 root     root       270300 Jan  4 23:13
/boot/initrd-2.4.18-19.8.0.img.broken 
-rw-rw-r--    1 root     root       258524 Dec 23 16:01
/boot/initrd-2.4.18-19.8.0.img.old 

The initrd created my the downgraded mkinitrd gives me more info in the
panic: 

mount: error 16 mounting proc 
Creating block devices 
Creating root device 
mkrootdev: label / not found 
Mounting root filesystem 
kmod: failed to exec /sbin/modprobe -s -k ext3, errno = 2 
kmod: failed to exec /sbin/modprobe -s -k freeext3, errno = 2 
mount: error 9 mounting ext3 
... 
... 
kernel panic, try specifying and init 


I'm currently building a kernel with ext3 and aic7xxx complied in, but
I'd like to get this fixed though so I can use the stock errata kernels
on this system! :-) 

... just booted 2.4.20-2.2 :-)

stock redhat athlon config with:

SCSI support y
SCSI disk support y
Adaptec AIC7xxx y
Ext3 support y
DOS FAT fs y
MSDOS fs y
UMSDOS fs y
VFAT fs y

re-upgraded mkinitrd
cleared out /etc/modules file before "make install"ing the kernel, moved
the backup copy back, didn't have to change grub.conf at all.

title Red Hat Linux (2.4.20-2.2custom)
        root (hd0,2)
        kernel /vmlinuz-2.4.20-2.2custom ro root=LABEL=/ hdc=ide-scsi
        initrd /initrd-2.4.20-2.2custom.img
title Red Hat Linux (2.4.18-19.8.0)
        root (hd0,2)
        kernel /vmlinuz-2.4.18-19.8.0 ro root=LABEL=/ hdc=ide-scsi
        initrd /initrd-2.4.18-19.8.0.img

Note the above procedure did NOT work with aic7xxx static, ext3 as a
module, removing the aic7xxx line from modules.conf... that lead to a
panic on ext3 right after aic7xxx had loaded and spun up my SCSI disk 


Adam 




_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to