LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-10-2003, 03:21 PM   #1
bulldozer
LQ Newbie
 
Registered: Oct 2003
Location: Chicago
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
Recompiled 2.4.22 kernel 3MB!


I installed Slack 9.1 on my laptop, and I wanted to recompile to put APM into my kernel. So I went to the /usr/src/linux-2.4.22/ directory > make xconfig > make dep > make bzImage > " modules....... So I moved the new vmlinux image to / and edited lilo.conf. When I ran lilo: "[kernel too big]" Well that's nice I thought.
I then went back into xconfig, removed all of scsi, old CD drive support, amateur radio, bluetooth, and all the other stuff and drivers I knew I didn't need. I made a new 'bkImage' and it is still 3.2MB. Is there something I am missing here? I've removed alot of stuff...
I looked for posts similar to mine about LILO erroring out that a kernel is too big, but their kernels were half as big as mine and still having problems.
And why the heck can't a largish kernel be supported? Yeah it'll be slower and bloated, but if mine is "large" with that I've removed, there are some issues here... I used linux ~1-2 years ago with kernel 2.2.19, and from what I remember, my current config is pretty close to what that one was and 2.2.19's kernel was 1.2MB for me.
I'm just curious.
Also, how can I cut and paste from a terminal window?










***********************************************************************************
I really wish Enlightenment would release something new.
 
Old 10-10-2003, 03:35 PM   #2
GameboyHippo
Member
 
Registered: Mar 2003
Location: Bible Belt USA
Distribution: Debian
Posts: 91

Rep: Reputation: 15
First, check and see how much you have compiled as modules. If you want to save a lot of space, compile what you can as modules instead of compiling them directly into the kernel.

Second, if your kernel is too big, that's okay! Well, that is, if you are booting off the harddrive. If you are scared to replace your boot sector, just simply create a Mandrake 9.1 cd 1 disc. I personally use Debian, but I keep this 'bad boy' around to easily resize my partictions (including NTFS) and to reinstall the Windows boot sector if I have to (I also keep a Debian 'Woody' Disc 1 around in order to start up a shell so I can go in and fix things instead of reinstalling the Windows boot sector). Don't worry, as long as you compiled your kernel right, LILO and Grub should work just fine. I personally use LILO and enjoy it's flexibilty.

Anyway, if this helps, just post a reply so that people who google and find this post will know if it did or did not work.
 
Old 10-10-2003, 03:48 PM   #3
bulldozer
LQ Newbie
 
Registered: Oct 2003
Location: Chicago
Distribution: Slackware
Posts: 9

Original Poster
Rep: Reputation: 0
LILO is currently set to install to the MBR of my hard disk. I just keep getting the "kernel is too big" error everytime I run lilo to install the changes I made to lilo.conf (i.e. from image = /boot/vmlinuz to image = /vmlinux) I've tried renaming the kernel. What is up with lilo? Shall I just see if grub works?

Thanks
 
Old 10-10-2003, 03:53 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Quote:
Also, how can I cut and paste from a terminal window?
Just highlight the area you want to copy from, then make sure you have the destination selected, the nclick the middle mouse button. Ex: You have an open xterm, you highlight some text, select another window, and click the middle mouse button. The text will appear where the keyboard cursor is.
 
Old 10-11-2003, 04:43 PM   #5
GameboyHippo
Member
 
Registered: Mar 2003
Location: Bible Belt USA
Distribution: Debian
Posts: 91

Rep: Reputation: 15
Umm... I remember when I used a distribution other than Debian. I would get the same message. Only it was just a warning. If it is some sort of Fatal error, post your lilo.conf file. Be sure to remove the comments to save space.

(That is remove the comments when posting it here. It's okay to have them in your lilo.conf)

Last edited by GameboyHippo; 10-11-2003 at 04:44 PM.
 
Old 12-05-2003, 06:23 PM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Yeah that sounds like a warning not an error. I think lilo is telling you the kernel is too big to fit on a floppy, but it should still work. Does it output this:
Added Linux *
Added Other Stuff
If so then try booting the new kernel.

But really that is quite a large kernel. The stock Slack config file will only create a ~1M kernel. Here is the method I use when building kernels in Slack. This is based on making a 2.4.23 kernel.

WARNING Not checked for typos or errors.

mv linux-2.4.23.tar.bz2 /usr/src
cd /usr/src
tar xjf linux-2.4.23.tar.bz2
rm -f linux
ln -s linux-2.4.23 linux
cd linux
make mrproper
cp /boot/config-ide-2.4.22 .config #Your /boot/config may be different
make oldconfig
make dep
make bzImage
make modules
make modules_install
cat arch/i386/boot/bzImage >/boot/vmlinuz-2.4.23
cp .config /boot/config-ide-2.4.23
cp System.map /boot/System.map-2.4.23
cd /boot
mkinitrd initrd-2.4.23.img 2.4.23 #May not be necessary

Edit /etc/lilo.conf and add this:

image=/boot/vmlinuz-2.4.23
label="2.4.23"
initrd=/boot/initrd-2.4.23.img #May not be necessary
append=" your standard append"
root="your root partition"
read-only

Save lilo.conf
lilo
reboot

Last edited by /bin/bash; 12-05-2003 at 06:35 PM.
 
Old 12-08-2003, 11:45 AM   #7
GameboyHippo
Member
 
Registered: Mar 2003
Location: Bible Belt USA
Distribution: Debian
Posts: 91

Rep: Reputation: 15
And as always, if something works or you figured it out, make a post here so that people who have the same question can be benifited.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
recompiled kernel 2.6.3-13 what does this mean? rbonafied Mandriva 8 06-07-2004 01:00 PM
recompiled kernel, but don't want x to start lepricaun Linux - Software 4 05-29-2004 03:07 PM
recompiled kernel not in use taoweijia Linux - Newbie 1 01-09-2004 09:33 AM
recompiled kernel and no vmlinuz.old or kernel module for Nvidia Bruce Hill Slackware 13 12-11-2003 02:36 AM
Recompiled kernel-no video jerryvb VectorLinux 1 12-09-2003 10:14 AM


All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration