Apple has released the source code to Darwin 9, the underlying open source operating system ofMac OS X 10.5 Leopard. “Darwin is the open source UNIX-based foundation of Mac OS X. Darwin integrates a number of technologies, including the Mach 3.0 microkernel, operating system services based on FreeBSD 5 UNIX, high-performance TCP/IP networking, and support for multiple integrated file systems. Because the design of Darwin is highly modular, you can dynamically add device drivers, networking extensions, and new file systems.”
I’m downloading XNU now.. It appears that they have kept the i386 code in there…. I guess its time to build it….
Edited 2007-11-06 22:19
So ist it possible to have the Hardware of say, a MacBook, fully supported, while not giving up any of the 4 freedoms which should come with software, by using Darwin+GNU+Xorg+Gnome/KDE/Whatever?
And by full hardware-support I mean EVERYTHING more or less out of the box. Hotkeys, webcam, suspending, you name it.
Has anyone experiences with that or are there tutorials how to achieve this on the web?
There are usually some closed-source drivers, not to mention Don’t Steal Mac OS X.kext.
What you’re asking really isn’t any different to Windows PC/Laptop buyers who install Linux of their system as, at the end of the day, Mac hardware is just PC hardware.
“So ist it possible to have the Hardware of say, a MacBook, fully supported, while not giving up any of the 4 freedoms which should come with software, by using Darwin+GNU+Xorg+Gnome/KDE/Whatever?”
No because The new licensing does not permit that.
http://apple.slashdot.org/article.pl?sid=06/11/13/1120215
Look at the new APSL Rules where your license to their source can be revoked at any time.
Looks similar to the Microsoft Reference License to me…
“Looks similar to the Microsoft Reference License to me…”
I hadn’t thought of the motivations behind mega-corporations having their own licenses, I wouldn’t say it was to necessarily say it was for subterfuge. The point was only in direct relevance to the four freedoms mentioned, Apples license *was* a free software license and an OSI approved license…and then they changed the license, but for clarification from the FSF on Apple Public Source License 2.0. http://www.gnu.org/philosophy/apsl.html.
I don’t really care. I was just clarifying.
“The Apple Public Source License (APSL) version 2.0 qualifies as a free software license.”
http://www.gnu.org/philosophy/apsl.html
i tried doing that with a g4 powerbook and darwin 8. all i can say is good luck! a bunch of drivers that ship with darwin are binary only, such as the broadcom ones. on top of that there are no apps in userland to configure wireless. never got x to work either. i’m not even sure if they include suspend support in darwin. maybe i should try again.
Here’s an interesting statistic, the /bsd folder of the XNU kernel tar ball accounts for 49.2% of the untarred size on disk.
I’m actually surprised that so much of the source is C++…
Edited 2007-11-06 22:57
Lets give credit where it is due. Leopard is just out and already they have released the darwin
Well done apple!
As somebody already mentioned “Darwin is not really that useful to any of the end users” … so what does that mean … call me a cynic but apple simply uses the opensource community to develop their product with giving back as little as possible.
Darwin is a perfectly capable OS in its own right. Simply because it is not as POPULAR as linux nor other BSD flavors does not detract from that
If I had the time (or ability!) I could create a system based on it just as good as any linux distro or OSX itself
And in which it would be ”’better”’ than average Linux distribution or PC-BSD?
I am not sure what this means? Can someone take the source and do the same thing that CentOS did with RH?
Before you apple guys get defensive I am just asking.
Simply put, no.
Darwin != Mac OS X, rather it’s the kernel and much of the base, system level userland. But you won’t find things like the Finder or the Dock, or even the windowing system in the source code.
It’s more like a basic BSD distribution, but without as large of a ports directory.
I use Mac OS X all the time as well as several Unixes and Darwin by itself isn’t really that useful to an end user.
And there is DarwinPorts for it, if want ported software.
But on the other hand, try to run the eyecand without it *g*
Separate anything that is the OS (BSD) and what is the GUI (Apple).
Anything that is BSD is included. Anything that is Mac GUI and things that support that is not.
There was an OpenDarwin initiative going on awhile back, but they closed up shop because of a lack of enthusiasm, and not really wanting to be a host for Free OSX projects. The only real reason Darwin is good to have open is for debugging and educational purposes, and of course for people to write drivers for those of us who go the Hackintosh way…
is it not also a good thing for those that use APE and for companies like intech that do the hi-cap drivers for large capacity drives on older G4s?
I ask this out of curiosity… is this true kernel access rather than just the sdk? or is it less complete than that.
This is a good move by Apple, but sheesh, the license is verbose!
Given that much of the code comes from FreeBSD anyway, would it have been difficult for them to have released this code under a BSD license? I wouldn’t have thought that would be much of a “risk” to them, but I may be wrong…. ๐
Anyone else think the license is too long, and a BSD license should have been used?
I’d love for someone on the FreeBSD team to quantify how much work they have contributed to Darwin before claiming they have for Darwin 9.
“I’d love for someone on the FreeBSD team to quantify how much work they have contributed to Darwin before claiming they have for Darwin 9.”
sed s/FreeBSD/Darwin/g
Edited 2007-11-07 09:31
What are you blathering on about – Apple claims that they use code from FreeBSD – in other words, Apple has pulled code off the FreeBSD, not FreeBSD submitting code to Darwin.
Its a know fact that XNU uses BSD code in there, and it has been updated over the years using the latest FreeBSD code – and Apple submit the changes back, NetBSD incorporating a lot of the msdosfs improvements – for example.
In fact Steve is using BSD as base since BSD4.4 in NextStep and there is even some NetBSD code in it. Sometimes Apple is even commiting some code to FreeBSD (some Apple developers have got commit right in FreeBSD), some weeks ago for example (MAC). Nothing unusual, but it doesn’t fit to the usual theories about the evil scheme of these big companies ๐
Don’t really understand why this matters one way or the other. You release the updated source to something which is not being used in previous versions because its essentially unusable. So what?
Maybe it allows Cupertino to more plausibly offer the party line that in some way OSX is more open than Windows? Not that it is, its just differently but equally closed. That is one of the party lines one comes across. Is that it, is it just a marketing thing?
I was hoping to discover from the comments what we can use this for, but the answer still seems to be nothing.
The Darwin source code is entirely usable (it’s not crippled in any way), it just doesn’t get a lot of use. Does the lack of users make the code less open? APSL 2.0 is an OSI-certified open source license. You can download the code, modify it, distribute it, include it in your own programs, etc. The Windows source code is only available under a Reference license, to businesses or academic institutions who pay for the privilege. They are not “equally closed” by any stretch of the imagination.
Hmm and now they can start to write drivers for Leopard running on Hackintosh…
I think this was a good step.
The developers can optimize the drivers for the kernel in a better way, because now they can look into the source code and match the drivers really smooth to the kernel.
Also it offers the possibility that bugs could be found in the code because now a lot of more eyes are looking at it.
In my eyes a opertunity for a higher quality for apples custormers.
If you re-compile it without debug enabled it drops down to 4.1MB (from approx. 8MB or so). Perhaps it’s purely subjective, but each time I’ve booted with this stripped down kernel after building it (the last 4 kernels or so from Apple), the system seems more responsive.
Any high level summary apart of component version lists?