Kodi Community Forum
[LINUX] Problems compiling crystalhd branch - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: [LINUX] Problems compiling crystalhd branch (/showthread.php?tid=62708)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


- davilla - 2010-01-02

matthoffman Wrote:Thanks for the info. From what I posted does it look like the driver is loading correctly from looking at kern.log or is something missing?

Does the BCH_70012_run.sh need to be auto run whenever linux is restarted? I know their was some type of crystahd_link.sh that you stated needed to be run because the kernel never started it correctly.

BCH_70012_run.sh needs to be run on boot, there is a patch that fixes this and adds a udev rule. see http://sourceforge.net/apps/trac/archvdr/browser/trunk/archvdr/crystalhd/use_udev.patch

or you can follow this http://forum.xbmc.org/showpost.php?p=470717&postcount=945


- matthoffman - 2010-01-02

Davilla ok I followed what you said and now I am getting farther but I am getting firmware errors like before with other release and you stated I needed to add udelay(8) and recompile but this is happening on a different file in a different location. here is log.


---------------------------
Jan 1 16:19:31 atv kernel: [ 81.794580] Starting BCM70012 Device
Jan 1 16:19:31 atv kernel: [ 82.032134] clock is moving to 175 with n 35 with vco_mg 2
Jan 1 16:19:32 atv kernel: [ 82.032159] CInitializing Dio pool 10 1024 505c ce64ba80
Jan 1 16:19:33 atv kernel: [ 84.273791] Firmware Downloaded Successfully
Jan 1 16:19:53 atv kernel: [ 104.309771] *ERR*:/home/xbmc/crystal/crystalhd/driver/linux/crystalhd_hw.c:1766: Firmware command T/O
Jan 1 16:19:53 atv kernel: [ 104.309780] *ERR*:/home/xbmc/crystal/crystalhd/driver/linux/crystalhd_hw.c:1777: FwCmd Failed.
Jan 1 16:19:53 atv kernel: [ 104.309786] fw cmd 73763001 failed
Jan 1 16:19:53 atv kernel: [ 104.415122] Closing user[0] handle
Jan 1 16:19:53 atv kernel: [ 104.415129] Deleting IOQs
Jan 1 16:19:53 atv kernel: [ 104.415138] Releasing RX Pkt pool
Jan 1 16:19:53 atv kernel: [ 104.415178] Released dio pool 10
Jan 1 16:19:54 atv kernel: [ 104.469706] Stopping BCM70012 Device


- davilla - 2010-01-02

matthoffman Wrote:Davilla ok I followed what you said and now I am getting farther but I am getting firmware errors like before with other release and you stated I needed to add udelay(8) and recompile but this is happening on a different file in a different location. here is log.


---------------------------
Jan 1 16:19:31 atv kernel: [ 81.794580] Starting BCM70012 Device
Jan 1 16:19:31 atv kernel: [ 82.032134] clock is moving to 175 with n 35 with vco_mg 2
Jan 1 16:19:32 atv kernel: [ 82.032159] CInitializing Dio pool 10 1024 505c ce64ba80
Jan 1 16:19:33 atv kernel: [ 84.273791] Firmware Downloaded Successfully
Jan 1 16:19:53 atv kernel: [ 104.309771] *ERR*:/home/xbmc/crystal/crystalhd/driver/linux/crystalhd_hw.c:1766: Firmware command T/O
Jan 1 16:19:53 atv kernel: [ 104.309780] *ERR*:/home/xbmc/crystal/crystalhd/driver/linux/crystalhd_hw.c:1777: FwCmd Failed.
Jan 1 16:19:53 atv kernel: [ 104.309786] fw cmd 73763001 failed
Jan 1 16:19:53 atv kernel: [ 104.415122] Closing user[0] handle
Jan 1 16:19:53 atv kernel: [ 104.415129] Deleting IOQs
Jan 1 16:19:53 atv kernel: [ 104.415138] Releasing RX Pkt pool
Jan 1 16:19:53 atv kernel: [ 104.415178] Released dio pool 10
Jan 1 16:19:54 atv kernel: [ 104.469706] Stopping BCM70012 Device

Which source are you building? The leaked sources or the official released sources ?


- matthoffman - 2010-01-02

Davilla this is from the official released source that came out . I just downloaded it directly from the website again and I am getting this error and I can repeat it after a reboot. Have any ideas?


- i5Js - 2010-01-02

davilla Wrote:check config.log


Hello everybody! Happy new year!

Davilla, here is my config.log

http://pastebin.com/m2fd9a87a

BR

EDIT: I think that this could be the error:

configure:9434: result: == Could not find libldil. CrystalHD support disabled. ==

Where I can find it?


- davilla - 2010-01-02

i5Js Wrote:Hello everybody! Happy new year!

Davilla, here is my config.log

http://pastebin.com/m2fd9a87a

BR

EDIT: I think that this could be the error:

configure:9434: result: == Could not find libldil. CrystalHD support disabled. ==

Where I can find it?

did you install the driver/lib ? Just the fact that it says "libldil" and not "libcrystalhd" tells me your svn check out is very stale.


- davilla - 2010-01-02

matthoffman Wrote:Davilla ok I followed what you said and now I am getting farther but I am getting firmware errors like before with other release and you stated I needed to add udelay(8) and recompile but this is happening on a different file in a different location. here is log.


---------------------------
Jan 1 16:19:31 atv kernel: [ 81.794580] Starting BCM70012 Device
Jan 1 16:19:31 atv kernel: [ 82.032134] clock is moving to 175 with n 35 with vco_mg 2
Jan 1 16:19:32 atv kernel: [ 82.032159] CInitializing Dio pool 10 1024 505c ce64ba80
Jan 1 16:19:33 atv kernel: [ 84.273791] Firmware Downloaded Successfully
Jan 1 16:19:53 atv kernel: [ 104.309771] *ERR*:/home/xbmc/crystal/crystalhd/driver/linux/crystalhd_hw.c:1766: Firmware command T/O
Jan 1 16:19:53 atv kernel: [ 104.309780] *ERR*:/home/xbmc/crystal/crystalhd/driver/linux/crystalhd_hw.c:1777: FwCmd Failed.
Jan 1 16:19:53 atv kernel: [ 104.309786] fw cmd 73763001 failed
Jan 1 16:19:53 atv kernel: [ 104.415122] Closing user[0] handle
Jan 1 16:19:53 atv kernel: [ 104.415129] Deleting IOQs
Jan 1 16:19:53 atv kernel: [ 104.415138] Releasing RX Pkt pool
Jan 1 16:19:53 atv kernel: [ 104.415178] Released dio pool 10
Jan 1 16:19:54 atv kernel: [ 104.469706] Stopping BCM70012 Device

The official release source code does not need the udelay(8) added, it's already present.


- matthoffman - 2010-01-02

Davilla I added another udelay(8) just for kicks in the code around line 1766. I also pulled the CrystalHD card out of my apple tv and reinserted it. Now for some reason the thing is working. Man this thing is impressive full 1080p video on an Appletv. This is AWESOME!!!!!!

Thanks for all your hard work. This is amazing what the appletv can do now.

Also thank you for all your help with me trying to figure out why it wasn't working.


- andybz - 2010-01-02

davilla Wrote:did you install the driver/lib ? Just the fact that it says "libldil" and not "libcrystalhd" tells me your svn check out is very stale.

XBMC trunk/configure.in, line 46:

crystalhd_not_found="== Could not find libldil. CrystalHD support disabled. =="

I'm guessing that needs to be changed to libcrystalhd?


- i5Js - 2010-01-02

davilla Wrote:did you install the driver/lib ? Just the fact that it says "libldil" and not "libcrystalhd" tells me your svn check out is very stale.

Yes I got the last release (yesterday at 1:00 AM), and compiled and patch the driver an lib.

BR


- i5Js - 2010-01-02

I'm just download the build 26279 with the same result Sad


- dan1son - 2010-01-02

You need to apply the patch davilla posted several pages ago to the broadcom driver you download from their site before compiling and installing it.

configure --enable-crystalhd is looking for an include file libcrystalhd_if.h in /usr/include/libcrystalhd/ which won't be there unless you've patched the Makefile in the linux_lib broadcom directories.

The libldil missing is the error it pops, but look at the line before that where it's looking for libcrystalhd_if.h


- i5Js - 2010-01-02

Hello dan1son, thx for the answer. I've patched the driver before compiling and installint it, and libcrystalhd_if.h is in /usr/include/libcrystalhd

BR


- dan1son - 2010-01-02

i5Js Wrote:Hello dan1son, thx for the answer. I've patched the driver before compiling and installint it, and libcrystalhd_if.h is in /usr/include/libcrystalhd

BR

Not sure what to tell ya then... I'm compiling the current SVN right now with no problems after going through running dos2unix on the broadcom driver source, patching it, compiling and installing it, and configuring xbmc. Everything is working as expected.

Just rebuilt my ATV with Karmic.


- i5Js - 2010-01-02

I've rebuilt my atv with karmic too, by the way, which are the permissions and owners of ibcrystalhd_if.h? May be the mine are wrong.

BR