Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Opteron, Grub, initrd, and "Image Too Large"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
troyt
n00b
n00b


Joined: 07 Nov 2002
Posts: 61
Location: United States

PostPosted: Wed Apr 13, 2005 2:31 pm    Post subject: Opteron, Grub, initrd, and "Image Too Large" Reply with quote

Having installed Gentoo before (several times on 32-bit), I got though most of the setup fine.

Then came Grub, normally my bootloader of choice.

I generated the kernel using the 'genkernel' script (with --menuconfig --gensplash --udev, my own config, etc).

Then I set up grub as specified in the documentation. I noted it's identical to how it would work on a 32-bit system; no suprise.

However, when I try to boot, I get an "Image Too Large" error :evil:. This is with respect to the initrd file (or at least, I believe it is).

I can get it to boot the kernel if I remove the initrd line (and modify the kernel line to match, of course). However, since the disk controller modules are in the initrd (not compiled into the kernel), the kernel panics when it gets to the point it would try to mount a disk.:?

I know that I could just compile the drivers into the kernel; but let's assume that I cannot follow this path for various reasons... Among them is binary distribution of built packages (no, it's not a rarely used feature of portage).

I've also tried the latest grub (0.96) cvs, with similar results.

Any hints?

Troy
Telford
Back to top
View user's profile Send private message
inode77
Veteran
Veteran


Joined: 20 Jan 2004
Posts: 1303
Location: Heart of Europe

PostPosted: Wed Apr 13, 2005 2:37 pm    Post subject: Reply with quote

Code:
 CONFIG_BLK_DEV_RAM_SIZE:                                                                                                                                             │
  │                                                                                                                                                                      │
  │ The default value is 4096 kilobytes. Only change this if you know                                                                                                    │
  │ what are you doing. If you are using IBM S/390, then set this to                                                                                                     │
  │ 8192.   

Just a wild guess, try to set the size to 8192 instead of 4096.

Just for my curiosity what size has your file?
Back to top
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Wed Apr 13, 2005 3:28 pm    Post subject: Reply with quote

I got the same problem... and the size of my kernel is... 6Mb!!! the initrd is normal, about 1Mb... I'm investigating :)
Back to top
View user's profile Send private message
troyt
n00b
n00b


Joined: 07 Nov 2002
Posts: 61
Location: United States

PostPosted: Wed Apr 13, 2005 5:07 pm    Post subject: Solved: Reply with quote

Apparently, you add to the kernel line:

mem=<size>

So, if you have 1GB of system memory, you would have:

kernel (hd0,1)/vmlinuz <blah blah blah> mem=1G
initrd (hd0,1)/initrd
Back to top
View user's profile Send private message
dnix
Apprentice
Apprentice


Joined: 17 Jun 2003
Posts: 271
Location: Italy

PostPosted: Thu Apr 14, 2005 9:27 am    Post subject: Reply with quote

If you compile your kernel without genkernel but in the old way :) you got a nice clean image :).
Don't forget to do make mrproper before.
Denix
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum