BetaArchive Logo
Total Current Archive Size: 4925.26GB in 15820 files
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 6d, 7h, 8m | CPU: 8% | MEM: 4449MB of 12279MB used
{The community for beta collectors}

Post new topic Reply to topic  [ 19 posts ] 
Author Message
 PostPost subject: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 10:50 am 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Wed Dec 22, 2010 3:53 pm

Posts
202

Location
UK

Favourite OS
Windows 7
Hi, I think the work Daniel1981 has done on HeinanOS is amazing, the project has in my opinion a healthy positive future, I wish Daniel1981 all the best with it.

I'm no developer, and I know something like what Daniel1981 has done doesn't happen overnight, what I would like to ask is, where would someone like myself start out in this area, can building an OS from scratch have support for MS Windows Applications? The type of MS Applications I'd like to support are the MS Windows XP ones.

I've seen the ReactOS project, and tried it out, but from my experience in trying the ReactOS it's very unstable.

I would like to be able to make releases as well.

Thank You for reading my post,
Happy New Year.
All The Best.

AlexJ


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 11:20 am 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Tue Dec 28, 2010 1:27 pm

Posts
54

Location
Inside a Black Hole

Favourite OS
HeinanOS Build 43
This might be usefull: http://www.instructables.com/id/Create-your-own-operating-system/

_________________
My computer got destroyed by viruses - is you see me online, I'm in the local library. (10 minutes free internet! YAY! :))
HeinanOS: it's explosive.


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 11:32 am 
Guru Beta Collector
Guru Beta Collector
Offline

Joined
Fri Mar 28, 2008 11:34 am

Posts
906
http://www.osdever.net/ is the site I used for alot of reference while working on LucOS.

_________________
I'm a Xerox Alto, and the GUI was my idea


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 11:39 am 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Wed Dec 22, 2010 3:53 pm

Posts
202

Location
UK

Favourite OS
Windows 7
lucas93 wrote:
http://www.osdever.net/ is the site I used for alot of reference while working on LucOS.

This is an interesting read, Thank You.


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 11:54 am 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Sat Nov 28, 2009 4:05 pm

Posts
2360
To get it to the level of even partial windows NT binary compatibility has taken a long time for many ReactOS developers. If you want to start, at the bare minimum you need to learn the assembly language of the platform the OS is intended for, and C is very useful, but you will be writing your own functions. You will also need to know about things such as GDTs, IDTs and how the system [processor, memory, graphics etc.] works, and it is probably helpful to plan the OS so it can be easily ported to another architecture. If you know C# or Visual Basic .NET [or indeed any other language on the .NET Framework] you could start out with Cosmos, which can be found at http://cosmos.codeplex.com/. If you have any questions PM me and I'll try to help you but I'm only really starting out myself!

Good luck!


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 12:30 pm 
Pro Beta Collector
Pro Beta Collector
Offline

Joined
Tue Jun 17, 2008 10:09 am

Posts
409

Favourite OS
Windows 7
neonsonicboy wrote:
To get it to the level of even partial windows NT binary compatibility has taken a long time for many ReactOS developers. If you want to start, at the bare minimum you need to learn the assembly language of the platform the OS is intended for, and C is very useful, but you will be writing your own functions. You will also need to know about things such as GDTs, IDTs and how the system [processor, memory, graphics etc.] works, and it is probably helpful to plan the OS so it can be easily ported to another architecture. If you know C# or Visual Basic .NET [or indeed any other language on the .NET Framework] you could start out with Cosmos, which can be found at http://cosmos.codeplex.com/. If you have any questions PM me and I'll try to help you but I'm only really starting out myself!

Good luck!


Indeed, COSMOS is a great place to start a code managed os.

BTW, please look at your private messages.

_________________
HeinanOS, my own operating system, now available at: http://heinanos.codeplex.com


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 12:33 pm 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Wed Dec 22, 2010 3:53 pm

Posts
202

Location
UK

