-   Linux - General (
-   -   can't get a small kernel (

muyo76 03-10-2003 12:27 PM

can't get a small kernel
What are the "heaviest" part of the kernel?. I can't get kernel 2.4.20 small enough for LILO to accept it.

I get kernels over 2Mb and I'm trying to include very few built-in features. :Pengy:

tangle 03-10-2003 01:35 PM

you need to use the bzImage. This compresses the image.

muyo76 03-11-2003 07:09 AM

Of course I used bzImage :)

Anyone know which are the "heaviest" options? (I already have the kernel howto, thanks)

acid_kewpie 03-11-2003 07:16 AM

there aren't any [quotemarks]heavy[/quotemarks] options.. you just need to be more careful about what you're compiling into it. i'd guess that you're telling things to be compiled into it that would be much better off as modules, such as your NIC driver if you have one. if you're trying to do a compile from absolute scratch then take the time to understand why you're compiling the options that are set by default. you should want to trim of a lot of fat...

muyo76 03-11-2003 11:15 AM

I know I'm getting something wrong ;)

I'll put it simple :)

Can somebody send me their .config for kernel 2.40.20 , and the size of the vmlinux?

Cerbere 03-11-2003 05:33 PM

You don't want the vmlinux. Look in /usr/src/linux/arch/i386/boot/ where you should find bzImage. That's the kernel.

--- Cerbere

Shak 03-11-2003 07:53 PM

Personally I've found that if you're looking for a lightweight kernel excluding features such as networking, USB and SCSI are good for keeping the kernel size down. However these are pretty essential features.


acid_kewpie 03-12-2003 04:51 AM


Originally posted by Cerbere
You don't want the vmlinux. Look in /usr/src/linux/arch/i386/boot/ where you should find bzImage. That's the kernel.

--- Cerbere

but he already said he's using it.....

muyo76 03-12-2003 05:50 AM

That's it acid_kewpie...

I'll try to put it simple again ;)
Can somebody using kernel 2.4.20 (by compiling it him(her)self) send me his/her .config file please??? (obtained from "make")

----additional information
Lilo won't accept mine 'cos it's too large (2Mb+ last attempt, 3.83Mb first attempt)

(lilo refrains it's too large - yep I tried keeping it minimal but I think there's something I think I need and I really don't - as there are plenty of combinations I'd spend hours finding this out)

Already left out SCSI and networking (tried both no-support/module) but not USB... (is that part large??)

--- I had no problem with prior kernels so plz don't post if you don't use this PLZZZZ!!! :D :)

acid_kewpie 03-12-2003 06:49 AM

just have a look through and remove the crap like i said, it should be too hard to hack a lot of junk out of there. if you're trying to learn how to build a kernel just copying someone elses isn't a great way to learn

fsbooks 03-12-2003 07:45 AM

Rather than get someone elses .config file, why don't you post it at some ftpsite somewhere (too long for here?) so we can see it.

I have a hard time believing you have a stripped down bzImage kernel with modules at > 2M. I use way too many options and mine is 729918 bytes.

What is du -sk of /lib/modules/2.4.20?

crashmeister 03-12-2003 07:53 AM

It would help to know where you want it sent to.I put all the drivers I need into the kernel and never ended up with something over 1.2 mb.

fsbooks 03-12-2003 08:30 AM

Well, I figured everybody has there favorite anonymous ftp site. But muyo76 is welcome to use my favorite site at where he can post it in /pub/incoming/LQ -- which should work unless he is coming from a domain common to warez users who tend to abuse public sites.

It might also be nice to see the output of
" ls -l /usr/src/linux/arch/i386/boot/" (or appropriate directory).
...just because.

muyo76 03-12-2003 12:55 PM

I'd post it if I could but I have no internet connection where I have that computer (my gf's house). Anyway I'll try to bring some info in a CDRW next time. (That's why I don't need networking support there right now)

You want to see an "ls" ? OK. BTW I used "make clean" and "make mrproper". Of course bzImage is there and vmlinuz is a link. Just because.

"if you're trying to learn how to build a kernel just copying someone elses isn't a great way to learn"
I'm not trying to learn how to build a kernel. I've done it several times. I just want that fucking onboard SiS video with 3D acceleration and that bitchy Cmedia 9738 audio working (module).

Oh well I'll try other things when I have the time. I'm just too busy to take care of this right now... she will have to live without sound and 3D acceleration for a while. Damn ECS mobos...

crashmeister 03-12-2003 01:18 PM

You ain't gonna get a onboard SIS doing 3D with the regular 2.4.20 kernel and any other xfree version than 4.3.0 unless it is patched.You need to patch the kernel before compiling it.You can patch xfree without compiling it - just needs another driver.

All times are GMT -5. The time now is 05:37 PM.