954,202 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Compiling Darwin - From Scratch!

Hi, all...actually this is my first post........

I don't have an Apple Mac OSX.......anyways as for the Mac OSX kernel, i.e., Darwin its opensource....how can I install it on my machine....like how could I compile it!!

Thanks in advance,
Waiting for a reply soon!

debu.sagii
Newbie Poster
5 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

I haven't been able to find much documentation on building the Darwin operating system from scratch, although it's relatively easy to find guides on compiling Darwin's kernel.

Being familiar with Unix would definitely help, and you'll definitely need Unix (either an existing OS X/Darwin system, or some other *nix) in order to compile your base system. Do lots of research beforehand; something like Linux From Scratch will definitely aid your understanding of how Unix systems are built.

Finally, Apple does offer a ready-made build of Darwin 8.0 (sadly, they only provide source code for the later versions), so if you just want to experience using Darwin without the hassle of compiling it, then try downloading Apple's build first.

John A
Vampirical Lurker
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 

Hi,

Thanks for the reply........

Both the guides need..........err........Apple XCode and I think that Apple XCode can only be installed on Apple Mac OSX right!

I don't have an Apple Mac OSX.......

Thanks for the reply again.......waiting for a reply soon!

Bye

debu.sagii
Newbie Poster
5 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Probably I would like to compile it on a Linux machine........Ubuntu or OpenSuSE or Mandriva or Unix System (like PC BSD, Open BSD etc.) maybe.........I wanna know that if it is possible!

Bye again!

debu.sagii
Newbie Poster
5 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

>Both the guides need..........err........Apple XCode
Both guides say you should install Xcode (Apple Developer Tools) because it includes the Unix development tools (gcc, etc.).

You should be able to cross-compile the kernel and the base system from Linux using normal development tools, although it'd probably be easier to accomplish this from an existing Darwin system.

John A
Vampirical Lurker
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 
You should be able to cross-compile the kernel and the base system from Linux using normal development tools, although it'd probably be easier to accomplish this from an existing Darwin system.

Thanks for the quick reply,
Please tell me how to do so...........I couldn't understand............
Thanks again!

debu.sagii
Newbie Poster
5 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 
Thanks for the quick reply, Please tell me how to do so...........I couldn't understand............ Thanks again!


Follow the guides for compiling Xnu that I linked to previously. Where the twist comes in is the fact that you'll be needing to cross-compile everything (at least, until you get to the point where you have a bootable system). If you're not familiar with this, or you'd like to take an easier route, I'd highly recommend downloading and installing the pre-compiled Darwin 8.0 from Apple's site, then compile a new version of Darwin from that system.

John A
Vampirical Lurker
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 
paulgazz
Newbie Poster
1 post since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You