Settings

Theme

Apple Open Sources iOS Kernel

github.com

104 points by tray5 8 years ago · 24 comments

Reader

LeoNatan25 8 years ago

XNU has always been open source, but not the iOS specific changes. There have been private efforts to compile it for ARM, but this is now officially supported in the public Apple source code.

  • ngcc_hk 8 years ago

    But is this compilable and usable for a bare iron iphone or mac? Or even vm?

    • cucumberferity 8 years ago

      Not in it's current state. It's just a kernel. It's missing key components of the software stack to even make it terminal-only, let alone a GUI. There have been attempts through the years to create a full OS from the bits of OS X/macOS that Apple drops on opensource.apple.com. They do this by surrounding the kernel with FreeBSD or GNU software land, porting Xorg, and other components. See DarwinBSD, OpenDarwin, and PureDarwin. None of the projects proved sustainable in the long-run. It is possible that could change now though with better access to the code on GitHub. It's also possible we could see better drivers developed for hackintosh.

    • LeoNatan25 8 years ago

      No, because the bootrom only boots signed software. For an emulator, this could be very interesting; if the bootrom is reproduced and drivers are compatible, it could theoretically work.

kbumsik 8 years ago

I think this title is misleading. Apple has open XNU for more than 10 years. And AFAIK this kernel does not include ARM compiling option, as the very first paragraph in the README:

> XNU runs on I386, X86_64

unkown-unknowns 8 years ago

This should not be flagged. The title is correct. There is code specific to arm and arm64 in the repo, whereas previously the public source code releases were only i386 and amd64. Apple has open sourced the iOS kernel. Please unflag.

hardwaresofton 8 years ago

How long has this been a thing? This seems huge, but I don't spend enough time in the iOS ecosystem to tell if this is just how it's been for months/years

  • nemothekid 8 years ago

    I'm pretty sure Darwin has been open source since forever - at least since 2003 according to Wiki. This is the first time I've seen it on GitHub rather than Apple's internal open source microsite (https://opensource.apple.com/)

    • xenadu02 8 years ago

      This is correct. xnu/Darwin, libDispatch, the Objective-C runtime, and many other components have been on opensource.apple.com for years.

  • dvogel 8 years ago

    The Mach kernel has been open source since it's inception IIRC. The Apple extensions are real, but not the majority of the functionality.

  • shams93 8 years ago

    This only dropped 2 days ago

    • scott_karana 8 years ago

      It's been on opensource.apple.com for a decade. This Github repo is just a mirror.

    • hardwaresofton 8 years ago

      Hey so that was my first reaction, and then I thought better of it -- there's no way something this big could happen and not send ripples through the hacker (not cracker, hacker)/programmer/tech community.

nodesocket 8 years ago

If they start taking PR's and merging in, that would be awesome. I'm sure there's lots to be optimized and improved.

blargman 8 years ago

Perhaps this could have something to do with the rumors of ARM Macbooks?

ktta 8 years ago

Title should be "Apple now has a mirror of XNU kernel on Github"

doener 8 years ago

Why is this flagged?

hal_____ 8 years ago

Why is this flagged?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection