LinuxQuestions.org
Review your favorite Linux distribution.
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 11-22-2003, 06:26 PM   #1
icyfire
Member
 
Registered: Feb 2002
Location: Bay Area, California
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 15
2.6.0-test9 kernel is 4mb, need to make smaller


Hey everyone,

I'm having some issues with my new 2.6.0-test9 kernel. I have compiled everything i need as modules, which isn't much, and after compiling my image is 4MB! Hardly anything is compiled in. I've never had a kernel so big before. It could just be me because though I've been using Linux for a while, every time I try to compile my own kernel it's always a mess and never works. If you'd like to see my .config I'll post it if requested.

Thanks a bunch,

~icy
 
Old 11-22-2003, 06:37 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
From what I've heard, the new 2.6.x kernels are significantly larger this time around, more code, etc. If you've compiled everything you need and stripped out everything you don't need, well, then, I suppose your stuck with a 4mb kernel for now...
 
Old 11-22-2003, 07:06 PM   #3
icyfire
Member
 
Registered: Feb 2002
Location: Bay Area, California
Distribution: Ubuntu
Posts: 110

Original Poster
Rep: Reputation: 15
Thanks for the quick reply trickykid, but what am I supposed to do with a 4MB kernel? I can't boot it with lilo (unless there is an option I overlooked). Is there another way to boot it?

Thanks.

~icy
 
Old 11-22-2003, 09:53 PM   #4
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Im running 2.6-test9 and my kernel is 1.5MB, with ACPI enabled (this adds about .3MB)

What you should do is:

1. Remove everything you dont need/want. This is a long process, but it will probably be the best. Only include support for YOUR sound card, YOUR nic, YOUR ports, etc.

2. Build as much as you can as modules. Very little actually has to be built into the kernel. You need all the CPU stuff built in, and the filesystem built in, but almsot everything else can be built as a module.

3. Remove ACPI/APM. These take up quite a lot of space.

4. Turn off ALL debuging. The debuging options will increase kernel size and make it slower.
 
Old 11-22-2003, 10:05 PM   #5
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Yeah.. my test-9 kernel is 1.7 with a lot of things built into it
 
Old 11-30-2003, 05:38 AM   #6
icyfire
Member
 
Registered: Feb 2002
Location: Bay Area, California
Distribution: Ubuntu
Posts: 110

Original Poster
Rep: Reputation: 15
My problem was the dumbest thing ever: I copied the wrong file into /boot. I feel like such a noob.

I'm having a new problem though.

I compiled module support into the kernel, but when it boots it says QM_MODULES: function not implemented or something like that. The kernel loads my USB modules but modprobe/insmod/lsmod doesn't work. I think it might be my modtools package because it does the same thing when I compiled a 2.4.22 kernel, but I don't know where to get a new version for either 2.4.22 or 2.6.0. Any help would be appreciated.

Thanks,

~icy

Last edited by icyfire; 11-30-2003 at 05:44 AM.
 
Old 11-30-2003, 07:48 AM   #7
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
http://www.kernel.org/pub/linux/util...modutils/v2.4/

I use version 2.4.25 with a 2.6 test9 kernel. It they work
The version isn't the same as the kernel version they are intended for. I think they would all work for 2.6 too.
 
Old 11-30-2003, 03:14 PM   #8
enyawix
Member
 
Registered: Sep 2003
Location: ky
Distribution: gentoo
Posts: 409

Rep: Reputation: 32
2.6.0-test9

I have test9 on my box at 1.3m that is the biggest kernel i have ever herd of.
will you post a lspci you must have a box full of hard ware.
You must have something in every slot.
 
  


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
How can I make PDF documents smaller (In file size)? vdemuth Linux - Software 7 11-05-2011 09:39 AM
make mpg file size smaller secretlydead Linux - Software 2 02-14-2005 08:42 AM
how could i make my font size smaller in terminal Paxmaster Linux - Software 3 02-05-2005 08:43 PM
How do you make C++ programs smaller? Qwirt Programming 5 11-04-2004 11:32 PM
Kernel 2.6.0-test9 StoopInc Linux - General 7 11-03-2003 03:31 PM

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

All times are GMT -5. The time now is 06:21 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