[LINUX] Problems compiling crystalhd branch

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
cake Offline
Junior Member
Posts: 35
Joined: Nov 2009
Reputation: 2
Post: #1
Hi, my setup is as described here:
http://forum.xbmc.org/showpost.php?p=446...tcount=721

I've tried compiling latest trunk, i've tried the rev before r25048 (as davilla suggested) but there is just no compiling it. Someone, was it davilla?, mentioned karmic was supported by the leaked bmc70012 linux drivers. Only up to 8.04? Did anyone successfully compile the crystalhd branch with crystalhd actually working?

------------

I got it working, check this guide for details:
http://dingleberry.me/2009/11/compile-xb...-on-linux/
(This post was last modified: 2009-12-04 21:12 by cake.)
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,478
Joined: Feb 2008
Reputation: 64
Post: #2
cake Wrote:I've tried compiling latest trunk, i've tried the rev before r25048 (as davilla suggested) but there is just no compiling it.

That better be crystalhd branch not latest trunk

Pastebin your compile errors, that's always a good start.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
dan1son Offline
Fan
Posts: 608
Joined: Dec 2008
Reputation: 0
Post: #3
Installing 8.04 onto an atv-bootloader card now. Hopefully 4gigs is enough. Smile

I'll be getting gstreamer working first (looks to be fairly straight forward with the drivers out in the wild) then I'll give compiling CrystalHD XBMC branch a go. I'll definitely post my progress here.

EDIT: After taking FAR too freakin long to install onto a USB flash drive, I replaced the hard disk in the appletv with an old one out of a laptop. Gonna try this again.
(This post was last modified: 2009-11-28 00:05 by dan1son.)
find quote
cake Offline
Junior Member
Posts: 35
Joined: Nov 2009
Reputation: 2
Post: #4
latest crystalhd branch was what i meant yes. I booted the box and lost the compile errors i got and it takes about 45 mins to get to the point where it stops. I'll post it next time i try to compile. A few questions tho;
1. If i understood correctly I need to include the files from: http://trac.xbmc.org/changeset/22347/branches/xdmx/XBMC
before trying to compile the crystalhd branch?
2. I cannot seem to find the bcm_link_run.sh script mentioned here:
http://forum.xbmc.org/showpost.php?p=446...tcount=731
3. http://forum.xbmc.org/showpost.php?p=446...tcount=728 mentions bc_drv_if.h instead of the missing c_ldil_if.h, is a simple cp enough?
find quote
cake Offline
Junior Member
Posts: 35
Joined: Nov 2009
Reputation: 2
Post: #5
One thing is for sure, totem didnt want to play any x264 on my karmic install Smile
find quote
gimli Offline
Team-XBMC Developer
Posts: 443
Joined: Jun 2009
Reputation: 9
Post: #6
A view hints :

Copy the files from http://trac.xbmc.org/changeset/22347/branches/xdmx/XBMC to /usr/include/crystalhd

ls -l /usr/include/crystalhd/

-rwxr-xr-x 1 root root 86870 Nov 26 09:41 7411d.h
-rwxr-xr-x 1 root root 16587 Nov 26 09:41 bc_dts_defs.h
-rwxr-xr-x 1 root root 1910 Nov 26 09:41 bc_dts_types.h
-rwxr-xr-x 1 root root 43370 Nov 26 09:41 bc_ldil_if.h
drwxr-xr-x 2 root root 4096 Nov 26 09:41 link
drwxr-xr-x 2 root root 4096 Nov 26 09:41 linux
-rwxr-xr-x 1 root root 15568 Nov 26 09:41 vdec_info.h
drwxr-xr-x 3 root root 4096 Nov 26 09:41 windows

bc_ldil_if.h is a copy of windows/bc_drv_if.h

Copy bcmFilePlayFw.bin -> /usr/lib/bcmFilePlayFw.bin
Copy libldil.so.1.0 -> /usr/lib/libldil.so.1.0
Link /usr/lib/libldil.so.1.0 //usr/lib/libldil.so.1
Link /usr/lib/libldil.so.1.0 /usr/lib/libldil.so

On archlinux i had to edit /usr/include/crystalhd/bc_dts_types.h and remarked "typedef void VOID;" ( //typedef void VOID; )

bcm_70012_dev.sh is found in linux_release_generic/Driver/.

I also copied /usr/include/crystalhd -> xbmc_src/lib/.
find quote
hisper Offline
Junior Member
Posts: 4
Joined: Nov 2009
Reputation: 0
Post: #7
gimli : got it all compiled under ubuntu, but i am getting :
*ERR*:...bc_link_cmds.c:315: Link invalid state 0

Probably missing 'bcmFilePlayFw.bin'. Where did you get that ?
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,478
Joined: Feb 2008
Reputation: 64
Post: #8
hisper Wrote:gimli : got it all compiled under ubuntu, but i am getting :
*ERR*:...bc_link_cmds.c:315: Link invalid state 0

Probably missing 'bcmFilePlayFw.bin'. Where did you get that ?

The HP Mini 110 distro has it.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
dan1son Offline
Fan
Posts: 608
Joined: Dec 2008
Reputation: 0
Post: #9
davilla Wrote:The HP Mini 110 distro has it.

Any hints on where? Having some problems finding that one in the plethora of information...

EDIT:
Scratch that... It was installed with one of the debs in the right place.
(This post was last modified: 2009-11-28 05:50 by dan1son.)
find quote
csbook Offline
Member
Posts: 59
Joined: Aug 2008
Reputation: 0
Post: #10
bcmFilePlayFw.bin can be found in the windows zip:
http://www.norco.net.cn/UpLoadFile/Drive...allers.zip
find quote
dan1son Offline
Fan
Posts: 608
Joined: Dec 2008
Reputation: 0
Post: #11
OK. I just want to make sure this is still the case. I need to go through the steps on the bootloader to get sound working even on 8.04? I'm not getting any sound right now (I really want optical AC3 pass-through to work). Is that a possibility at all?

I should clarify I'm only trying sound playback in totem right now. Can't get anything to play through HDMI or optical. (assuming those use the same output on the card?)
(This post was last modified: 2009-11-28 07:26 by dan1son.)
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,478
Joined: Feb 2008
Reputation: 64
Post: #12
dan1son Wrote:OK. I just want to make sure this is still the case. I need to go through the steps on the bootloader to get sound working even on 8.04? I'm not getting any sound right now (I really want optical AC3 pass-through to work). Is that a possibility at all?

I should clarify I'm only trying sound playback in totem right now. Can't get anything to play through HDMI or optical. (assuming those use the same output on the card?)

yes.

I'm also running nvidia 185.18.14 but analog out. Not sure if audio over hdmi works with this version.

Other hints, install cpufreq as Ubuntu 8.04 will cycle down to 600MHz when CPU drops below 20 percent.

sudo cpufreq-set -d 1000MHz -u 1000MHz

will stop that silliness.

Add "processor.max_cstate=2" to the kernel boot args in menu.1st to keep out of C3.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
dan1son Offline
Fan
Posts: 608
Joined: Dec 2008
Reputation: 0
Post: #13
Upon further investigation it seems as though sound works fine in Gnome, but not in XFCE without manually starting ESD... even then it's just stereo...

I followed the steps here http://code.google.com/p/atv-bootloader/...buntuHardy
find quote
motd2k Offline
Team-XBMC Developer
Posts: 666
Joined: Dec 2008
Reputation: 0
Location: England
Post: #14
gimli, that makes this much less sporting!
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,478
Joined: Feb 2008
Reputation: 64
Post: #15
crystalhd branch is safe now, I highly recommend enabling pixel buffer objects in settings -> system -> video Smile


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
(This post was last modified: 2009-11-28 10:17 by davilla.)
find quote
Post Reply