help: loading kernel

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
bunkdeath
Posts: 2
Joined: Sun Jul 18, 2010 10:07 pm

help: loading kernel

Post 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
tera4d
Member
Member
Posts: 37
Joined: Sun Apr 26, 2009 11:22 am

Re: help: loading kernel

Post 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
bunkdeath
Posts: 2
Joined: Sun Jul 18, 2010 10:07 pm

Re: help: loading kernel

Post by bunkdeath »

Thank you tera4d foe your reply!!! I am onto it, and I found it much helpful to me.

Thanks
tera4d
Member
Member
Posts: 37
Joined: Sun Apr 26, 2009 11:22 am

Re: help: loading kernel

Post by tera4d »

No problem ^^ I'm glad that I was of any help.
User avatar
ehenkes
Member
Member
Posts: 124
Joined: Mon Mar 23, 2009 3:15 am
Location: Germany
Contact:

Re: help: loading kernel

Post by ehenkes »

The BL2 of brokenthorn is not sufficient to load big kernels, but until 50K it is ok.
Post Reply