You no longer need to add this script to a Beta 11 download. I have uploaded Beta 12 which supports the 2.4 update and will take care of everything for you. Issue resolved. #333

Closed
GoogleCodeExporter opened this Issue Mar 13, 2015 · 37 comments

Comments

Projects
None yet
1 participant
Hey,

It seems early as 2.4 has just come out, so I didn't expect an update just 
yet, considering there is no official update for 2.3.1. However, for 
anyone wanting a patchstick for 2.4, please download the Beta 11 for 
Windows and use this batch script:

@ECHO OFF
ECHO Patchstick for 2.4
IF EXIST boot.efi goto EFIEXISTS
IF EXIST 2Z694-5660-029.dmg goto DMGEXISTS
ECHO.** Fetching Apple r2.4 update DMG
tools\wget\wget.exe http://mesu.apple.com/data/OS/061-
6242.20090624.Aq20P/2Z694-5660-029.dmg
IF errorlevel 1 GOTO ERROR
:DMGEXISTS
IF EXIST 2.hfs goto HFSEXISTS
tools\7-zip\7z.exe e 2Z694-5660-029.dmg 2.hfs
IF errorlevel 1 GOTO ERROR
:HFSEXISTS
IF EXIST boot.efi goto EFIEXISTS
tools\7-zip\7z.exe e 2.hfs OSBoot\System\Library\CoreServices\boot.efi
IF errorlevel 1 GOTO ERROR
:EFIEXISTS
IF EXIST SoftwareMenu.tar.gz goto SOFTWAREMENUEXISTS
tools\wget\wget.exe 
http://iscripts.googlecode.com/files/SoftwareMenu.tar.gz
IF errorlevel 1 GOTO ERROR
:SOFTWAREMENUEXISTS
IF EXIST atv-xbmc-ssh.img goto INJECT
tools\7-zip\7z.exe e atv-xbmc-ssh.7z
IF errorlevel 1 GOTO ERROR
:INJECT
tools\injector.exe --infile=boot.efi --baseseek=2437120 --basefile=atv-
xbmc-ssh.img
IF errorlevel 1 GOTO ERROR
:USBIMAGE_DOWNLOAD
IF EXIST usbit.zip goto USBIMAGE_UNZIP
ECHO.
ECHO.** Fetching USB Image Tool
ECHO.
tools\wget\wget.exe http://www.alexpage.de/download/usbit/usbit.zip
IF errorlevel 1 GOTO ERROR
:USBIMAGE_UNZIP
IF EXIST "USB Image Tool.exe" goto FINAL_INFO
tools\7-zip\7z.exe e usbit.zip
IF errorlevel 1 GOTO ERROR
GOTO FINAL_INFO
:ERROR
ECHO.**********************************************************************
ECHO.** Some sort of error has occured, aborting operation               **
GOTO COMPLETE

:FINAL_INFO
ECHO You're done, you should now restore this image to your PC
:COMPLETE

Original issue reported on code.google.com by Sam.Nazarko on 25 Jun 2009 at 4:42

Attachments:

I have also added this as an attachment to stop line breaks from messing you up 
:)

Original comment by Sam.Nazarko on 25 Jun 2009 at 4:43

this does not do anything for me...But, I am not sure where and when to use the 
script.

Original comment by serg...@yana-online.com on 27 Jun 2009 at 8:41

working in all ways. thx a lot Sam

PS:
1. download http://atvusb-creator.googlecode.com/files/atv-win-1.0.b11.zip & 
unpack
2. download mk-atv-xbmc-ssh(2-4).bat from this thread
3. run mk-atv-xbmc-ssh(2-4).bat (it makes iso)
4. run USB Image Tool (in zip file), but "Run as administrator"
5. select in usb image tool device mod, NOT volume mode !!! very important
6. make usb stick & put in appletv (already updated to 2.4)
7. restart in restore mode (hold MENU and -), wait for restart
8. appletv pwned :))

Original comment by probl...@gmail.com on 29 Jun 2009 at 6:36

Thank you, did not know to press Menu on Power up...

Original comment by serg...@yana-online.com on 29 Jun 2009 at 9:38

Glad it worked, worth noting that while MENU and - works it is best to start 
the 
patching process by turning it off, putting the USB in and turning it on.

Original comment by Sam.Nazarko on 30 Jun 2009 at 6:43

Sam,
just needed to say thanx a million. My 2.3 ATV upgraded itself to 2.4, just 
after
recovering from a blackout, here in Bangalore. Followed your instructions and 
XBMC is
back.
Back to my movie!

Original comment by jiri.jan...@gmail.com on 30 Jun 2009 at 6:43

Hi Guys, this worked perfectly but a couple of oddities worth mentioning:

Update to 2.4 - no probs
Jailbreak - no probs
Update launcher and install XBMC - no probs
Update Software Menu to add "Tweaks" in preparation to install Rowmote (for my
iPhone) and then restart finder - bowel prolapse...

If you restart finder from Software Menu the ATV restarts and looks Appleised 
again -
no Jailbreak...

