kernel greater than 16kb?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
marufaberlin
Posts: 1
Joined: Fri Apr 10, 2009 1:32 pm

kernel greater than 16kb?

Post 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
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: kernel greater than 16kb?

Post 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..
Post Reply