[ATV1] HOW-TO install Sam's image to internal Apple TV harddrive - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: [ATV1] HOW-TO install Sam's image to internal Apple TV harddrive (/showthread.php?tid=92077)
[ATV1] HOW-TO install Sam's image to internal Apple TV harddrive - Metsadah - 2011-01-25 19:54
This guide is basicly the install guide for pin87a's image which you can find here:
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:
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=682741&postcount=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##
#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#
#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#
#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
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###
#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
- Metsadah - 2011-01-25 21:56
Although there are some other guides to be found I thought I'd still share this, since for me (as linux noob) it was a lot of work figuring everything out and maybe I help some of you guys with it.
The playback with Sam's image for me is a lot better then dharma 10 (final) and broadcom drivers 3.80 on pin87a's image. Since it's installed to my hdd I have also a much smoother experience with navigating all the menu's. I did edit my advancesettings.xml to enable dds:
- Roders - 2011-01-26 00:35
Thanks for writing this guide, I hope to give it a go this week. Do you know if there is any way to put the Apple TV OS back at a later date in case I wanted to sell it for example?
- pixeldotz - 2011-01-26 20:52
can you tell me which image it is exactly to download? i click your link but i only see installer.img.gz which is 10.3 MB. a few days ago i put this image xbmc-r28256-crystalHD-1.0.3-alsa-1.019-nvidia100.14.19-hardy-cust_machkernel-22.214.171.124.img onto an 8GB usb drive but have had no luck installing it to hdd. i got XBMC updated on it no problem and had to recompile atvclient from source to get my Harmony (PLEX setttings ) working So I have a USB stick with settings pristine for me that i would like to put down to the HDD. i created an image from my USB using USBINIT just in case i mess things I have a good one to go back to. also, as a side note: that image i wrote to my usb has 4 partitions. i've tried using Bandits tut for the 4 partitions adjusting accordingly and always fails to boot looking for a rootfs.
so i guess i'm pretty lost
here's what my partition tables look like:
Quote:Number Start End Size File system Name Flags
so instead of sudo fsck.hfsplus /dev/sda1, i'm doing sudo fsck.hfsplus /dev/sda2 etc.
i think i burnt myself out just getting my remote working and i'm probably missing some crucial step.
- pixeldotz - 2011-01-27 09:16
ok so after some very heavy modifications to the guide i was able to install sams older image to my hdd. what i did was ended up deleting all partitions except the one with the bootflag. afterwards i just replaced all instances of sda3 with my ext partition that i created. i just needed to create the swap now. but it's all working. when it's all said and done i enjoy all this i can't wait for the new image with the hdd installer but i do enjoy all the command line stuff.
Quote:Disk /dev/sda: 40.0GB
question: how important is the fstab? all my lines are commented out but my install is working just fine (just need to recreate the swap partition.)
- kokangit - 2011-01-27 09:18
Roders Wrote:Thanks for writing this guide, I hope to give it a go this week. Do you know if there is any way to put the Apple TV OS back at a later date in case I wanted to sell it for example?
Here is a guide to backup and restore the ATV. It even claims that it would be possible to restore when you forgot to backup!
- pixeldotz - 2011-01-27 14:11
so i decided to redo the entire process, this time erasing partitions 3 and 4 only. then recreating partition 3, copying over all the data and editing files accordingly. after which i just created partition 4. everything working perfectly, with partitions numbered as they should. you're guide was extremely helpful in my finally getting this image up and running on my hdd.
Quote:Partition Table: gpt
- kar200 - 2011-01-29 13:44
Thanks for the guide Metasdah.
I was fiddeling with upgrading the Ubuntu packages and something happened (I think the Kernel got upgraded) and my Apple TV Lost sound the the display was pink/Purple.
Anyway I tried to fix it but no go since I do not have time s the whole family uses the apple TV all the time.
I used your guide which was helpful. I though I might add something about this though.
It is better to create a 4th partition with the video files in it. It takes a long time to copy the files to an external media and back again.
If you use 4 partitions (and fiddle like me), it will be easier to just restore the 3rd partition which is the main system and it should not take long.
Just a thought though. I am still in the process of doing this.
- waldo22 - 2011-02-10 05:21
Thanks for the great guide.
I'm stuck with a blank screen though.
I successfully made the USB stick, and the ATV successfully boots and scrolls through the entire Linux-y process, but then it stops on the "network information" screen for quite a while - like 10 minutes.
Finally it goes away and all I've got is a blank screen and a flashing amber light with no sign that anything's going on.
I can't SSH in or anything. It's hard-wired with 100Mbps Ethernet, and I've got an IP address and everything.
I'm plugged-in via component, in case that matters.
Doesn't the flashing amber light mean it's trying to boot?
- feikenberg - 2011-02-10 16:19
Are you using a 4 GB stick? If yes, try a bigger one.