Kodi Community Forum

Full Version: [Apple Tv] Crystal HD and 1080p
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I tried a lot of solution mention in this forum to get best performance to watch 1080p movies i tired XBMC R28256 on aTV OS and it is till now the most good version to handle 1080p Video but it did not give me the performance i need to enjoy watch the video.

i see the post with Sam.Nazarko [AppleTV] Crystalbuntu (Ubuntu Linux and Crystal HD) Disk Image so i tried and get socked with the performance but there was some bugs (always crash, big delay till the video start, .....)
but i do some modification to improve that i will explain what can be done to get much more performance

Prepare :
1- Get a USB Flash drive i use 16GB, 8GB it works
2- HOW-TO install a Miminal Ubuntu and XBMC with sound over HDMI on the AppleTV follow till Create the bootable USB flash drive and stop
3- Use the image from [AppleTV] Crystalbuntu (Ubuntu Linux and Crystal HD) Disk Image and copy it to the USB PATCHSTICK
4- Continue the link in step 2 and finish the Backup! section

Note :
This is an example on my harddisk 160GB if you have diffrent size you have to recalcule sizes

Now we are ready, I think you are still telnet to your Apple TV
Code:
# mount /dev/sdb3 /mnt
# dd if=/mnt/xbmc-r28256-crystalHD-1.0.3-alsa-1.019-nvidia100.14.19-hardy-cust_machkernel-2.6.24.27.img of=/dev/sda bs=4096
# parted /dev/sda unit s print

/* Note My Hard Disk is 160GB */

Model: ATA SAMSUNG HM160JC (scsi)
Disk /dev/sda: 312581808s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start      End         Size        File system  Name     Flags
1      40s        69671s      69632s      hfs+         primary      
2      69672s     6427049s    6357378s    ext3         primary      
3      6427050s   7831518s    1404469s    linux-swap   primary

#reboot

