Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel firefox hard drive hardware hdmi internet keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router safe mode slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Kernel build too big

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
trev.h's Avatar
Senior Member with 173 posts.
 
Join Date: Mar 2002
Location: Surrey, England
07-Sep-2003, 07:42 AM #1
Kernel build too big
I am building a kernel for IDE RAID support on Mandrake 9.1. I have been removing things I don't need that are in the kernel (e.g. IrDA, Amateur Radio, ISDN ... ), the update date on the .config is current but the vmlinux
build file is not getting smaller (3.3Mb).

I have installed the source to /usr/src/linux-2.4.21-0.24mdk
I have created a symlink:
cd /usr/src
ln -s linux-2.4.21-0.24mdk linux

I then
cd linux
and do all the make commands from here:
make xconfig
make dep
make bzImage
make modules
make modules_install
cp vmlinux /boot/vmlinux

Then do LILO config

Am I missing a step? Perhaps a manual copy before the make(s)? Nothing in the Readme to suggest I have missed something.

Your assistance is much appreciated.
Trev.
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
07-Sep-2003, 04:31 PM #2
Seems like you are doing all the right things (with one possible oversight). Note that (on my slackware system) the newly-built kernel is usually in path-to-source/linux/arch/i386 and is named bzImage rather than vmlinuz. Is this the file you are comparing with /vmlinuz to determine if your changes have reduced its size? A newly-built kernel is usually installed with "make install", which appears to be missing from your steps -- but this may not apply to Mandrake.

Also, note that anything compiled as a module will not add to the size of the kernel, so removing unused features compiled as modules will not reduce your kernel size. Similarly, you should compile features in your new kernel as modules whenever possible to reduce size (note: do not compile support for your root filesystem type as a module).

You might also check your compile settings; using -g (for example) will greatly increase the size of your executable. Your 3.3 Mbytes is definitely a large kernel; for reference, my slackware 8.1 kernel (with a number of features enabled) is approximately 1.3 Mbytes.

Hope this helps.
__________________
The slowest component still sits at the keyboard.
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 01:00 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.