So I've actually registered just to let you know that I have de-bricked my ATV after installing the BrickTV 2.4 Patchstick, but it wasn't very easy.
Starting note : I consider myself not Linux- or Mac-knowledgeable - all I do is follow other people's instructions. In this case, it's mostly a huge thanks to
davilla, whose instructions I've repurposed from :
http://code.google.com/p/atv-bootloa...inuxUSBPenBoot http://code.google.com/p/atv-bootloader/wiki/ATVBackup and
http://code.google.com/p/atv-bootloa...tEFIExtraction
plus a guide from AwkwardTV :
http://wiki.awkwardtv.org/wiki/Patchstick/Leopard
This is also based on what I remember doing, with all the trial and error taken out. It may not be 100% accurate but should give you enough to get things back to normal.
Available hardware : I have a Vista PC which also has a Mac OSX disk running Leopard. I don't have access to the Tiger install CDs.
To follow these instructions you'll need an OSX machine as well, but this probably isn't absolutely necessary - it's just the way I did it. Please note also that your ATV will be a clean 2.0.2 install at the end of this process, and that's what will be on the Restore partition too. If you want 1.0, 1.1 or whatever else on your Restore partition, you're on your own. You will also lose everything (music, movies etc.) stored on your ATV. Finally, it will also be in a vanilla state, ie. not hacked in any way.
Please note that I take no responsibility for any damage you may cause your Mac, ATV, neighbours, pets etc.
1. Get a USB stick. I used a 1GB one, but 512MB would be fine.
2. Boot into OSX.
3. Go to
http://mesu.apple.com/data/OS/061-46...694-5428-3.dmg and download the ATV 2.0.2 update.
4. Create a directory on your Desktop. Call it Patch (or whatever).
5. Open the ATV 2.0.2 dmg you downloaded in step 3. This should mount as OSBoot.
6. Once it's mounted, open it and copy the boot.efi file from /System/Library/CoreServices/boot.efi into the Patch directory on your desktop.
7. Download
http://atv-bootloader.googlecode.com...ery-0.6.tar.gz
8. Extract that into the Patch directory on your desktop.
9. If you haven't already, format your USB stick as HFS+ Journalled in DiskUtil. Call it something like Patchstick.
10. Make a directory on the USB stick called "recovery."
11. Copy the following files from the ATV 2.0.2 update to the recovery directory on the USB stick :
Code:
mach_kernel.prelink
/System/Library/CoreServices/boot.efi
/System/Library/CoreServices/BootLogo.png
/System/Library/CoreServices/com.apple.Boot.plist
12. In your Patch directory on your Desktop, edit com.apple.Boot.plist and change the following line
Code:
<string>atv-boot=auto video=vesafb</string>
to
Code:
<string>atv-boot=patchstick video=vesafb</string>
13. Copy 2Z694-5428-3.dmg (the ATV 2.0.2 update file) into the recovery directory on your USB stick. Rename it OS.dmg.
14. On your USB stick in the recovery directory, edit com.apple.Boot.plist and change the "Boot Logo" and "Kernel Flags" strings as per below.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Background Color</key>
<integer>0</integer>
<key>Boot Fail Logo</key>
<string></string>
<key>Boot Logo</key>
<string>BootLogo.png</string>
<key>Kernel</key>
<string>mach_kernel</string>
<key>Kernel Cache</key>
<string>mach_kernel.prelink</string>
<key>Kernel Flags</key>
<string>rp=file:///OS.dmg</string>
</dict>
</plist> Note : It seems like I should have named my USB stick's partition "Recovery," but I didn't and it worked fine, go figure.
15. Copy the contents of the Patch directory on your desktop to the root of your USB stick.
16. Open a Terminal window. If this scares you, you should probably stop
now.
17. Discover what disk number your USB stick is. The easiest way is through diskutil :
For me, my USB stick was /dev/disk3, but yours may differ.
17a. This step may or may not be required, but being a n00b I thought I may as well do it (assuming you called your USB stick "Patchstick") :
sudo bless --folder=/Volumes/Patchstick/ --file=/Volumes/Patchstick/boot.efi
18. Type
Code:
THEDISK=/dev/whatever_disk_number_your_usb_stick_is
For me, as I said that was /dev/disk3. If you get this wrong, this is your big chance to destroy your Mac or PC installs. No pressure.
19. You're now going to make the USB stick bootable by the ATV. Type
Code:
START=$(gpt -r show $THEDISK | grep '1 GPT part' | awk '{print $1}')
SIZE=$(gpt -r show $THEDISK | grep '1 GPT part' | awk '{print $2}')
diskutil unmountDisk $THEDISK
gpt remove -i 1 $THEDISK
diskutil unmountDisk $THEDISK
gpt add -b $START -s $SIZE -i 1 -t "5265636F-7665-11AA-AA11-00306543ECAC" $THEDISK
diskutil unmountDisk $THEDISK 20. Take your USB stick to the ATV and connect it. Press and hold "Menu" and "-" on the remote and the ATV should then boot off your USB stick.
21. When the magic has finished, take a note of the IP address of your ATV.
22. Go back to your Terminal window :
Code:
telnet the.ip.address.you.just.got
23. Login as root, password root.
24. Type the following into the resulting prompt :
Code:
cd /
mkfs.hfsplus -v Recovery /dev/sda2
mkdir src dst
mount /dev/sdb1 src
fsck.hfsplus -f /dev/sda2
mount -t hfsplus -o rw,force /dev/sda2 dst
cp -arp src/recovery/* dst/
sync
umount src
umount dst
rmdir src dst
25. Remove the USB stick.
26. Power cycle the ATV.
27. Wait until you get a BrickTV screen or a screen saying it's patching, and 10 minutes to go.
28. On the remote, press and hold Menu and "-" until the ATV reboots.
29. Perform a normal factory restore.
30. Unbricking your ATV, done.
Bookmarks