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 - 2009-12-31

i5Js Wrote:a)
Code:
ls -l /usr/lib/libcrystalhd.so
lrwxrwxrwx 1 root root 19 2009-12-31 02:40 /usr/lib/libcrystalhd.so -> libcrystalhd.so.1.0

b)
Code:
ls -l /usr/include/libcrystalhd/libcrystalhd_if.h
-rwxr-xr-x 1 root root 32785 2009-12-31 02:40 /usr/include/libcrystalhd/libcrystalhd_if.h

But...

Code:
------------------------
  XBMC Configuration:
------------------------
  Debugging:    Yes
  Profiling:    No
  Optimization:    Yes
  OpenGL:    Yes
  VDPAU:    No
  CrystalHD:    No
...

It's very late here... I'm going to sleep.

Good night everybody

check config.log


- dan1son - 2009-12-31

This might be slightly unrelated, but I've noticed my ethernet speeds on the ATV plugged into the same exact bridge, even the same port, are hideously slow compared to the Aspire Revo it's currently sitting on. I'm talking in the 10x range.

Basically the network isn't fast enough for 1080p when using the ATV when it's plenty fast for the revo.

wget's from my server yield over 6M/s to the acer and around 500k/s to the ATV.

Any thoughts on this Davilla?
Code:
uname -a
Linux atv-ubuntu804 2.6.24-25-generic #1 SMP Tue Oct 20 07:31:10 UTC 2009 i686 GNU/Linux

using 8139too/8139cp kernel driver it appears.


- davilla - 2009-12-31

dan1son Wrote:This might be slightly unrelated, but I've noticed my ethernet speeds on the ATV plugged into the same exact bridge, even the same port, are hideously slow compared to the Aspire Revo it's currently sitting on. I'm talking in the 10x range.

Basically the network isn't fast enough for 1080p when using the ATV when it's plenty fast for the revo.

wget's from my server yield over 6M/s to the acer and around 500k/s to the ATV.

Any thoughts on this Davilla?
Code:
uname -a
Linux atv-ubuntu804 2.6.24-25-generic #1 SMP Tue Oct 20 07:31:10 UTC 2009 i686 GNU/Linux

using 8139too/8139cp kernel driver it appears.

Did you force to c2 in the kernel command-line ? This can cause slow wired ethernet.


- pin87a - 2009-12-31

dan1son Wrote:This might be slightly unrelated, but I've noticed my ethernet speeds on the ATV plugged into the same exact bridge, even the same port, are hideously slow compared to the Aspire Revo it's currently sitting on. I'm talking in the 10x range.

Basically the network isn't fast enough for 1080p when using the ATV when it's plenty fast for the revo.

wget's from my server yield over 6M/s to the acer and around 500k/s to the ATV.



using 8139too/8139cp kernel driver it appears.

Not sure if this helps, but I spent a ton of time troubleshooting slow network performance similar to what you are describing a few weeks ago (ubuntu net install took forever).
For a unrelated reason I plugged the usb thumbdrive into a usb hub and then into the apple tv and the problem went away.
Reconnecting it directly killed network performance again so I gave up and left the hub connected.
USB drive I saw the problem with was a 8GB Patriot XT. Don't know if it is a software issue or a hardware issue relating to the close proximity of the USB port to the network port.


- dan1son - 2009-12-31

davilla Wrote:Did you force to c2 in the kernel command-line ? This can cause slow wired ethernet.

Yes, I believe per your recommendation somewhere Smile

Removing and rebooting...

EDIT: ZOOOM... that fixed it, Thanks.

EDIT 2: on second thought it was only fast for a little bit after bootup. It's slow again. Doing some more troubleshooting...


- andybz - 2009-12-31

Hey @davilla, not sure if you're the guy, but looks like the gstreamer-plugin isn't working properly.

I had a bit of trouble getting it to compile. The code was looking in ../../../linux_lib/ldil and failing to link at the end, so I had to hack it a little bit to work with libcrystalhd instead.

It looks like it's almost going to play, but just falls over at the end.

