[LINUX] Sam's beta image for Apple TV? - 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: [LINUX] Sam's beta image for Apple TV? (/showthread.php?tid=88518)
- garyi - 2011-01-05 22:27
well, I am very proud of myself as I did some hard core terminal action.
My Sams image now has all my shares.
Sadly when attempting to connect to them though it times out.
Never mind. Its been fun, I'll go back to the old image.
How To: copy the disk image to the atv harddrive and keep os x option - feikenberg - 2011-01-05 22:29
After quite a few nights of trial and error I have managed to install Sam.Nazarko's image on the Apple TV hardrive keeping OS X. I used pin87a's instructions that I found here:
but had to modify a few things. Now I want to share this modified instructions, in case somebody else is interested:
Another usb drive (separate from the one you have the image restored on to)
Since you are making changes to the internal hard drive it is highly recommended that you make a backup of the recovery partition first so you can undo the changes if necessary. Instructions available here:
Download atv-usb-creator and create a atv-bootloader drive (select atv-bootloader from the options). Then plug the drive into the ATV and reboot.
Once the atv bootloader has loaded telnet into it (user root / pass root)
Delete current Media partition and create new one
This tutorial assumes a 40GB atv drive. If you have a 160 you can make the atv media partition and the linux partition (sda5) larger.
I use nano for editing files throughout this tutorial. Feel free to use emacs, vim, or any other editor if you wish.
(warning - will delete data - be sure you back up if necessary)
parted -s /dev/sda rm 4
parted -s /dev/sda mkpart primary HFS 2732072s 54525951s
Create Linux Partitions
parted -s /dev/sda mkpart primary ext3 54525952s 77091549s
parted -s /dev/sda mkpart primary linux-swap 77091550s 78140126s
Format New Partitions
mkfs.hfsplus -J -v Media /dev/sda4
mkfs.ext3 -b 4096 -L Linux /dev/sda5
Remove usb drive and reboot
Run factory restore in ATV OS
If all is well in the ATV OS connect the linux usb drive and reboot
Once linux is loaded ssh into the atv (user atv pass atv)
sudo mkdir /media/atvdrive
sudo mount /dev/sda5 /media/atvdrive/
sudo apt-get install rsync
sudo rsync -av --exclude "/proc/" --exclude "/dev/" --exclude "/sys/" --exclude "/mnt/" --exclude "/media/" / /media/atvdrive
sudo mkdir -p proc dev sys mnt media
Fix fstab on new install:
First you need to get the uuid information for the linux partitions
The uuid should look something like '72270e11-6b2e-4eb1-807d-4ca29f077626'
Run the following commands and copy the output somewhere so you can use it later.
sudo vol_id /dev/sda5 | grep ID_FS_UUID
sudo vol_id /dev/sda6 | grep ID_FS_UUID
Edit fstab on new install
sudo nano /media/atvdrive/etc/fstab
replace "# /dev/sdb3" with "# /dev/sda5"
replace "/dev/sdb3" with "UUID=the uuid you saved for sda5"
replace "# /dev/sdb2" with "# /dev/sda6"
replace "/dev/sdb2" with "UUID=the uuid you saved for sda6"
sudo umount /media/atvdrive/
sudo rm -fdr /media/atvdrive/
Point atv-bootloader (on usb drive) to new internal drive install
sudo apt-get install hfsprogs
sudo fsck.hfsplus /dev/sdb1
sudo mkdir /media/atvboot
sudo mount /dev/sdb1 /media/atvboot
sudo nano /media/atvboot/com.apple.Boot.plist
Change root to /dev/sda5
sudo umount /media/atvboot
sudo rm -fdr /media/atvboot/
Reboot into the linux install on the hard drive
If all is well you can delete the linux partitions on the usb drive
ssh into atv
sudo umount /dev/sdb3
sudo parted -s /dev/sdb rm 3
sudo parted -s /dev/sdb rm 4
Once complete you can switch between linux and os x by inserting or removing the usb drive and rebooting.
Drive inserted = Linux.
Drive removed = OS X
- garyi - 2011-01-06 00:10
Could someone tell me what is wrong with this line:
scp /Users/mainuser/Desktop/xbmc.repo.hitchers.zip email@example.com:/usr/share
I just want to copy the zip file to the ATV, but it says 'no such file or directory and shows hitchers zip.
Well it does bloody well exist its right there.
- garyi - 2011-01-06 00:32
How exciting I worked it out myself, just not allowed to put things there! bad boy.
- pumkinut - 2011-01-06 04:27
garyi Wrote:How exciting I worked it out myself, just not allowed to put things there! bad boy.I usually perform wget's when adding repos. It knocks out the step of copying it over. In fact, I just added a bunch of repos that way.
Sam, I installed the new image, and it's working beautifully with the CrystalHD card I installed tonight before firing it up! Thanks a lot.
One question, where is the keymap for the Apple remote? I'd like to map the codec display to a long hold of the menu key, kind of like the ATV install. Other than that, I'm loving it. I'll play with it for a few days and the probably take the plunge of moving it to the HDD.
- bass63 - 2011-01-06 05:01
Davilla, here's my log file of first 2 minutes of playing 1080p file.
Got frame drops when subtitles appearing. I think it is these lines in the log
04:50:37 T:2870352784 M: 43245568 DEBUG: CPullupCorrection: detected pattern of length 24: 42000.00 41000.00 42000.00
There are less frame drops when playing without subtitles, but they still do appear on complex scenes.
This file plays fine with ZERO drops on old pin87s image (with or without subtitles enabled).
Any ideas? Thanks!
P.S. And here's the log with subtitles disabled http://pastebin.com/gbmTFvhG
I've checked again and it is definitely these lines when frames are dropping
05:09:45 T:2826701712 M: 34889728 DEBUG: CPullupCorrection: detected pattern of length 24: 42000.00 41000.00 42000.00 42000.00 42000.00 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00 42000.00 41000.00 42000.00 42000.00 41000.00 42000.00 42000.00 42000.00 41000.00 42000.00
- pumkinut - 2011-01-06 06:14
Quote:One question, where is the keymap for the Apple remote? I'd like to map the codec display to a long hold of the menu key, kind of like the ATV install.Nevermind, I got it figured out. If anyone else wants to know I did the following:
I then edited the new keymap.xml <FullscreenVideo> stanza to the following:
- jagabongo - 2011-01-06 16:28
Hi guys, i now need some help here. The Image runs good and i'm glad to have it.
I restored it to 16GB USB stick.. but how can i use my more space for sdb3 ?
It has now 3GB but i want it using all the 15gb available without destroing something....
Can u help me !?
- Sam.Nazarko - 2011-01-06 19:24
Want performance feedback for this please. It is a beta after all and I have no idea if this is adequate for final or not.
Here's a full guide with FAQ - you can leave feedback there if you have a Google Code account: http://code.google.com/p/crystalhd-for-atv/wiki/Ubuntu
Report bugs here: http://code.google.com/p/crystalhd-for-atv/wiki/Troubleshooting
- jadel - 2011-01-06 19:26
Hey pumkinut, (and anyone else with more clue than me ...oh ... that everyone)
Since you seem to have a handle on the remote control stuff. I was trying to use your tips to enable the harmony remote. I did essentially the same thing but copied the harmony xml instead of the appleremote.
It doesnt seem to do anything. Do you have to enable it somehow or is it supposed to just happen? There doesnt seem to be any new options in system settings.
Im not 100% sure on what profile needs to be selected in the harmony either. I found a thread that said you use the plex remote profile so I tried that.
Another thread said you need to adjust settings in launcher... but we dont use that with this image right?
A more comprehensive remote control setup would really make this little box as good as my old HTPC.. if a trifle hotter. Hopefully someone knows what to do.
edit: is this the correct format for the functions
<!-- Prev --> <button id="32">Close</button>
or is this a remarked out line that has to be edited if you want it. almost all the lines are in this format.