Page 1 of 1
QEMU Error 28: Selected item cannot fit into memory
Posted: Sat Jan 28, 2012 11:14 pm
by elijaheac
Hi, I'm following the Bare Bones tutorial on the wiki (I'm using NASM, by the way). However, when I launch it in QEMU and type in
I get the following error:
Code: Select all
Error 28: Selected item cannot fit into memory
I have tried Bochs too, and it doesn't give an error, but it freezes the open TTY device. I can switch to another, but the TTY device with X freezes (I can move my cursor around but it won't click). What is wrong and how might I go about fixing it?
Thanks in advance,
elijaheac
Re: QEMU Error 28: Selected item cannot fit into memory
Posted: Sat Jan 28, 2012 11:24 pm
by FallenAvatar
How big is your kernel? Doesn't it need to be under 510 bytes? (At least the first stage of the bootloaded...)
Re: QEMU Error 28: Selected item cannot fit into memory
Posted: Sun Jan 29, 2012 3:05 am
by thepowersgang
Are you using an ELF binary? Is it higher-half? Do you use the physical address hint? (in the linker script - AT( ADDR(.text) - kernel_base ) )
Also, that method of loading is a hack, get a grub image with a filesystem instead.
Re: QEMU Error 28: Selected item cannot fit into memory
Posted: Sun Jan 29, 2012 9:12 am
by elijaheac
thepowersgang wrote:Are you using an ELF binary? Is it higher-half? Do you use the physical address hint? (in the linker script - AT( ADDR(.text) - kernel_base ) )
Also, that method of loading is a hack, get a grub image with a filesystem instead.
I'm just following the tutorial, It is not higher half, it is ELF (I am on Ubuntu), and I do not use the physical address hint. I'm saving optimization for later. First I just want to get the base kernel running.
tjmonk15 wrote:How big is your kernel? Doesn't it need to be under 510 bytes? (At least the first stage of the bootloaded...)
I'm just following the Bare Bones tutorial. it shouldn't be any larger or smaller than the tutorial kernel.
Re: QEMU Error 28: Selected item cannot fit into memory
Posted: Sun Jan 29, 2012 4:58 pm
by AJ