Code:
** (totem:15738): WARNING **: Failed to create dbus proxy for org.gnome.SettingsDaemon: Could not get owner of name 'org.gnome.SettingsDaemon': no such name
Running DIL (0.9.25) Version
Mdata Pool Created...
DtsSetupHardware: DtsPushAuthFwToLink
DtsGetFirmwareFiles:Ctx->FwBinFile is /lib/firmware/bcmFilePlayFw.bin
DtsSetupHardware: Success
OPEN success
** Message: Error: GStreamer encountered a general stream error.
matroska-demux.c(5075): gst_matroska_demux_loop (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstMatroskaDemux:matroskademux0:
stream stopped, reason not-negotiated

DtsFWDecFlushChannel: Ioctl failed: 11
DtsCancelFetchOutInt: Called
DtsCancelFetchOutInt: No Pending Req
DtsAllocIoctlData Error
Deleted Mdata Pool...
DtsDeviceClose: Invoked

If I remove the gst filter, it plays again.


- davilla - 2009-12-31

andybz Wrote:Hey @davilla, not sure if you're the guy, but looks like the gstreamer-plugin isn't working properly.

I had a bit of trouble getting it to compile. The code was looking in ../../../linux_lib/ldil and failing to link at the end, so I had to hack it a little bit to work with libcrystalhd instead.

It looks like it's almost going to play, but just falls over at the end.

The gstreamer-plugin is one of the areas that needs work. It was fine last time I tried it in ubuntu 8.04. Going higher than that has issues. Patches welcome as they say.


- dan1son - 2009-12-31

Still having slow ethernet problems. Not sure what else to try. Maybe upgrading the kernel manually or even running ubuntu 9.10 (assuming all of this stuff works on that).

Any other ideas to try?

EDIT:
Found what was causing it... now to find out why. I had "/bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg" running when killed everything got speedy again.


- davilla - 2009-12-31

dan1son Wrote:what was causing it... Now to find out why. I had "/bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg" running when killed everything got speedy again.

lol Smile


- matthoffman - 2009-12-31

I installed ubuntu hardy on appletv, compiled new crystal source, compiled latest xbmc tree.

I am getting the following error in kern.log

Dec 31 01:04:30 atv kernel: [11243.926480] Starting BCM70012 Device
Dec 31 01:04:31 atv kernel: [11244.164980] clock is moving to 175 with n 35 with vco_mg 2
Dec 31 01:04:31 atv kernel: [11244.165006] CInitializing Dio pool 10 1024 505c cedf24e0
Dec 31 01:04:33 atv kernel: [11246.570471] Firmware Downloaded Successfully
Dec 31 01:04:53 atv kernel: [11266.610444] *ERR*:/usr/src/crystal/crystalhd/driver/linux/crystalhd_hw.c:1766: Firmware command T/O
Dec 31 01:04:53 atv kernel: [11266.610453] *ERR*:/usr/src/crystal/crystalhd/driver/linux/crystalhd_hw.c:1777: FwCmd Failed.
Dec 31 01:04:53 atv kernel: [11266.610459] fw cmd 73763001 failed
Dec 31 01:04:53 atv kernel: [11266.918367] Closing user[0] handle
Dec 31 01:04:53 atv kernel: [11266.918375] Deleting IOQs
Dec 31 01:04:53 atv kernel: [11266.918384] Releasing RX Pkt pool
Dec 31 01:04:53 atv kernel: [11266.918427] Released dio pool 10
Dec 31 01:04:53 atv kernel: [11266.974150] Stopping BCM70012 Device

What is causing this error?


- dan1son - 2009-12-31

Unfortunately I haven't fixed my networking speed problems. When I kill the dd process klogd goes bananas and uses full CPU (apparently the dd command is moving the kernel log output somewhere else so a non-root user can read it). When I kill the klogd command my network speed is slow again.

Network speed is fast when klogd is using full cpu and dd is killed though... which is very odd. Might try a new kernel if I can't figure anything else out... what's the word on the crystalhd drivers working on new kernels?


- davilla - 2009-12-31

dan1son Wrote:Unfortunately I haven't fixed my networking speed problems. When I kill the dd process klogd goes bananas and uses full CPU (apparently the dd command is moving the kernel log output somewhere else so a non-root user can read it). When I kill the klogd command my network speed is slow again.

Network speed is fast when klogd is using full cpu and dd is killed though... which is very odd. Might try a new kernel if I can't figure anything else out... what's the word on the crystalhd drivers working on new kernels?

The released source code will be fine with newer kernels and distros. It's even 64bit safe too.


- matthoffman - 2010-01-01

Question is crystalhd working in the current trunk? Or is the merge not completed yet? Smile

The crystalhd in my apple tv appears to be working fine here is what kern.log states. Is this what it should be saying?

----------------------
Jan 1 00:35:08 atv kernel: [ 45.272465] Loading crystalhd 0.9.27
Jan 1 00:35:08 atv kernel: [ 45.272516] PCI_INFO: Vendor:0x14e4 Device:0x1612 s_vendor:0x14e4 s_device: 0x2612
Jan 1 00:35:08 atv kernel: [ 45.272552] PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
Jan 1 00:35:08 atv kernel: [ 45.272563] ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 16
Jan 1 00:35:08 atv kernel: [ 45.272605] allocated 18 elem
Jan 1 00:35:08 atv kernel: [ 45.272751] Starting BCM70012 Device
Jan 1 00:35:08 atv kernel: [ 45.511014] clock is moving to 175 with n 35 with vco_mg 2
Jan 1 00:35:08 atv kernel: [ 45.511039] CStopping BCM70012 Device
----------------

xbmc can't seem to see it. I keep getting the following error in xbmc.log

10:33:04 T:2942471056 M:101535744 INFO: Trying Broadcom Crystal HD Decoder...
10:33:04 T:2942471056 M:101535744 DEBUG: FactoryCodec - Video: - Opening
10:33:04 T:2942471056 M:101535744 ERROR: DVDVideoCodecCrystalHD: Failed to open Broadcom Crystal HD Codec
10:33:04 T:2942471056 M:101535744 DEBUG: FactoryCodec - Video: - Failed
10:33:04 T:2942471056 M:101535744 DEBUG: CrystalHD: codec closed


I am just curious if it's something on my end or if it just isn't working yet and I need to be patient and wait. :-)


- davilla - 2010-01-01

matthoffman Wrote:Question is crystalhd working in the current trunk? Or is the merge not completed yet? Smile


xbmc can't seem to see it. I keep getting the following error in xbmc.log

10:33:04 T:2942471056 M:101535744 INFO: Trying Broadcom Crystal HD Decoder...
10:33:04 T:2942471056 M:101535744 DEBUG: FactoryCodec - Video: - Opening
10:33:04 T:2942471056 M:101535744 ERROR: DVDVideoCodecCrystalHD: Failed to open Broadcom Crystal HD Codec
10:33:04 T:2942471056 M:101535744 DEBUG: FactoryCodec - Video: - Failed
10:33:04 T:2942471056 M:101535744 DEBUG: CrystalHD: codec closed


I am just curious if it's something on my end or if it just isn't working yet and I need to be patient and wait. :-)

It's on your end Smile Merge is complete but that does not mean all development stops. It just continues in trunk.


- matthoffman - 2010-01-01

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.