Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel image too big?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
1024b
n00b
n00b


Joined: 28 Nov 2003
Posts: 10

PostPosted: Fri Nov 28, 2003 7:46 pm    Post subject: Kernel image too big? Reply with quote

I tried to recompile a kernel (2.4.20), i did this:
Code:

make mrproper
make menuconfig
make dep
make bzImage
make modules
make modules_install


The problem is that when i run lilo to install the new image it says that the image is too big... how can i fix this?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55347
Location: 56N 3W

PostPosted: Fri Nov 28, 2003 9:03 pm    Post subject: Reply with quote

1024b,

You aren't going to like either of the answers.

1) Install grub
2) make more things as modules.

The problem happens because lilo needs some workspace in the bottom 640k of memory while it loads the kernel. You can build kernels so lilo runs of of memory to do the load.

When you build the kernel, only say 'Y' to things you need to boot with. Make everything else as a module.

Regards,

NeddySeagoon
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
1024b
n00b
n00b


Joined: 28 Nov 2003
Posts: 10

PostPosted: Fri Nov 28, 2003 9:22 pm    Post subject: Reply with quote

will modules slow down my pc?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55347
Location: 56N 3W

PostPosted: Fri Nov 28, 2003 9:42 pm    Post subject: Reply with quote

1024b,

Only if you use them a lot and allow them to be unloaded and relaoded, then its a tiny amount.

You can force modules to load and stay loaded by listing them in /etc/modules.autolaod. Then they are loaded at boot time. That way you have the effect of a monolithic kernel

Think about filesystem drivers an an example. You don't need vfat or iso9660 unless you want to read a DOS disk or a CDROM. When you issue the mount command, the module will be loaded.
When you umount, it may be unloaded after a period of not being used.
You can overdo this too if you use ext3 for your root filesystem, you must build this in becuse the kernel needs to mount / to be able to read any modules at all.

Regards,

NeddySeagoon
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
1024b
n00b
n00b


Joined: 28 Nov 2003
Posts: 10

PostPosted: Sat Nov 29, 2003 12:58 am    Post subject: Reply with quote

k solved (i installed grub :D) thanks for all the info 8)
Back to top
View user's profile Send private message
The Mountain Man
l33t
l33t


Joined: 03 Sep 2003
Posts: 643

PostPosted: Sat Nov 29, 2003 4:31 pm    Post subject: Reply with quote

I believe the "kernel too big" warning only applies if you're trying to make a bootable floppy. I always get that warning at compile time because I build a lot of stuff into my kernel but LILO has never had a problem booting my system.
_________________
I suck at signatures.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum