[deleted]

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.
carlosalbuquerque89
Posts: 1
Joined: Thu Jul 17, 2008 2:13 pm

Re: Where do we start?

Post by carlosalbuquerque89 »

Hey I'm totally new in this OS thing. I'd like to write my own little kernel in C; however, I don't know any assembly language. Do you think it's possible to write an os without knowing any assembly language? if so, which compiler do you recommend, i'd like my os to run under the x86 processor architecture. I'm tired of Microsoft, Mac and Linux... wanna write something to change the concept of an OS... Thanks.
tadada
Member
Member
Posts: 42
Joined: Sun Apr 20, 2008 5:32 pm
Location: Index 0 of the nearest Array

Re: Where do we start?

Post by tadada »

you'll need some asm. period. You'll have to do direct hardware programming and C can't do that without some asm, but it is possible to get away with using very little asm.
My OS: SOS (Simple Operating System).
User avatar
octa
Member
Member
Posts: 50
Joined: Sat Jun 28, 2008 9:15 am

Re: Where do we start?

Post by octa »

well u need to know asm.. and u should learn it..

for compiler refer to cross compiler GCC_Cross-Compiler.
carlosalbuquerque89 wrote:I'm tired of Microsoft, Mac and Linux... wanna write something to change the concept of an OS...
this would take a lot of time !!! and of course u need to lik anyone because its ur devoloping environment !!!!!!!!!!!!

best of luck !!
:) :) :) :) :)
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Re: Where do we start?

Post by Alboin »

I'm tired of Microsoft, Mac and Linux... wanna write something to change the concept of an OS...
I would suggest you lay back, drink a nice, soothing cup of tea (Oolong is *marvelous*) and think about that there goal. Osdev is a very 'relaxed' field. Goals are small, and are updated often. Start off with something that plain works, and then add and add. Don't drink too much at once, or you'll get burned. (You see what I did there? I know I'm clever, really, no complements are needed.)

Oh, yes, and have oodles of fun while you are at it.
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
lukem95
Member
Member
Posts: 536
Joined: Fri Aug 03, 2007 6:03 am
Location: Cambridge, UK

Re: Where do we start?

Post by lukem95 »

start by making a basic kernel that will just print a "OS loaded" message, expand that to cope with exceptions and interrupts... add keyboard support, get applications loading, set up privelidge levels, get some drivers working, and THEN build/port a GUI on top of that.

You could customise an existing GUI server (like X), as this would be much easier than writing one from scratch.
~ Lukem95 [ Cake ]
Release: 0.08b
Image
simkinggold
Posts: 10
Joined: Mon Jul 14, 2008 12:25 pm

Re: Where do we start?

Post by simkinggold »

[deleted]
Last edited by simkinggold on Wed Feb 19, 2014 9:31 am, edited 1 time in total.
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Re: Where do we start?

Post by suthers »

Well the first thing to do is to decide whether to use a premade or custom bootloader, since you want to do things as simply as possible, you probably want to use a premade one, so learn how to use GRUB...
Jules
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: Where do we start?

Post by Combuster »

And NTFS is not suited for homebrew OSes. Use FAT32/Ext2
"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 ]
User avatar
naiksidd_85
Member
Member
Posts: 76
Joined: Thu Jan 17, 2008 1:15 am

Re: Where do we start?

Post by naiksidd_85 »

hi,
I did reading through all the posts on this topic, I think you are really ambitious. I suggest you to first read through the james molley tutorials or bare bones and get them in your systems. start coding only when you think you have enough of material handy. believe me with team of two it can get really frustrating if we dont have the concepts clear. am not an guru at OSdev but this is my experiance.

and you want to make a bootable OS, that i think is really part of the game. Writing custom Boot loader is again not easy job so if you are not patient enough try using GRUB for starters.

as one of the posts say keep small goals, and keep adding new things to cart.
creating an OS which can be used for day to day is long journey (Am not commenting to you personaly ).
Learning a lot these days THANKS to OSdev users
simkinggold
Posts: 10
Joined: Mon Jul 14, 2008 12:25 pm

Re: Where do we start?

Post by simkinggold »

[deleted]
Last edited by simkinggold on Wed Feb 19, 2014 9:31 am, edited 1 time in total.
simkinggold
Posts: 10
Joined: Mon Jul 14, 2008 12:25 pm

Re: Where do we start?

Post by simkinggold »

[deleted]
Last edited by simkinggold on Wed Feb 19, 2014 9:32 am, edited 1 time in total.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Where do we start?

Post by JamesM »

I've got one if you want it: here. Enjoy!
User avatar
lukem95
Member
Member
Posts: 536
Joined: Fri Aug 03, 2007 6:03 am
Location: Cambridge, UK

Re: Where do we start?

Post by lukem95 »

JamesM wrote:I've got one if you want it: here. Enjoy!
that's a good'un ;)
~ Lukem95 [ Cake ]
Release: 0.08b
Image
zhak
Member
Member
Posts: 25
Joined: Wed Jul 30, 2008 10:25 am

Re: Where do we start?

Post by zhak »

suthers wrote:Well the first thing to do is to decide whether to use a premade or custom bootloader, since you want to do things as simply as possible, you probably want to use a premade one, so learn how to use GRUB...
Maybe it's a good option to start OS dev with writing the simplest boot loader (i.e. for FAT)? imho, it is a good practice. and when you know and understand all aspects of OS boot process, then it's time to boot the simplest "hello, world!" kernel and go to the next level. don't you think so?
blackcatcoder
Member
Member
Posts: 132
Joined: Wed Nov 03, 2004 12:00 am
Location: Austria
Contact:

Re: Where do we start?

Post by blackcatcoder »

I would suggest to start off with a simple bootloader so you get the basics and learn about how things work in Real Mode (16-Bit), perhaps try to read sector from FDD or HDD and so on, learn about the A20 Gate and the memory detection methods like e820. If you get managed this try to jump into Protected Mode and get familiar with setting up GDT, IDT, Paging. I think if you're new this would take you at least half an year to go through. In OSdev you have to do things step by step and break down every big TODO-Point into small TODO-Points. Things are getting very complex the deeper you go into :)


Good luck and a lot of fun :)
Post Reply