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-07

Tried that too multiple times. reseating the card did nothing to solve the issue.


- i5Js - 2010-01-08

At last, compiled, installed and working!


- davilla - 2010-01-08

i5Js Wrote:At last, compiled, installed and working!

lol, very good. what fixed it ?


- i5Js - 2010-01-08

I don't know, I've compiled on my iMac (same snow leopard, same build, same mac-ports bla bla bla) and worked Smile

Time to test!!!!!!


- davilla - 2010-01-08

might want to take a peek here http://xbmc.org/theuni/2010/01/08/xbmc-is-growing-up-gains-cool-new-services/


- matthoffman - 2010-01-08

Davilla, a few posts back I stated that I updated my drivers/lib for crystalhd to the crystalhd-for-osx svn and still keep getting the following error after a power cycle on my appletv.

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


Would you think I just got a flaky card since it came from ebay?
I was thinking about getting another from Logic Supply to see if it solved the issue. Do you think I have any more options? I don't know what else to try.


- davilla - 2010-01-08

matthoffman Wrote:Would you think I just got a flaky card since it came from ebay?
I was thinking about getting another from Logic Supply to see if it solved the issue. Do you think I have any more options? I don't know what else to try.

Possible a flaky card Sad It's failing in downloading the firmware, driver get's a timeout (TO). If there was a problem with the on-board dram, the firmware download would fail.


- TeknoJnky - 2010-01-08

@matthoffman where did you pull that log from? and which osx or linux?

@davilla I suspect a similar problem with my card, is there any way to troubleshoot it from the commandline in either linux or osx?


- davilla - 2010-01-08

TeknoJnky Wrote:@matthoffman where did you pull that log from? and which osx or linux?

@davilla I suspect a similar problem with my card, is there any way to troubleshoot it from the commandline in either linux or osx?

In crystalhd_hw.c in the routine crystalhd_do_fw_cmd

change:

Code:
/* Write the command address to mailbox */
bc_dec_reg_wr(hw->adp, Hst2CpuMbx1, TS_Host2CpuSnd);
msleep_interruptible(50);

crystalhd_wait_on_event(&fw_cmd_event, hw->fwcmd_evt_sts, 20000, rc, 0);

to

Code:
/* Write the command address to mailbox */
bc_dec_reg_wr(hw->adp, Hst2CpuMbx1, TS_Host2CpuSnd);
/* msleep_interruptible(50); */

crystalhd_wait_on_event(&fw_cmd_event, hw->fwcmd_evt_sts, 20000, rc, 0);



- matthoffman - 2010-01-08

TeknoJnky Wrote:@matthoffman where did you pull that log from? and which osx or linux?

@davilla I suspect a similar problem with my card, is there any way to troubleshoot it from the commandline in either linux or osx?

The log was pulled on linux from /var/log/kern.log


Working :-) - raydevos - 2010-01-09

A mac fan of my colleagues compiles it for me Big Grin (Thanks Eric!).
It worked immediately and perfectly. Much better than the linux version with leaked drivers I had from cck197.

I've been through my NOK HD files and half of them are now working :-)

Once again, thanks Scott!


- ^tWiSt^ - 2010-01-09

My 1080p mkv Videos are heavily stuttering, seems better with 720p.

I've followed the instruction here:

http://todayguesswhat.blogspot.com/2010/01/thanks-davilla-and-xbmc-team-apple-tv.html

with the only difference that I've used crystalhd-for-osx-1.0.1.zip instead 1.0.0

during playback of a 1080p mkv:

bash-2.05b# grep -i crystal /Users/frontrow/Library/Logs/xbmc.log
14:48:41 T:2684407808 M: 41693184 DEBUG: SECTION:LoadDLL(libcrystalhd.dylib)
14:48:41 T:2684407808 M: 41672704 DEBUG: Loading: libcrystalhd.dylib
14:48:43 T:2684407808 M: 12050432 INFO: CrystalHD: device opened
14:51:04 T:51586560 M: 15114240 INFO: Trying Broadcom Crystal HD Decoder...
14:51:04 T:51586560 M: 14966784 DEBUG: CrystalHD: codec opened
14:51:04 T:51586560 M: 14966784 INFO: DVDVideoCodecCrystalHD: Opened Broadcom Crystal HD Codec
14:51:04 T:52694528 M: 14946304 DEBUG: CrystalHD: Input Thread Started...
14:51:04 T:53795840 M: 14946304 DEBUG: CrystalHD: Output Thread Started...
14:51:05 T:53795840 M: 15269888 DEBUG: CrystalHD: Format Change Detected. Flags: 0x00030000
14:51:05 T:53795840 M: 15286272 DEBUG: CrystalHD: dec_par x = 1, dec_par y = 1
14:51:05 T:53795840 M: 15282176 DEBUG: CrystalHD: resolution = 1f interlace = 0
14:51:05 T:53795840 M: 28557312 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 0
14:51:05 T:53795840 M: 27648000 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 0
14:51:05 T:53795840 M: 24948736 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 1
14:51:05 T:53795840 M: 23867392 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 2
14:51:05 T:53795840 M: 14737408 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 2
14:51:05 T:53795840 M: 13578240 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 3
14:51:05 T:53795840 M: 12460032 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 4
14:51:10 T:53795840 M: 6131712 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 5
14:51:13 T:53903872 M: 14114816 DEBUG: DVDVideoCodecCrystalHD: Reset, flushing decoder.
14:51:13 T:53903872 M: 13893632 DEBUG: CrystalHD: codec flush
14:51:15 T:53795840 M: 10067968 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 6
14:51:15 T:53795840 M: 8925184 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 7
14:51:15 T:53903872 M: 7704576 DEBUG: CrystalHD: SetDropState... 1
14:51:15 T:53903872 M: 7614464 DEBUG: CrystalHD: SetDropState... 0
14:51:15 T:53903872 M: 6897664 DEBUG: CrystalHD: SetDropState... 1
14:51:15 T:53903872 M: 6447104 DEBUG: CrystalHD: SetDropState... 0
14:51:16 T:53903872 M: 6111232 DEBUG: CrystalHD: SetDropState... 1
14:51:16 T:53903872 M: 5353472 DEBUG: CrystalHD: SetDropState... 0
14:51:16 T:53903872 M: 5623808 DEBUG: CrystalHD: SetDropState... 1
14:51:16 T:53903872 M: 5586944 DEBUG: CrystalHD: SetDropState... 0
14:51:16 T:53903872 M: 5746688 DEBUG: CrystalHD: SetDropState... 1
14:51:16 T:53903872 M: 5890048 DEBUG: CrystalHD: SetDropState... 0
14:51:17 T:53903872 M: 5857280 DEBUG: CrystalHD: SetDropState... 1
14:51:17 T:53903872 M: 5976064 DEBUG: CrystalHD: SetDropState... 0
14:51:17 T:53903872 M: 6045696 DEBUG: CrystalHD: SetDropState... 1
14:51:17 T:53903872 M: 6148096 DEBUG: CrystalHD: SetDropState... 0
14:51:17 T:53903872 M: 5251072 DEBUG: CrystalHD: SetDropState... 1




is this a normal behaviour?


- cj43 - 2010-01-09

^tWiSt^ Wrote:My 1080p mkv Videos are heavily stuttering, seems better with 720p.

I've followed the instruction here:

http://todayguesswhat.blogspot.com/2010/01/thanks-davilla-and-xbmc-team-apple-tv.html

with the only difference that I've used crystalhd-for-osx-1.0.1.zip instead 1.0.0

during playback of a 1080p mkv:

