LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-10-2003, 11:27 AM   #1
muyo76
LQ Newbie
 
Registered: Mar 2003
Location: Madrid, Spain
Distribution: Debian/ex-Red Hat/Mandrake/Suse/slackware
Posts: 16

Rep: Reputation: 0
Question 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.
 
Old 03-10-2003, 12:35 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
you need to use the bzImage. This compresses the image.
 
Old 03-11-2003, 06:09 AM   #3
muyo76
LQ Newbie
 
Registered: Mar 2003
Location: Madrid, Spain
Distribution: Debian/ex-Red Hat/Mandrake/Suse/slackware
Posts: 16

Original Poster
Rep: Reputation: 0
Of course I used bzImage

Anyone know which are the "heaviest" options? (I already have the kernel howto, thanks)
 
Old 03-11-2003, 06:16 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...
 
Old 03-11-2003, 10:15 AM   #5
muyo76
LQ Newbie
 
Registered: Mar 2003
Location: Madrid, Spain
Distribution: Debian/ex-Red Hat/Mandrake/Suse/slackware
Posts: 16

Original Poster
Rep: Reputation: 0
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?
 
Old 03-11-2003, 04:33 PM   #6
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
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
 
Old 03-11-2003, 06:53 PM   #7
Shak
Member
 
Registered: May 2002
Location: Huddersfield
Distribution: Redhat (7.2, 7.3, 8.0), Debian, Slackware, Gentoo, FreeBSD
Posts: 169

Rep: Reputation: 30
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

Last edited by Shak; 03-11-2003 at 06:57 PM.
 
Old 03-12-2003, 03:51 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.....
 
Old 03-12-2003, 04:50 AM   #9
muyo76
LQ Newbie
 
Registered: Mar 2003
Location: Madrid, Spain
Distribution: Debian/ex-Red Hat/Mandrake/Suse/slackware
Posts: 16

Original Poster
Rep: Reputation: 0
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!!!
 
Old 03-12-2003, 05:49 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
 
Old 03-12-2003, 06:45 AM   #11
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 464

Rep: Reputation: 52
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?
 
Old 03-12-2003, 06:53 AM   #12
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
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.
 
Old 03-12-2003, 07:30 AM   #13
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 464

Rep: Reputation: 52
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.
 
Old 03-12-2003, 11:55 AM   #14
muyo76
LQ Newbie
 
Registered: Mar 2003
Location: Madrid, Spain
Distribution: Debian/ex-Red Hat/Mandrake/Suse/slackware
Posts: 16

Original Poster
Rep: Reputation: 0
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...
 
Old 03-12-2003, 12:18 PM   #15
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
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.
 
  


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
small help for kernel 2.6.7 salahuddin_66 Slackware 7 09-23-2004 01:25 AM
A small kernel error synapse Slackware 4 05-27-2004 03:10 PM
old pc, new kernel; small problem b0uncer Linux - General 3 04-24-2004 12:19 PM
small errors in kernel code (2.4.22) Robert0380 Linux - General 2 10-06-2003 09:15 AM
small problems with kernel wlfdgcrkz Linux - Software 4 06-06-2003 02:39 PM

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

All times are GMT -5. The time now is 12:34 PM.

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