Post subject: How could I go about building a Custom OS from scratch? Posted: Sat Jan 01, 2011 10:50 am
Amateur Beta Collector
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.
_________________ 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.
Post subject: Re: How could I go about building a Custom OS from scratch? Posted: Sat Jan 01, 2011 11:54 am
1337 Beta Collector
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!
Post subject: Re: How could I go about building a Custom OS from scratch? Posted: Sat Jan 01, 2011 12:30 pm
Pro Beta Collector
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.
Post subject: Re: How could I go about building a Custom OS from scratch? Posted: Sat Jan 01, 2011 12:33 pm
Amateur Beta Collector
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)?
Post subject: Re: How could I go about building a Custom OS from scratch? Posted: Sat Jan 01, 2011 1:09 pm
1337 Beta Collector
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 ] - 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
Post subject: Re: How could I go about building a Custom OS from scratch? Posted: Sat Jan 01, 2011 1:32 pm
Amateur Beta Collector
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 ] - 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
Post subject: Re: How could I go about building a Custom OS from scratch? Posted: Sat Jan 01, 2011 1:46 pm
1337 Beta Collector
Joined Sat Nov 28, 2009 4:05 pm
Posts 2360
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 I want to get Fat32 access working but I can't find a way D:
Post subject: Re: How could I go about building a Custom OS from scratch? Posted: Mon Jan 10, 2011 9:43 pm
Amateur Beta Collector
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?
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
All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.