Computing.Net > Forums > Linux > 2.4.19 kernel compile

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

2.4.19 kernel compile

Reply to Message Icon

Name: Thomas
Date: August 8, 2002 at 04:52:37 Pacific
Comment:

when i compiles the new kernel 2.4.19 with command "make zImage" i get a error,

system is too big
make[1]: ***[zImage] Error 1
make[1]: leaving directory `/usr/src/linux-2.4.19/arch/i386/boot´
make: *** [zImage] Error 2

I have also tried bzImage, but the system crash when i boot..

/ Thomas
newbie



Sponsored Link
Ads by Google

Response Number 1
Name: ZooBoy
Date: August 8, 2002 at 05:45:15 Pacific
Reply:

You cannot compile a kernel with an arbitrary name like 'zimage'. If you get an error when booting with a kernel that you compiled using bzImage then you have misconfigured your kernel. If you post your kernel config options, somebody may be able to help sort out your problems. Not sure of the file name but they should be in a file in /usr/src/linux


0

Response Number 2
Name: dfx
Date: August 8, 2002 at 05:55:19 Pacific
Reply:

The reason is that "zImage" is an older kernel image format, and only usable for kernels up to a certain size. The newer format is for bigger kernels, and called bzImage (for big zimage). So, make bzImage instead.


0

Response Number 3
Name: dfx
Date: August 8, 2002 at 05:57:14 Pacific
Reply:

Oh, and if you're using lilo, make sure you reinstall lilo after putting the new image in place. That's a common cause for crashes. To test the kernel without using a boot loader, get a blank floppy and do cp bzImage /dev/fd0, then boot from that disk.


0

Response Number 4
Name: Sorin PLOSCARU
Date: August 9, 2002 at 01:59:38 Pacific
Reply:

If you have installed a RedHat 7.x so then make this command:

# cp /usr/src/linux-2.4.18-3/configs/kernel-2.4.18-i686.config initrd-2.5.25.img

/initrd-2.5.29.img

usr/src/linux-2.4.19/.config

After that try to modify this file for your system and do:

# make bzImage

If you are using lilo make 'lilo' command after you modify /etc/lilo.conf.

If you are using grub bootloader isn't necesary to make 'grub-install' command.
Is necesary to put in /boot/grub/grub.conf
some new lines. You have here my 'grub.conf':

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,5)
# kernel /vmlinuz-version ro root=/dev/hda7
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,5)/grub/splash.xpm.gz
password --md5 $1$NPÙD...BLA BLA BLA
title Red Hat 6.2-init 3
root (hd0,10)
kernel /vmlinuz-2.2.14-5.0 ro root=/dev/hda8
title Red Hat Rinux 7.3 (2.5.25)-beta
root (hd0,5)
kernel /bzImage_2.5.25 ro root=/dev/hda7
initrd /initrd-2.5.25.img
title Red Hat Rinux 7.3 (2.5.29)-beta
root (hd0,5)
kernel /bzImage_2.5.29 ro root=/dev/hda7
initrd /initrd-2.5.29.img
title Red Hat Linux 7.3 (2.4.18-3)
root (hd0,5)
kernel /vmlinuz-2.4.18-3 ro root=/dev/hda7
initrd /initrd-2.4.18-3.img
title Microsoft Windows 98SE & 2000
rootnoverify (hd0,0)
chainloader +1
title Solaris 8.0 for Intel
rootnoverify (hd0,2)
chainloader +1

For example:
- '(hd0,0)' means /dev/hda1 ...
- 'initrd /initrd-2.5.29.img' is in your
/boot partition, not in / !!!
- see 'man mkinitrd' if you want to create a
image file *.img

Sorry for details.


0

Response Number 5
Name: Sorin PLOSCARU
Date: August 9, 2002 at 02:04:00 Pacific
Reply:

Sorry, first command is:
# cp /usr/src/linux-2.4.18-3/configs/kernel-2.4.18-i686.config
usr/src/linux-2.4.19/.config

Best Regardes


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: 2.4.19 kernel compile

rtl8139 for kernel 2.4.19 www.computing.net/answers/linux/rtl8139-for-kernel-2419/16804.html

URGENT: HELP! Compiling 2.4.18 Kernel www.computing.net/answers/linux/urgent-help-compiling-2418-kernel/11344.html

how to upgrade kernel 2.2xx to 2.4. www.computing.net/answers/linux/how-to-upgrade-kernel-22xx-to-24/14201.html