Kodi Community Forum
[LINUX] Apple TV Crystalbuntu (Ubuntu Linux and Crystal HD) Disk Image for Apple TV - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: [LINUX] Apple TV Crystalbuntu (Ubuntu Linux and Crystal HD) Disk Image for Apple TV (/showthread.php?tid=74992)



- neomits - 2010-09-18

GuySie Wrote:I'm not sure if it's a placebo effect or maybe dependent on better internet connection at this time of night, but after increasing the size of the partition to fully use my stick XBMC seems to be running a lot snappier! Thumbs and fanarts load with much less fuss. Can very much recommend it to anyone else running on an 8+ GB stick.

Edit: Just set the useddsfanart setting in advancedsettings.xml as explained in:
http://forum.xbmc.org/showthread.php?tid=59115

And now even the interface is snappy fast, even with huge fanarts! I just need to figure out how to dds the backgrounds in Confluence and I think I can just keep running from the Crystalbuntu stick for the near future. This has definitely given the poor aTV a boost - am seriously reconsidering pre-ordering a Boxee Box now that this is working so fine. That money could go towards an iPhone4 or iPad Wink

Would you be able to give some guidance to a linux noob as to how to access the advancedsettings.xml file? I'm not able to FTP in the open the file.


- shmookles - 2010-09-18

Can you still use the Apple Remote and the aTV's built-in IR with Crystalbuntu?


- evandena - 2010-09-18

I've rebuilt my ATV multiple times, but I am still having issues with buffering on an HD files. I am running pin's image from the internal hard drive.

This file plays perfect streamed to my desktop. Both using the same server running SAMBA.

Here is the HD file:
ViDEO CODEC..........: x264_L4.1 @ 4681 Kbps
RESOLUTiON...........: 1280 x 536
FRAMERATE............: 23.976 fps
AUDiO CODEC..........: English Dolby Digital 5.1 @ 640 Kbps

It buffers every couple of seconds, and the fps is poor. SD seems to play fine, but it takes a while to load.

dmesg
xbmc.log

On a previous attempt, I did a full ubuntu upgrade/update and things seemed to play fine after that, but after a few reboots everything broke. I guess there was a new kernel or something.... not going to try that again.


- diegoap - 2010-09-18

shmookles Wrote:Can you still use the Apple Remote and the aTV's built-in IR with Crystalbuntu?

yes you can !


- sulfie - 2010-09-18

I am having an issue where some files streaming via SMB will lockup the apple tv.

Using the full image download. Updating xbmc / crystal without issue reproduces the error each time.

xbmc.log

dmesg

xbmc@atv:~$ sudo dmesg |grep crystal
[ 72.793536] Loading crystalhd v3.5.0
[ 72.793588] crystalhd 0000:02:00.0: Starting Device:0x1612
[ 72.847956] crystalhd 0000:02:00.0: bar0:0x22400000-0x00010000 bar2:0x22000000-0x00400000
[ 72.848493] crystalhd 0000:02:00.0: i2o_addr:0xd1140000 Mapped addr:0xd1280000
[ 128.055047] crystalhd 0000:02:00.0: Entering chd_dec_open
[ 128.055058] crystalhd 0000:02:00.0: Opening new user[0] handle
[ 104.135004] crystalhd 0000:02:00.0: Firmware Downloaded Successfully


- davilla - 2010-09-19

sulfie Wrote:I am having an issue where some files streaming via SMB will lockup the apple tv.

Using the full image download. Updating xbmc / crystal without issue reproduces the error each time.

xbmc.log

dmesg

xbmc@atv:~$ sudo dmesg |grep crystal
[ 72.793536] Loading crystalhd v3.5.0
[ 72.793588] crystalhd 0000:02:00.0: Starting Device:0x1612
[ 72.847956] crystalhd 0000:02:00.0: bar0:0x22400000-0x00010000 bar2:0x22000000-0x00400000
[ 72.848493] crystalhd 0000:02:00.0: i2o_addr:0xd1140000 Mapped addr:0xd1280000
[ 128.055047] crystalhd 0000:02:00.0: Entering chd_dec_open
[ 128.055058] crystalhd 0000:02:00.0: Opening new user[0] handle
[ 104.135004] crystalhd 0000:02:00.0: Firmware Downloaded Successfully

MediaInfo on those files that cause problems, compare to those that don't. What's the difference ? What is top showing when you have the lockup ?


- sulfie - 2010-09-19

davilla Wrote:MediaInfo on those files that cause problems, compare to those that don't. What's the difference ? What is top showing when you have the lockup ?

two examples of files that freeze

two examples of files that play fine

top during normal playback

top at point of lock up

syslog


- davilla - 2010-09-19

oom-killer killed xbmc.

Quote:Out of memory: kill process 6052 (xbmc)
The question is why ?

From top,

Quote:Swap: 0k total, 0k used, 0k free, 6348k cached

You have no swap file, add one.


- sulfie - 2010-09-19

davilla Wrote:oom-killer killed xbmc.


The question is why ?

From top,



You have no swap file, add one.

Good call not sure why it wasn't mounting. thanks davilla

