PDA

View Full Version : Linux Guru Needed !!!



Tuzinor
11-16-2002, 04:09 PM
RedHat 8.0 installed > need to compile kernel to load the IEEE1394 & SBP2 modules at boot so I can use my firewire hd & dvd rom. This works right out of the box woth Mandrake 9.0.
I used RedHat update >upgraded to 2.4.18-17.8.0 kernel > installed itself including boot configuration.

Three partitions /boot & / (Ext3) & swap.

I do the following : cd /usr/src/linux-2.4 >
make mrproper
copy the config 2.4.18-17.8.0 file from /boot to /usr/src/linux-2.4 > rename it to .config.
make xconfig > go thru each category >check the config file to make sure CONFIG_SCSI=m, CONFIG_IEEE1394=m are listed
make dep
make clean
Edit Makefile for new version
make bzImage
make modules
make modules_install
make install > I use Grub as the bootloader

I check the /boot folder > the original vmlinuz file is 3mb EXECUTABLE.
The new vmlinux is smaller > says unknown instead of Executable.
New Initrd image is created without a problem.

Of course when I reboot into the new kernel I either get all the way to kernel panic > no init found or "file system is ext2fs part type 0x83 > error 13 : invalid or unsupported executable format"

WHAT AM I MISSING ???

I really want to learn how to do this correctly > I've tried doing this several times > tried comparing the config file to Mandrake 9.0 > nothing works.

Help !!!!!!!

linuxrick
11-22-2002, 01:19 PM
Your problem starts with "make bzImage"....the new kernel's new name is "bzImage". It is built in "/usr/src/linux/arch/i386/boot"...the "i386" portion may be different depending on your hardware. There is an "install" script in that directory that can copy the new kernel to your "/boot" directory with the "vmlinuz" name and back up you old vmlinuz files. I just copy bzImage to /boot, then change the lilo.config (or grub config) file to include bzImage as the first boot option, and left the original bzlinux as a backup...just in case.

Tuzinor
11-22-2002, 04:10 PM
I thought when using Grub that the "make install" command moved the proper file to the /boot directory.I reinstalled with EXT2 for /boot & /. Rebuilt kernel > was able to boot into it > still didnt solve the firewire device problem.