Page 1 of 1
GRUB: Selected item cannot fit into memory!?!
Posted: Thu Dec 27, 2007 3:20 pm
by Craze Frog
Ok, my kernel is 20,2 kb. I have made a virtual machine with 32 mb memory. When I try to load the kernel, grub says this:
Error 28: Selected item cannot fit into memory
If I allocate more memory to the virtual machine it works. Why is this?
Posted: Thu Dec 27, 2007 3:36 pm
by t0xic
Are you loading any modules?
Posted: Thu Dec 27, 2007 3:39 pm
by Craze Frog
No.
Posted: Thu Dec 27, 2007 4:39 pm
by Combuster
What would be the exact contents of your multiboot header?
Posted: Fri Dec 28, 2007 5:52 am
by Craze Frog
Code: Select all
SECTION .multiboot
ALIGN 4
mboot:
MULTIBOOT_PAGE_ALIGN equ 1<<0
MULTIBOOT_MEMORY_INFO equ 1<<1
MULTIBOOT_HEADER_MAGIC equ 0x1BADB002
MULTIBOOT_HEADER_FLAGS equ MULTIBOOT_PAGE_ALIGN | MULTIBOOT_MEMORY_INFO
MULTIBOOT_CHECKSUM equ -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)
dd MULTIBOOT_HEADER_MAGIC
dd MULTIBOOT_HEADER_FLAGS
dd MULTIBOOT_CHECKSUM
It's in elf format, so I tried without the aout kludge, but it didn't help.
Posted: Fri Dec 28, 2007 8:56 am
by astrocrep
What is the address your linking your kernel at?
-Rich
Posted: Fri Dec 28, 2007 12:47 pm
by Craze Frog
0x00100000 (I don't have much choice if I want GRUB to load it.)