Page 1 of 1

help: loading kernel

Posted: Tue Jul 20, 2010 7:53 am
by bunkdeath
Hi to all those are helping someone like me,

I am new to this forum, and sorry, if this question is already there in forum. I tried to search for this question, but there was many such words so I got nothing.

I have a boot strap loader, and a simple kernel.
From tutorial i got that, kernel can be loaded in 3 different ways.

i) Put kernel in bootstrap loader.( But my kernel is bigger than 512 b)
ii) Specify the kernel file and load.
iii) Run form specified location.

The first one is not suitable for me as well as while coding OS.
If any one could give me any idea(with code) in any of two method(ii, ii) to load kernel file?

And I think platform does not matter while coding for OS(I think), but also, I am using x86 architecture Windows 7 OS

Thanks

Re: help: loading kernel

Posted: Tue Jul 20, 2010 8:00 am
by tera4d
Hello bunkdeath,

For loading the kernel I would really recommend reading through the OSDEV series from brokenthorn.
http://www.brokenthorn.com/Resources/OSDevIndex.html especially their bootloader section it explains very clearly and very easy to understand on how to load a kernel over FAT12. well a second stage since its a 32 bit kernel but I think this wil help you alot!

I hope I was of any help

Re: help: loading kernel

Posted: Wed Jul 21, 2010 8:21 am
by bunkdeath
Thank you tera4d foe your reply!!! I am onto it, and I found it much helpful to me.

Thanks

Re: help: loading kernel

Posted: Wed Jul 21, 2010 10:07 am
by tera4d
No problem ^^ I'm glad that I was of any help.

Re: help: loading kernel

Posted: Thu Jul 22, 2010 9:42 am
by ehenkes
The BL2 of brokenthorn is not sufficient to load big kernels, but until 50K it is ok.