2011-01-25, 19:54
This guide is basicly the install guide for pin87a's image which you can find here:
http://forum.xbmc.org/showthread.php?tid=86108
So kudos to Bandit Kaine. It is slightly adjusted to work for Sam's image. Feel free to correct any mistakes you see, I know this worked for me.
First you need to create a bootable usb stick. You can download sam's image here:
http://code.google.com/p/crystalhd-for-a...253Dclosed
You can use usbit on windows to restore it to a usb stick. On a mac you extract the image to your user folder (\username\) open the terminal and use this command (make sure that disk1 is indeed your usb drive, you can check via the diskutility):
#for me it took a really long time, but it worked after all (+30 min)
Insert the usb stick in the apple tv and see if it boots, this can take a long time since sam's image downloads the latest stable release of xbmc and the broadcom drivers. If XBMC starts up you should check your ip adress (hold the menu button on your apple remote in the main menu and choose system info, you'll find it there somewhere).
Now use a ssh client to connect to your apple tv, the easiest to use on windows is putty (google it), on the mac I think you can use the terminal (not sure how) or download another client.
The password and username are both 'atv'.#
#This guide is only if you want to erase the complete hdd, if you want to keep the apple tv OS and still install to your hdd you should check http://forum.xbmc.org/showpost.php?p=682...tcount=152 where Feikenberg explains how its done without removing the Apple tv OS.
Anything that is after a # sign are comments anything that DOES NOT start with a # is commands you have to enter in the putty SSH window. You can copy and right click paste them into the window. Whenever it asks for password remember its xbmc.
After entering a command do not continue to the next one until you have
"atv@appleTV:~$" indicating the previous command is finished. Some commands take time and will look like this while it is executing them.#
#Zero Apple TV Hard Drive, This will Wipe All Partitions from the drive#
#Install Patched Parted, HFS Tools#
#Read the Comment after this command#
###Scroll through the text and find the line that says "./configure --enable-static and change it to
./configure CFLAGS="-fgnu89-inline" --enable-static=yes
, CTRL O to Write Out and then CTRL X to exit###
#Verify you have parted version 1.8.8 If yes continue, if anything else repeat steps from "Install Patched parted"#
##Initiate GPT Partition##
##Check Drive Names using parted print all##
#I got a warning with the question to fix the partion table here, instead of later according to other guides. I just went ahead and fixed it. After that you should 3 partitions: nr1: hfs+, nr2: swap, nr3: ext3 partition.#
#In order to use this guide further I had to make a few adjustments, since Sam's image only has 3 partitions and the second partition is the swap partition.##
#Clone USB Drive to Apple TV Hard Drive, This Clones the USB Drive and all partitions to the Internal Apple TV Hard Drive, This May take a few minutes#
#takes a long time
#AFTER REBOOT the connection will close, close the putty window, check your TV, once its back to the XBMC Home Screen Re-Open putty and recconect using the same IP Address as before, user is the same as password (xbmc)#
#Read Comment after this command to know what to do#
###Change the line near the bottom that says /dev/sdbX to /dev/sdaX, Just change the b to an a, leave the number the same. press CTRL X to exit, make sure you choose Yes to save changes###
#You also need to edit your /etc/fstab, it doesnt really matter when you do it, since you copy it to the hdd later anyway
###Same as before , change /dev/sdbX to /dev/sdaX (4 times in the file, 2 are only comments though), Just change the b to an a, leave the number the same. press CTRL X to exit, make sure you choose Yes to save changes###
###If you are not using the internal hard drive for storage you can stop now and remove the USB stick from the Apple TV, The apple tv will now boot from the hard drive and no longer needs the USB Stick. The Hard Drive will be recognized as a total of 4GB since we cloned it from the USB stick.
If you want all the space of your Apple TV Hard Drive LEAVE THE USB STICK PLUGGED IN and continue below after reboot, Close the putty window and re-open/reconnect using the same IP Address and user/password as before once its back to the XBMC Home Screen###
#Parted might give you a message saying the GPT Partition table needs to be fixed, type "fix" and press enter, I had this message earlier#
##Since we removed partition 3 (with most of the files) we need to make a new partition, only now its a lot bigger. You need to put 40GB if you have a 40GB drive on the end of the line, for 160GB you use 160GB , etc. After we do that we copy the contents of our third partition on the usb drive to the new partition and we make it ready to use.
#When the Apple TV Starts Rebooting wait until the screen turns black and remove the USB Drive and it should boot from the Internal Hard Drive and you will have the full size of your hard drive available to you for files, you can now also close putty or any other ssh terminal you are using#
If your not comfortable to install it to your hdd you can wait a few weeks, since Sam will come up with a fully automatic way to install it. Its not really hard though
http://forum.xbmc.org/showthread.php?tid=86108
So kudos to Bandit Kaine. It is slightly adjusted to work for Sam's image. Feel free to correct any mistakes you see, I know this worked for me.
First you need to create a bootable usb stick. You can download sam's image here:
http://code.google.com/p/crystalhd-for-a...253Dclosed
You can use usbit on windows to restore it to a usb stick. On a mac you extract the image to your user folder (\username\) open the terminal and use this command (make sure that disk1 is indeed your usb drive, you can check via the diskutility):
Code:
dd if=usb.img of=/dev/disk1 bs=8192
#for me it took a really long time, but it worked after all (+30 min)
Insert the usb stick in the apple tv and see if it boots, this can take a long time since sam's image downloads the latest stable release of xbmc and the broadcom drivers. If XBMC starts up you should check your ip adress (hold the menu button on your apple remote in the main menu and choose system info, you'll find it there somewhere).
Now use a ssh client to connect to your apple tv, the easiest to use on windows is putty (google it), on the mac I think you can use the terminal (not sure how) or download another client.
The password and username are both 'atv'.#
#This guide is only if you want to erase the complete hdd, if you want to keep the apple tv OS and still install to your hdd you should check http://forum.xbmc.org/showpost.php?p=682...tcount=152 where Feikenberg explains how its done without removing the Apple tv OS.
Anything that is after a # sign are comments anything that DOES NOT start with a # is commands you have to enter in the putty SSH window. You can copy and right click paste them into the window. Whenever it asks for password remember its xbmc.
After entering a command do not continue to the next one until you have
"atv@appleTV:~$" indicating the previous command is finished. Some commands take time and will look like this while it is executing them.#
#Zero Apple TV Hard Drive, This will Wipe All Partitions from the drive#
Code:
sudo dd if=/dev/zero of=/dev/sda bs=4096 count=1M
#Install Patched Parted, HFS Tools#
Code:
sudo apt-get install build-essential patch
wget [url]http://atv-bootloader.googlecode.com/files/hfs_support-1.0.tar.gz[/url]
tar -xzf hfs_support-1.0.tar.gz
cd hfs_support/
sudo ./build_diskdev_cmds.sh
cd
sudo /usr/bin/apt-get remove parted
wget [url]http://atv-bootloader.googlecode.com/files/parted-1.8.8-atv.tar.gz[/url]
tar -xzf parted-1.8.8-atv.tar.gz
cd parted
#Read the Comment after this command#
Code:
sudo nano ./install_parted.sh
###Scroll through the text and find the line that says "./configure --enable-static and change it to
./configure CFLAGS="-fgnu89-inline" --enable-static=yes
, CTRL O to Write Out and then CTRL X to exit###
Code:
sudo ./install_parted.sh
sudo ln -s /usr/local/sbin/parted /sbin/parted
#Verify you have parted version 1.8.8 If yes continue, if anything else repeat steps from "Install Patched parted"#
Code:
parted --version
##Initiate GPT Partition##
Code:
sudo parted -s /dev/sda mklabel gpt
##Check Drive Names using parted print all##
Code:
sudo parted
print all
#In order to use this guide further I had to make a few adjustments, since Sam's image only has 3 partitions and the second partition is the swap partition.##
Code:
quit
#Clone USB Drive to Apple TV Hard Drive, This Clones the USB Drive and all partitions to the Internal Apple TV Hard Drive, This May take a few minutes#
Code:
sudo dd if=/dev/sdb of=/dev/sda bs=4096
Code:
sudo reboot
#AFTER REBOOT the connection will close, close the putty window, check your TV, once its back to the XBMC Home Screen Re-Open putty and recconect using the same IP Address as before, user is the same as password (xbmc)#
Code:
sudo fsck.hfsplus /dev/sda1
sudo mkdir tmp
sudo mount /dev/sda1 tmp
#Read Comment after this command to know what to do#
Code:
sudo nano tmp/com.apple.Boot.plist
#You also need to edit your /etc/fstab, it doesnt really matter when you do it, since you copy it to the hdd later anyway
Code:
sudo nano /etc/fstab
Code:
sudo reboot
If you want all the space of your Apple TV Hard Drive LEAVE THE USB STICK PLUGGED IN and continue below after reboot, Close the putty window and re-open/reconnect using the same IP Address and user/password as before once its back to the XBMC Home Screen###
Code:
sudo parted
sudo select /dev/sda
Code:
sudo parted
sudo rm 3
quit
Code:
sudo parted -s /dev/sda mkpart primary ext3 573m 40GB
sudo cp /dev/sdb3 /dev/sda3
sudo e2fsck -f /dev/sda3
sudo resize2fs /dev/sda3
sudo tune2fs -j /dev/sda3
sudo reboot
#When the Apple TV Starts Rebooting wait until the screen turns black and remove the USB Drive and it should boot from the Internal Hard Drive and you will have the full size of your hard drive available to you for files, you can now also close putty or any other ssh terminal you are using#
If your not comfortable to install it to your hdd you can wait a few weeks, since Sam will come up with a fully automatic way to install it. Its not really hard though