Mac OS X running on Apple TV

by editor @ AppleTVHacks.net on April 1, 2007

semthex from Hackint0sh.org, in collaboration with AppleTVHacks.net has done it again! A complete replacement to the Mac OS X kernel has been built which allows the full version of Mac OS X to be run on an Apple TV.

Semthex wrote a processor emulation for the kernel, to sidestep the hardware restrictions that previously disallowed Mac OS X from running on the Apple TV. AppleTVHacks.net was only too happy to help out, and when it turned out we needed more testers we launched a competition to get some. Within hours we had hundreds of eager Apple TV hackers submit entries.

Several hours of testing and refining later and our tester, gimli, managed to follow the steps (included below) to get Mac OS X booting on his Apple TV (click to enlarge):

mac os x on apple tv1 sm Mac OS X running on Apple TV


mac os x on apple tv2 sm Mac OS X running on Apple TV

The Apple TV running Mac OS X can use the mouse and keyboard normally, and you can run regular OS X apps easily. You can use either Front Row or Back Row (or Joost, or VLC, or…) to watch content, and can use it for most things you would use a Mac for.

Tester, mk500, made a video to demonstrate it all working:

How to install

This is the process that was used to turn the Apple TV into a full blown Mac OS X machine:

1) remove the drive from the Apple TV

2) back up your drive! Make an image of it (see the harddrive upgrade tutorial for this)

3) Connect the drive to a regular Mac (use a Firewire or USB drive dock)

4) Install OS X (Intel version) to the drive (we suggest a slim install – no printer drivers etc.)

5) Boot from this drive, and set it up as you would like it. Make sure you do updates so it is at least 10.4.8.

6) Reboot to your normal OS X install.

Ok, you now have your fresh OS X install which will form the base of the customised OS X you will need for the Apple TV.

7) Remove mach_kernel from root of the drive containg the ATV install.

8 ) Replace it with the customised mach_kernel that you’ll find on Hackint0sh.org.

9) Replace /System/Libary/Coreservices/boot.efiwith the same file from your backup of the Apple TV OS drive (OSBoot partition).

10) Run bless:

bless --folder=/Volumes/OSBoot/System/Library/CoreServices --file=/Volumes/OSBoot/System/Library/CoreServices/boot.efi --setBoot

11) Delete all the Nvidia kexts (all beginning with NVD, there should be 5) from the target drive (in /System/Library/Extensions).

12) Transfer the drive back to the Apple TV

13) Turn the Apple TV on and cross your fingers.

You should boot up into Mac OS X. Woo!

Now what?

This hack seriously opens up the doors with what the Apple TV could be used for; and we imagine we are going to see lots of cool hacks, additions and addons. We will do our best to keep track of them.

A big thanks again to semthex over at Hackint0sh.org; who did the majority of the work, and built the custom kernel.

The brave testers who helped make this happen: gimli, mk500, Turbo, Jonathan Bare, l0rdr0ck.

Share and Enjoy:
  • Digg
  • del.icio.us
  • StumbleUpon
  • Facebook
  • MySpace
  • Technorati
  • Google Bookmarks
  • Fark
  • Furl
  • LinkedIn
  • Live
  • Meneame
  • NewsVine
  • Ping.fm
  • Propeller
  • Reddit
  • Slashdot
  • Tumblr
  • TwitThis
  • Wikio
  • Yahoo! Buzz
  • pasturepool
    Anyone try the install from a computer using Snow Leopard. Meaning...I've connected my upgraded external HD to my Macbook Pro and inserted my Tiger 10.4.3 install DVD but Snow Leopard is preventing me from launching the installer script. I can't even choose a destination.
  • jbloc6
    This is cool and all, but I just have one question... WHAT IS THE POINT?! A mac mini starts out at $600 dollars and guess what, IT IS ACTUALLY A FULL FUNCTIONING MAC. I know I know, that is mind boggling and all, but think about it. You by an apple tv which was only meant for 1 thing, streaming/syncing media, hack it, and then want to know how you can spend more time and money attempting to make it into something resembing a pathetic Mac, and that is being generous. Instead of spending $250+ on an appletv, voiding the warranty by doing all this hacking, and still coming out with a device that is lacking in many areas, just buy a Mac Mini and run front row when you want to watch movies, or listen to music. You get a Mac and Apple tv in one, isn't that what your all trying to create? Plus you don't have to worry about how your going to upgrade the RAM, if the processor is fast enough to run whatever program, unsupported video or audio codecs and formats. Maybe its me, but it just seems like a whole bunch of unecessary time and frustration when there is already something on the market that does everything you all want it to out of the box.
  • jbloc6
    I would like to clarify something. I am not trying to take away from the work that anyone on this project has done for no one can deny that it isn't easy, simply wondering if someone can justify it all. I am actually an apple tv and iMac owner and can appreciate the dedication which came from any body that contributed to this topic.
  • Ery
    Hi there, anybody still have the mach_kernel.zip file? I was trying all the links provided but none of them are working. Help please? You can email me to : ery.hartanto@gmail.com, I appreciate it very much. :)
  • Ted
    I have a Slingbox and want to watch it on my TV overseas. Should I get a Slingcatcher or an Apple TV? I also have a Macbook Pro here in the Philippines. Thanks.
  • EXCELLENT!
    The best part of this ability is that now you can have the AppleTV auto-login as a regular user and auto-start Front Row, iPhoto and iTunes.

    I'm also guessing that now we can use the USB port for an External HDD and/or an external DVR. WIth some External HDDS offering a built-in USB hub it may even be possible to have both, assuming that the processor and port bus can handle it.
  • very nice thanks http://www.yetmis.net
  • Erm, last time I checked "HDMI/Component" outputs = High Definition media-oriented. While your laptop may be powerful enough to process whatever you claim, decoding h.264 High Definition content (likely from iTunes in the future), isn't for the faint of hardware. I highly doubt your 450mhz computer could pull that off - not even the 700mhz Xbox Celeron CPU can handle that at a reasonable framerate.
  • christopherspalian
    This is great. has any testing been done on putting Leopard or Snow Leopard on the APple TV?
  • camilias
    hi, When I found this document, everything is too late, I've format the harddisk and installed osx without back up anything, so please, would you email me a copy of backup file?
    thanks so much!
    camilias
    camilias.c@gmail.com
  • JoshuaDCoulter
    If anyone has a backup img of there AppleTV hard drive and could send it to me or upload it to the internet it would be greatly appreciated. If anyone could my email is wiredatros@gmail.com. Thanks.
  • gygy
    ha ha ha what about vista?
  • E Newton
    wow, this is really cool... I found this after trying to research how to get a MacMini to do full HDMI (ie, video & audio) and seeing that it would be totally whack. great job putting this together! i will now get an apple tv appliance for my tv and leave the mini on my desk :-)
  • Name
    I'm really wondering whether this site sponsored by Apple to boost sale of the Apple tv boxes? For the time and efforts spent on trying to make this s...t work.... Yuo can't be serious, are you?
    If I new from the very beginning what's involved, I would newer buy Apple Tv, which now i can't take back because it is opened.
    It should have been noted in the very beginning of this tread that this will never work properly.
    What is the point of doing all this ? Just a hack for a hack? Or for a sake of a of couple of hundred of $ difference between Aple Tv and Mac mini?
    Man, one got to be really on a low budget and madly in love with Apple to be wasting all this time.
  • joli poisson d'avril, en meme temps on vois pas trop l'interet de la bidouille vu la puissance limité de la machine.
  • Sam
    I have bought a 2.3 Apple TV a few days ago, and after puting Nito TV / ATV / Boxee and the rest of the plugin in, decided that it would be cooler to have OSX.

    My question is, if i install OSC 10.4.8with the mach kernel, will i be able to use my wireless mac keyboard through infrared?

    Many thanks.... love this forum.

    Sam.
  • text-to-screen
    Very cool guys! I just got an Apple TV today, does anyone know if OS X runs smoothly?
  • @lexx
    Aint working with OS X 10.5.x .. suppose that customized kernel and boot.efi (from atv) will only work with OS X 10.4 ? And what's that about the sound not working - no solution found yet ?
  • Bruno
    Hi,

    i installed os x but after first successful boot i do only get a failure sign and no boot.
    has anybody solved the problem? it is well known and i read about that some guys solved the problem...
  • Alastair
    Where can I find an intel version of Tiger? My mac came with Leopard, and as I understand I cant just use a retail version of Mac OSX Tiger because that is PPC only?
  • FaithNOmore
    NEED HELP!!! I have AppleTV with MacOSX installed. How turn it back to normal ATV?
  • Does it also Work with Mac OS X Leopard ?
  • usakc
  • usakc
  • Cliff
    So can this be modded into an media center that will support full screen flash? I'm guessing no because there's no hardware support for flash, only h.264, which means Hulu is out of the question.
    Thoughts?
  • Phil Harris
    Has anyone got the kernel panic (says is can't find the ACPI Driver) at boot and figured out what's broken???

    TIA

    PAH
  • tips
    A very interesting website. I plan to access it again when I get home and have more time. There is much I need to look into here.
  • guide
    Hello, I just wanted to say you have a very informative site which really made me think, Thanks ! A site with a wealth of info.!...thanks very much! Have a nice Day!!
  • p1erre
    Hi.
    I'm looking for a cheap (but pretty cool) mac, and i found ATV.
    If i install osx on atv: can it show 1920x1080, does hdmi work and, does toslink work?
    I want to use it for internet, listening music, watch movies (also mkv 720p&1080p) and sync my ipod?
    does everything work?
    please mail me: buzinezz@gmx.de
    thanks

    ps: sorry for my bad english ;(
  • Heavenforbid14
    Hey, i want to use my appletv as a DVR by using the eyetv product, and first i must run mac os X on my appletv, but i got the small-harddrive-sized one, and i want to upgrade it. If i got an empty harddrive, and installed mac os X on it, would it boot up, or do i have to do it with this kernel thing? I am sorry if i sound naive, i am new at hacking. Please email me if you can help: Heavenforbid14@gmail.com
  • i did this hack and running OSX but its buggy and can’t get sound working…im really sad now.
  • Tony
  • Paul
    Hi,

    Is it possible to install the full blown Mac OS X and still run the original ATV software...perhaps either bootcamping it or launching the ATV original software from within OS X?

    Regards,
    Paul.
  • online roulette
  • Devin
    Is there a newer release of the kernel thats not from 2007? I say this because I cannot get the Audio device to show up on my Apple TV. Everything else works perfectly. I should note, i just recently bought my Apple TV but it still has a realtek chipset.
  • Ery
    Hi, I need help on how to install Mac OS X on USB External Drive that I have, I am having trouble with it. Thanks guys!
  • Spyros Papantoniou
    Step 8 says: ) Replace it with the customised mach_kernel that you’ll find on Hackint0sh.org.

    How was this mach_kernel made? I need it for 10.5.5, as I dont have 10.4.
    Is this a recompilation of some source? If yes, how make it?
    many thanks
    spyros
  • iplaydog
    I need help i get the kernel panic again, and i did every step using 10.4.8 on apple tv 1.1.

    I need some help or direction. Please
  • iplaydog
    What about OS X 10.4.10 AppleTV 2.2, please.
  • hansdampf
    Hi I was wondering how fast does the appleTV boot up after OSx install? Does it have a working "standby" mode? How does it cope with h.264 videos in HD?
  • JL
    Yes! EyeTv works on my AppleTV (10.4.8)
  • Nathan
    After OSX installation, would this work with eyeTV?
  • monty
    Yeah I've got the same problem. It hasn't overheated yet, but its running pretty hot and I wouldn't like to leave it unsupervised.

    Had to install a kext to get the wired ethernet working, but it's all good now!
  • KnowITAll
    MichaelStanford-

    I don't know if my hacked ATV with 10.4.11 runs the fan either, but I have never had a problem with overheating.

    Why don't you try completely removing the rubber cover, remove the excess glue, and attach some rubber feet to raise it up off the floor. That should help...
  • MichaelStanford
    I have a question, but first, for those who need some reassurance before they embark on this hack, here is how these instructions worked for me, with a couple of tweaks.

    1. I tried first with OS X 10.5, and it didn't boot, though error messages appeared on the screen. Since the patch was done for 10.4 I didn't try any more with 10.5 and just went ahead and did a new install of 10.4. This booted OK.
    2. I got a error when I tried to bless the patch. This was because I had a typo in the bless command line (duh).
    3. I got an error when I tried to bless the patch. This was because I didn't have permission. When I typed the word "sudo" in front of the bless command ("sudo bless...") it asked me for my password and worked fine.
    4. Like other people on this thread, it didn't show the top and bottom of the screen. This is a problem, because you have to guess where things are on the menu bar. I didn't try to fix it because I went ahead and set up Remote Terminal and used my MacBook to control the Apple TV.
    5. It took me some trial and error to get Screen Sharing working. The magic combination for me was to enable all the sharing checkboxes for my user name in the System Preferences on the Apple TV, then wait until it showed up in the Finder on my MacBook, then click on it in the left panel of Finder. It shows "Connected as Guest," but you click on "Connect As" over on the right to connect as someone with permission. Then you click on "Share Screen..."
    6. I was blown away that it connected flawlessly to my WLAN without any hassle beyond typing in the WPA key. Same with USB.
    7. I plugged in an external USB drive to use as a network Time Machine Storage volume. It works, amazingly, but it's unusably slow. Don't even bother.
    8. After putting it all back together it dies after 10 minutes of running. This is due to overheating - I put a bag of ice on top of it and it worked indefinitely. Clearly not a long term solution. Investigating further, the fan doesn't run.

    So here's my question: do I have a faulty system (bad fan), or is this a problem with the operating system not knowing how to activate the fan? If your Apple TV fan is working under generic OS X, please let me know here.

    Thanks.
  • Brett
    Tried doing this, but everything I do yields the same result where it pops up "Before you begin... There is no keyboard connected to your computer. Please connect your keyboard" and no matter what I plug into the usb port it wont find it. One keyboard the lights flashed very fast on then back off, and no response. Any ideas? Im thinking its a usb driver issue
  • Is it safe to upgrade from 10.4.8 to 10.4.11?

    would be a great help thanks
  • to sort out those rather small missing bars of display above and below (which some ladies still say size matters) try and use an auto detect setting on your screen (similar to the auto tune wizards on lcd monitors... work'd fine for me :P if one doesnt exist, try the alternative of just-fit settings (adjust through 4:3 - 16:9 - just fit and so on (like on dVd player display options for example to understand). hope it helps
  • Will
    I see that someone was able to fix the audio break issue? Does someone have a link to the instructions on how to fix it?
  • Chris
    Hello from Germany!

    I've installed Mac OS X 10.4.8 on the 40GB HDD, copied the kernel to root and the boot.efi.
    The ATV boots perfect, but the LED is always blinking yellow.

    Is this normal?

    Furthermore there is 1cm missing on the top and 1cm on the bottom. How can I see the whole picture?

    Thx a lot
  • Tony
    @ Derek:

    A bluetooth dongle does the trick. I use it myself with apple's bluetooth keyboard and mouse. It rocks!
  • Derek Young
    Any chance a bluetooth card would work with this hack too? I would love to have a wireless keyboard and mouse with this.
  • Scott
    I am considering doing this so that I can connect a "magicjack" phone system to the USB port. This allows a mac or a pc to manage a VOIP phone system in your house. Does anyone think this might be possible? This would be a lot cheaper than a mac mini.
  • Kennedy
    Hello fellas I am new at this computer hacking business and I am having a little trouble with the whole thing so if anyone can give me a play by play on what the hell to do it would be dearly appreciated! thanks
  • mike
    ok, Audio works now, thx to KnowItAll

    does anybody knows how to enable the FrontRow?
    is there a patch to activate the IR reciever?
  • mike
    @ KnowItAll

    i have one problem now:
    i've downloaded the AppleHDA patcher (v1.16) but when i start it, i see this text:
    "Please drag and drop your linux codec dump into the AppleHDA Patcher icon"

    where can i get the linux codec??

    thanks
  • weasel
    Where is KnowITALL’s guide? LINK PLEASE
  • Tony
    OK, I got audio to work following KnowITALL's guide. The instructions are however not very precise:

    - Audio only works out of the analog output, so if you are using the HDMI for video you will need external speakers. If you are using the component video than you can use the TV's speaker.

    - In System Settings - Audio, select "Internal Speakers" (built-in speaker)

    It took me a while, but it's working now, thank you KnowITALL for the codec and instructions.
  • Mike
    i won't go back, but where can i find the original Apple TV kernel?
    thanks for reply
  • Angel
    I have a problem does not work the network card ... the wireless works perfectly but the ethernet no ... help
  • if you want to Mount Diskimages, you must copy the file /System/Library/CoreServices/DiskImagemounter.app from your backup in the apple tv Hard drive, then it works.
  • Wonderfull
    it works, i'm so happy with my hacked atv Thanks a lot
  • ponakka
    I've ordered my atv and i was thinking of osx. However lack of audio is a big no no. Have anyone tried to find out how original appletv install works with audio. I believe that best solution to find correct codec would lie in original files. And i belive that its pointless to test any analog ports for audio before os finds audio out device. Anyways there has been great progress. I'll keep lurking and hope for gfx and sound all the best.
  • Tony
    I had the same problem, the solution for me was:

    11) Delete all the Nvidia kexts (all beginning with NVD, there should be 5) from the target drive (in /System/Library/Extensions).

    and also all kexts beginning with "Ge", remember to clear the kext caches (rm Extensions.* inside Library). If you have enabled remote access (SSH) then you can ssh to your ATV even with the black screen, and remove the files.

    I am running OSX on an external USB drive, my only problem is that the plasma TV is not displaying the entire image (overscan), I think is more a lack of features on the TV than the OSX install, and no sound. Tried the Azalia but nothing. I need to know exactly which codec dump to be used with the HDA patcher, anybody?

    check this:

    http://www.hackint0sh.org/forum/showthread.php?...
  • I just went through these steps and when i connect the new harddisk in the apple tv and boot, i can see the apple logo but after that the screen goes black. My apple tv is connected via HDMI to my 50" plasma tv. What could it be?

    Thx.
  • Gamood
    I'm a average newbie.
    I must admit that I consider the here presented work as simply fantastic. Second life for a nice hardware project from apple too much limited by software restrictions (marketing convention no doubt)
    As a joke, I would ask this question:
    Is it possible to install Mac os X or whatever os directly in the remote control so that there would be no need for power cable plugg in and so on?
    Hey stop it here this was a joke.
    Hope you appreciate and thanks again for the effort done that make me eager to benefit from by buying an apple TV with the remote of course.
  • Sal
    Update

    I just tried the RCA cables in the audio port, no go. Any help would be greatly appreciated. Just can't seem to get this sound to work at all.
  • Sal
    KnowITAll Can you send me the other audio codecs, so I can make an attempt to get this audio working on my Apple TV? I tried exactly what you said with the AzaliaAudio package and then using that one codec you posted with it with the AppleHDAPatcher, and it didn't work. I get no audio what-so-ever, but before I used the codec patch, I had no audio in/out in the System Preferences, now I actually have them listed. But still I'm getting no sound.

    Currently I'm trying to get sound using a HDMI cable into the Apple TV.

    Should I be use RCA audio ports ?
  • Knowitall
    Sanjeev-
    Answers:
    1. Yes, however the drive is a laptop size 2.5"
    2. BootCamp is not gonna run....ever
    3. WinXP is not gonna run....ever
    4 + 5: Not quite sure what you are asking...

    Bottom line: Buy a Mac Mini...
  • Sanjeev
    Is it possible to (an absolute newbie...was contemplating on getting an Imac Mini ...thankfully i stumbled onto this site)

    1. Upgrade the HDD of AppleTV to Say 500 Gigs Server grade
    2. Then hack AppleTV and Install Boot Camp OSX ,
    3. Dual boot into OSX & XP
    4.Watch movies form the pre installed AppleTV interface
    (which i presume is Front Row ......Frankensteining it into a Triple boot Beast)
    5.Connect it directly to Time Capsule bypassing the need for any other Itunes Library and/or slap a Wireless Airport to it and connect a DSL Modem(eliminating the need of Time capsule for WIFI Internet access)

    Or Just SimpliFLY my life & buy a Mac Mini And do all of the above to it

    (am I asking for too much!!!!)

    >>>>I will take my chances for God stopped keeping score>>>>>>>
  • guest
    hi!

    A have a MacBookAir, but can't get the OS 10.4 installer dvd to install the os on the ATV's harddisc connected to my air. Is sas it is not compatible with my Air... Any suggestions?
    Ther are 2 partitions on the drive (OSBoot and OSMedia) what to do with them? Where to install the OS?
    Thanks.
  • Kareem
    for improving performance try Lingon 1.21 and Onyx

    Lingon can enable/disable service that run on your Mac

    http://lingon.sourceforge.net/

    Onyx can change certain settings for finder, dashboard, dock and run various clean up scripts

    http://www.titanium.free.fr/pgs2/english/downlo...
  • Kareem
    I got Mac OS X 10.4.8 Server up just now, I was using the "Void Warranty" hack.

    Anyone know how to setup an ad hoc network at boot?

    /usr/bin/networksetup can only connect to an ap, not create one

    any ideas?
  • Chris
    Any suggestions on how to do a minimal system load on startup? Lack of memory is killing me! I really just use the box to run dashboard widgets, but I have to restart frequently because of memory (probably some poorly written widgets with memory leaks). If I could turn off unused OS X features, it would help, but I'm not an OS X expert. Any suggestions would be helpful.

    What we really need is to resurrect that old RAM DOUBLER utility. That would help overcome the RAM limitations of AppleTV!
  • enorym
    running 10.4.11 w/no sound any suggestions?
  • gomi no sensei
    Chris, does sound work for you in 10.4.11? If so, did you have to do anything special to make it work?
  • Fabian
    Hey!!!
    I have a question: Can mac os Tiger and Take 2 run side by side via bootcamp??? if this is true , you will choose at the start if you use the apple tv as a mac or as an apple tv.

    Greetings from Germany Fabian
    :Sorry for my bad English:
  • KnowITAll
    I already posted the solution to the DMG problem...
  • Chris
    I wouldn't consider myself a hacker by any means, but I was able to load 10.4.11 pretty easily thanks to all your help here. The only thing that threw me off was that I renamed my hard drive. Even with changing the bless command to the new hard drive name, it still didn't work. Changed it back to OSBoot, and it worked fine. I have the box running smoothly with a usb hub, bluetooth, and a usb to serial adapter.

    I have an issue with mounting DMG files - it won't do it. Any suggestions? I've already tried dumping the two files and updating using the 10.4.11 combo update, but still doesn't work.
  • Omar
    Hello!

    Just installed the OS X on my ATV succesful, but there is a problem, it can´t play audio, it doesn´t recognize the hardware.

    Can somebody help me? Thanks :-)
blog comments powered by Disqus