problem after booting kernel
Posted: Sun Mar 19, 2006 2:20 pm
I have compiled a small kernel. Earlier it was correctly executing on bochs and through floppy. But now after adding some features the kernel is compiling fine. ... but it is not executing the way it is intended to be .
after the grub menu it gives the following message and than hangs....
Here is my linker script:
after the grub menu it gives the following message and than hangs....
This message is printed in both bochs and when booted through floppy.Booting 'MAGNUM OPUS'
root (fd0)
Filesystem type is ext2fs, using whole disk
kernel /kernel.bin
[Multiboot-kludge, loadaddr=0x100000, text-and-data=0x3000, entry=0x10000
Here is my linker script:
OUTPUT_FORMAT("binary")
OUTPUT("kernel.bin")
ENTRY(start)
phys = 0x00100000;
SECTIONS
{
.text phys : AT(phys) {
code = .;
*(.text)
. = ALIGN(4096);
}
.data : AT(phys + (data - code))
{
data = .;
*(.data)
*(.rodata*)
. = ALIGN(4096);
}
.bss : AT(phys + (bss - code))
{
bss = .;
*(.bss)
. = ALIGN(4096);
}
end = .;
}