kernel too big

This is a discussion on kernel too big within the Linux Networking forums, part of the Linux Forums category; Hi all i have a problem with my new kernel 2.4.20. i've compiled kernel with bzImage and ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-02-2003
Rafał
 
Posts: n/a
Default kernel too big

Hi all
i have a problem with my new kernel 2.4.20.
i've compiled kernel with bzImage and it still too big. It's about 700kB.
what is solution for this? i've marked only necessary options in kernel
configuration menu (necessery for me)

thanks in advance
Rafal


Reply With Quote
  #2 (permalink)  
Old 07-02-2003
Artemio
 
Posts: n/a
Default Re: kernel too big

Hey - 700K is normal, unless you are making a kernel for a boot-floppy.

Usual redhat or mandrake kernels are about 1.2M large.

Anyway, if you want to reduce the size of the kernel, try compiling cdrom,
floppy, usb, iso9660fs and other not-frequently-used stuff as modules.


Again, what is this kernel for? If not for a floppy - don't worry, 700K is
okay.


> Hi all
> i have a problem with my new kernel 2.4.20.
> i've compiled kernel with bzImage and it still too big. It's about 700kB.
> what is solution for this? i've marked only necessary options in kernel
> configuration menu (necessery for me)
>
> thanks in advance
> Rafal


Reply With Quote
  #3 (permalink)  
Old 07-02-2003
Seth H Holmes
 
Posts: n/a
Default Re: kernel too big

In article <bdv7hl$e3e$1@atlantis.news.tpi.pl>, Rafał wrote:
> Hi all
> i have a problem with my new kernel 2.4.20.
> i've compiled kernel with bzImage and it still too big. It's about 700kB.
> what is solution for this? i've marked only necessary options in kernel
> configuration menu (necessery for me)


Make good use of modules. Mine is 572K.

What makes you think 700K is too big?

--
Seth H Holmes

Reply With Quote
  #4 (permalink)  
Old 07-02-2003
Clifford Kite
 
Posts: n/a
Default Re: kernel too big

Artemio <artemio@artemio.net> wrote:
> Hey - 700K is normal, unless you are making a kernel for a boot-floppy.


Why do you say that? There will be lots of room to spare on the usual
1.44 mB floppy.

--
Clifford Kite Email: "echo xvgr_yvahk-ccc@ri1.arg|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* I hear and I forget. I see and I remember. I do and I understand.
--Confucius, 551-479 BC */
Reply With Quote
  #5 (permalink)  
Old 07-02-2003
Artemio
 
Posts: n/a
Default Re: kernel too big

Clifford Kite wrote:

> Artemio <artemio@artemio.net> wrote:
>> Hey - 700K is normal, unless you are making a kernel for a boot-floppy.

>
> Why do you say that? There will be lots of room to spare on the usual
> 1.44 mB floppy.
>


Probably depends on what glibc you are using on this boot floppy.

And, yes just a floppy too boot can hold a rather big kernel, no glibc
needed, but a rescue disk must have a shell and some utils in there that
require glibc.

E.g.:
Even with busybox (~200K) and tinylogin (~70K) used, I couldn't fit 2.4.18
kernel (600K) with glibc 2.2.

Well, yes, I did't try hard either :-)
Reply With Quote
  #6 (permalink)  
Old 07-02-2003
Rafał
 
Posts: n/a
Default Re: kernel too big

> Nathan D Higgins wrote:

> Explain your definition of big ?
>
> --


i mean too big for lilo. when i configure lilo.conf and run lilo - lilo says
that kernel is too big
i'm going to use this kernel from local disk
my previous kernel (2.2.20) works good but it's about 600kB


Rafal


Reply With Quote
  #7 (permalink)  
Old 07-03-2003
Whoever
 
Posts: n/a
Default Re: kernel too big

On Wed, 2 Jul 2003, Clifford Kite wrote:

>
> You said boot-floppy, not boot/root-floppy. The root floppy can
> be separate, and, in fact, I make and use a two disk rescue pair.


Why bother? Most machines can boot from a CDROM and there is a fantastic
"superrescue" CDROM available.

When was the last time you had to work with a machine that could not boot
off a CDROM?

Reply With Quote
  #8 (permalink)  
Old 07-03-2003
SPAM_FREE
 
Posts: n/a
Default Re: kernel too big

Rafał wrote:
>>Nathan D Higgins wrote:

>
>
>>Explain your definition of big ?
>>
>>--

>
>
> i mean too big for lilo. when i configure lilo.conf and run lilo - lilo says
> that kernel is too big
> i'm going to use this kernel from local disk
> my previous kernel (2.2.20) works good but it's about 600kB
>
>
> Rafal
>
>


Did you use the bzImage for lilo ???

Reply With Quote
  #9 (permalink)  
Old 07-03-2003
jack
 
Posts: n/a
Default Re: kernel too big

SPAM_FREE wrote:
> Did you use the bzImage for lilo ???


I remember a discussion that adressed this issue a while back.

I tried a google search to freshen my memory, but no success.

To sum things up: If Your kernel is bigger than 640k, You _must_
use the "bzImage" target when "make"-ing the kernel image, because
the loading of the "big compressed" (that's what "b" and "z" in
"bzImage" are for) kernel image requires special treatment, namely
loading it to a RAM address starting at 0x100000, while a "zImage"
will reside inside the low 640k memory range. - Which will only work
with an image size < 640k, of course. (N. b.: A "zImage" will be
unzipped to address 0x100000 also, but the "decompress_kernel" and
"inflate" functions, as well as the compressed image, are in the
low 640k space. With "bzImage", only the functions are in low memory,
but the compressed big image is at 0x100000.)

One more thing to add is that, for this to happen, You need a BIOS
that supports this. So if You have a really old box or BIOS, You might
not be able to load any "bzImage" at all. You will then eventually have
to produce a smaller kernel. (Or, rewrite the loading mechanism for the
whole story here, which in the end is the same thing.)


Cheers, Jack.

--
----------------------------------------------------------------------
My personal reading of the string "MicroSoft" expands to "NanoWeak"...

Reply With Quote
  #10 (permalink)  
Old 07-03-2003
SPAM_FREE
 
Posts: n/a
Default Re: kernel too big

jack wrote:
> SPAM_FREE wrote:
>
>> Did you use the bzImage for lilo ???

>
>
> I remember a discussion that adressed this issue a while back.
>
> I tried a google search to freshen my memory, but no success.
>

[ SNIP ]
>>>>> One more thing to add is that, for this to happen, You need a BIOS
>>>>> that supports this. So if You have a really old box or BIOS, You might
>>>>> not be able to load any "bzImage" at all. You will then eventually have
>>>>> to produce a smaller kernel. (Or, rewrite the loading mechanism for the
>>>>> whole story here, which in the end is the same thing.)

>
>
> Cheers, Jack.
>


What you said here makes no sense ..Anything 386 and newer handels
extended memory any thing older than a 386 WON"T run linux PERIOD !

I still use an old 386 (my first IBM) as a firewall and can't remember
how long ago I started using bzImages.

I have stoped using lilo infavor of the old dos-win95 boot menu
and loadlin. Gives a nice boot menu for different ways to boot, and is
easy to manange. You don't have to remember to run lilo every time you
change the kernel ( which is a pain when trying several New additions
to a kernel) .... anyway I had several fights with lilo
The only down side is you need a small 2-3 Meg dos partition for booting

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0