Hello to all SuSE gurus, I downloaded the new gcc 3.3.1 (see "[SLE] New gcc 3.3.1 packages released"), added something to "extraversion" in "Makefile" and compiled my kernel. Everything compiled ok thanks to the new gcc 3.3.1 packages released by Philipp Thomas. Thats a big change - Thank you Philipp! The problem is that I am not sure what steps are required to added the new kernel to the boot menu and I don't want to get the "kernel panic" error.... :( I am hoping that someone will be kind enough to explain what I need to do in order to add the new kernel to grub ? Here's what I tried. - After running make modules_install I copied the new bzImage to /boot and renamed "bzImage.james". # ls -trl cp -p /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage.james Question: Do I need to find and copy a new "initrd "file to /boot also ? - I ran "mk_initrd" .The following is what I got: linux:/boot # mk_initrd using "/dev/hda13" as root device (mounted on "/" as "ext3") a creating initrd "/boot/initrd" for kernel "/boot/vmlinuz" (version 2.4.20-4GB-athlon) - insmod jbd (kernel/fs/jbd/jbd.o) - insmod ext3 (kernel/fs/ext3/ext3.o) - splash picture (1024x768) creating initrd "/boot/initrd.shipped" for kernel "/boot/vmlinuz.shipped" (version 2.4.20-4GB-athlon) - insmod jbd (kernel/fs/jbd/jbd.o) - insmod ext3 (kernel/fs/ext3/ext3.o) - splash picture (1024x768) Question: How come there was no mention of "bzImage.james". Is this normal? Can I just add the following entry to menu.lst or title linux.james kernel (hd0,12)/boot/bzImage.james root=/dev/hda13 vga=0x317 hdc=ide-scsi hdclun=0 splash=silent showopts initrd (hd0,12)/boot/initrd Last question: I noticed that the compiling process produced 2 new files both called "bzImage". one in /usr/src/linux/arch/i386/boot the other in /usr/src/linux-2.4.20.SuSE/arch/i386/boot Which one should be copied to /boot ? Thanks in advance for all help. James
It would be quite useful if you either hit <enter> every 78 (?) chars or set up your mail editor to cut lines.
Can I just add the following entry to menu.lst or title linux.james kernel (hd0,12)/boot/bzImage.james root=/dev/hda13 vga=0x317 hdc=ide-scsi hdclun=0 splash=silent showopts initrd (hd0,12)/boot/initrd
yes. basically take the lines from menu.lst corresponding to your old kernel, make a copy, change the title and the name of the image. Should work. Have a look also at make install.
Last question: I noticed that the compiling process produced 2 new files both called "bzImage". one in /usr/src/linux/arch/i386/boot the other in /usr/src/linux-2.4.20.SuSE/arch/i386/boot
they are both the same, wind18:/home/sergio # ls -l /usr/src/linux lrwxrwxrwx 1 root root 17 2003-09-06 21:10 /usr/src/linux -> linux-2.4.20.SuSE ;-) Sergio -- He who farts in church must sit in his own pew.
The 03.09.16 at 10:00, James PEARSON wrote:
Question: Do I need to find and copy a new "initrd "file to /boot also ?
What I do is edit /sbin/mk_initrd # the kernel images to use; must be in $boot_dir kernels_default="vmlinuz vmlinuz.shipped vmlinuz.old bzImage.james" # initial ram disks (corresponding to $kernels); dto. in $boot_dir initrds_default="initrd initrd.shipped initrd.old initrd.james" Just put your kernel name there. -- Cheers, Carlos Robinson
I have a couple of scripts that copies bzImage to /boot as e.g 2.4.20-CH and System.map as System.map2.4.20-CH, rm System.map and then ln -s System.Map2.4.20-CH System.map. For mkinitrd, I use the script I call INITRD .... barrabas:/usr1/ftp/sep03 # less /usr/local/mybin/INITRD cd /boot; mkinitrd -k $1 -i initrd$2 -d /dev/hda2 -s 1024x768 it's executed as "INITRD 2.4.20-CH 2.4.20-CH" Edit /boot/grub/menu.lst and insert lines for the new kernel, then grub-install /dev/hda Having the scripts makes it a 5 second job. Regards Sid. Carlos E. R. wrote:
The 03.09.16 at 10:00, James PEARSON wrote:
Question: Do I need to find and copy a new "initrd "file to /boot also ?
What I do is edit /sbin/mk_initrd
# the kernel images to use; must be in $boot_dir kernels_default="vmlinuz vmlinuz.shipped vmlinuz.old bzImage.james" # initial ram disks (corresponding to $kernels); dto. in $boot_dir initrds_default="initrd initrd.shipped initrd.old initrd.james"
Just put your kernel name there.
The 03.09.17 at 06:08, Sid Boyce wrote:
I have a couple of scripts that copies bzImage to /boot as e.g 2.4.20-CH and System.map as System.map2.4.20-CH, rm System.map and then ln -s System.Map2.4.20-CH System.map.
You don't need to; that is done by "make install", that simply calls "/usr/src/linux-2.4.20.SuSE/arch/i386/boot/install.sh". I just removed the last line, that calls lilo (because I have grub), and added a call to mk_initrd. SuSE could have edited this themselves, I think. -- Cheers, Carlos Robinson
participants (4)
-
Carlos E. R.
-
James PEARSON
-
Sergio Dominguez
-
Sid Boyce