According to Jonathan Sprague: While burning my CPU.
> 
> I am trying to recompile kernel for RedHat 5.2 and all I get is vmlinux
> not vmlinuz (or zImage). I get different errors about something missing
> but can't figure it out. Have I not installed all the right packages? I
> am installing packages via nfs from another machine because I don't have
> a cdrom on this machine. Here's the script I wrote for compiling and it
> has worked on other machines;

Jonathan, i find it hard to belive that you did not send us the (compile)
or other errors.
I say this because you have been on this list for a considerable amount of
time and must have read messages saying "send us ALL the details of what is
happening, ie, ERROR messages.

Now if you are getting a file called /usr/src/linux/vmlinux then i suspect
you should have the image in ./arch/i386/boot/ if not then 'make' is failing
when it compresses the image, the only program i think is used by make is
ld, during that part of the process, now i cant imagen you not having 'ld'
you would have had problems with everything.

I cant realy see any problem(s) in the script below, execpt that i would not
use "boot" i would use zImage, however that i think is not your problem.
Another thing is the way you "cp" the image to /boot/vmlinuz, remember that
Redhat uses symlinks in its /boot directory, what your command will do is
destroy the old vmlinuz by copying the new one over it, just imagen what
will happen if your new kernel wont boot, (when its succesfully made of
course), you would then be left up the creek without a paddle.

I suggest you do the following before "cp"ing a new image to /boot.

edit /etc/lilo.conf place a new entry for the new kernel, an example using
/dev/hda1 below.

boot = /dev/hda
prompt
timeout = 300
vga = normal

# Default image, when nothing is entered at boottime it boots automaticly.

image = /boot/vmlinuz
  root = /dev/hda1
  label = linux
  read-only

# This one is the new kernel. type 2.0.36 at the LILO prompt.

image = /boot/vmlinuz-2.0.36
  root = /dev/hda1
  label = 2.0.36
  read-only

I have changed the "cp" command below in the script to reflect the change.
Now rerun lilo, that will avoid any problems which "might" occur with the
new kernel.

If you would like to send us the errors which you are getting maybe i or
someone else can help you more.
 
> 
> #!/bin/sh
> cd /usr/src/linux
> make config
> make dep
> make clean
> make boot
> make modules
> rm -rf /lib/modules/2.0.36-old
> mv /lib/modules/2.0.36 /lib/modules/2.0.36-old
> make modules_install
> # cp /usr/src/linux/arch/i386/boot/zImage /boot/vmlinuz
 cp /usr/src/linux/arch/i386/boot/zImage /boot/vmlinuz-2.0.36
> /sbin/lilo
> 


-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to