/* Tenlnet to your Apple TV again
/* Now i will resize the partition to increase it for the primary /

# cd /
# mkdir src dst
# parted -s /dev/sda mkpart primary ext3 30345453s 312319663s
# partprobe /dev/sda
# mkfs.ext3 -b 4096 -L Linux /dev/sda4

# parted -s /dev/sda unit s print
Model: ATA SAMSUNG HM160JC (scsi)
Disk /dev/sda: 312581808s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start      End         Size        File system  Name     Flags
1      40s        69671s      69632s      hfs+         primary      
2      69672s     6427049s    6357378s    ext3         primary      
3      6427050s   7831518s    1404469s    linux-swap   primary      
4      30345453s  312319663s  281974211s  ext3         primary      

/* Backup partition before resize

# mount /dev/sda2 src
# mount /dev/sda4 dst
# cp -arp /src/* /dst/
# sync
# umount dst scr
# parted /dev/sda rm 3
# parted /dev/sda rm 2
# parted -s /dev/sda mkpart primary ext3 69672s 29296875s
# parted -s /dev/sda mkpart primary linux-swap 29296876s 30345452s
# partprobe /dev/sda
# mkfs.ext3 -b 4096 -L Linux /dev/sda2
# parted -s /dev/sda unit s print
Model: ATA SAMSUNG HM160JC (scsi)
Disk /dev/sda: 312581808s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start      End         Size        File system  Name     Flags
1      40s        69671s      69632s      hfs+         primary      
2      69672s     29296875s   29227204s   ext3         primary      
3      29296876s  30345452s   1048577s    linux-swap   primary      
4      30345453s  312319663s  281974211s  ext3         primary      

# mount /dev/sda4 src
# mount /dev/sda2 dst
# cp -arp /src/* /dst/
# sync
# umount dst scr

/* Edit the boot
# mount /dev/sda1 /dst
# nano /dst/com.apple.Boot.plist

/* Change kernel argument to /dev/sda2 instead of /dev/sdb2 and save

# umount dst
# mount /dev/sda2 dst

/* remove the configuration comes with this image and start from default

# rm -r /dst/home/xbmc/.xbmc
# umount dst
# reboot

/* Now i remove the USB from the Apple TV and have running Ubuntu Linux and Crystal HD running

/* ssh to AppleTV and use xbmc as user and password
/* add missing file required to enable menu sound found in the link in step 2

# nano .asoundrc

add:
pcm.!default {
type plug
slave {
pcm "plughw:0,3"
}
}

/* UUID Fix

# ls -l /dev/disk/by-uuid/

/* copy the UUID linked to ../../sda2
# sudo nano /dst/etc/fstab

change the first UUID=xxxxxxxxxxxxxxx with the one from previous ls -l
change the second UUID=xxxxxxxxxxxxx refrance to swap to /dev/sda3

Go to XBMC Audio output settings and choose custom for the Audio output device.
Set it to: plughw:0,3

# sudo reboot

Now with these modification i can enjoy playing 720p 1080p in mkv also i tried t2ms files in 1080p it did not work with me well with any aTV OS or any other version but now it works great every movie plays well even i stream from TimeCapsule 1TB i do this through run
Code:
# sudo nano /etc/apt/source.list
change deb http://ppa.launchpad.net/team-xbmc-/ppa/ubuntu hardy main to deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu hardy main

# sudo apt-get update
# sudo apt-get smbfs
# mount //192.168.1.6/Data ~/Videos -o pass=passw0rd

where ip for the TimeCamsule and Data for the share name
you can also can downgrade your Time Capsule firmware to version 7.3.2 as described in this thread How can I use ubuntu linux with time capsule support for my atv?

I also give a try to the xbmc-live mention in the Step 3 and it is great image but also i did the resize as i used to the before and i get more more faster performance but i was greedy and i want to make the Apple TV adjust the refresh rate with my samsung B650 TV to able have smooth play for the movie but this need some other modification i will update later

Attention :
- Sorry for my bad English
- I tried to update the xbmc running from this img to the current but i have a bad performance again don't upgrade.
- The Example here for hard disk 160GB don't use it with other you have to modify the resize
- I figured what i did through google in internet i have no pervious experience

I have to thank XBMC Team, Davilla, Sam.Nazarko for the great work they do
Thanks for your post , it helped me a lot. Now my atv runs xbmc under linux. But I can´t get sound by hdmi, only toslink. In the step : # ls -l /dev/disk/by-uuid/ I can see the uid linked to sda, sda2 and sda3 and copy them, but when I enter # sudo nano /dst/etc/fstab
I can´t see nothing, the text is empty, I can´t do what you told:
Quote:change the first UUID=xxxxxxxxxxxxxxx with the one from previous ls -l
change the second UUID=xxxxxxxxxxxxx refrance to swap to /dev/sda3

Thanks for your help
stronzo Wrote:Thanks for your post , it helped me a lot. Now my atv runs xbmc under linux. But I can´t get sound by hdmi, only toslink. In the step : # ls -l /dev/disk/by-uuid/ I can see the uid linked to sda, sda2 and sda3 and copy them, but when I enter # sudo nano /dst/etc/fstab
I can´t see nothing, the text is empty, I can´t do what you told:


Thanks for your help

About sound over HDMI do you have AV receiver or just HD LCD ?

about ls -l /dev/disk/by-uuid/ gives you out bout like xxxxxxxxxxxxxxx ../../sda2
copy the xxxxxxxxxxxxxx and open the fstab and change the old one reference to old /dev/sda2 with it new one you get from the ls -l command
Neat script but why not put it in a patchstick.sh. This will automatically run your script at boot -- no need to telnet in
Sam.Nazarko Wrote:Neat script but why not put it in a patchstick.sh. This will automatically run your script at boot -- no need to telnet in

i did this as example to 160GB hard disk so may be someone has different size
Ill post the info for my 40gb drive this evening if that helps. Just let me know what command to run to get that info (without actually doing anything to the partition).
I have a 40gb atv
I have installed the image to the drive using dd, every thing boots fine but...

I cannot resize or make a new partition. I was able to delete the swap partition but when I try to resize or make a new partition I get the option to make a zero byte partition.

Code:
xbmc@AppleTV:~$ sudo parted /dev/sda print

Disk /dev/sda: 40.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name                  Flags
1      20.5kB  210MB   210MB   fat32        EFI System Partition  boot
2      210MB   236MB   26.1MB  hfs+         Recovery                  
3      236MB   2736MB  2500MB  ext3                                    

Information: Don't forget to update /etc/fstab, if necessary.            

[CODE]xbmc@AppleTV:~$ sudo parted /dev/sda unit s print

Disk /dev/sda: 78140159s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start    End       Size      File system  Name                  Flags
1      40s      409639s   409600s   fat32        EFI System Partition  boot
2      409640s  460639s   51000s    hfs+         Recovery                  
3      460640s  5343452s  4882813s  ext3                                    

Information: Don't forget to update /etc/fstab, if necessary.

xbmc@AppleTV:~$ sudo parted -s /dev/sda mkpart primary ext3 30345453s 77000000s 78140100s
Warning: You requested a partition from 15.5GB to 39.4GB.
The closest location we can manage is 4010MB to 4010MB. Is this still acceptable to you?
[/CODE]

Any suggestions

Thanks
Craig
iscraigh Wrote:I have a 40gb atv
I have installed the image to the drive using dd, every thing boots fine but...

I cannot resize or make a new partition. I was able to delete the swap partition but when I try to resize or make a new partition I get the option to make a zero byte partition.

Code:
xbmc@AppleTV:~$ sudo parted /dev/sda print

Disk /dev/sda: 40.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name                  Flags
1      20.5kB  210MB   210MB   fat32        EFI System Partition  boot
2      210MB   236MB   26.1MB  hfs+         Recovery                  
3      236MB   2736MB  2500MB  ext3                                    

Information: Don't forget to update /etc/fstab, if necessary.            

[CODE]xbmc@AppleTV:~$ sudo parted /dev/sda unit s print

Disk /dev/sda: 78140159s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start    End       Size      File system  Name                  Flags
1      40s      409639s   409600s   fat32        EFI System Partition  boot
2      409640s  460639s   51000s    hfs+         Recovery                  
3      460640s  5343452s  4882813s  ext3                                    

Information: Don't forget to update /etc/fstab, if necessary.

xbmc@AppleTV:~$ sudo parted -s /dev/sda mkpart primary ext3 30345453s 77000000s 78140100s
Warning: You requested a partition from 15.5GB to 39.4GB.
The closest location we can manage is 4010MB to 4010MB. Is this still acceptable to you?
[/CODE]

Any suggestions

Thanks
Craig

Are you trying to re-size the partition that you are running from ?
I am first just trying to add a partition in the blank space on the disk.
What I am currently trying now is resizing the image file (I have it on a usb hard drive). My theory is that if the image file is 40 gigs (or slightly smaller) when I dd it onto the hard drive I should have a ton of free space allowing me to add or resize the partition. That is my theory anyway. I am going to reboot using the imaged usb stick and try the create resize partition again just to make sure I had tried it, failing that I will dd my new much larger image file and see what happens.
I will let you know.

Would not work when booted from usb stick
Code:
xbmc@AppleTV:~$ sudo parted /dev/sda  print

Disk /dev/sda: 40.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name                  Flags
1      20.5kB  210MB   210MB   fat32        EFI System Partition  boot
2      210MB   236MB   26.1MB  hfs+         Recovery                  
3      236MB   2736MB  2500MB  ext3                                    
4      2736MB  2741MB  5120kB  linux-swap   primary                    

Information: Don't forget to update /etc/fstab, if necessary.            

xbmc@AppleTV:~$ sudo parted /dev/sda mkpart primary ext3 30000 35000
Warning: You requested a partition from 30.0GB to 35.0GB.                
The closest location we can manage is 4010MB to 4010MB.  Is this still acceptable to you?
Yes/No? n                                                                
Information: Don't forget to update /etc/fstab, if necessary.

So trying my enlarged image now.

Craig
What size do you want to /dev/sda3 ?
following the directions I was going to make a backup partition of about 3 gigs @ the end of the disk then copy the contents of sda3 to it. I would then resize sda3 to 30+ gigs. The problem seems to be that I cannot make a partition outside of the 4 gig image size despite parted seeing the disk is 40 gigs.

Craig
i tried the xbmc-live version and notice this problem so you can try this first
Code:
parted /dev/sda mkpart primary ext3
then put any start and any end
then it will ask for fix type fix
then it will ask is this suitable for you abort

and try to do what you want to resize

please not your for 40GB hard disk max is 77878015s

i hope that can help
Still no go Idid get the fix and it did not seem to work until I run partprobe then I choose fix and parted will run commands but still won't let me go above 4010 mb

very frustrating.

Any other suggestions appreciated.

Craig
switch parted to using sectors instead of MBs. if you notice in here http://code.google.com/p/atv-bootloader/wiki/ATVBackup , I never use MBs, there's a reason for that.
Sorry I didn't show it but I had tried it.


Code:
Disk /dev/sda: 78140159s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start     End       Size      File system  Name                  Flags
1      40s       409639s   409600s   fat32        EFI System Partition  boot
2      409640s   460639s   51000s    hfs+         Recovery                  
3      460640s   5343452s  4882813s  ext3                                    
4      5343453s  6343453s  1000001s  linux-swap                              

Information: Don't forget to update /etc/fstab, if necessary.            

xbmc@AppleTV:~$ sudo parted -s /dev/sda mkpart primary ext3 6343453s 29296875s
Warning: You requested a partition from 3248MB to 15.0GB.
The closest location we can manage is 3248MB to 4010MB.  Is this still acceptable to you?
xbmc@AppleTV:~$ sudo parted -s /dev/sda mkpart primary ext3 6343453s 77000000s
Warning: You requested a partition from 3248MB to 39.4GB.
The closest location we can manage is 3248MB to 4010MB.  Is this still acceptable to you?

I am using the pin87a image, maybe I will try Sams image not sure why the partition table would be messed but I will let you know if it works any better.


Oh and as for my enlarged image I used parted directly on the image and it sees the larger size but parted throws out the same errors.
Code:
xbmc@AppleTV:~$ sudo parted /media/disk/atv.img  print

Disk /media/disk/atv.img: 36.2GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name                  Flags
1      20.5kB  210MB   210MB   fat32        EFI System Partition  boot
2      210MB   236MB   26.1MB  hfs+         Recovery                  
3      236MB   2736MB  2500MB  ext3                                    
4      2736MB  3248MB  512MB   linux-swap   swap                      

xbmc@AppleTV:~$ sudo parted /media/disk/atv.img  mkpart primary ext3 30000 35000
Warning: You requested a partition from 30.0GB to 35.0GB.                
The closest location we can manage is 4010MB to 4010MB.  Is this still acceptable to you?
Yes/No? n


I am gone for the weekend so I won't be able to try until Monday.


Craig
Pages: 1 2 3