how i can build my own operating system

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
csandovalm
Posts: 3
Joined: Fri Dec 29, 2006 3:57 pm

how i can build my own operating system

Post by csandovalm »

i a newbie in these thems of the OS, and i have some question
1.- how but a x86 machine with my own OS
2.- what languages suggested for made the OS
3.- is this OS depend of the DOS or Linux.or WIn32
4.- is possible create an OS and this could work with almost every devices available today. ( i guess yes)
5.- where i can found information for start with some simple like boot machine and run small pieces or modules created?

thanks a lot
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:

Post by Combuster »

1: the x86 is the most popular target for hobby OSes. most people here write for it.
2: Assembly and C are standard. Pascal, C++ and Basic can be used as well (although they are more tricky).
3: OSes are generally independent of any other OS
4: There are too many devices around. You can support the majority of machines in use with limited amount of drivers, but 100% coverage is pretty much impossible.
5: Use Google
"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 ]
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Post by earlz »

try this tutorial on for size..assuming you develop it in C and ASM, and want to use gcc and friends
http://osdever.net/bkerndev/index.php
it's the best I've seen..
csandovalm
Posts: 3
Joined: Fri Dec 29, 2006 3:57 pm

thanks a lot

Post by csandovalm »

any about my questions?
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Post by earlz »

any tutorials about your questions?

if you read that link I put, it tells how to create a simple OS to begin with...
csandovalm
Posts: 3
Joined: Fri Dec 29, 2006 3:57 pm

yes sir

Post by csandovalm »

yes you right i saw this. recently and i am very happy with this. thanks againa and i am keep in contact for any questions.
this is a challenge for our team and we wanna make something big , i hope that

thanks
JJeronimo
Member
Member
Posts: 202
Joined: Wed Oct 18, 2006 3:29 pm

Post by JJeronimo »

Combuster wrote:2: Assembly and C are standard. Pascal, C++ and Basic can be used as well (although they are more tricky).
Theoretically, one can use any compiled language, provided that (s)he knows the calling conventions used by the compiler...

JJ
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

Re: yes sir

Post by Tyler »

csandovalm wrote:yes you right i saw this. recently and i am very happy with this. thanks againa and i am keep in contact for any questions.
this is a challenge for our team and we wanna make something big , i hope that

thanks
Well in twenty years we can't wait to see it...
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

Post by Tyler »

Combuster wrote:4: There are too many devices around. You can support the majority of machines in use with limited amount of drivers, but 100% coverage is pretty much impossible.
Combuster, you have no enuthsiasm. If microsoft can convince support for every device then why the hell can't anyone else. If one other operating system got massive with a universally exceptable driver interface it would be possible we could all be supporting all devices.
INF1n1t
Member
Member
Posts: 60
Joined: Fri Dec 22, 2006 5:32 pm
Location: Somewhere Down...

Post by INF1n1t »

Tyler wrote:
Combuster wrote:4: There are too many devices around. You can support the majority of machines in use with limited amount of drivers, but 100% coverage is pretty much impossible.
Combuster, you have no enuthsiasm. If microsoft can convince support for every device then why the hell can't anyone else. If one other operating system got massive with a universally exceptable driver interface it would be possible we could all be supporting all devices.
;)

And why do you think they are giving support for every device...I don't think so!
I think, I have problems with Bochs. The biggest one: Bochs hates me!
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

Post by Tyler »

INF1n1t wrote:
Tyler wrote:
Combuster wrote:4: There are too many devices around. You can support the majority of machines in use with limited amount of drivers, but 100% coverage is pretty much impossible.
Combuster, you have no enuthsiasm. If microsoft can convince support for every device then why the hell can't anyone else. If one other operating system got massive with a universally exceptable driver interface it would be possible we could all be supporting all devices.
;)

And why do you think they are giving support for every device...I don't think so!
Well i haven't ever met a device that doesn;t have a Windows Driver... but show me one and i will buy the device :-P
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Post by Brendan »

Hi,

I don't think it's necessary to write a device driver for every device ever made.

Instead, you need a device driver interface complete with documentation (so that other people can write more device drivers), plus example device drivers for each device type (one hard disk driver, one video driver, one network card driver, etc), plus enough to get basic functionality working.

If the OS is good enough other people will (hopefully) want to add extra support for their hardware.


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Ready4Dis
Member
Member
Posts: 571
Joined: Sat Nov 18, 2006 9:11 am

Post by Ready4Dis »

Tyler wrote:
INF1n1t wrote:
Tyler wrote: Combuster, you have no enuthsiasm. If microsoft can convince support for every device then why the hell can't anyone else. If one other operating system got massive with a universally exceptable driver interface it would be possible we could all be supporting all devices.
;)

And why do you think they are giving support for every device...I don't think so!
Well i haven't ever met a device that doesn;t have a Windows Driver... but show me one and i will buy the device :-P
I've got a list of them if you really want to spend some cash ;). Seriously though, don't kill yourself trying to support everything at first, write one or two drivers, and give users/companies a way to implement their own. Even ati and nvidia write linux drivers for their hardware now because it's growing in popularity for more than just servers. Also, a generic interface to most devices is a must, for example any video card produced since about '95 will support VESA modes, a lot of network cards are NE2000 compatible (this limits it to 10mbps, but it's better than not working!!!) Other things, like a generic ATA/ATAPI driver for hard drive and cd-rom,a floppy controller driver, etc. PS/2 keyboard/mouse, etc. All can be generic andwork on most hardware. People can take your drivers and write stuff specific to their hardware if they want, or when you get time or are using hardware that you want supported. You just have to give an interface (preferably easy to use!) for other drivers to replace the generic's, then they can all be added later.
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:

Post by Combuster »

Tyler wrote:
Combuster wrote:4: There are too many devices around. You can support the majority of machines in use with limited amount of drivers, but 100% coverage is pretty much impossible.
Combuster, you have no enuthsiasm. If microsoft can convince support for every device then why the hell can't anyone else. If one other operating system got massive with a universally exceptable driver interface it would be possible we could all be supporting all devices.
First off i assumed our friend wanted to write all his drivers himself. I think that caused this confusion.

Even Microsoft does not support all devices. I have an accellerated video card with the only existing drivers being for 9x, in a computer that only runs NT or later. I cant run games on it since windows will crash when directx tries to change modes. When my os progresses I think I should bug Micron for the specs of it as it has an GPU with programmable firmware.

@Tyler: I have some homemade devices. Only with Linux drivers. Give me a million and you can have it :lol:
"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 ]
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

Post by Tyler »

Combuster wrote:
Tyler wrote:
Combuster wrote:4: There are too many devices around. You can support the majority of machines in use with limited amount of drivers, but 100% coverage is pretty much impossible.
Combuster, you have no enuthsiasm. If microsoft can convince support for every device then why the hell can't anyone else. If one other operating system got massive with a universally exceptable driver interface it would be possible we could all be supporting all devices.
First off i assumed our friend wanted to write all his drivers himself. I think that caused this confusion.

Even Microsoft does not support all devices. I have an accellerated video card with the only existing drivers being for 9x, in a computer that only runs NT or later. I cant run games on it since windows will crash when directx tries to change modes. When my os progresses I think I should bug Micron for the specs of it as it has an GPU with programmable firmware.

@Tyler: I have some homemade devices. Only with Linux drivers. Give me a million and you can have it :lol:
I don't think homemade hardware comes under the class of devices i was implying. But you did get me there... i'll have to wire you the money some time... when i get it.
Post Reply