top

working perfectly now.


- k3park - 2010-09-19

when "CDVDMessageQueue(video)::Get - retrieved last data packet of queue" ocurred ?

Though I have added swap partition, xbmc didn't use swap partition enough

result of free command:
Code:
total       used       free     shared    buffers     cached
Mem:        248768     244800       3968          0       1372      74832
-/+ buffers/cache:     168596      80172
Swap:       499992         80     499912

and swap is added successfully in xbmc.log
Code:
20:11:28 T:3043178336 M:118345728    INFO: HAL: Starting initializing
20:11:28 T:3043178336 M:118345728   DEBUG: HAL: Clearing old global device list, if any
20:11:28 T:3043178336 M:118345728  NOTICE: HAL: Generating global device list
20:11:28 T:3043178336 M:118345728   DEBUG: HAL: Added - disk | UUID 50de1c0e-8bac-4c53-96a7-166e9148367a | FileSystem swap | HotPlugged NO  | Type 1 |Approved NO
20:11:28 T:3043178336 M:118345728   DEBUG: HAL: Added - disk | UUID c50fbc74-3297-456b-bbc4-68f2a85c3f43 | FileSystem ext3 | Mounted on / | HotPlugged NO  | Type 1 |Approved NO
20:11:28 T:3043178336 M:118345728   DEBUG: HAL: Added - disk | UUID F0DAEA2973867D55 | FileSystem hfsplus | HotPlugged NO  | Type 1 |Approved NO
20:11:28 T:3043178336 M:118345728   DEBUG: HAL: Added - disk | UUID 70D6-1701 | FileSystem vfat | HotPlugged NO  | Type 1 |Approved NO
20:11:28 T:3043178336 M:118345728    INFO: HAL: Generated global device list, found 64
20:11:28 T:3043178336 M:118345728    INFO: HAL: Sucessfully initialized

16:29:49 T:2925759376 M: 82264064 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:49 T:2925759376 M: 82202624 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:50 T:2925759376 M: 82141184 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:50 T:2925759376 M: 82079744 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:50 T:2925759376 M: 82018304 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:50 T:2925759376 M: 82071552 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:51 T:2925759376 M: 82014208 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:51 T:2925759376 M: 82010112 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:51 T:2925759376 M: 82018304 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:51 T:2925759376 M: 82018304

after playing start, it plays only sound for 10 sec and xbmc freeze

dmesg | grep crystal
Code:
[   52.440736] Loading crystalhd v3.5.0
[   54.974938] crystalhd 0000:02:00.0: Starting Device:0x1615
[   54.974997] crystalhd 0000:02:00.0: bar0:0x22800000-0x00010000  bar2:0x22000000-0x00800000
[   54.975052] crystalhd 0000:02:00.0: i2o_addr:0xd11c0000   Mapped addr:0xd1f80000
[   69.513272] crystalhd 0000:02:00.0: Entering chd_dec_open
[   69.513283] crystalhd 0000:02:00.0: Opening new user[0] handle
[   69.740916] [crystalhd_flea_download_fw]: Sz:864276
[   69.856414] crystalhd 0000:02:00.0: [crystalhd_flea_download_fw]: step 7. Done  RetVal:400019

xbmc doesn't support BCM70015 not yet?


- JeDaj - 2010-09-19

Welcome.
Recently I finally managed to run linux on my ATV. I'm using pin87a version. I got one tiny problem. I do not see my ATV drive, where I have my movies. Is there a way to mount it?
Code:
xbmc@AppleTV:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda3
UUID=c50fbc74-3297-456b-bbc4-68f2a85c3f43 /               ext3    relatime,errors=remount-ro 0       1
# /dev/sda4
UUID=3ecb3176-9deb-46a4-9565-0acc0c13fdd2 none            swap    sw              0       0

Code:
xbmc@AppleTV:~$ sudo fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00002f33

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        4864    39070076   ee  EFI GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 4029 MB, 4029677568 bytes
255 heads, 63 sectors/track, 489 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          26      204819+  ee  EFI GPT
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(1023, 254, 63) logical=(0, 0, 2)
Partition 1 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(25, 127, 14)
/dev/sdb2   *          26          29       25500   af  Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(1023, 254, 63) logical=(25, 127, 15)
Partition 2 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(28, 171, 47)
/dev/sdb3              29         333     2441406+  83  Linux
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(1023, 254, 63) logical=(28, 171, 48)
Partition 3 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(332, 156, 45)
/dev/sdb4             333         395      500000+  82  Linux swap / Solaris
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(1023, 254, 63) logical=(332, 156, 46)
Partition 4 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(394, 219, 47)

Last question - How can I FTP on my internal ATV drive to put new files?

Regards
Daniel


- evandena - 2010-09-19

JeDaj Wrote:Welcome.
Recently I finally managed to run linux on my ATV. I'm using pin87a version. I got one tiny problem. I do not see my ATV drive, where I have my movies. Is there a way to mount it?
Code:
xbmc@AppleTV:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda3
UUID=c50fbc74-3297-456b-bbc4-68f2a85c3f43 /               ext3    relatime,errors=remount-ro 0       1
# /dev/sda4
UUID=3ecb3176-9deb-46a4-9565-0acc0c13fdd2 none            swap    sw              0       0

