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)



- vinnieb - 2010-08-18

davilla Wrote:Drop a CrystalHD card in place of the internal wifi card and enjoy playback of raw decrypted bluray rips under OSX. My dev box is a 1.6GHz CoreDuo MacMini, it does not break a sweat under this setup.

You did an amazing job and your work has made many happy Apple TV and old Mac Mini users including me and I hope some of the love has been funneled to Paypal!

Careful not to raise false expectations though, my TV furniture does have a small puddle of sweat under it... I have a C2D Mac Mini with new layout Broadcom / Aug 18th XBMC nightly and it's still dropping frames for example when watching a straight Blu Ray rip of the Godfather. I'd be happy to do one of these pastebin feedback thingies if I can get instructions somewhere on how to this.


- davilla - 2010-08-18

vinnieb Wrote:You did an amazing job and your work has made many happy Apple TV and old Mac Mini users including me and I hope some of the love has been funneled to Paypal!

Careful not to raise false expectations though, my TV furniture does have a small puddle of sweat under it... I have a C2D Mac Mini with new layout Broadcom / Aug 18th XBMC nightly and it's still dropping frames for example when watching a straight Blu Ray rip of the Godfather. I'd be happy to do one of these pastebin feedback thingies if I can get instructions somewhere on how to this.

New or Old driver API ? XBMC.log will tell.


- lixer - 2010-08-18

I just got my new shiny BCM970015 decoder from Logic Supply but I can't get it to work under svn r146 crystalhd driver. I'm using Pina's imgage.


[email]xbmc@AppleTV:~/.xbmc[/email]/temp$ lspci | grep Broadcom
02:00.0 Multimedia controller: Broadcom Corporation Unknown device 1615

Here is dmesg info:

[ 52.226506] crystalhd 0000:02:00.0: bar0:0x22800000-0x00010000 bar2:0x22000000-0x00800000
[ 52.226562] crystalhd 0000:02:00.0: i2o_addr:0xd11e0000 Mapped addr:0xd1f80000
.
.
[ 72.467515] crystalhd 0000:02:00.0: Entering chd_dec_open
[ 72.467524] crystalhd 0000:02:00.0: Opening new user[0] handle
[ 72.598713] crystalhd 0000:02:00.0: Link invalid state do fw cmd 0
[ 72.704330] crystalhd 0000:02:00.0: Entering chd_dec_close
[ 72.704339] crystalhd 0000:02:00.0: Closing user[0] handle
[ 72.704841] no element found


Here is xbmc.log:

xbmc.log

Here is the crystalhd modinfo:

[email]xbmc@AppleTV:~/.xbmc[/email]/temp$ modinfo crystalhd
filename: /lib/modules/2.6.24-28-generic/kernel/drivers/video/broadcom/crystalhd.ko
alias: crystalhd
license: GPL
description: Broadcom Crystal HD Decoder Driver
author: Prasad Bolisetty <[email protected]>
author: Naren Sankar <[email protected]>
srcversion: 803303751EFA43C4AAED9F3
alias: pci:v000014E4d00001615sv*sd*bc*sc*i*
alias: pci:v000014E4d00001612sv*sd*bc*sc*i*
depends:
vermagic: 2.6.24-28-generic SMP mod_unload 586


- davilla - 2010-08-18

lixer Wrote:I just got my new shiny BCM970015 decoder from Logic Supply but I can't get it to work under svn r146 crystalhd driver. I'm using Pina's imgage.


[email]xbmc@AppleTV:~/.xbmc[/email]/temp$ lspci | grep Broadcom
02:00.0 Multimedia controller: Broadcom Corporation Unknown device 1615

Here is dmesg info:

[ 52.226506] crystalhd 0000:02:00.0: bar0:0x22800000-0x00010000 bar2:0x22000000-0x00800000
[ 52.226562] crystalhd 0000:02:00.0: i2o_addr:0xd11e0000 Mapped addr:0xd1f80000
.
.
[ 72.467515] crystalhd 0000:02:00.0: Entering chd_dec_open
[ 72.467524] crystalhd 0000:02:00.0: Opening new user[0] handle
[ 72.598713] crystalhd 0000:02:00.0: Link invalid state do fw cmd 0
[ 72.704330] crystalhd 0000:02:00.0: Entering chd_dec_close
[ 72.704339] crystalhd 0000:02:00.0: Closing user[0] handle
[ 72.704841] no element found


Here is xbmc.log:

xbmc.log

Here is the crystalhd modinfo:

[email]xbmc@AppleTV:~/.xbmc[/email]/temp$ modinfo crystalhd
filename: /lib/modules/2.6.24-28-generic/kernel/drivers/video/broadcom/crystalhd.ko
alias: crystalhd
license: GPL
description: Broadcom Crystal HD Decoder Driver
author: Prasad Bolisetty <[email protected]>
author: Naren Sankar <[email protected]>
srcversion: 803303751EFA43C4AAED9F3
alias: pci:v000014E4d00001615sv*sd*bc*sc*i*
alias: pci:v000014E4d00001612sv*sd*bc*sc*i*
depends:
vermagic: 2.6.24-28-generic SMP mod_unload 586

lets see the full dmesg output.


- lixer - 2010-08-18

Here you go dmesg.log


- davilla - 2010-08-18

lixer Wrote:Here you go dmesg.log

Did you build and install both driver and library ?


- lixer - 2010-08-18

Yes, I did using these instructions provided by Sam


mkdir crystalHD
svn checkout http://crystalhd-for-osx.googlecode.com/svn/trunk/
cd crystalhd/linux_lib/libcrystalhd
make
sudo make install
cd ../../driver/linux
autoconf
./configure
make
sudo make install
sudo modprobe crystalhd
cd
rm -rf crystalHD

davilla Wrote:Did you build and install both driver and library ?



- davilla - 2010-08-18

How is XBMC built ? PPA, self ?


- lixer - 2010-08-18

I used PPA bulids to upgrade.
davilla Wrote:How is XBMC built ? PPA, self ?



- davilla - 2010-08-18

lixer Wrote:I used PPA bulids to upgrade.

ok, I bet PPA is still building against the old driver.

grep libcrystalhd.so.1 xbmc.bin

if you get a hit, that's old driver.

in /usr/lib make a symlink from libcrystalhd.so.1 to libcrystalhd.so.3

distro rules cause these games, xbmc will figure out which API (old or new) at runtime.


- frumpy_uk - 2010-08-18

pin87a Wrote:There is probably a easier way, but this works.

note: if you are running my image ignore the kit-hash warnings from the xbmc-live package. If you are running Sam's image don't install xbmc-live (skip the download of xbmc-live_10.08~svn31718).

Code:
sudo sh -c 'echo "deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu hardy main" >> /etc/apt/sources.list.d/xbmc.org.list'
sudo sh -c 'echo "deb-src http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu hardy main" >> /etc/apt/sources.list.d/xbmc.org.list'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 64234534 CEC06767
sudo apt-get update
sudo apt-get install libvdpau1
Code:
cd
mkdir 31718
cd 31718
wget --no-check-certificate https://edge.launchpad.net/~team-xbmc-svn/+archive/ppa/+files/xbmc-bin_10.08~svn31718-hardy1_i386.deb
wget --no-check-certificate https://edge.launchpad.net/~team-xbmc-svn/+archive/ppa/+files/xbmc-data_10.08~svn31718-hardy1_all.deb
wget --no-check-certificate https://edge.launchpad.net/~team-xbmc-svn/+archive/ppa/+files/xbmc-live_10.08~svn31718-hardy1_all.deb
wget --no-check-certificate https://edge.launchpad.net/~team-xbmc-svn/+archive/ppa/+files/xbmc-skin-confluence_10.08~svn31718-hardy1_all.deb
wget --no-check-certificate https://edge.launchpad.net/~team-xbmc-svn/+archive/ppa/+files/xbmc-standalone_10.08~svn31718-hardy1_all.deb
wget --no-check-certificate https://edge.launchpad.net/~team-xbmc-svn/+archive/ppa/+files/xbmc-web_10.08~svn31718-hardy1_all.deb
wget --no-check-certificate https://edge.launchpad.net/~team-xbmc-svn/+archive/ppa/+files/xbmc_10.08~svn31718-hardy1_all.deb
sudo dpkg -i xbmc*
sudo reboot

Hey pin. Thanks for these instructions. I'm using your build (co-exists with the ATV OS on my internal drive. After following these instructions, my ATV does not start xbmc automatically in linux mode - it goes to the tty1 prompt. What's the best way to fix that?

cheers
Paul


- lixer - 2010-08-18

Thanks Davilla! It seems that PPA are still pointing to the old libs.

I updated the symlink for libcrystalhd.so.1 and viola everything worked!

xbmc@AppleTV:~$ grep libcrystalhd.so.1 /usr/lib/xbmc/xbmc.bin
Binary file /usr/lib/xbmc/xbmc.bin matches




xbmc@AppleTV:/usr/lib$ ls -lart libcrystalhd.so*
-rwxr-xr-x 1 root root 190997 2010-06-07 19:17 libcrystalhd.so.1.0
-rwxr-xr-x 1 root root 316079 2010-08-18 13:59 libcrystalhd.so.3.5
lrwxrwxrwx 1 root root 19 2010-08-18 13:59 libcrystalhd.so.3 -> libcrystalhd.so.3.5
lrwxrwxrwx 1 root root 19 2010-08-18 13:59 libcrystalhd.so -> libcrystalhd.so.3.5
lrwxrwxrwx 1 root root 17 2010-08-18 16:45 libcrystalhd.so.1 -> libcrystalhd.so.3


davilla Wrote:ok, I bet PPA is still building against the old driver.

grep libcrystalhd.so.1 xbmc.bin

if you get a hit, that's old driver.

in /usr/lib make a symlink from libcrystalhd.so.1 to libcrystalhd.so.3

distro rules cause these games, xbmc will figure out which API (old or new) at runtime.



- vengeance - 2010-08-19

I've updated to the crystal HD drivers, Kexstat is showing 3.5.0 and now MKVs no longer lockup on start. If I click on an MKV the audio will play but the video never starts. I'm pretty sure I have an older layout card from ebay, I've also ordered a newer one for Logic to see if I can make it work, but trying to get this one to work first. I used the steps from crystalhd-for-osx project to setup drivers, create rc.local etc.

Here's my dmesg stuff:

http://pastebin.com/4hXS7aEh

Here is the same while XBMC is loaded:

http://pastebin.com/9KhYBpmH


- davilla - 2010-08-19

vengeance Wrote:I've updated to the crystal HD drivers, Kexstat is showing 3.5.0 and now MKVs no longer lockup on start. If I click on an MKV the audio will play but the video never starts. I'm pretty sure I have an older layout card from ebay, I've also ordered a newer one for Logic to see if I can make it work, but trying to get this one to work first. I used the steps from crystalhd-for-osx project to setup drivers, create rc.local etc.

Here's my dmesg stuff:

http://pastebin.com/4hXS7aEh

Here is the same while XBMC is loaded:

http://pastebin.com/9KhYBpmH

How about xbmc.log for that too along with a mediainfo output of the video in question.

I do see some printfs that need killing Smile


- vengeance - 2010-08-19

Ok, I realized I messed up a bit, posted in the wrong thread as this was when I was trying to play from the launcher version of XBMC. So here are the details using the stripped image by pin87a:

Media Info
http://pastebin.com/QQu0G0Jt

New dmesg
http://pastebin.com/cK31pBB1

New xbox.log
http://pastebin.com/qSPGCKVS

I put the futurama episode I'm using as test on the USB too so that I could make sure it wasn't any issues with my network. The system just hangs and the only way out it to pull the plug. All non HD works.

Oh an I'm not seeing any crashlogs anywhere, it is just hanging.