View previous topic :: View next topic |
Author |
Message |
1024b n00b

Joined: 28 Nov 2003 Posts: 10
|
Posted: Fri Nov 28, 2003 7:46 pm Post subject: Kernel image too big? |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55347 Location: 56N 3W
|
Posted: Fri Nov 28, 2003 9:03 pm Post subject: |
|
|
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 |
|
 |
1024b n00b

Joined: 28 Nov 2003 Posts: 10
|
Posted: Fri Nov 28, 2003 9:22 pm Post subject: |
|
|
will modules slow down my pc? |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55347 Location: 56N 3W
|
Posted: Fri Nov 28, 2003 9:42 pm Post subject: |
|
|
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 |
|
 |
1024b n00b

Joined: 28 Nov 2003 Posts: 10
|
Posted: Sat Nov 29, 2003 12:58 am Post subject: |
|
|
k solved (i installed grub ) thanks for all the info  |
|
Back to top |
|
 |
The Mountain Man l33t


Joined: 03 Sep 2003 Posts: 643
|
Posted: Sat Nov 29, 2003 4:31 pm Post subject: |
|
|
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 |
|
 |
|