bash-2.05b# grep -i crystal /Users/frontrow/Library/Logs/xbmc.log
14:48:41 T:2684407808 M: 41693184 DEBUG: SECTION:LoadDLL(libcrystalhd.dylib)
14:48:41 T:2684407808 M: 41672704 DEBUG: Loading: libcrystalhd.dylib
14:48:43 T:2684407808 M: 12050432 INFO: CrystalHD: device opened
14:51:04 T:51586560 M: 15114240 INFO: Trying Broadcom Crystal HD Decoder...
14:51:04 T:51586560 M: 14966784 DEBUG: CrystalHD: codec opened
14:51:04 T:51586560 M: 14966784 INFO: DVDVideoCodecCrystalHD: Opened Broadcom Crystal HD Codec
14:51:04 T:52694528 M: 14946304 DEBUG: CrystalHD: Input Thread Started...
14:51:04 T:53795840 M: 14946304 DEBUG: CrystalHD: Output Thread Started...
14:51:05 T:53795840 M: 15269888 DEBUG: CrystalHD: Format Change Detected. Flags: 0x00030000
14:51:05 T:53795840 M: 15286272 DEBUG: CrystalHD: dec_par x = 1, dec_par y = 1
14:51:05 T:53795840 M: 15282176 DEBUG: CrystalHD: resolution = 1f interlace = 0
14:51:05 T:53795840 M: 28557312 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 0
14:51:05 T:53795840 M: 27648000 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 0
14:51:05 T:53795840 M: 24948736 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 1
14:51:05 T:53795840 M: 23867392 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 2
14:51:05 T:53795840 M: 14737408 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 2
14:51:05 T:53795840 M: 13578240 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 3
14:51:05 T:53795840 M: 12460032 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 4
14:51:10 T:53795840 M: 6131712 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 5
14:51:13 T:53903872 M: 14114816 DEBUG: DVDVideoCodecCrystalHD: Reset, flushing decoder.
14:51:13 T:53903872 M: 13893632 DEBUG: CrystalHD: codec flush
14:51:15 T:53795840 M: 10067968 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 6
14:51:15 T:53795840 M: 8925184 DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 7
14:51:15 T:53903872 M: 7704576 DEBUG: CrystalHD: SetDropState... 1
14:51:15 T:53903872 M: 7614464 DEBUG: CrystalHD: SetDropState... 0
14:51:15 T:53903872 M: 6897664 DEBUG: CrystalHD: SetDropState... 1
14:51:15 T:53903872 M: 6447104 DEBUG: CrystalHD: SetDropState... 0
14:51:16 T:53903872 M: 6111232 DEBUG: CrystalHD: SetDropState... 1
14:51:16 T:53903872 M: 5353472 DEBUG: CrystalHD: SetDropState... 0
14:51:16 T:53903872 M: 5623808 DEBUG: CrystalHD: SetDropState... 1
14:51:16 T:53903872 M: 5586944 DEBUG: CrystalHD: SetDropState... 0
14:51:16 T:53903872 M: 5746688 DEBUG: CrystalHD: SetDropState... 1
14:51:16 T:53903872 M: 5890048 DEBUG: CrystalHD: SetDropState... 0
14:51:17 T:53903872 M: 5857280 DEBUG: CrystalHD: SetDropState... 1
14:51:17 T:53903872 M: 5976064 DEBUG: CrystalHD: SetDropState... 0
14:51:17 T:53903872 M: 6045696 DEBUG: CrystalHD: SetDropState... 1
14:51:17 T:53903872 M: 6148096 DEBUG: CrystalHD: SetDropState... 0
14:51:17 T:53903872 M: 5251072 DEBUG: CrystalHD: SetDropState... 1




is this a normal behaviour?

Unfortunately, everyone in this thread seems to be having the same problem except Davilla.


- ^tWiSt^ - 2010-01-09

Right now I'm playing Earth mkv at 1080p and seems that the movie automatically pauses itself every second. :confused2:


- i5Js - 2010-01-09

cj43 Wrote:Unfortunately, everyone in this thread seems to be having the same problem except Davilla.

I'm not agree, If you see the screenshot from Davilla on xbmc.org, you can see, a lot of drops too. I think he has the same problem, like us.