LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   vmlinuz too large on compile (https://www.linuxquestions.org/questions/slackware-14/vmlinuz-too-large-on-compile-365024/)

relpats_eht 09-19-2005 06:05 PM

vmlinuz too large on compile
 
during the compile of the 2.6 kernel, I am repeatedly getting the vmlinuz too large error when lilo runs at the end of make install

i read somewhere that this can be fixed by using make bzImage, but that didnt work either. I have tried the following sequences of make commands, all have failed:
make
make modules_install
make install
---------
make bzImage
make
make modules_install
make install
-------
make bzImage
make modules_install
make install

and of course i cleaned the source between those.

would anyone tell me how to fix this problem?

MS3FGX 09-19-2005 07:01 PM

When you do "make bzImage", you are using the bzImage and not the vmlinuz, right?

Matir 09-19-2005 08:04 PM

Also, are you compiling a LOT of things into the kernel? While I don't like modularized kernels, I build in just what I need.

relpats_eht 09-20-2005 04:29 PM

MS3FGX, I am not exactly sure what you mean (being the n00b I am), if you mean after I compile to move bzImage to boot, and tell lilo to use bzImage in the conf, then I would reply here something along the lines of "bzImage does not exist anywhere within the /usr/src/linux folder nor in the /boot folder, so I am not sure what to do", if not, then please elaborate

Matir, I would say I am compiling very few things into the kernel, as I always build them exactly for my system and my system alone.

as always, any help is appreciated.

Matir 09-20-2005 04:47 PM

bzImage will usually be found in /usr/src/linux/arch/<your arch here>/boot. So, for most systems, that'll be /usr/src/linux/arch/i386/boot.

relpats_eht 09-20-2005 06:46 PM

Yeah, I know thats where its usually found, which is why i checked their first, and upond not seeing it, proceeded to check every folder in the arch directory (as well as searching my entire hd with the search utility) and couldnt find the file. I am really at a loss here as to what i should do...

KnightHawk 09-20-2005 07:31 PM

If your making a 2.6 kernel.... then you only need to run the following commands....

make menuconfig (to configure kernel save options)
make (make dep, make, make bzImage are all handled by this now)
make modules_install (modules compiled via last step, only need to install them with this command)

I have never gotten the message you describe via LILO. The kernel compile will often tell you something like that at the end, but it can be ignored.

syg00 09-20-2005 08:01 PM

Only time I ever had a problem was with 2.6.12 and the ATI drivers.
Used to compile them in, but won't fit now - the recommendation has always been to use modules.

This was on a lean-and-mean Gentoo build, so take note of Matirs suggestion. For Slack, I also build my own config - I haven't used any of Pats "canned" 2.6 configs, so I don't know what gets pulled in by default.

relpats_eht 09-20-2005 09:18 PM

well, I tried making a kernel with alot more modules, and I got the same error, so now just as a test, I made everything that could be a module a module.

what i would really like to know, however, is how to get the bzImage, as that supposedly would work.

Matir 09-20-2005 09:19 PM

Yeah, I've always been one to go from a nearly-blank config, strip everything down to the base, then rebuild it up with just the stuff I need. I build most things in, except for ATI Radeon and the stupid intel-8x0 drivers due to ALSA issues. Oh, I also have modules for things I only use once in a while, like FUSE.

relpats_eht 09-20-2005 09:32 PM

well, now I am officially lost beyond all hope. Even when I made everything possible a module, vmlinuz is still too large (4.2 mb). If only bzImage existed...

Matir 09-20-2005 09:38 PM

The bzImage should be built from those steps. When the kernel is building, it should say something about building a compressed image. Look near the bottom of the "make" step. If needbe, post the messages here.

relpats_eht 09-21-2005 03:08 PM

no, I dont see anything resembling that, I would post the output of all the make commands here, but the message would be about 40000 characters over the limit.

KnightHawk 09-21-2005 03:26 PM

What the heck are you compiling into your kernel ??? 4 mg kernel? wow... mine never gets to 3meg.....

relpats_eht 09-21-2005 04:30 PM

I have no clue, must be that the few things i do select are quite large.


All times are GMT -5. The time now is 12:40 AM.