Page 1 of 1

kernel greater than 16kb?

Posted: Fri Apr 10, 2009 1:38 pm
by marufaberlin
Hi,

i've coded a small kernel, loaded by grub with

Code: Select all

kernel 200+18
boot
and Ive just cat'ed the kernel to grub with a padding so that the kernel is at the offset of 0x200+0x18. (file system yet to come) I'm booting this image as a floppy image with qemu. If the kernel image (without GRUB) becomes greater than 15.5kb (when i include some headers for timer, irqs etc... it goes to something about 19kb) qemu just shows a blank screen after I load the kernel using grub.

I do not know what is causing this problem and would appreciate any kind of help.

marufaberlin

Re: kernel greater than 16kb?

Posted: Fri Apr 10, 2009 2:29 pm
by earlz
try doing it by
kernel 200+<kernel_size in bytes/512>and it doesn't actually hurt to do a few sectors more than your kernel size..