![]() |
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: |
you need to use the bzImage. This compresses the image.
|
Of course I used bzImage :)
Anyone know which are the "heaviest" options? (I already have the kernel howto, thanks) |
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...
|
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? |
You don't want the vmlinux. Look in /usr/src/linux/arch/i386/boot/ where you should find bzImage. That's the kernel.
Enjoy, --- Cerbere |
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.
Shak |
Quote:
|
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 :) |
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
|
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? |
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.
|
Well, I figured everybody has there favorite anonymous ftp site. But muyo76 is welcome to use my favorite site at ku.wru.umt.edu 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. |
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... |
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. |