[LINUX] Problems compiling crystalhd branch - Printable Version
+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: [LINUX] Problems compiling crystalhd branch (/showthread.php?tid=62708)
[LINUX] Problems compiling crystalhd branch - cake - 2009-11-27 21:25
Hi, my setup is as described here:
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:
- davilla - 2009-11-27 21:35
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.
- dan1son - 2009-11-27 21:44
Installing 8.04 onto an atv-bootloader card now. Hopefully 4gigs is enough.
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.
- cake - 2009-11-27 21:45
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:
3. http://forum.xbmc.org/showpost.php?p=446772&postcount=728 mentions bc_drv_if.h instead of the missing c_ldil_if.h, is a simple cp enough?
- cake - 2009-11-27 21:47
One thing is for sure, totem didnt want to play any x264 on my karmic install
- gimli - 2009-11-27 23:20
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/.
- hisper - 2009-11-28 01:01
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 ?
- davilla - 2009-11-28 03:20
hisper Wrote:gimli : got it all compiled under ubuntu, but i am getting :
The HP Mini 110 distro has it.
- dan1son - 2009-11-28 04:59
davilla Wrote:The HP Mini 110 distro has it.
Any hints on where? Having some problems finding that one in the plethora of information...
Scratch that... It was installed with one of the debs in the right place.
- csbook - 2009-11-28 05:10
bcmFilePlayFw.bin can be found in the windows zip:
- dan1son - 2009-11-28 06:58
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?)
- davilla - 2009-11-28 07:54
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'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.
- dan1son - 2009-11-28 08:27
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/wiki/PostMythbuntuHardy
- motd2k - 2009-11-28 09:03
gimli, that makes this much less sporting!
- davilla - 2009-11-28 09:47
crystalhd branch is safe now, I highly recommend enabling pixel buffer objects in settings -> system -> video