OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 12:48 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Writing a truly UNIX OS
PostPosted: Sun Jul 03, 2022 1:50 pm 
Offline
Member
Member
User avatar

Joined: Mon Sep 21, 2020 9:51 am
Posts: 100
Location: Aboard the Enterprise
Pretty much everything "unix" these days is actually Unix-like, but would it be possible to write an actual UNIX system, that is based off the original codebase, that would be a truly "modern" OS (e.g., 64-bit, multi-processing)?

_________________
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!


Top
 Profile  
 
 Post subject: Re: Writing a truly UNIX OS
PostPosted: Sun Jul 03, 2022 2:39 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
What, like Solaris? Or the various BSDs?


Top
 Profile  
 
 Post subject: Re: Writing a truly UNIX OS
PostPosted: Sun Jul 03, 2022 2:42 pm 
Offline
Member
Member
User avatar

Joined: Mon Sep 21, 2020 9:51 am
Posts: 100
Location: Aboard the Enterprise
iansjack wrote:
What, like Solaris?

Yes, I guess I should be more clear: would it be possible to make an open-source hobby OS, not a commercial one, that is actually UNIX?

_________________
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!


Top
 Profile  
 
 Post subject: Re: Writing a truly UNIX OS
PostPosted: Sun Jul 03, 2022 2:44 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
What, like FreeBSD?


Top
 Profile  
 
 Post subject: Re: Writing a truly UNIX OS
PostPosted: Sun Jul 03, 2022 2:50 pm 
Offline
Member
Member
User avatar

Joined: Mon Sep 21, 2020 9:51 am
Posts: 100
Location: Aboard the Enterprise
iansjack wrote:
What, like FreeBSD?

BSD has (to my knowledge) been rewritten to the point of not containing a single line of AT&T code.

_________________
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!


Top
 Profile  
 
 Post subject: Re: Writing a truly UNIX OS
PostPosted: Sun Jul 03, 2022 2:58 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
But the original AT&T code is copyright. You couldn’t use it in an open source OS.


Top
 Profile  
 
 Post subject: Re: Writing a truly UNIX OS
PostPosted: Sun Jul 03, 2022 5:24 pm 
Offline
Member
Member

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 1071
illumos is a fork of when Solaris was open source. That is about as close as you can get to an open source true Unix.. TBH though, I'm sure there isn't any AT&T code left.

_________________
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg


Top
 Profile  
 
 Post subject: Re: Writing a truly UNIX OS
PostPosted: Mon Jul 04, 2022 12:14 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
Just as an aside, if we are talking about the original Unix code base, it was written in PDP11 assembly language. It’s difficult to think that that code would be very relevant today.


Top
 Profile  
 
 Post subject: Re: Writing a truly UNIX OS
PostPosted: Mon Jul 04, 2022 1:44 pm 
Offline
Member
Member

Joined: Wed Mar 09, 2011 3:55 am
Posts: 509
iansjack wrote:
Just as an aside, if we are talking about the original Unix code base, it was written in PDP11 assembly language. It’s difficult to think that that code would be very relevant today.


The very most original Unix code base was in PDP-7 assembly language, but that and the early PDP-11 releases were completely internal to Bell Labs and only ran on a few machines ever. By the time Unix was unleashed upon the world, it was written mostly in C.


Top
 Profile  
 
 Post subject: Re: Writing a truly UNIX OS
PostPosted: Mon Jul 04, 2022 1:49 pm 
Offline
Member
Member

Joined: Wed Mar 09, 2011 3:55 am
Posts: 509
iansjack wrote:
But the original AT&T code is copyright. You couldn’t use it in an open source OS.


v6, v7, (PDP-11) and 32v (the VAX port of v7) are now under BSD-style licenses. System III and later are still proprietary.


Top
 Profile  
 
 Post subject: Re: Writing a truly UNIX OS
PostPosted: Tue Jul 05, 2022 3:57 pm 
Offline
User avatar

Joined: Mon May 02, 2022 2:03 pm
Posts: 12
Hi Pavel,

Quote:
Yes, I guess I should be more clear: would it be possible to make an open-source hobby OS, not a commercial one, that is actually UNIX?


The tuhs project might be of some interest to you. https://minnie.tuhs.org/cgi-bin/utree.pl

xv6 is something you may find interesting as well.

RetroBsd might interest you too.
https://github.com/RetroBSD/retrobsd

Another interesting approach might be to get old unix'es working on new risc v boards as a proof of concept.
See this project for instance.
https://github.com/mit-pdos/xv6-riscv


~Voldemort~

_________________
~Voldemort~


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 49 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
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group