Can i Just do the kernel without worrying about booting ?

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
mod200
Posts: 5
Joined: Mon Aug 25, 2008 4:26 pm

Can i Just do the kernel without worrying about booting ?

Post 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
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

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

Post 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.
Developer of tyndur - community OS of Lowlevel (German)
mod200
Posts: 5
Joined: Mon Aug 25, 2008 4:26 pm

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

Post by mod200 »

Kevin wrote:a Multiboot header into
Can you Please point me to some tutorial explaining this ?



:)
Hyperdrive
Member
Member
Posts: 93
Joined: Mon Nov 24, 2008 9:13 am

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

Post by Hyperdrive »

mod200 wrote:
Kevin wrote:a Multiboot header into
Can you Please point me to some tutorial explaining this ?
STFWiki: Bare_bones

--TS
User avatar
IanSeyler
Member
Member
Posts: 326
Joined: Mon Jul 28, 2008 9:46 am
Location: Ontario, Canada
Contact:

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

Post 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
BareMetal OS - http://www.returninfinity.com/
Mono-tasking 64-bit OS for x86-64 based computers, written entirely in Assembly
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

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

Post 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.
Developer of tyndur - community OS of Lowlevel (German)
User avatar
djsilence
Member
Member
Posts: 70
Joined: Wed Oct 01, 2008 11:18 am
Location: Ukraine, Kiev
Contact:

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

Post 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...
Don't think a ****, but in ukrainian schools English is TOO BAD!
mod200
Posts: 5
Joined: Mon Aug 25, 2008 4:26 pm

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

Post by mod200 »

Thanks Everyone =D>


now i have to sail to the kernel land :)
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

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

Post by Combuster »

Will you please not use colors, I can't read it. (and so do others depending on board style.)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

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

Post 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
User avatar
Zenith
Member
Member
Posts: 224
Joined: Tue Apr 10, 2007 4:42 pm

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

Post by Zenith »

He might be using the OMGPonies! theme. :twisted:
"Sufficiently advanced stupidity is indistinguishable from malice."
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

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

Post 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:
User avatar
djsilence
Member
Member
Posts: 70
Joined: Wed Oct 01, 2008 11:18 am
Location: Ukraine, Kiev
Contact:

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

Post 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.
Don't think a ****, but in ukrainian schools English is TOO BAD!
Post Reply