Page 1 of 1

Can i Just do the kernel without worrying about booting ?

Posted: Fri Mar 27, 2009 9:47 am
by mod200
I am not expert in assembly and booting but i have a good knowledge with C programing

and i want to have a start point where i can control the processor and memory for my robotic project

so can i escape the Assembly and take a ready made ( Something ) that will handover the control to

a kernel that do the rest of things ? and how ?



and any advices


Thanks in advance

Re: Can i Just do the kernel without worrying about booting ?

Posted: Fri Mar 27, 2009 10:05 am
by Kevin
You can take GRUB which implements the Multiboot Specification. For starters, you need to put a Multiboot header into your kernel and that's it.

Re: Can i Just do the kernel without worrying about booting ?

Posted: Fri Mar 27, 2009 10:21 am
by mod200
Kevin wrote:a Multiboot header into
Can you Please point me to some tutorial explaining this ?



:)

Re: Can i Just do the kernel without worrying about booting ?

Posted: Fri Mar 27, 2009 10:23 am
by Hyperdrive
mod200 wrote:
Kevin wrote:a Multiboot header into
Can you Please point me to some tutorial explaining this ?
STFWiki: Bare_bones

--TS

Re: Can i Just do the kernel without worrying about booting ?

Posted: Fri Mar 27, 2009 10:55 am
by IanSeyler
*shameless plug*

Pure64 is intended to do exactly that.. however it is for 64-bit mode only and not complete. It still needs work but the basics are there.

-Ian

Re: Can i Just do the kernel without worrying about booting ?

Posted: Fri Mar 27, 2009 11:03 am
by Kevin
mod200 wrote:
Kevin wrote:a Multiboot header into
Can you Please point me to some tutorial explaining this ?
I put a link to the specification in my posting, it contains everything you need. Even example code. And as Hyperdrive said you'll find more information in the wiki. If you want to have success in writing an OS you should get used to trying to find the information yourself first with the keywords you have.

Re: Can i Just do the kernel without worrying about booting ?

Posted: Sat Mar 28, 2009 6:18 am
by djsilence
I don't know who wrote barebone metal 0.2 but that man is from this forum: Bootloader is from FreeDos(this bootloader was discussed in one of the topics not far away. I use the same), reading hard drive is the same as Dex wrote me (almost the same) and is like a WIKI example. Keyboard interrupt I saw something here in this forum...

Re: Can i Just do the kernel without worrying about booting ?

Posted: Sat Mar 28, 2009 7:30 am
by mod200
Thanks Everyone =D>


now i have to sail to the kernel land :)

Re: Can i Just do the kernel without worrying about booting ?

Posted: Sat Mar 28, 2009 9:05 am
by Combuster
Will you please not use colors, I can't read it. (and so do others depending on board style.)

Re: Can i Just do the kernel without worrying about booting ?

Posted: Sat Mar 28, 2009 1:59 pm
by jal
Combuster wrote:Will you please not use colors, I can't read it. (and so do others depending on board style.)
You really mean you have a red background? :)


JAL

Re: Can i Just do the kernel without worrying about booting ?

Posted: Sat Mar 28, 2009 2:35 pm
by Zenith
He might be using the OMGPonies! theme. :twisted:

Re: Can i Just do the kernel without worrying about booting ?

Posted: Sat Mar 28, 2009 4:48 pm
by Dex
Maybe you should take a look at "OS Development for Dummies - OS Loader" thats its name, see here
http://alexfru.chat.ru/epm.html#los4d

But it would be helpfull if you give us more info, eg: how are you going to control your robot, like through port of a laptop etc
Also you maybe best looking at some hobby OS, as this is the kind of thing they are good at, and all the works been done for you
.
PS : I band myself from spamming :lol:

Re: Can i Just do the kernel without worrying about booting ?

Posted: Sun Mar 29, 2009 5:18 am
by djsilence
There is one more great tutorial: http://BrokenThorn.com

It is great thing. The author of that tutorial is member of this forum: "Neon".
Starting from bootloader and going to PIT, PIC, paging, phys.mem.manager, keyboard and almost FDC programming (the last is not ready yet, but soon it would be)... His kernel is multiboot specificated (as he writes), that can make you possible loading that OS from GRUB. (I didn't try myself yet do that, but his loader is great and simple...
try that on!). So you would not need to write your own loader and just have fun in General OS Development. (One problem: it is written on Microsoft Visual C++ 2005/2008. There are some plans to make it portable to DJGPP and Cygwin GCC, but not yet).

Daniel.