There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry repair router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Kernel build too big

Reply  
Thread Tools
trev.h's Avatar
Member with 182 posts.
 
Join Date: Mar 2002
Location: Surrey, England
07-Sep-2003, 08: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, 05: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.
Reply

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.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:59 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.