Force reboot the ATV (MENU & -) go through the motions and restart - all 
Jailbreak
data appears again.

From here I went back into Software Menu where I can see "Tweaks" and installed
Rowmote and then toggled it on. Once again restarted finder from Software Menu 
and
appeared to lose my Jailbreak data. Force reboot and voila, Jailbreak data back 
again.

Anyone care to try and replicate? Providing I don't restart from Finder 
everything
appears to be OK however there is the odd time this is required. 

My next step is to restore my ATV from scratch (wiping everything), jailbreak 
and
then sync all my data again :-(

FYI.

Cheers also to Sam & Problem9 for a jailbreaking solution on 2.4 - thumbs up...

Original comment by glenya...@hotmail.com on 3 Jul 2009 at 9:34

Is there a way to do all of this from a mac?

Original comment by jawb...@gmail.com on 6 Jul 2009 at 7:06

my atv used to be reliable, boxee was a bit of a sledgehammer to crack a nut 
but it was welcomed, but these 
days its a major hassle to update anything, bugs galore and movies I download 
in h264 playback jerky.
This is hardly the media centre we have been looking for is it ?

Original comment by myster...@gmail.com on 7 Jul 2009 at 3:01

that .bat file is if you have windows. what about mac users?

Original comment by evan.mccall on 9 Jul 2009 at 2:55

Thx m8 - works superb.....

Original comment by Tonnyjo...@gmail.com on 9 Jul 2009 at 6:25

when attempting to run the usb image tool (after right clicking file to "Run 
As") I get a  
application error.   The application failed to initialize properly (0xc0000135) 
Click Ok to 
terminate application.

Original comment by evan.mccall on 10 Jul 2009 at 2:21

forget the last comment. i though it may have been something with vmware but I 
just 
needed to install .net framework updates.

Original comment by evan.mccall on 10 Jul 2009 at 3:13

i performed all the steps mentioned in comment 3 (i think) and unfortunately my 
atv 
stills boots to the recovery menu....

Original comment by evan.mccall on 10 Jul 2009 at 3:18

i also started a thread on the boxee forum to look for help... 
http://forum.boxee.tv/showthread.php?t=10426

Original comment by evan.mccall on 10 Jul 2009 at 4:33

I'm trying this out for the first time and just thought I would let you know 
that the 
USB Image Tool is not in the zip file.  I downloaded it manually though and am 
trying 
it out in the tools directory in the zip file (just going off reading your 
code.)

Original comment by zkd...@gmail.com on 11 Jul 2009 at 4:38

From Windows XP, I can download the current version of patchstick creator. When
running either .bat file, I get a download error message. So....I turned on my 
MB
Pro, and downloaded b1o. When trying to create new patch stick, it was stuck on 
the
download message. I had to manually download the ATV update dmg. (i got it from 
here:
http://www.trejan.com/projects/appletv/). Once i did that I was golden.... I 
was able
to create the patchstick, installed in my ATV no problems - even updated XBMC, 
Boxee,
and Launcher.


Original comment by shawn.h...@gmail.com on 11 Jul 2009 at 6:43

shawn.... did you leave the default options turned on for the patch stick?  
just curious 
because i would love to not have to do a factory restore to stop mine from 
booting to 
the recovery menu.

Original comment by evan.mccall on 11 Jul 2009 at 1:12

Awesome!  I just finished repatching my tv.  I downloaded the new disk image 
from 

http://mesu.apple.com/data/OS/061-6242.20090624.Aq20P/2Z694-5660-029.dmg

then placed that file in the folder ~\atvusb-creator-1.0.b10\downloads\
and ran atvusb-creator with the "XBMC/Boxee for Mac" option selected.

tv patched just fine.  Just needed to update some of the software, but I was
probably overdue for that anyway.

I really want to thank the developers of atvusb-creator.  Making this so easy, 
and
having the ability to run it from my Yosemite G3.

Original comment by scooter....@gmail.com on 11 Jul 2009 at 2:49

Regarding Mac support, you'll have to check with Davilla. I wrote this script 
originally for myself so I could upgrade to 2.4 but I decided to share it with 
everyone, however, I am not a developer for this project so I designed this 
with the 
thought of it being superceded by Beta 12 shortly.


Original comment by Sam.Nazarko on 11 Jul 2009 at 4:01

Just an update on this: I've taken a look at the Mac version and can confirm 
that it 
works. Rather than select Download DMG you should manually download it at: 
http://mesu.apple.com/data/OS/061-6242.20090624.Aq20P/2Z694-5660-029.dmg and 
select 
it by clicking Choose DMG in atvusb.


Original comment by Sam.Nazarko on 13 Jul 2009 at 4:18

Hey there,

I have successfully updated to 2.4 with a working patchstick.

My process was Factory Restore -> v1.1
Apple official upgrade to 2.4
Patchstick on Mac OS X with v10b created for 2.4
Manual installation of ATVFiles 1.2.1 and Perian 1.1.3.

Two issues (major)

* No sound from .mkv files (never had this before) + random crashing when 
trying to 
play some .mkv
* Whenever I try and rewind the ATV locks up, reboots and takes 1 min to 
refresh 
(very painful!!

Does anyone have a fix for these? Pleaes help me sharma911@hotmail.com

Also, when I was on 2.2, I NEVER had anyone these problems. *Wishes I could go 
back 
to the way things were*

Original comment by Viv3k.A...@gmail.com on 13 Jul 2009 at 11:33

ok so i went to the apple store and got it restored back to factory through 
there drive 
and now after upgrading to 2.4 i patched it and it works fine....

Original comment by evan.mccall on 14 Jul 2009 at 1:51

Glad it worked out in the end Evan, it is worth noting that it is impossible to 
brick your ATV by patchsticking, because you can always connect to a PC and 
restore 
from an image.

@Viv3k.Arya: This is a problem with them applications - you should check 
Awkward TV 
Wiki for full compatibility list. While I'm sure the devs will get there, the 
reason 
you say "when I was on 2.2, I NEVER had anyone these problems", is because most 
devs 
recommend 2.2 (atleast for ATV Files) as the most stable ATV fw version.

Hope this enlightens a few people.


Original comment by Sam.Nazarko on 14 Jul 2009 at 8:19

[deleted comment]
thanks Sam for your great job, but after patching all working fine except AUDIO!
no more audio in xbmc at all, and not only, the same also for film trailers or
something else.. I red something in awkTV but it is not so clear,

someone has the same problems? any solution?

thanks again

Original comment by gab...@email.it on 15 Jul 2009 at 8:52

Sam. Thanks for posting the above .bat file for ATV 2.4. When I download the 
new 
file (your file), do I place it in the same spot as the original .bat file from 
Beta 
11? Do I keep the old one in there, or do I delete the old one and replace with 
the 
one you posted? Thanks

Original comment by dzmcma...@gmail.com on 16 Jul 2009 at 3:51

UPDATE: reboot 2 times and now working fine!
thanks Sam for your great scripting job :)

see ya!

Gab

Original comment by gab...@email.it on 17 Jul 2009 at 9:40

Yes, the batch file replaces the old one meaning the path *MUST* be the same. 
For 
any audio issues etc try a reboot after installation.

Original comment by Sam.Nazarko on 17 Jul 2009 at 6:35

Worked perfect - thanks!

Original comment by mjeac...@gmail.com on 24 Jul 2009 at 4:25

When running the batch file, I got past the DMG download (100%) 

Then, right after there was a message about Extracting the HFS partition and 
how it
was going to be a lengthy process of 5-10 minutes, I got this...

Error:
cannot find archive
***********************
Some sort of error has occured, aborting operation.


Anya ideas?

Original comment by kgor...@gmail.com on 27 Jul 2009 at 8:39

Hey kgordee,

Why don't you delete the folder you were worknig in and redownload the batch 
script 
and a copy of Beta 11 from the Downloads page.

Then run the batch script in the same place as xbmc-atv-ssh.bat. 

Original comment by Sam.Nazarko on 31 Jul 2009 at 3:36

Some problems in running this. 

1) I downloaded the script above mk-atv-xbmc-ssh(2-4).bat 
2) I downloaded atv-win-1.0.b11 and unzipped 
3) I located the file mk-atv-xbmc-ssh.bat in the extracted folder 
atv-win-1.0.b11
4) I modified the link inside mk-atv-xbmc-ssh.bat 
from http://mesu.apple.com/data/OS/061-5651.20081119.32VtA/2Z694-5573-24.dmg
to http://mesu.apple.com/data/OS/061-6242.20090624.Aq20P/2Z694-5660-029.dmg
If I do not do that I get an error.
5) I moved the script mk-atv-xbmc-ssh(2-4).bat in the extracted folder atv-win-
1.0.b11. If I do not do that and run it from another folder I get the error 
that the 
file is not recognized as an internal oe external command, operable program or 
batch 
file
6) I then run mk-atv-xbmc-ssh(2-4).bat 
7) The file 2Z694-5660-029.dmg is created with no problem, but then the batch 
stops 
after it ways ** Extracting HFS partition... and states Error: cannot find 
archive, 
some sort of error has occurred, aborting operation.

What Am i doing wrong?

Original comment by claudio....@gmail.com on 5 Aug 2009 at 9:58

Solved! It needed a bit of more hacking of the bat file and the new 
naming...fingers 
crossed

Original comment by claudio....@gmail.com on 5 Aug 2009 at 11:46

claudio.catania,

You do not have to modify the reference to the update file, because I have done 
that 
in the superseded batch script. The idea is you do not use mk-atv-xbmc-ssh.bat 
but 
rather use mk-atv-xbmc-ssh(2-4).bat which already is an updated version. 
Therefore 
all you would need to do is: Download B11, Copy BAT file into same directory, 
run it.

Original comment by Sam.Nazarko on 8 Aug 2009 at 2:18

[deleted comment]

Original comment by Sam.Nazarko on 11 Aug 2009 at 6:14

  • Changed title: You no longer need to add this script to a Beta 11 download. I have uploaded Beta 12 which supports the 2.4 update and will take care of everything for you. Issue resolved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment