December 3, 2023

Install SSH with a Take 2 Patchstick for the AppleTV
Comments

Posted February 22, 2008 at 6:40pm · 42 comments · Add Comment
Matt Browne
Matt Browne - September 18, 2008 at 6:40pm
The Apple TV 1.1 Updater link no longer works. Does anyone know where I can find this?
Cousincocaine
Cousincocaine - June 9, 2008 at 9:40am
chmod 755 /Files/boot.efi is wrong (somewere around step 20) and needs to be chmod 755 Files/boot.efi or chmod 755 ~/Desktop/PatchStick/Files/boot.efi nice tutorial. cc
crazyastro
crazyastro - March 12, 2008 at 12:55pm
There is an error with the steps outlined above
I had no problem creating the patchstick on a 4GB USB drive following these instructions. However, each time there was a kernel panic before it would install SSH, so I could never get into the ATV. For me, I had to use the instructions at atv4windows, to get the patchstick working. but the files are the same, so there is probably a small error in the scripts or something. after I got SSH installed, it was easy to get all the codecs installed.
I am currently uploading 720p movies at podtropolis.com if you want to play 720p resolution movies on your Take 2 unit.
jupil
jupil - March 12, 2008 at 12:46pm
hmmm, great tutorial but it doesn't work here. My tv is almost 1 year and i made the patchstick with tiger shipped with my imac 1,5 year ago. I made my first on a 1Gb stick and got kernel panic's. I made then a new one on a 4 Gb stick and then i saw couple times apple logo and then i had to choose language, then asked to reboot, intro movie and then all was normal like before but no ssh enabled. What is the problem please i'm already busy tried 3 days. help greetzz Jupil
jam_uk
jam_uk - March 12, 2008 at 5:28am
iClarifed - my take as a newbie on the subject. If this helps with your new tutoiral: This morning I have successfully patched my ATV. Thanks to the Riddler for nudging me in the right direction. The Patchstick I created has worked. I used this tutorial on Leopard with Tiger install disk and ATV 2.0: https://www.iclarified.com/entry/index.php?enid=708 Note, step 22: chmod 755 /Files/boot.efi should be chmod 755 Files/boot.efi If you get any errors about cannot change directory then just reformat the USB drive a few times, make sure it's named correctly. Once the patchstick is created, TURN OFF your ATV, unplug and leave it for 5mins. Plug is the USB patchstick, switch on the ATV, wait to boot then press menu + '-'. It will now restart and boot from the patchsitck, you should see lines of code showing you the install. Mine at this point stopped mentioning the Kernel, I wasn't sure if it had completed or failed. After a few mins I then again pressed menu + '-' to restart the ATV and removed the USB patchsitck. The restart, repair, restore menu came up and I selected restart. The ATV rebooted as normal, then on the Mac I successfully connected via SSH using: ssh frontrow@AppleTV.local and password frontrow This is far as I have got so far. I hope that helps anyone with the same issue.
iClarified
iClarified - March 12, 2008 at 1:34am
I will be posting a new easier tutorial for creating a PatchStick tomorrow. Please stay tuned...
jam_uk
jam_uk - March 11, 2008 at 6:27pm
Sorry: then I CANT
jam_uk
jam_uk - March 11, 2008 at 6:26pm
I am having the same issues as: kakkalla Patch stick created, but installing, running the patcstick seems to be fruitless. Just goes to the restart restore screen, then I can connect via SSH. Same config also, Mac Book Pro on leopard, ATV 2.0. Any helpers?
Vikash
Vikash - March 9, 2008 at 9:48pm
I am having the same problem Adam has, please help out :(
kakkalla
kakkalla - March 8, 2008 at 10:12pm
I thought I would give this installation another go but got stuck at Step Twelve. The instructions state to use the OSX Tiger Install CD (note CD). However, I have the original disk that I purchased when Tiger was released. This is a DVD and this is where I run into problems. For example, the first file I have to find using Pacifist is AppleACPIPlatform.kext. The author also demonstrates this in one of the screenshots. However, this file does NOT exist on my DVD. What am I doing wrong? Any help would be greatly appreciated
kakkalla
kakkalla - March 8, 2008 at 12:49pm
Please excuse all my queries. Although computer literate to a great extent, unix, codes etc. are not my cup of tea. I have tried this three times now. I plug in the usb drive into the back of the atv. I hold down the menu and '-' buttons and the atv restarts from the usb stick (it has a large light and is 4GB) and within about 10 secs, I am asked to select the language. Then I am asked whether I want to restart, run diagnostics or restore. I select restart. One other time, I ran diagnostics and everything checked out fine. I had followed another tutorial where the atv display a whole bunch of line of code (but that method failed as well). Should I be seeing the same thing with this method? Now, I remove the usb stick, unplug the power cord to the atv, plug the power back in and the atv starts up again. However, I keep getting connect to host AppleTV.local port 22: Connection refused when I try to ssh into the atv. My questions, as a newbie are: 1. Should I insert the usb stick into the atv while the atv is powered or should I remove the power first and then insert it? 2. When I remove the usb stick, should I disconnect the power to the atv first and then unplug it or am I meant to unplug it while the atv is on, then disconnect the power, wait a while, and reconnect the power. 3. I carried out the instructions in this guide on a 2.16 GHz Inten Core Duo laptop running Verions 10.4.11. Does this matter? 4. I received my Apple TV just 3 days ago. Is there something new in the hardware that makes a difference? I even tried the guide shown at http://wiki.awkwardtv.org/wiki/Take2patch on the machine mentioned above and got the same results. So maybe it is the hardware? Any help would be greatly appreciated. Thanks in advance for any advice. By the way, the guide is absolutely brilliant. The instructions are clear and the diagrams are outstanding. I don't know who set this, but I am very impressed. Excellent work.
jlemus
jlemus - March 5, 2008 at 3:18pm
In the example the author of this article gave, there is a clear error in the script where it fails to add a gpt partition. If this does not succeed, you will not have a valid bootable usb drive. What I have encountered is that for whatever reason, the resource may be busy and executing a gpt add may fail. I simply just inserted a simple echo statement right before that instruction and that has proven to be enough of a delay to allow the resource to free up and do the gpt add successfully. I was able to get ssh working using the methods outlined in the awkward site with some simple modifications and not needing to use Pacifist by simply: adding some missing files to the patchstick-root and patchstick partition (/usr/bin/sed, and all ssh and gen-key files as well as those in libexec) , copying over the master.passwd file, making sure the files in installer.d directory where executable, and fixing the sed path of the ssh installer script. This got rid of many errors that showed up on the console, and I can easily ssh into ATV either using ssh -1 or just ssh frontrow@appetv.local. On execution of all the patch files, it has been widely reported that the system will panic. This is ok, since the patchstick has already done it's work and installed all files. Just hold down the menu and "-" keys together for a few secs and apple tv should reboot (but make sure you remove the usb dongle). Hope this helps.
crazyastro
crazyastro - March 4, 2008 at 9:25am
so after days of trying and re-trying to get the patchstick working thru my Mac (I tried this method under Leopard, then installed Tiger on an external drive using the original method on awkwardtv), nothing worked.

I finally tried the guide and video at atv4windows and it worked like a charm on the first try. i'm not sure where the disconnect is between these two methods, because they do exactly the same thing, with exactly the same files. *NOTE* I only used windows to make the patchstick. it got further than the Mac patchstick, installed ssh, which I was then able to connect to from my Mac.

copied the numerous codecs over and got AFP installed. easy, easy. the hard step is truly the patchstick. going to try to get the usb drive working tonight.

Adam
Adam - March 1, 2008 at 7:57pm
I plug in the patchstick and everything goes fine until I get this "failed load extension com.apple.driver.appleACPIPlatform. Anyone have a solution to this problem? Thanks
crazyastro
crazyastro - March 1, 2008 at 4:41pm
i tried connecting after every reboot and it still says connection refused.
i'm not sure where to go from here.
Jakob
Jakob - March 1, 2008 at 2:45pm
I had the same result as crazyastro, where it reads All Done, then does a kernel panic, after reboot, it asks to start again, run diagnostics or recreate. I chose start again. And HURRAY, SSH working. I now have everything running: Media Cloud, AFP, ATVFILES, WMV and much much more... THANX a million.... So just ignore the kernel panic and try to type following from within terminal: ssh -1 frontrow@AppleTV.local (If prompted for password type frontrow) If the above works SSH is enabled...
crazyastro
crazyastro - March 1, 2008 at 11:50am
i should have also mentioned after the ---AppleTV Patchstick--- section, there is a --- /stuff/installer.d/* --- section where it does says invalid destination port, but it also says No such file or directory , flushing the buffer cache, then... All Done!.... etc.....
crazyastro
crazyastro - March 1, 2008 at 11:42am
okay, so i went out and got a 4GB SanDisk Cruzer.

Used the larger patchstick download, followed all the instructions.

This time, the ATV booted from the patchstick, loaded drivers, ran through a bunch of things...

However, it looks like a kernel panic right at the end?

Here's the last few lines of what I can see on my screen, tho the left edge is cut off and I can't reposition the screen to see any more:

(After ---AppleTV Patchstick--- section, it says:) All Done! 1 exited (signal 0, exit 0)panic(cpu 0 caller 0x00338BC7): init died at last Exception:

gger called: trace, Format - Frame : Return Address (4 potential args on stack) ....this is followed by a bunch of numbers , the first line goes like this:

bbec8 : 0x128d1f (0x3c9474 0x6fbbeec 0x131ed4 0x0)....

the last 3 lines look like this: trace terminated-invalid frame pointer 0xbffffdf8 el version: in Kernel Version 8.8.1: Thu Mar 29 20:43:21 CEST 2007; senthex:/AppleTVSSE3/BUILD/obj/RELEASE_I386

any idea what my next steps should be? thanks for any help! :)

Seth
Seth - March 1, 2008 at 2:19am
I can confirm that this guide does not work with AppleTV Take 2s that were bought recently. At least, not on mine bought today, using two different methods. My patchstick successfully was created, but when using it, I had the Apple logo show up on screen twice, then it asked me for language settings. Finally, it asked me if I wanted to reset or restore. SSH did not work. Desperate for an updated tutorial.
Seth
Seth - February 29, 2008 at 11:04pm
Any news on how it'll work with a new AppleTV? I created the Patchstick as laid out and it didn't work. Any help would be greatly appreciated.
crazyastro
crazyastro - February 28, 2008 at 9:11pm
@iClarified.........

start size index contents 0 1 PMBR 1 1 Pri GPT header 2 32 Pri GPT table 34 6 40 163840 1 GPT part - 5265636F-7665-11AA-AA11-00306543ECAC 163880 1873840 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC 2037720 7 2037727 32 Sec GPT table 2037759 1 Sec GPT header

Jakob
Jakob - February 28, 2008 at 3:26am
I get to the ApplePatchstick part, after it has flushed something (after the part where It says "Please ignore...." It display done! And then it makes a kernel panic, it presents me with a lot of numbers but not with any file names. I'm a total newbie in the mac world, so please foregive my ignorance. What to do now? I'm using the tiger cd shipped with my macbook about a year ago. Could it be because I don't have the right version of Tiger? Thanx for a great guide, though it might needed to read what to do with the newly made patch stick. Insert stick into ATV, Press Menu + "-" for six seconds. It will reboot and install the patchstick.
Jakob
Jakob - February 28, 2008 at 3:21am
I get to the ApplePatchstick part, after it has flushed something (after the part where It says "Please ignore...." It display done! And then it makes a kernel panic, it presents me with a lot of numbers but not with any file names. I'm a total newbie in the mac world, so please foregive my ignorance. What to do now? I'm using the tiger cd shipped with my macbook about a year ago. Could it be because I don't have the right version of Tiger? Thanx for a great guide, though it might needed to read what to do with the newly made patch stick. Insert stick into ATV, Press Menu + "-" for six seconds. It will reboot and install the patchstick.
iClarified
iClarified - February 27, 2008 at 8:58pm
Pyroman32, support@iClarified.com
crazyastro, let me see your gpt -r show /dev/disk?

Everyone else, I bought a new AppleTV yesterday and tried my patchstick and I think I got a kernal panic which means that most likely a different version of the file is needed for the new AppleTVs. I will check and update the tutorial very soon...!
crazyastro
crazyastro - February 27, 2008 at 12:38am
after the patchstick is done, i unplug the appleTV, plug the usb stick into the back, and then power on the appleTV... is this correct? I did this, the apple logo blinked a couple times, and then it booted as normal with the new video animation and into the menu. tried to connect via ssh and nothing. i am using a 1st generation iPod shuffle - usb stick variety, would that be my problem? I used Disk Utility to format it as Mac OS X Journaled, and followed all the instructions, but, who knows. Thanks for the great guides, and any help!
Pyroman32
Pyroman32 - February 26, 2008 at 12:09pm
iClarified, is there an e-mail address that i can reach you at to get help with this? I follow all the steps listed in the tutorial and when it boots on appleTV it gets almost all the way through the install until com.apple.driver.AppleIntelCPUPowerManagement and then it has a kernel panic.
Ulrik
Ulrik - February 26, 2008 at 12:03pm
I've tried several times to follow you're tutorials on enabling an external USB HD but for some reasen the IOStorageFamily.kext, IOUSBFamily.kext and IOUSBMassStorageClass.kext are the wrong format. Will I have the same problem running this tutorial cause then I don't wanna try. Thanks for some great work by the way //Ulrik
iClarified
iClarified - February 26, 2008 at 11:31am
The reason we are doing this whole long procedure is because its illegal to distribute those files!
atv4windows
atv4windows - February 25, 2008 at 6:53am
See http://atv4windows.com for complete and ready-made AppleTV Take 2 Patchstick for Windows.
Beltzak
Beltzak - February 25, 2008 at 5:27am
Philipp So you are telling that you exec : # sudo ./createPatchstick /dev/disk5s2?¿ Instead of # sudo ./createPatchstick /dev/disk5 My disk is number 5 so I choose the whole disk. I will try this afternoon with the 1Gb files.
Pyroman32
Pyroman32 - February 25, 2008 at 12:14am
From the recovery cd that came with my mac book.
iClarified
iClarified - February 25, 2008 at 12:08am
Beltzak, use the smaller download. You only have 2 GPT parts... I think the larger download is for 4GB and up.
Pyroman32, your partitions are marked correctly. What version of Tiger did u take the files from?
Pyroman32
Pyroman32 - February 24, 2008 at 6:45pm
I am having the same problems when booting the patchstick on the appleTV that punintended and david are getting. I used the 1gig on my 2 gig usb stick. Here is my output for gpt -r show /dev/disk2 -- start size index contents 0 1 PMBR 1 1 Pri GPT header 2 32 Pri GPT table 34 6 40 163840 1 GPT part - 5265636F-7665-11AA-AA11-00306543ECAC 163880 3561392 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC 3725272 262151 3987423 32 Sec GPT table 3987455 1 Sec GPT header
Philipp
Philipp - February 24, 2008 at 6:07pm
Got it! works like a charme :) problem was that I chose the wrong volume in the terminal! chose the one with the matching name I gave to in the harddrive partitioning application before! don't choose partitions in the Terminal that end with an "s1" for example ("s2", etc)! thanx again to iClarified! Tried on an 512 MB USB Stick with the 4GB file :)
Philipp
Philipp - February 24, 2008 at 5:41pm
guide is fine, but maybe check again, followed all instructions twice, but the patchstick doesn't boot up on the AppleTV, just get the language selection screen for the error analysis screen [reboot / analyse / etc]! Machine: PowerBook G4 PPC (PPC or Intel make no difference for me since there is no data you copy from your machine itself) Here is my terminal output for gpt -r show /dev/disk1 start size index contents 0 1 PMBR 1 1 Pri GPT header 2 32 Pri GPT table 34 6 40 163840 1 GPT part - 48465300-0000-11AA-AA11-00306543ECAC 163880 859056 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC 1022936 6 1022942 32 Sec GPT table 1022974 1 Sec GPT header
Beltzak
Beltzak - February 24, 2008 at 3:43pm
I'm using a 2GB stick with the 4GB Patchstick I hope this is what you want. Thanks for all man ;) gpt -r show /dev/disk7 start size index contents 0 1 PMBR 1 1 Pri GPT header 2 32 Pri GPT table 34 6 40 163840 1 GPT part - 48465300-0000-11AA-AA11-00306543ECAC 163880 3614128 2 GPT part - 5265636F-7665-11AA-AA11-00306543ECAC 3778008 262151 4040159 32 Sec GPT table 4040191 1 Sec GPT header
iClarified
iClarified - February 24, 2008 at 2:14pm
Hi guys, I have now double checked this on 512mb stick and it works great. So its working on 4GB and 512MB. The reason you might have trouble is that some USB sticks when formatted get a EFI partition. Usually this is only on larger drives. That is why I have two different downloads.

david, please do a gpt -r show /dev/disk? and post it for me to see.
Beltzak, same please.
david, do u reach --- AppleTV Patchstick --- ?
Espen, same please
Beltzak
Beltzak - February 23, 2008 at 6:44pm
Not working. Why is it that the guide stops once the patchstick is done. Do I have to plug it into my appleTV take 2.0 and then what? Nothing happens or at least that is what I see. No ssh, just restore settings, restart or diagnosis ;(
punintended
punintended - February 23, 2008 at 6:31pm
Sadly, I am also getting a kernel panic - load_from_memory() failed for module com.apple.iokit.IOStorageFamily - and the same for com.apple.driver.AppleIntelCPUPowerManagement
david
david - February 23, 2008 at 1:52pm
sadly i get a kernel panic. it moans about not finding /stuff/installer.d something....
You must login or register to add a comment...
Add Comment
Would you like to be notified when someone replies or adds a new comment?
Yes (All Threads)
Yes (This Thread Only)
No