Kernel rebuild (new image not found)
I hope someone can give me some advice here..
I'm trying to rebuild the 2.4.26 kernel and following this ATI fix thread.
I have followed all the instructions and made appropriate steps where I found trouble (use menu.lst instead of grub.conf on Suse 9), but when I reboot and choose the new kernel, I get a error 15 (File not found). (on the 3d accelerated version)
Apart from being new to linux, I think I understand the basics that the new kernel just tells the system to load the renamed vmliuz file instead of the original, but I have no idea why is cant see it. I had a root around on the web first and saw a bit of info about moving the System.map file, but this doesn't seem to do the job either.
My menu.lst file looks like this (section of it)
kernel (hd0,4)/boot/vmlinuz root=/dev/hda5 vga=0x31a splash=silent desktop hdc=ide-scsi hdclun=0 showopts
title Linux 3D accelerated
kernel (hd0,4)/boot/vmlinuz-2.4.26 root=/dev/hda5 vga=0x31a splash=silent desktop hdc=ide-scsi hdclun=0 showopts
###Don't change this comment - YaST2 identifier: Original name: windows###
and by listing /boot, I see this..
# ls -la
drwxr-xr-x 3 root root 4096 Aug 23 22:47 .
drwxr-xr-x 22 root root 4096 Aug 24 2004 ..
-rw-r--r-- 1 root root 139408 Sep 24 2003 Kerntypes-2.4.21-99-smp4G
lrwxrwxrwx 1 root root 23 Aug 23 22:47 System.map -> /boot/System.map-2.4.26
-rw-r--r-- 1 root root 644707 Sep 24 2003 System.map-2.4.21-99-smp4G
-rw-r--r-- 1 root root 622977 Aug 23 22:46 System.map-2.4.26
-rw-r--r-- 1 root root 512 Aug 14 19:12 backup_mbr
lrwxrwxrwx 1 root root 1 Aug 14 19:05 boot -> .
-rw-r--r-- 1 root root 51366 Sep 24 2003 config-2.4.21-99-smp4G
-rw-r--r-- 1 root root 42199 Aug 23 15:44 config-9600xt
-rw-r--r-- 1 root root 0 Aug 23 15:44 config-9600xt.old
drwxr-xr-x 2 root root 4096 Aug 23 22:37 grub
lrwxrwxrwx 1 root root 22 Aug 14 19:12 initrd -> initrd-2.4.21-99-smp4G
-rw-r--r-- 1 root root 356572 Aug 14 19:12 initrd-2.4.21-99-smp4G
-rw-r--r-- 1 root root 80324 Sep 24 2003 memtest.bin
-rw-r--r-- 1 root root 64824 Sep 24 2003 message
-rw-r--r-- 1 root root 1515724 Sep 24 2003 vmlinux-2.4.21-99-smp4G.gz
-rw-r--r-- 1 root root 1210506 Aug 23 15:49 vmlinux-2.4.26
lrwxrwxrwx 1 root root 23 Aug 14 19:07 vmlinuz -> vmlinuz-2.4.21-99-smp4G
-rw-r--r-- 1 root root 1285388 Sep 24 2003 vmlinuz-2.4.21-99-smp4G
Is there something else I need to update with the new kernel file to get grub to see it?
You need to have an initrd (initial ram disk) file to match your new vmlinuz. Notice on your file list that you have a initrd-2.4.21-99-smp4G, but you don't have a initrd-2.4.26.
The command to make the file is going to be (I think):
mkinitrd initrd-2.4.26 2.4.26
The "2.4.26" needs to be be based on the name of the folder that has your linux source and the folder that has the matching modules. I use Fedora, and that is the way it would be named for me, so the line I gave you might be fine just the way it is, or you'll need to adjust it for SUse.
The command will make the initrd file in whatever folder you are in when you run it. You need to put the file into the /boot folder. And, you need to add a line to your menu.lst file that tells grub to use this initrd file with the Linux 3d accelerated version, so you will probably need to add this line there (like there is one for your regular boot version):
Post back if you have any questions, or if there are any error messages along the way. Sometimes you get an error message running mkinitrd, and you need to add a particular --switch kind of thing to resolve the error.
I think you have just helped me there but in another way..
I tried the "mkinitrd" line and got an error
No kernel image /boot/vmlinuz-2.4.26 found
I just checked it one more time and spotted that in /boot the file is called
Will make the initrd though at the same time as I fix it.
|All times are GMT -5. The time now is 10:06 PM.|