Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok. So I'm trying to custom compile a kernel to enable web sharing/routing on my Redhat 7.1 box. Now, I haven't done this in ages (1.5 years) so I might have something way wrong... but...
Everytime I compile the kernel and try to get LILO to use it, it tells me that the system is too big. (Or kernel is too big, I'm away from the system at the moment). Now, I didn't change much. Took out some PCMCIA stuff I didn't need, and added a few network options, took out some un-needed sound stuff... Anyway...
I run
make mrproper
make menuconfig
make deps
make bzImage
make modules
make modules_install
right? Nothing there has changed, right?
Why in the world is the kernel too big then? I even tried disabling almost everything in the kernel (took it ALL out) and it's still too big. I'm still a bit of a but I've never had this much trouble before...
Kernel is 2.4.19 (If I remember right, it's the newest one RedHat has out as of a two weeks ago).
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
Which LILO version are you using?
I'm running 22.2 with linux kernel 2.4.19, no problems.
I assume you mean "make dep" rather than "make deps", though I don't
think it matters for this, since you probably wouldn't be able to go on to
make bzImage. . .
Before you do a make modules, check to see what the final output is
from make bzImage. If it says something about a large kernel, there is
something wrong with your kernel/options. If it doesn't say anything, it
might be a problem with LILO. . .
I have been getting a warning about the kernel being too big when I do "make bzImage" in the 2.4.19 kernel. I have just been ignoring it..... Is there a problem?
I didn't get that message in the 2.4.18, but I also didn't get a couple of other messages that I can't remember at the moment (I don't think they were warnings.... just messages), so I just figured it was part of the new kernel.
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
I almost never get a warning about my kernel being too big anymore. If I
do, I recompile and move something from kernel space to module space.
After doing a little bit more research, I think it's really only a problem if
you don't have a newer boot loader. I don't think the Makefile checks
for your LILO version, so it just assumes there is some hard limit
(based on an older LILO's limit), and tells you that your kernel is too big
when it may not be.
However, if LILO tells you your kernel is too big, then it's too big. Make
more modules, fewer built-ins.
As for the version... It's pretty new. I updated it recently.
And yes, I meant make dep. It works, anyway. And the comment about the system size comes from Lilo, not from make.
I'm going to try a few things tonight, but Lilo so far has complained about it being too big with a completely stripped kernel. I took out everything that was optional, it it still came out as too big. I'll get the exact error tonight.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.