LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-27-2008, 12:04 PM   #1
chutsu
Member
 
Registered: Nov 2003
Location: UK
Distribution: Debian Lenny
Posts: 255

Rep: Reputation: 31
Can you install a linux kernel to replace the XNU Mac OSX has?


Hi
Fairly odd question, but still I think is rather interesting question. Since the Mac OSX is built on top their own XNU Kernel - (a Hybrid of both Microkernel and monolithic kernel) would it not be possible to simply install and compile a Linux kernel to replace the XNU?
I would imagine that the XNU conforms the POSIX rules, since its capable of running UNIX software. So shouldn't installing a Linux kernel be a breeze on the Mac OSX. Would like to think that there is an alternative to the Hybrid kernel.

I'm still a newbie at this so please be kind!

What are your thoughts?
Chris
 
Old 03-27-2008, 12:43 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
If you are using Mac hardware (as opposed to Intel-compatible PC), you could try it with the kernel from YellowDog or one ot the other distros that runs on Mac hardware. It would be interesting to see if it works.

A quick Google search reveals that there is on-going discussion whether or nor Mac OS should switch to a Linux kernel.
 
Old 03-27-2008, 12:48 PM   #3
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
The XNU kernel is quite different from the Linux kernel, starting with it's Mach-O format instead of ELF and quite a lot of other issues as well.

As a matter of fact, it is nearly impossible to build Apple's Darwin on itself without having Mac OS X and all it's developer tools. When starting with the latest Darwin binary distribution I succeeded only to upgrade 3 versions of the xnu kernel, but even so some framework stuff (IOKit, etc) failed to build. The system works, but it leaves you with a Darwin 8.3 version (equivalent to the underlying system of MacOS X 10.4.3). Most Darwin packages fail to build as well, unregarded what GCC version you use.

You need MacOS to develop and upgrade Darwin to the recent level. Open source projects like OpenDarwin did vanish, GNUDarwin is stagnating, and the DarwinBuild tools are hopelessly outdated.

If even Darwin isn't able to build itself, then I would assume doing the same with a Linux kernel is in for even more trouble.

Darwin is fast and lean, but achieves this by having almost no services running by default, the /bin directory looks like a desert scene, and with an 8-character password scheme it's not a security champion either.

My conclusion after a few weeks of experimenting was to stick with Linux - actually any other UNIX-flavour, Haiku, Plan9, QNX and all the rest might be more rewarding then touching Darwin and wasting your time.

Just my opinion,
regards,
SIMP

Fedora User

Last edited by simplicissimus; 04-02-2008 at 05:03 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac OSX-Like Linux? Launchpad_72 Linux - Newbie 30 02-12-2018 08:32 AM
Mac Osx Dock On Linux?? dj9928 Linux - Software 9 05-11-2008 04:04 AM
mac osx app on linux? slinky2004 Linux - Software 5 02-07-2006 01:47 AM
can't install gcc on Mac OSX 10.3 titanium_geek Other *NIX 3 05-11-2005 05:39 PM
Install KDE or GNOME on Mac OSX (Panther) ?? trey85stang *BSD 23 12-12-2004 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration