XBMCbuntu - Crystal HD option not available under settings

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
reSPAWNed Offline
Junior Member
Posts: 6
Joined: Feb 2012
Reputation: 0
Post: #1
Hi everyone,

I have been struggling with this for days now, and yesterday I finally got some much appreciated help over IRC from fritsch.
But unfortunately even he gave up in the end, so now I am trying the forums.

My problem is, that I am missing an option under Settings>>Video>>Playback for enabling Crystal HD support.

Here is what I have done so far:
1) Install XBMCbuntu from here: http://mirrors.xbmc.org/releases/XBMCbuntu/
2) Run 'lspci' to ensure that the hardware is found.
http://paste.ubuntu.com/843763/
3) Install some dependencies before getting the drivers:
Code:
sudo apt-get update
sudo apt-get install linux-firmware-nonfree build-essential
4) Get the latest drivers: (supplied from fritsch)
http://packages.debian.org/sid/crystalhd-dkms
http://packages.debian.org/sid/libcrystalhd3
http://packages.debian.org/sid/libcrystalhd-dev
Code:
wget http://ftp.us.debian.org/debian/pool/main/c/crystalhd/libcrystalhd3_0.0~git20110715.fdd2f19-5_i386.deb
wget http://ftp.us.debian.org/debian/pool/main/c/crystalhd/libcrystalhd-dev_0.0~git20110715.fdd2f19-5_i386.deb
wget http://ftp.us.debian.org/debian/pool/main/c/crystalhd/crystalhd-dkms_0.0~git20110715.fdd2f19-5_i386.deb
5) Install the packages:
Code:
sudo dpkg -i libcrystalhd3_0.0~git20110715.fdd2f19-5_i386.deb
sudo dpkg -i libcrystalhd-dev_0.0~git20110715.fdd2f19-5_i386.deb
sudo dpkg -i crystalhd-dkms_0.0~git20110715.fdd2f19-5_i386.deb
6) Add this line to the '/etc/modules' file:
Code:
crystalhd
7) Reboot the machine

Here are some additional information:
modinfo crystalhd: http://paste.ubuntu.com/843766/
dmesg: http://paste.ubuntu.com/843768/
xbmc.log: http://paste.ubuntu.com/843776/

I really hope someone can help me... I feel that I am so close, since the only thing missing is for XBMC to give me an option to enable my Crystal HD chip.
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #2
looks sounds, driver loads, but xbmc does not show the load even though it says it has compiled in support. Strange.

a) xbmc can't find the crystalhd lib.
b) crystalhd lib can't find it's firmware.

where is crystalhd lib (show me with ls -l)
where are crystalhd firmware (show me with ls -l)


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
reSPAWNed Offline
Junior Member
Posts: 6
Joined: Feb 2012
Reputation: 0
Post: #3
Hi davilla,

Thank you very much for your reply.

I am not sure which exact files, you want too see with an 'ls -l', so I did a search:
Code:
sudo find / -name *crystalhd*
Here are the results: http://paste.ubuntu.com/844472/

Which files do you want to see listed?
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #4
find xbmc.bin
then
strings xbmc.bin | grep crystalhd


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
reSPAWNed Offline
Junior Member
Posts: 6
Joined: Feb 2012
Reputation: 0
Post: #5
That got me the following result:
Code:
strings /usr/lib/xbmc/xbmc.bin | grep crystalhd
libcrystalhd.so.3
find quote
Sam.Nazarko Offline
Posting Freak
Posts: 864
Joined: Dec 2009
Reputation: 17
Location: London
Post: #6
so verify that so in /usr/lib

ls /usr/lib/libcrystalhd.so.3

if nothing:

ls /usr/lib | grep crystalhd

probably need to ldconfig.
find quote
reSPAWNed Offline
Junior Member
Posts: 6
Joined: Feb 2012
Reputation: 0
Post: #7
Hi Sam,

Thanks for your input.

The '/use/lib/' directory did not contain any files with 'crystalhd' in their filenames.

Not sure how to use ldconfig, but after reading the manual page, I tried running the command and here is the output: http://paste.ubuntu.com/845544/

At line 97 it appears that the command made a link by the name 'libcrystalhd.so.3' to 'libcrystalhd.so.3.6', which was already there.

So do I need to make i link to this file somewhere else, in order for XBMC to be able to find the file?

BTW: Yesterday I caught fritsch on the IRC again, and we tried executing the following command, which still gave no new results:
Code:
sudo ln -s /usr/lib/i386-linux-gnu/libcrystalhd.so.3 /usr/lib/
find quote
Roots Offline
Junior Member
Posts: 5
Joined: Feb 2012
Reputation: 0
Post: #8
I'm having the same problem with XBMCbuntu and CrystalHD.

No sign of CrystalHD in the xbmc.log files does this mean the build does not support it? I'm using a hard disk install from: xbmc-Eden_beta3-xbmcbuntu.iso
(This post was last modified: 2012-02-17 17:43 by Roots.)
find quote
Roots Offline
Junior Member
Posts: 5
Joined: Feb 2012
Reputation: 0
Post: #9
Ive compiled the latest branch from git (20120217-3a981bd) and I now have the following in my log but still not CrystalHD option:

17:08:31 T:4766368 DEBUG: SECTION:LoadDLL(libcrystalhd.so.3)
17:08:31 T:4766368 DEBUG: Loading: libcrystalhd.so.3
17:09:01 T:4766368 DEBUG: SECTION:UnloadDelayed(DLL: libcrystalhd.so.3)
17:09:01 T:4766368 DEBUG: Unloading: libcrystalhd.so.3
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,508
Joined: Feb 2008
Reputation: 64
Post: #10
where are the firmware files located ?


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
Sam.Nazarko Offline
Posting Freak
Posts: 864
Joined: Dec 2009
Reputation: 17
Location: London
Post: #11
reSPAWNed Wrote:Hi Sam,

Thanks for your input.

The '/use/lib/' directory did not contain any files with 'crystalhd' in their filenames.

Not sure how to use ldconfig, but after reading the manual page, I tried running the command and here is the output: http://paste.ubuntu.com/845544/

At line 97 it appears that the command made a link by the name 'libcrystalhd.so.3' to 'libcrystalhd.so.3.6', which was already there.

So do I need to make i link to this file somewhere else, in order for XBMC to be able to find the file?

BTW: Yesterday I caught fritsch on the IRC again, and we tried executing the following command, which still gave no new results:
Code:
sudo ln -s /usr/lib/i386-linux-gnu/libcrystalhd.so.3 /usr/lib/

careful. That's /usr/lib not /use/lib

Roots Wrote:I'm having the same problem with XBMCbuntu and CrystalHD.

No sign of CrystalHD in the xbmc.log files does this mean the build does not support it? I'm using a hard disk install from: xbmc-Eden_beta3-xbmcbuntu.iso

Well in your case seems to load the SO but probably unloads because of no FW. As FW and SO must be same version, for both of you I recommend an update:

Code:
apt-get update
apt-get install subversion autoconf build-essential

Code:
svn checkout http://crystalhd-for-osx.googlecode.com/svn/tags/crystalhd-for-osx-3.8.0
cd crystalhd-for-osx-3.8.0/crystalhd/linux_lib/libcrystalhd
make
sudo make install
cd ../../driver/linux
autoconf
./configure
make
sudo make install
sudo modprobe crystalhd
cd
rm -rf crystalhd-for-osx-3.8.0
find quote
Roots Offline
Junior Member
Posts: 5
Joined: Feb 2012
Reputation: 0
Post: #12
Update Ive now removed the old packages and built it from svn as you suggested. However now im getting this in xbmc.log:

19:33:34 T:7948032 DEBUG: SECTION:LoadDLL(libcrystalhd.so.3)
19:33:34 T:7948032 DEBUG: Loading: libcrystalhd.so.3
19:33:34 T:7948032 DEBUG: CrystalHD: device open failed , returning(0xffffffff)
19:33:34 T:7948032 DEBUG: CrystalHD: broadcom crystal hd not found

lsmod however shows:
crystalhd 55534 0

lspci:
06:00.0 Multimedia controller: Broadcom Corporation BCM70012 Video Decoder [Crystal HD] (rev 01)

dmesg:
[ 6.568499] crystalhd: module is from the staging directory, the quality is unknown, you have been warned.
[ 6.568697] crystalhd: module is from the staging directory, the quality is unknown, you have been warned.
[ 6.568992] Loading crystalhd 0.9.27
[ 6.569021] PCI_INFO: Vendor:0x14e4 Device:0x1612 s_vendor:0x14e4 s_device: 0x2612
[ 6.569043] Broadcom 70012 Decoder 0000:06:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[ 6.569843] allocated 18 elem
[ 6.569947] Broadcom 70012 Decoder 0000:06:00.0: irq 46 for MSI/MSI-X
[ 6.569985] Starting BCM70012 Device
[ 6.808146] clock is moving to 175 with n 35 with vco_mg 2
[ 6.808171] CStopping BCM70012 Device
(This post was last modified: 2012-02-17 21:46 by Roots.)
find quote
Roots Offline
Junior Member
Posts: 5
Joined: Feb 2012
Reputation: 0
Post: #13
Update: card is working on Windoze Vista. So its not a hardware problem.
find quote
reSPAWNed Offline
Junior Member
Posts: 6
Joined: Feb 2012
Reputation: 0
Post: #14
My card is working out of the box in XBMC Live with XBMC 10.1 Dharma.

So I'll be using that for now, until it is fixed in the new XBMC...
find quote
x0149128 Offline
Member
Posts: 68
Joined: Dec 2011
Reputation: 0
Post: #15
I'm also trying to get the crystal hd working with xbmc.

But i can't make the drivers:

Code:
make
make -C /lib/modules/2.6.38-8-generic/build SUBDIRS=/home/carl/crystalhd-for-osx-3.8.0/crystalhd/driver/linux modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic'
  CC [M]  /home/carl/crystalhd-for-osx-3.8.0/crystalhd/driver/linux/crystalhd_lnx.o
/home/carl/crystalhd-for-osx-3.8.0/crystalhd/driver/linux/crystalhd_lnx.c:368:2: error: unknown field ‘ioctl’ specified in initializer
cc1: warnings being treated as errors
/home/carl/crystalhd-for-osx-3.8.0/crystalhd/driver/linux/crystalhd_lnx.c:368:2: error: initialization from incompatible pointer type
make[2]: *** [/home/carl/crystalhd-for-osx-3.8.0/crystalhd/driver/linux/crystalhd_lnx.o] Error 1
make[1]: *** [_module_/home/carl/crystalhd-for-osx-3.8.0/crystalhd/driver/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
make: *** [all] Error 2
find quote
Post Reply