Favourite OS
Windows 7
Building a Custom OS from scratch to have MS Windows Application Support, would the Custom OS become vulnerable to the same attacks, (Virus's, Malware)?


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 12:35 pm 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Sat Nov 28, 2009 4:05 pm

Posts
2360
In theory, if those holes existed in the OS, yes.


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 12:36 pm 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Wed Dec 22, 2010 3:53 pm

Posts
202

Location
UK

Favourite OS
Windows 7
Daniel1981 wrote:
BTW, please look at your private messages.

Hi Daniel1981, I have looked at my private messages, I replied to your last one, Thank You, AlexJ.


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 1:09 pm 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Sat Nov 28, 2009 4:05 pm

Posts
2360
Some more stuff.
Tools (on Windows):
- nasm, the Netwide Assembler, or other assembler
- a C compiler, I would recommend djgpp [includes binutils etc] but this won't run on x64 windows.
- an emulator like Bochs or Qemu, VMware also works but is a bit fiddly to use when the OS is being recompiled every few minutes
- For Cosmos, MS Visual Studio 2008 / 10 [or c# express]

You can write your own boot loader. The boot sector is written in assembler, and when compiled:
- Must be loaded to the memory location 7C00 [hex, useful to understand :P ]
- Must be the first 512 bytes of a disk, 510 of which are code, and the last 2 must be AA 55

I'll provide a code sample of the above shortly, I have a few functions that can be useful, one of them I will admit to copying off the web but I did write the rest myself :P


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 1:32 pm 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Wed Dec 22, 2010 3:53 pm

Posts
202

Location
UK

Favourite OS
Windows 7
neonsonicboy wrote:
Some more stuff.
Tools (on Windows):
- nasm, the Netwide Assembler, or other assembler
- a C compiler, I would recommend djgpp [includes binutils etc] but this won't run on x64 windows.
- an emulator like Bochs or Qemu, VMware also works but is a bit fiddly to use when the OS is being recompiled every few minutes
- For Cosmos, MS Visual Studio 2008 / 10 [or c# express]

You can write your own boot loader. The boot sector is written in assembler, and when compiled:
- Must be loaded to the memory location 7C00 [hex, useful to understand :P ]
- Must be the first 512 bytes of a disk, 510 of which are code, and the last 2 must be AA 55

I'll provide a code sample of the above shortly, I have a few functions that can be useful, one of them I will admit to copying off the web but I did write the rest myself :P

Thank You Very Much :D.


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 1:46 pm 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Sat Nov 28, 2009 4:05 pm

Posts
2360
:x my network cable is rubbish. will post shortly.

Anyway, this bootsector, when compiled, can be booted like a floppy image from an emulator, or written using something like rawrite.
http://en.wikibooks.org/wiki/X86_Assembly <-- also, that's quite a good book to refer to

And Daniel1981, just tried HeinanOS, I like it :P
I want to get Fat32 access working but I can't find a way D:


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sat Jan 01, 2011 3:28 pm 
Pro Beta Collector
Pro Beta Collector
Offline

Joined
Tue Jun 17, 2008 10:09 am

Posts
409

Favourite OS
Windows 7
That's because it only supports FAT16 :P

However, you are more then welcome to improve HeinanOS!

All you need to do, is to join the project in heinanos.codeplex.com, and once I will approve you, you will have access to the source code.

_________________
HeinanOS, my own operating system, now available at: http://heinanos.codeplex.com


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Mon Jan 10, 2011 9:43 pm 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Wed Dec 22, 2010 3:53 pm

Posts
202

Location
UK

Favourite OS
Windows 7
I was just wondering, how does HeinanOS and ReactOS remain legal from intellectual property rights and trademark infringement of Microsoft?

I know HeinanOS and ReactOS don't copy/paste source code from Microsoft, so because source code isn't copied, is that how HeinanOS and ReactOS remain legal?


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Wed Apr 27, 2011 10:28 pm 
Amateur Beta Collector
Amateur Beta Collector
Offline

Joined
Wed Apr 27, 2011 12:44 am

Posts
95

Favourite OS
WRP-MC 8400
I started reading a neat guide here http://www.brokenthorn.com/Resources/OSDev1.html. I started, then stopped. Eventually I would likae to make a project.


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Fri Apr 29, 2011 4:13 am 
Newbie Beta Collector
Newbie Beta Collector
User avatar
Offline

Joined
Fri Apr 29, 2011 3:30 am

Posts
14

Location
Missouri

Favourite OS
Windows 7 SP1
Can Cosmos read and write to files yet?


Top  Profile  WWW
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Sun Jun 19, 2011 5:17 pm 
Newbie Beta Collector
Newbie Beta Collector
Offline

Joined
Mon Jun 13, 2011 5:39 pm

Posts
42

Location
Earth

Favourite OS
Mac OS X Lion 10.7.2
Well for starters, you can use suse-studio, then later build on from that.

_________________
An Apple a day breaks Windows away.
-~- R.I.P Steve P. Jobs-~-


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Fri Sep 16, 2011 2:10 pm 
Amateur Beta Collector
Amateur Beta Collector
Offline

Joined
Wed Sep 07, 2011 7:42 am

Posts
79

Favourite OS
Windows XP embedded SP2
Can you make one with visual basic instead of C#?


Top  Profile
 PostPost subject: Re: How could I go about building a Custom OS from scratch?        Posted: Fri Sep 16, 2011 2:22 pm 
Newbie Beta Collector
Newbie Beta Collector
User avatar
Offline

Joined
Wed Sep 14, 2011 4:23 pm

Posts
20

Favourite OS
FreeDos 1.0
If you want vb.net instead of c# (or viceversa) just use a language converter:
http://www.developerfusion.com/tools/co ... arp-to-vb/
or
http://converter.telerik.com/
or
http://www.carlosag.net/tools/codetranslator/


Top  Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ] 




Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2013

 

Sitemap | XML | RSS