LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-04-2003, 07:08 PM   #16
Neorio
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 110

Rep: Reputation: 15

I can't help you here. I don't use LILO. I use grub.
I think your kernel image has loads of stuff built-into it (hence, it's too big to fit on a boot disk). I'm not sure why LILO doesn't want to handle it... but maybe somebody does. I think that's your first line of inquiry.

Failing that, you could try re-compiling the kernel again and this time stick most of the things you want into modules. Select M instead of Y in xconfig for a lot of the stuff you've stuck by default into the kernel. That should shrink the kernel a bit.

Like I said, it took me several attempts at kernel re-compiling to finally get a working kernel!
 
Old 11-04-2003, 07:16 PM   #17
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
the only things I enabled in Xconfig were acpi support and I2C sensors. thats it. I dont know why it would be too big
 
Old 11-04-2003, 07:24 PM   #18
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
can anyone help me with this? Im lost
 
Old 11-04-2003, 07:30 PM   #19
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You may have only enabled a couple of things, but if you downloaded your source from kernel.org, there is a ton of stuff that is on by default. You really need to go through all the menus and turn off the stuff you don't need. If that doesn't do the trick, compile stuff in modules (but NOT the file system).

The other thing, did you run make bzImage to compile the kernel or something else like make zImage? make bzImage compresses the kernel and can help avoid the too big error
 
Old 11-04-2003, 07:32 PM   #20
Neorio
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 110

Rep: Reputation: 15
What do you mean by "only acpi support & I2C" enabled?
Enabled as what? Modules? Built into the kernel?

I hope you're not telling me that throught Xconfig everything is marked as N or blank, with the exception of acpi & I2C,... cause there's no way the kernel would boot with only those!
 
Old 11-04-2003, 07:35 PM   #21
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
No, i selected Y to ACPI and I2C. How do I know what I need and what I dont need? I did do "make bzImage" to compress it, but im still getting the error message

EDIT: I need the ACPI and I2c loaded in the kernel. Im going to try them as modules this time.

Last edited by Kramer; 11-04-2003 at 07:37 PM.
 
Old 11-04-2003, 07:52 PM   #22
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Well, I just did it again, and this is the output of what I did.

Boot sector 512 bytes.
Setup is 2532 bytes.
System is 1225 kB
warning: kernel is too big for standalone boot from floppy

Then, I try to run LILO:

Fatal: open /boot/vmlinux: No such file or directory

So I ln -s to vmlinux, which is in my linux-2.4.22 directory. That went to boot. Tried to run LILO again:

Fatal: Kernel /boot/vmlinux is too big

Any other Ideas?
 
Old 11-04-2003, 07:55 PM   #23
Neorio
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 110

Rep: Reputation: 15
I suggest you get yourself to the Linux Documentation website and get the Kernal-HOWTO file. That has a lot of info about configuring LILO, as it seems that LILO is harder to config than GRUB is.

As for the kernel... it depends what you want as built in, and what you want as modules. I usually err on the side of leaving most stuff as modules though.
 
Old 11-04-2003, 08:22 PM   #24
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Ok, I loaded a bunch of stuff as modules, enabled ONLY the things I needed, and put "n" for the rest, and its still saying its too big. How can this be? I dont get it, but Im beyond frustrated at this point. Can anyone help me?
 
Old 11-04-2003, 08:38 PM   #25
Neorio
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 110

Rep: Reputation: 15
I think you need to read the kernal docs for LILO.

It is actually hard with the 2.4.22 kernal to get it under size to be floppy bootable. You'd basically have to rip out support for a ton of stuff, like sound, USB, RAID, etc. Only a bare system would probably manage to be bootable from floppy these days.

Once again, I advise you to look towards configuring LILO, from the kernel HOWTO. I refuse to believe that LILO cannot boot large kernels. There must be some way to do it properly.

Come back when you're booting the new kernel and getting "Kernel Panics"... and prepare to be frustrated further!
(Like I told you, I spend TWO WHOLE DAYS trying to learn how to make a bootabel kernel. Frustration is unavoidable in this line of work!)
 
Old 11-04-2003, 08:40 PM   #26
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
I dont understand why it has to be floppy bootable?
 
Old 11-04-2003, 08:45 PM   #27
Neorio
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 110

Rep: Reputation: 15
I'm not even sure if it has to be with LILO.

I made my kernel too big for floppy, but it had no issues booting under GRUB.
 
Old 11-04-2003, 08:46 PM   #28
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
I read the HOWTO on LILO and it said make a bzImage, which Im already doing. That doesnt help me any.
 
Old 11-04-2003, 09:35 PM   #29
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Ok, so here we go. I was missing a step. I forgot to cp mynew bzImage to /boot/vmlinuz. Needless to say, that is now done. The problem now is when I run the check on lilo, I get back the error

Fatal: Kernel doesn't support initial RAM disks

Im finally getting somewhere, but can someone tell me what this means?
 
Old 11-04-2003, 10:25 PM   #30
Neorio
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 110

Rep: Reputation: 15
Ok, now you're in the "Kernel panic" stages.... we're nearly there.

Basically when you get one of these errors, it means that you've compiled a kernel, but left something important out of the configuration. You know what this means? It means you have to go back, fix the config and recompile the whole darned thing all over again! mua haha haha!

Looking at the kernel panic, it seems that somewhere in your config, you left out support for ramdisks or something. The kernel can't start up without some ramdisk support for drivers and such, and somewhere in the kernel configs, you left this out. At least that's my guess.

go back, make clean, make mrproper, make clean, make xconfig....... try again.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 09:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:25 PM.

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
Open Source Consulting | Domain Registration