Page 1 of 1

Starting Kernel from Bootsector

Posted: Mon Jun 02, 2008 11:15 am
by ollie123
I'm back with another question. How can I start my kernel from my bootsector? Do I need to manipulate the memory in any way? Is there code that I can add to my bootsector to start my kernel directly? I would appreciate a response.

Thanks,
Ollie :D.

PS: I'm sorry if I keep posting questions like this. I have only just started programming operating systems, and I keep running into bugs.

Posted: Mon Jun 02, 2008 11:41 am
by Combuster
Assuming that you have at least followed the many tutorials around, what about them do you not understand?

Posted: Mon Jun 02, 2008 11:47 am
by ollie123
Combuster wrote:Assuming that you have at least followed the many tutorials around, what about them do you not understand?
There's alot of tutorials, which one should I pick? :(

Posted: Mon Jun 02, 2008 11:52 am
by Combuster
Try one. If it doesn't help go to the next and so on. Nine out of ten you'll have your answer before you see the end of the list :D

Posted: Mon Jun 02, 2008 12:15 pm
by suthers
Though I should let you do this yourself I can recommend:
http://www.osdever.net/tutorials/loading_sectors.php
http://www.osdever.net/tutorials/ch01.php
Are you planning on working in real or protected mode?
Jules

Re: Starting Kernel from Bootsector

Posted: Mon Jun 02, 2008 12:18 pm
by suthers
ollie123 wrote: PS: I'm sorry if I keep posting questions like this. I have only just started programming operating systems, and I keep running into bugs.
I think nobody here can claimed to have got very far in their OS before encountering a bug (certainly not me...). Its not meant to be easy...

Posted: Mon Jun 02, 2008 10:22 pm
by huxuelei
why not use GRUB as your bootloader?

Posted: Tue Jun 03, 2008 1:33 pm
by ollie123
huxuelei wrote:why not use GRUB as your bootloader?
I would use GRUB, but I still want to learn how to write bootsectors.

Posted: Tue Jun 03, 2008 1:42 pm
by indiocolifa
If you can write some assembly, try to write your own simple bootloader. Its an excellent practice. My own bootloader is near complete.