Code:
xbmc@AppleTV:~$ sudo fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00002f33

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        4864    39070076   ee  EFI GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 4029 MB, 4029677568 bytes
255 heads, 63 sectors/track, 489 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          26      204819+  ee  EFI GPT
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(1023, 254, 63) logical=(0, 0, 2)
Partition 1 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(25, 127, 14)
/dev/sdb2   *          26          29       25500   af  Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(1023, 254, 63) logical=(25, 127, 15)
Partition 2 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(28, 171, 47)
/dev/sdb3              29         333     2441406+  83  Linux
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(1023, 254, 63) logical=(28, 171, 48)
Partition 3 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(332, 156, 45)
/dev/sdb4             333         395      500000+  82  Linux swap / Solaris
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(1023, 254, 63) logical=(332, 156, 46)
Partition 4 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(394, 219, 47)

Last question - How can I FTP on my internal ATV drive to put new files?

Regards
Daniel

It's /dev/sda1, so sudo mount /dev/sda1 /mnt/somelocation


- JeDaj - 2010-09-19

@evandena - thanks for your effort, but my partition with media files was /dev/sda4
I just did "sudo /sbin/parted", then "print" and took the largest partition. Anyway...

I'm still looking for a chance to upload my media files to ATV over FTP (like in OSX distribution for ATV). Do I need to set up FTP server on my own, or maybe there is something I can use. I'm not very familiar with linux OS.


- davilla - 2010-09-19

k3park Wrote:when "CDVDMessageQueue(video)::Get - retrieved last data packet of queue" ocurred ?

Though I have added swap partition, xbmc didn't use swap partition enough

result of free command:
Code:
total       used       free     shared    buffers     cached
Mem:        248768     244800       3968          0       1372      74832
-/+ buffers/cache:     168596      80172
Swap:       499992         80     499912

and swap is added successfully in xbmc.log
Code:
20:11:28 T:3043178336 M:118345728    INFO: HAL: Starting initializing
20:11:28 T:3043178336 M:118345728   DEBUG: HAL: Clearing old global device list, if any
20:11:28 T:3043178336 M:118345728  NOTICE: HAL: Generating global device list
20:11:28 T:3043178336 M:118345728   DEBUG: HAL: Added - disk | UUID 50de1c0e-8bac-4c53-96a7-166e9148367a | FileSystem swap | HotPlugged NO  | Type 1 |Approved NO
20:11:28 T:3043178336 M:118345728   DEBUG: HAL: Added - disk | UUID c50fbc74-3297-456b-bbc4-68f2a85c3f43 | FileSystem ext3 | Mounted on / | HotPlugged NO  | Type 1 |Approved NO
20:11:28 T:3043178336 M:118345728   DEBUG: HAL: Added - disk | UUID F0DAEA2973867D55 | FileSystem hfsplus | HotPlugged NO  | Type 1 |Approved NO
20:11:28 T:3043178336 M:118345728   DEBUG: HAL: Added - disk | UUID 70D6-1701 | FileSystem vfat | HotPlugged NO  | Type 1 |Approved NO
20:11:28 T:3043178336 M:118345728    INFO: HAL: Generated global device list, found 64
20:11:28 T:3043178336 M:118345728    INFO: HAL: Sucessfully initialized

16:29:49 T:2925759376 M: 82264064 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:49 T:2925759376 M: 82202624 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:50 T:2925759376 M: 82141184 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:50 T:2925759376 M: 82079744 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:50 T:2925759376 M: 82018304 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:50 T:2925759376 M: 82071552 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:51 T:2925759376 M: 82014208 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:51 T:2925759376 M: 82010112 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:51 T:2925759376 M: 82018304 WARNING: CDVDMessageQueue(video)::Get - retrieved last data packet of queue
16:29:51 T:2925759376 M: 82018304

after playing start, it plays only sound for 10 sec and xbmc freeze

dmesg | grep crystal
Code:
[   52.440736] Loading crystalhd v3.5.0
[   54.974938] crystalhd 0000:02:00.0: Starting Device:0x1615
[   54.974997] crystalhd 0000:02:00.0: bar0:0x22800000-0x00010000  bar2:0x22000000-0x00800000
[   54.975052] crystalhd 0000:02:00.0: i2o_addr:0xd11c0000   Mapped addr:0xd1f80000
[   69.513272] crystalhd 0000:02:00.0: Entering chd_dec_open
[   69.513283] crystalhd 0000:02:00.0: Opening new user[0] handle
[   69.740916] [crystalhd_flea_download_fw]: Sz:864276
[   69.856414] crystalhd 0000:02:00.0: [crystalhd_flea_download_fw]: step 7. Done  RetVal:400019

xbmc doesn't support BCM70015 not yet?

http://forum.xbmc.org/showpost.php?p=607770&postcount=178


- xeonicxpression - 2010-09-20

Edit: Nevermind it's working...Huh