LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-06-2005, 07:49 PM   #1
yib
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Rep: Reputation: 0
fatal: kernel too large


Hi everyone,

I just compiled a custom kernel, stripping off some stuff I don't need. However, after I add the custom kernel into lilo.conf and run lilo I get an error saying the kernel is too large. Since the custom kernel is smaller, I don't really understand... What's going on here?

Thanks.

Yib
 
Old 12-06-2005, 08:10 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Can you post your lilo.conf please, and tell us what kernel image file your referencing? I am guessing you grabbed the wrong file from the src after you built your kernel.
 
Old 12-07-2005, 12:00 AM   #3
yib
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

Thanks for the quick reply.

I should probably also mention that I'm running slackware 7.1 on a pentium 120.

here's what I did:

# make zImage
# cp /usr/src/linux-2.2.16/arch/i386/boot/zImage /boot/custom
# vi etc/lilo.conf

lilo.conf:

image =/boot/custom
root = /dev/hda2
label = custom
read-only

# lilo

I get the following:

# Fatal: Kernel /boot/custom is too big
 
Old 12-07-2005, 12:47 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
How big is the kernel? Also, Slackware 7.1 is old -- what version of LILO is it (I think some older versions may have had trouble with large kernels, but I'm not totally sure)? Also what version of the kernel are you compiling?
 
Old 12-07-2005, 03:36 PM   #5
yib
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

I'm using kernel 2.2.16. The kernel is a bit under 500kb, vs the old kernel which was 700+kb. Now lilo works fine with the default kernel, which is larger, so I assumed that the custom kernel should be fine as well.

I "tricked" lilo into booting the custom kernel by renaming the custom kernel and it booted up fine the first time. However, the second time I tried it, the computer froze, the third time it gave me a kernel panic. So I'm thinking maybe there's something wrong with the kernel image itself or with lilo. But I don't really know how to diagnose it from here.

yib
 
Old 12-07-2005, 04:40 PM   #6
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by yib
# make zImage
I dunno if it matters, or if that particular kernel supports it.. but I always do a make bzImage instead of a make zImage and use the bzImage with lilo.
 
Old 12-07-2005, 09:38 PM   #7
yib
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
using make bzImage worked. Freed up 1Mb ram, doesn't sound like much I know, but when you only got 16mb total, it's quite a bit.

Thanks for the help!

yib
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel too large? Oderus Slackware 10 10-02-2004 11:39 PM
Kernel panic: Fatal exception in interrupt dickmobbis Fedora 0 07-15-2004 12:16 AM
kernel 2.2 vs. 2.4 - large # of files rmang Linux - General 2 02-13-2004 08:20 AM
Kernel too large for lilo.. cicisbeo Linux - Software 4 07-25-2003 02:57 PM
Is having a large kernel bad? MRK Linux - Software 4 07-13-2003 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration