LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   can't get a small kernel (https://www.linuxquestions.org/questions/linux-general-1/cant-get-a-small-kernel-49119/)

muyo76 03-10-2003 11:27 AM

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 12:35 PM

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

muyo76 03-11-2003 06: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 06: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 10: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 04: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.

Enjoy,
--- Cerbere

Shak 03-11-2003 06: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.

Shak

acid_kewpie 03-12-2003 03:51 AM

Quote:

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.

Enjoy,
--- Cerbere

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

muyo76 03-12-2003 04: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 05: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 06: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 06: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 07:30 AM

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.

muyo76 03-12-2003 11:55 AM

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 12: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.

muyo76 03-13-2003 02:55 AM

Thanks for the point crashmeister. That's what I was trying, but I wanted to save the already working kernel and configure lilo so I can try booting the patched version, and I want to get a 2.4.20 just working in the first place...

The board is an ECS K7SOM+ (don't buy this thing for linux right now, plz) . More detail here: http://www.ecs.com.tw/products/pd_sp...product_id=241

This is a busy week so I'll try several things maybe this weekend or the next. If I get this working I'll let you know.

BTW CMedia support sucks too, but at least there's something out there.

Somebody out there has this mobo?

crashmeister 03-13-2003 03:46 AM

That looks pretty much like the same shit I got - other manufacturer though.Mine calls itself pcchips and got another onboard NIC.
Anyway if all you want to do is get 3d going you don't need to configure the kernel totally new.You can patch the source that came with your distro and compile it with the same settings (might have to add some things for 3D) and throw the kernel in there.Then configure your boot loader that you can choose which kernel you want to boot.
To get the graphics going you need to change the drivers in xfree and append some stuff to lilo or grub.Alternatively you can install xfree 4.3.0 if it is available for your distro.The sis driver there supports 3D.
For kernel patch,xfree drivers and info see http://www.winischhofer.net

muyo76 03-13-2003 06:06 AM

Thanks for the link.

Damn talk about ease of installation :(

There's still a lot to be done. Especially from the manufacturers :(

All that patching, compiling and driver tweaking isn't exactly what my grandma or gf is going to do.

crashmeister 03-13-2003 06:17 AM

Actually it isn't that bad.Just throw the module in the kernel source and compile it and put the drivers in the xfree tree.Don't worry about all that stuff on the website.All you really need to look at are the installation instructions.
Don't expect any wonders though.SIS is not officially supported by opengl.I tried doom,tuxracer and flightgeat and that seemed to work fine.Vegastrike crashes after about half an hour because of some memory mapping issue with opengl.You best bet for 3D with Linux seems to be nvidia.

muyo76 03-14-2003 03:13 AM

Now it seems to me, at least for this mobo, like the best thing for multimedia and gaming is just placing my crappy 3.2Gigs HD with winbloze on the slave and set up Lilo. This mATX bitch doesn't have an AGP slot...

Had no problem with my radeon7500-soundblasterPnP-MSImobo machine...

crashmeister 03-14-2003 04:13 AM

I don't really do games on my box - just set up 3D to see if it can work at all and by the time I started with Linux I was disgusted by the sis driver in general.Multimedia - like watching avi's and stuff?Don't have a problem with that on the hardware side.Where I do have a problem right now is that the 2.5.64 kernel refuses to compile with sis drivers - something broken there.

arnold 03-14-2003 09:46 AM

i know u hav said it, but just check that
file what_i_am_asking_lilo_to_load => x86 boot sector
I keep my kernel <600k by chosing "module" or "no" (if there is no module option & i am reasonably sure) during make Xconfig.
I compile in stuff like hard-disk/ide support.

also use "compact" in your lilo.conf


All times are GMT -5. The time now is 03:33 PM.