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


- matthoffman - 2010-01-06

Davilla, the CrystalHD was working great for 3-4 days but now I am getting this error again. I even tried to get the latest SVN source (location where OSX drivers are) for linux and recompiled.

Jan 6 12:04:29 atv kernel: [ 78.271482] Starting BCM70012 Device
Jan 6 12:04:29 atv kernel: [ 78.510754] clock is moving to 175 with n 35 with vco_mg 2
Jan 6 12:04:30 atv kernel: [ 78.510779] CInitializing Dio pool 10 1024 505c cfa1a5a0
Jan 6 12:04:32 atv kernel: [ 80.976189] Firmware Downloaded Successfully
Jan 6 12:04:52 atv kernel: [ 101.012261] *ERR*:/usr/src/crystalhd/driver/linux/crystalhd_hw.c:1767: Firmware comman$
Jan 6 12:04:52 atv kernel: [ 101.012270] *ERR*:/usr/src/crystalhd/driver/linux/crystalhd_hw.c:1778: FwCmd Failed.
Jan 6 12:04:52 atv kernel: [ 101.012274] fw cmd 73763001 failed
Jan 6 12:04:52 atv kernel: [ 101.117604] Closing user[0] handle
Jan 6 12:04:52 atv kernel: [ 101.117611] Deleting IOQs
Jan 6 12:04:52 atv kernel: [ 101.117620] Releasing RX Pkt pool
Jan 6 12:04:52 atv kernel: [ 101.117664] Released dio pool 10
Jan 6 12:04:52 atv kernel: [ 101.172102] Stopping BCM70012 Device


Would this point to a bad CrystalHD card?
Have any other idea's of what I could try? Doesn't seem anybody else is running into this.


- davilla - 2010-01-06

canadianguy Wrote:If under 10.6, with xCode 3.2 (the only supported version for 10.6) I don't have the 10.4u SDK installed. It doesn't come with xCode 3.2. Do I absolutely need the 10.4 SDK? Where can I get it, or do I have to uninstall xCode 3.2 and use xCode 3.1 instead?

Thanks

it does, run the installer again and check the options


- davilla - 2010-01-06

matthoffman Wrote:Davilla, the CrystalHD was working great for 3-4 days but now I am getting this error again. I even tried to get the latest SVN source (location where OSX drivers are) for linux and recompiled.

Jan 6 12:04:29 atv kernel: [ 78.271482] Starting BCM70012 Device
Jan 6 12:04:29 atv kernel: [ 78.510754] clock is moving to 175 with n 35 with vco_mg 2
Jan 6 12:04:30 atv kernel: [ 78.510779] CInitializing Dio pool 10 1024 505c cfa1a5a0
Jan 6 12:04:32 atv kernel: [ 80.976189] Firmware Downloaded Successfully
Jan 6 12:04:52 atv kernel: [ 101.012261] *ERR*:/usr/src/crystalhd/driver/linux/crystalhd_hw.c:1767: Firmware comman$
Jan 6 12:04:52 atv kernel: [ 101.012270] *ERR*:/usr/src/crystalhd/driver/linux/crystalhd_hw.c:1778: FwCmd Failed.
Jan 6 12:04:52 atv kernel: [ 101.012274] fw cmd 73763001 failed
Jan 6 12:04:52 atv kernel: [ 101.117604] Closing user[0] handle
Jan 6 12:04:52 atv kernel: [ 101.117611] Deleting IOQs
Jan 6 12:04:52 atv kernel: [ 101.117620] Releasing RX Pkt pool
Jan 6 12:04:52 atv kernel: [ 101.117664] Released dio pool 10
Jan 6 12:04:52 atv kernel: [ 101.172102] Stopping BCM70012 Device


Would this point to a bad CrystalHD card?
Have any other idea's of what I could try? Doesn't seem anybody else is running into this.

power off/on cycle ?


- matthoffman - 2010-01-07

I tried to power off the appletv by unplugging it and then plugged it back in a few minutes later. No change I get the same error in kern.log. Have you seen this happen yourself before? Or am I the first Tongue


- davilla - 2010-01-07

matthoffman Wrote:I tried to power off the appletv by unplugging it and then plugged it back in a few minutes later. No change I get the same error in kern.log. Have you seen this happen yourself before? Or am I the first Tongue

I've seen it when first bringing up the Broadcom source. Long time ago and can't remember why/what was the problem but it was driver/lib source code and not a hardware problem.

I actually software ponked (driver dev work) one of my cards so hard a few days ago that it lost the pci device/vendor ID (reported at zero) and the card vanished on re-boot. It returned on a complete power off, power on cycle.


- matthoffman - 2010-01-07

Thank you for the info. Since you think it may be Driver/Lib related I have no idea what else to try. I guess I can just power off longer and see if that helps when I power it back on.


- i5Js - 2010-01-07

I don't understand why I can't compile it. I've reinstalled all mac-ports and configure to use 10.4 sdk:

Code:
# MACOSX_DEPLOYMENT_TARGET
universal_target        10.4

# the SDK "sysroot" to use
universal_sysroot       /Developer/SDKs/MacOSX10.4u.sdk

# machine architectures
universal_archs         i386

Then I compiled and build (by Xcode or command-line) but when I try to execute it on aTV

Code:
-bash-2.05b$ XBMC.app/Contents/MacOS/XBMC
dyld: Library not loaded: @executable_path/../Frameworks/libglib-2.0.0.dylib
  Referenced from: /mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/MacOS/../Frameworks/libmms.0.dylib
  Reason: no suitable image found.  Did find:
    /mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/MacOS/../Frameworks/libglib-2.0.0.dylib: unknown required load command 0x80000022
    /mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/MacOS/../Frameworks/libglib-2.0.0.dylib: unknown required load command 0x80000022
Trace/BPT trap

I don't understand...

BR


- matthoffman - 2010-01-07

Davilla,

The power off/power on isn't working. I left my appletv unplugged all night and just plugged it in when I woke up. I am still getting the same error. It appears to be happening because the crystalhd card is stating that it's busy and then dropping out and unloading the driver. I have tried reboots, unplugging multiple times with no luck. I get the same error each and every time. Only time I got it to work is when I added another udelay(8). That isn't even working anymore either.

-----------------
Jan 6 12:04:29 atv kernel: [ 78.271482] Starting BCM70012 Device
Jan 6 12:04:29 atv kernel: [ 78.510754] clock is moving to 175 with n 35 with vco_mg 2
Jan 6 12:04:30 atv kernel: [ 78.510779] CInitializing Dio pool 10 1024 505c cfa1a5a0
Jan 6 12:04:32 atv kernel: [ 80.976189] Firmware Downloaded Successfully
Jan 6 12:04:52 atv kernel: [ 101.012261] *ERR*:/usr/src/crystalhd/driver/linux/crystalhd_hw.c:1767: Firmware comman$
Jan 6 12:04:52 atv kernel: [ 101.012270] *ERR*:/usr/src/crystalhd/driver/linux/crystalhd_hw.c:1778: FwCmd Failed.
Jan 6 12:04:52 atv kernel: [ 101.012274] fw cmd 73763001 failed
Jan 6 12:04:52 atv kernel: [ 101.117604] Closing user[0] handle
Jan 6 12:04:52 atv kernel: [ 101.117611] Deleting IOQs
Jan 6 12:04:52 atv kernel: [ 101.117620] Releasing RX Pkt pool
Jan 6 12:04:52 atv kernel: [ 101.117664] Released dio pool 10
Jan 6 12:04:52 atv kernel: [ 101.172102] Stopping BCM70012 Device


- davilla - 2010-01-07

matthoffman Wrote:Davilla,

The power off/power on isn't working. I left my appletv unplugged all night and just plugged it in when I woke up. I am still getting the same error. It appears to be happening because the crystalhd card is stating that it's busy and then dropping out and unloading the driver. I have tried reboots, unplugging multiple times with no luck. I get the same error each and every time. Only time I got it to work is when I added another udelay(8). That isn't even working anymore either.

-----------------
Jan 6 12:04:29 atv kernel: [ 78.271482] Starting BCM70012 Device
Jan 6 12:04:29 atv kernel: [ 78.510754] clock is moving to 175 with n 35 with vco_mg 2
Jan 6 12:04:30 atv kernel: [ 78.510779] CInitializing Dio pool 10 1024 505c cfa1a5a0
Jan 6 12:04:32 atv kernel: [ 80.976189] Firmware Downloaded Successfully
Jan 6 12:04:52 atv kernel: [ 101.012261] *ERR*:/usr/src/crystalhd/driver/linux/crystalhd_hw.c:1767: Firmware comman$
Jan 6 12:04:52 atv kernel: [ 101.012270] *ERR*:/usr/src/crystalhd/driver/linux/crystalhd_hw.c:1778: FwCmd Failed.
Jan 6 12:04:52 atv kernel: [ 101.012274] fw cmd 73763001 failed
Jan 6 12:04:52 atv kernel: [ 101.117604] Closing user[0] handle
Jan 6 12:04:52 atv kernel: [ 101.117611] Deleting IOQs
Jan 6 12:04:52 atv kernel: [ 101.117620] Releasing RX Pkt pool
Jan 6 12:04:52 atv kernel: [ 101.117664] Released dio pool 10
Jan 6 12:04:52 atv kernel: [ 101.172102] Stopping BCM70012 Device

pull fresh from crystalhd-for-osx (it contains both linux and osx trees). remake/reinstall driver/lib


- davilla - 2010-01-07

i5Js Wrote:I don't understand why I can't compile it. I've reinstalled all mac-ports and configure to use 10.4 sdk:
I don't understand...

BR

You and me both. I'll pull fresh and re-build under a 10.6 box. Something fishy.


- matthoffman - 2010-01-07

UPDATE: Nevermind I figured it out. Trying latest source now to see if it will fix the issue.

Davilla,

Dumb question. how do I pull from crystalhd-for-osx?
I have tried "svn checkout http://crystalhd-for-osx.googlecode.com/svn/trunk/ crystalhd-for-osx-read-only" and it just stalls and will never download. I got my source from git instead.


- i5Js - 2010-01-07

davilla Wrote:You and me both. I'll pull fresh and re-build under a 10.6 box. Something fishy.

It's funny, I made the same steps on my iMac, Build success and running, but now, this build doesn't detect Broadcom card... I'll build it again


- i5Js - 2010-01-07

I'm having a few warnings like this:

WARNING: cdio/iso9660.h: accepted by the compiler, rejected by the preprocessor!

What's the problem?


- matthoffman - 2010-01-07

Davilla,

I downloaded latest SVN (R15) from crystalhd-for-osx
-Compiled/installed driver/lib
-Copied 20-crystalhd.rules to /etc/udev/rules.d
-Power cycled appletv and this what kern.log shows. Same error Tongue.
-I removed all of the old crystalhd drivers/lib I had before I did this to make sure I was starting fresh.



Jan 7 12:28:05 atv kernel: [ 76.131432] Opening new user[0] handle
Jan 7 12:28:05 atv kernel: [ 76.131441] Starting BCM70012 Device
Jan 7 12:28:05 atv kernel: [ 76.369364] clock is moving to 175 with n 35 with vco_mg 2
Jan 7 12:28:06 atv kernel: [ 76.369388] CInitializing Dio pool 10 1024 505c cfa4f660
Jan 7 12:28:08 atv kernel: [ 79.194446] Firmware Downloaded Successfully
Jan 7 12:28:28 atv kernel: [ 99.234413] *ERR*:/home/xbmc/crystalhd/crystalhd/driver/linux/crystalhd_hw.c:1766: Firmware command T/O
Jan 7 12:28:28 atv kernel: [ 99.234422] *ERR*:/home/xbmc/crystalhd/crystalhd/driver/linux/crystalhd_hw.c:1777: FwCmd Failed.
Jan 7 12:28:28 atv kernel: [ 99.234427] fw cmd 73763001 failed
Jan 7 12:28:28 atv kernel: [ 99.339775] Closing user[0] handle
Jan 7 12:28:28 atv kernel: [ 99.339781] Deleting IOQs
Jan 7 12:28:28 atv kernel: [ 99.339790] Releasing RX Pkt pool
Jan 7 12:28:28 atv kernel: [ 99.339831] Released dio pool 10
Jan 7 12:28:28 atv kernel: [ 99.394342] Stopping BCM70012 Device



lsmod is stating "crystalhd 51852 2"
then when the *ERR* happens it changes to "crystalhd 51852 0"


- dan1son - 2010-01-07

Not that I have any idea what I'm talking about... but did you re-seat the card in the mini pci-e slot? Maybe one of the contacts is iffy... I've had pci cards in the old days have odd behavior like you're seeing due to poor seating.