• 1
  • 2
  • 3(current)
  • 4
  • 5
  • 12
CrystalHD & current SVN builds of XBMC?
#31
The time has come to start compiling from SVN on the ATV I suppose. Seems like it's coming along nicely. Still running the pre-addons version. Smile
Reply
#32
I just realized how useful a dual purpose crystalhd and wifi mini pci-e card would be. Just bought the wife an MSI netbook (N450 based) and am amazed at its inability to play video of any kind beyond dvd quality. I knew it'd struggle... but man it's weak.
Reply
#33
dan1son Wrote:I just realized how useful a dual purpose crystalhd and wifi mini pci-e card would be. Just bought the wife an MSI netbook (N450 based) and am amazed at its inability to play video of any kind beyond dvd quality. I knew it'd struggle... but man it's weak.

bcm70015 will be 1/2 the length of the bcm70012. Maybe you have a free slot inside or switch to a USB wifi dongle.
Reply
#34
i compiled the last driver r114 and when i use it does not recognize with the last xbmc is the last driver not stable
Reply
#35
iwaleed Wrote:i compiled the last driver r114 and when i use it does not recognize with the last xbmc is the last driver not stable

Sorry, I don't that sentence. Make sure you build and install both driver and lib. They are paired.
Reply
#36
i did compile both and install as described in your project crystalhd-for-osx also i compiled the last xbmc r31499 when i use old version r26 it works but with the new driver r114 xbmc did not see the card

here when i load the driver

-bash-2.05b$ sudo kextload -v /System/Library/Extensions/BroadcomCrystalHD.kext
kextload: extension /System/Library/Extensions/BroadcomCrystalHD.kext appears to be valid
kextload: loading extension /System/Library/Extensions/BroadcomCrystalHD.kext
kextload: /System/Library/Extensions/BroadcomCrystalHD.kext loaded successfully
kextload: loading personalities named:
kextload: BCM70012
kextload: BCM70015
kextload: sending 2 personalities to the kernel
kextload: matching started for /System/Library/Extensions/BroadcomCrystalHD.kext

I forgot to tell you i have old layout card bcm70012
Reply
#37
iwaleed Wrote:i did compile both and install as described in your project crystalhd-for-osx also i compiled the last xbmc r31499 when i use old version r26 it works but with the new driver r114 xbmc did not see the card

here when i load the driver

-bash-2.05b$ sudo kextload -v /System/Library/Extensions/BroadcomCrystalHD.kext
kextload: extension /System/Library/Extensions/BroadcomCrystalHD.kext appears to be valid
kextload: loading extension /System/Library/Extensions/BroadcomCrystalHD.kext
kextload: /System/Library/Extensions/BroadcomCrystalHD.kext loaded successfully
kextload: loading personalities named:
kextload: BCM70012
kextload: BCM70015
kextload: sending 2 personalities to the kernel
kextload: matching started for /System/Library/Extensions/BroadcomCrystalHD.kext

I forgot to tell you i have old layout card bcm70012

kextstat
ls -l /usr/lib/libcrystalhd.dylib
dmesg
Reply
#38
-bash-2.05b$ ls -l /usr/lib/libcrystalhd.dylib
-rwxr-xr-x 1 root wheel 128228 Jun 29 17:51 /usr/lib/libcrystalhd.dylib


hi mem tramps at 0xffe00000
PAE enabled
standard timeslicing quantum is 10000 us
vm_page_bootstrap: 59162 free pages
mig_table_max_displ = 71
Enabling XMM register save/restore and SSE/SSE2 opcodes
61 prelinked modules
ACPI CA 20060421
AppleACPICPU: ProcessorApicId=0 LocalApicId=0 Enabled
AppleACPICPU: ProcessorApicId=1 LocalApicId=0 Disabled
Copyright © 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.

using 1310 buffer headers and 1310 cluster IO buffer headers
IOAPIC: Version 0x20 Vectors 64:87
ACPI: System State [S0 S4] (S0)
error mapping module file com.apple.kpi.libkern
can't map com.apple.kpi.libkern in preparation for loading
Can't determine dependencies for com.apple.driver.AppleTCOWatchdog.
Couldn't alloc class "AppleTCOWatchdog"
NVDANV40HAL loaded and registered.
display: family specific matching fails
EHCI Root Hub Simulation: family specific matching fails
USB caused wake event (EHCI)
Security auditing service present
BSM auditing present
disabled
rooting via boot-uuid from /chosen: 00001079-39A0-0000-AE31-0000ED4D0000
Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
UHCI Root Hub Simulation: family specific matching fails
Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PATA@1F,1/AppleIntelPIIXATARoot/PRID@0/AppleIntelPIIXPATA/ATADeviceNub@0/IOATABlockStorageDriver/IOATABlockStorageDevice/IOBlockStorageDriver/SAMSUNG HM160HC Media/IOGUIDPartitionScheme/OSBoot@3
BSD root: disk0s3, major 14, minor 3
com_apple_IRRecovery::probe(IR Receiver)
com_apple_IRRecovery:Confusedtart(IR Receiver) <1>
com_apple_IRRecovery(0x1bacc00):Confusedtart
com_apple_IRRecovery(0x1bacc00):Confusedtart - This is the HID Receiver device, disable recovery
com_apple_IRRecovery(0x1bacc00):Confusedtart Exiting
com_apple_IRRecovery(0x1bacc00):Confusedtart - defining AppleIRRecoveryDisabled to disable IR Recovery from occurring (again)
com_apple_IRRecovery(0x1bacc00):Confusedtart - Intentionally fails, because work is done in start. This frees up resources.
com_apple_IRRecovery:Confusedtart(IR Receiver) <1> failed
IOGMD(0x1ca2180): wB = o0, l1
IOGMD(0x1ca2180): wB = o0, l3
jnl: close: flushing the buffer cache (start 0x4fdc00 end 0x4ffe00)
Jettisoning kernel linker.
Resetting IOCatalogue.
RTL8139::registerEEPROM: 8129 10ec 8139 10ec 8139 4020 e510 2300
RTL8139::registerEEPROM: 3432 b5d0 8d10 f7c2 8801 03b9 60f4 071a
RTL8139::registerEEPROM: dfa3 9836 dfa3 9836 03b9 60f4 1a1a 1a1a
RTL8139::registerEEPROM: 0000 072e 0000 0000 0000 0000 0000 2000
RTL8139::registerEEPROM: 0000 0000 0000 0000 0000 0000 0000 0000
RTL8139::registerEEPROM: 0000 0000 0000 0000 0000 0000 0000 0000
RTL8139::registerEEPROM: 0000 0000 0000 0000 0000 0000 0000 0000
RTL8139::registerEEPROM: 0000 0000 0000 0000 0000 0000 0000 0000
com_apple_driver_RTL8139: Ethernet address 00:23:32:34:d0:b5
netsmb_dev: loaded
BroadcomCrystalHD:Confusedtart
opening HW
crystalhd_hw_open: setting up functions, device = Link
Starting Crystal HD Device
Opening HW. hw:0x1f67804, hw->adp:0x1e6e600
Closing HW
Stopping Crystal HD Device
BroadcomCrystalHD: Registering power handler
BroadcomCrystalHD: Found HW and started driver SW.
smbfs_smb_qfsattr: (fyi) share 'FAT32', attr 0x3, maxfilename 255
Reply
#39
-bash-2.05b$ kextstat
Index Refs Address Size Wired Name (Version) <Linked Against>
1 1 0x0 0x0 0x0 com.apple.kernel (8.8.2)
2 25 0x0 0x0 0x0 com.apple.kpi.bsd (8.8.2)
3 37 0x0 0x0 0x0 com.apple.kpi.iokit (8.8.2)
4 40 0x0 0x0 0x0 com.apple.kpi.libkern (8.8.2)
5 36 0x0 0x0 0x0 com.apple.kpi.mach (8.8.2)
6 19 0x0 0x0 0x0 com.apple.kpi.unsupported (8.8.2)
7 1 0x0 0x0 0x0 com.apple.iokit.IONVRAMFamily (8.8.2)
8 1 0x0 0x0 0x0 com.apple.driver.AppleNMI (8.8.2)
9 1 0x0 0x0 0x0 com.apple.iokit.IOSystemManagementFamily (8.8.2)
10 1 0x0 0x0 0x0 com.apple.iokit.ApplePlatformFamily (8.8.2)
11 28 0x0 0x0 0x0 com.apple.kernel.6.0 (7.9.9)
12 1 0x0 0x0 0x0 com.apple.kernel.bsd (7.9.9)
13 1 0x0 0x0 0x0 com.apple.kernel.iokit (7.9.9)
14 1 0x0 0x0 0x0 com.apple.kernel.libkern (7.9.9)
15 1 0x0 0x0 0x0 com.apple.kernel.mach (7.9.9)
16 15 0x52c000 0x10000 0xf000 com.apple.iokit.IOPCIFamily (2.1) <11>
17 9 0x542000 0x4000 0x3000 com.apple.iokit.IOACPIFamily (1.2.0) <11>
18 1 0xd21000 0x3d000 0x3c000 com.apple.driver.AppleACPIPlatform (1.0.6) <17 16 11 6 3>
19 4 0x584000 0x1b000 0x1a000 com.apple.iokit.IOGraphicsFamily (1.4.6) <16 6 5 4 3>
20 13 0x54f000 0x1a000 0x19000 com.apple.iokit.IOUSBFamily (2.8.5) <6 5 4 3>
21 0 0x6a5000 0x2000 0x1000 com.apple.driver.AppleUSBSupport (2.8.5) <20 4 3>
22 0 0xb0d000 0x1d4000 0x1d3000 com.apple.driver.FPHwA (1.0.3) <6 5 4 3 2>
23 0 0xce1000 0x5000 0x4000 com.apple.BootCache (27.0.80) <6 5 4 3 2>
24 4 0xd81000 0x32000 0x31000 com.apple.iokit.IOHIDFamily (1.4.9) <6 5 4 3 2>
25 1 0xe40000 0xb000 0xa000 com.apple.driver.AppleSMC (1.1.0d5) <20 17 6 5 4 3>
26 0 0xe4b000 0x3000 0x2000 com.apple.Dont_Steal_Mac_OS_X (6.0.2) <25 6 4 3 2>
27 1 0x576000 0xe000 0xd000 com.apple.driver.IOPlatformPluginFamily (2.6.0d1) <11>
28 0 0xd67000 0x8000 0x7000 com.apple.driver.ACPI_SMC_PlatformPlugin (2.6.0d1) <27 17 16 11 5 4 3>
29 0 0xe3d000 0x3000 0x2000 com.apple.driver.AppleAPIC (1.2.0) <11>
30 0 0xeab000 0x4000 0x3000 com.apple.driver.AppleSMBIOS (1.0.12) <11>
31 0 0xe3a000 0x3000 0x2000 com.apple.driver.AppleACPIPCI (1.0.6) <18 17 16 11>
32 0 0xd6f000 0x3000 0x2000 com.apple.driver.AppleHPET (1.0.0d1) <17 6 5 4 3>
33 0 0x5cd000 0x5000 0x4000 com.apple.driver.AppleRTC (1.0.3) <17 5 4 3 2>
34 1 0x546000 0x3000 0x2000 com.apple.driver.AppleEFIRuntime (1.0.4) <17 6 5 4 3>
35 2 0x6d4000 0x6000 0x5000 com.apple.iokit.IOHDAFamily (1.2.5a14) <5 4 3 2>
36 0 0xea4000 0x7000 0x6000 com.apple.driver.AppleHDAController (1.2.5a14) <35 16 5 4 3 2>
37 0 0xaff000 0xe000 0xd000 com.apple.driver.AppleUSBUHCI (2.6.5) <20 16 5 4 3>
38 0 0x5ae000 0x12000 0x11000 com.apple.driver.AppleUSBEHCI (2.6.5) <20 16 5 4 3>
39 0 0xebf000 0x3000 0x2000 com.apple.driver.AppleACPILPC (1.0.7) <17 16 5 4 3>
40 2 0x6bd000 0xd000 0xc000 com.apple.iokit.IOATAFamily (1.7.1f4) <5 4 3 2>
41 0 0xce6000 0x8000 0x7000 com.apple.driver.AppleIntelPIIXATA (1.14) <40 16 11>
42 0 0x549000 0x6000 0x5000 com.apple.driver.AppleEFINVRAM (1.0.4) <34 11 5 4 3>
43 1 0x516000 0x16000 0x15000 com.apple.iokit.IONetworkingFamily (1.5.1) <6 5 4 3 2>
44 0 0x53c000 0x6000 0x5000 com.apple.driver.AppleRTL8139Ethernet (1.5.1) <43 16 5 4 3 2>
45 2 0x59f000 0xf000 0xe000 com.apple.iokit.IONDRVSupport (1.4.6) <19 16 6 5 4 3>
46 2 0x6da000 0x21a000 0x219000 com.apple.NVDAResman (4.6.0) <45 19 16 11 5 4 3 2>
47 0 0x94b000 0x1b4000 0x1b3000 com.apple.nvidia.nv40hal (4.6.0) <46 16 11>
48 0 0x8f4000 0x57000 0x56000 com.apple.GeForce (4.6.0) <46 45 19 16 11 5 4 3 2>
49 0 0xd1d000 0x4000 0x3000 com.apple.driver.AppleUpstreamUserClient (1.15) <19 17 16 11 6 5 4 3 2>
50 0 0xd5e000 0x9000 0x8000 com.apple.driver.AppleUSBHub (2.8.5) <20 11>
51 0 0xd78000 0x9000 0x8000 com.apple.iokit.IOUSBUserClient (2.6.0) <20 11>
52 6 0x6a7000 0x16000 0x15000 com.apple.iokit.IOStorageFamily (1.5.1) <6 5 4 3 2>
53 0 0x6ca000 0xa000 0x9000 com.apple.iokit.IOATABlockStorage (1.4.4) <52 40 11>
54 0 0xd72000 0x3000 0x2000 com.apple.driver.AppleFileSystemDriver (1.0.2) <52 11>
55 1 0x5cb000 0x2000 0x1000 com.apple.kext.OSvKernDSPLib (1.0) <5 4>
56 2 0x68e000 0x17000 0x16000 com.apple.iokit.IOAudioFamily (1.6.0b7) <55 20 11>
57 0 0xeb6000 0x4000 0x3000 com.apple.driver.AudioIPCDriver (1.0.3) <56 5 4 3 2>
58 0 0xe4e000 0x54000 0x53000 com.apple.driver.AppleHDA (1.2.5a14) <56 35 5 4 3 2>
59 0 0x569000 0xd000 0xc000 com.apple.IRRecovery (1.0.5) <20 4 3 2>
60 0 0xd75000 0x3000 0x2000 com.apple.driver.AppleUSBComposite (2.6.5) <20 11>
61 2 0xdb3000 0x5000 0x4000 com.apple.iokit.IOUSBHIDDriver (2.6.5) <24 20 11>
62 0 0xeaf000 0x7000 0x6000 com.apple.driver.AppleTVIR (1.0.1a2) <61 24 20 11>
63 0 0xeba000 0x5000 0x4000 com.apple.driver.AppleIRController (73.3) <61 24 20 11>
64 2 0x30410000 0x8000 0x7000 com.apple.iokit.IOCDStorageFamily (1.4) <52 5 4 3>
65 0 0x30418000 0x5000 0x4000 com.apple.iokit.IODVDStorageFamily (1.4) <64 52 5 4 3>
66 0 0x5c0000 0xb000 0xa000 com.apple.filesystems.msdosfs (1.4.7) <6 5 4 2>
67 1 0x3041d000 0x16000 0x15000 com.apple.iokit.IOSCSIArchitectureModelFamily (1.5.3) <11>
68 0 0x30433000 0xa000 0x9000 com.apple.iokit.IOUSBMassStorageClass (1.4.7) <67 52 20 11>
69 0 0x3043d000 0x5000 0x4000 com.apple.filesystems.cddafs (2.2.4) <64 5 4 3 2>
70 0 0x30442000 0x41000 0x40000 com.apple.filesystems.udf (1.4.4) <6 5 4 2>
71 1 0x30483000 0x34000 0x33000 com.apple.iokit.IOBluetoothFamily (1.7.14f14) <11>
72 0 0x304b7000 0xb000 0xa000 com.apple.driver.IOBluetoothHIDDriver (1.7.2b2) <71 24 11>
73 0 0x304c2000 0x2c000 0x2b000 com.apple.AppleDiskImageController (114.9) <52 6 5 4 3 2>
74 0 0x304ee000 0x8000 0x7000 com.apple.filesystems.ntfs (1.2.1) <4 2>
75 0 0x304f6000 0x30000 0x2f000 com.apple.filesystems.smbfs (1.3.6) <6 5 4 3 2>
76 0 0x30526000 0x10000 0xf000 com.broadcom.crystalhd.driver (3.1.0) <5 4 3 2>
Reply
#40
after build the r31503 i have this log

19:36:38 T:2684407808 M: 72114176 NOTICE: load settings...
19:36:38 T:2684407808 M: 71987200 DEBUG: SECTION:LoadDLL(libcrystalhd.dylib)
19:36:38 T:2684407808 M: 71987200 DEBUG: Loading: libcrystalhd.dylib
19:37:00 T:2684407808 M: 79257600 ERROR: CrystalHD: device open failed , returning(0xa)
19:37:00 T:2684407808 M: 79257600 INFO: CrystalHD: broadcom crystal hd not found
Reply
#41
iwaleed Wrote:after build the r31503 i have this log

19:36:38 T:2684407808 M: 72114176 NOTICE: load settings...
19:36:38 T:2684407808 M: 71987200 DEBUG: SECTION:LoadDLL(libcrystalhd.dylib)
19:36:38 T:2684407808 M: 71987200 DEBUG: Loading: libcrystalhd.dylib
19:37:00 T:2684407808 M: 79257600 ERROR: CrystalHD: device open failed , returning(0xa)
19:37:00 T:2684407808 M: 79257600 INFO: CrystalHD: broadcom crystal hd not found

0xa is a BC_STS_TIMEOUT

"BroadcomCrystalHD: Found HW and started driver SW." means driver matched to the pci id of the crystalhd card and loaded all the way. I don't see the traditional sig of it being opened in dmesg.

Your size for libcrystalhd is a little different than mine;
Skunkworks:libcrystalhd davilla$ ls -l libcrystalhd.dylib
-rwxr-xr-x 1 davilla admin 128032 Jun 29 16:03 libcrystalhd.dylib

that's r114

please verify build/copy of libcrystalhd.dylib


Something very odd going on.
Reply
#42
can you send me the dylib you build ?
Reply
#43
Hi,

I tried to compile the r114 version and got an error
Code:
Mac-mini:libcrystalhd Fritz$ make
OBJFILES = libcrystalhd_if.o libcrystalhd_int_if.o libcrystalhd_fwcmds.o libcrystalhd_priv.o libcrystalhd_fwdiag_if.o libcrystalhd_fwload_if.o libcrystalhd_parser.o linux_compatible.o
SRCFILES = libcrystalhd_if.cpp libcrystalhd_int_if.cpp libcrystalhd_fwcmds.cpp libcrystalhd_priv.cpp libcrystalhd_fwdiag_if.cpp libcrystalhd_fwload_if.cpp libcrystalhd_parser.cpp linux_compatible.cpp
LNM = libcrystalhd.dylib
g++  -D__LINUX_USER__ -I../../include -I../../include/link -I../../include/flea -g -O0 -Wall -fPIC -arch i386 -shared -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4  -c -o libcrystalhd_if.o libcrystalhd_if.cpp
g++  -D__LINUX_USER__ -I../../include -I../../include/link -I../../include/flea -g -O0 -Wall -fPIC -arch i386 -shared -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4  -c -o libcrystalhd_int_if.o libcrystalhd_int_if.cpp
g++  -D__LINUX_USER__ -I../../include -I../../include/link -I../../include/flea -g -O0 -Wall -fPIC -arch i386 -shared -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4  -c -o libcrystalhd_fwcmds.o libcrystalhd_fwcmds.cpp
g++  -D__LINUX_USER__ -I../../include -I../../include/link -I../../include/flea -g -O0 -Wall -fPIC -arch i386 -shared -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4  -c -o libcrystalhd_priv.o libcrystalhd_priv.cpp
g++  -D__LINUX_USER__ -I../../include -I../../include/link -I../../include/flea -g -O0 -Wall -fPIC -arch i386 -shared -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4  -c -o libcrystalhd_fwdiag_if.o libcrystalhd_fwdiag_if.cpp
g++  -D__LINUX_USER__ -I../../include -I../../include/link -I../../include/flea -g -O0 -Wall -fPIC -arch i386 -shared -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4  -c -o libcrystalhd_fwload_if.o libcrystalhd_fwload_if.cpp
g++  -D__LINUX_USER__ -I../../include -I../../include/link -I../../include/flea -g -O0 -Wall -fPIC -arch i386 -shared -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4  -c -o libcrystalhd_parser.o libcrystalhd_parser.cpp
g++  -D__LINUX_USER__ -I../../include -I../../include/link -I../../include/flea -g -O0 -Wall -fPIC -arch i386 -shared -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4  -c -o linux_compatible.o linux_compatible.cpp
In file included from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/mach/mach_init.h:57,
                 from linux_compatible.cpp:32:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from linux_compatible.cpp:32:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/mach/mach_init.h:115: error: ‘va_list’ has not been declared
make: *** [linux_compatible.o] Error 1

Compiler version

Code:
Mac-mini:libcrystalhd Fritz$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I have no problem compiling r26.

Is something wrong with my compiler?

PS. Have been using r26 with great succes for some time now and hope to switch to r114 for the power management. Keep up the good work!
Reply
#44
if you use OSX 10.6 will give this error
Reply
#45
iwaleed Wrote:if you use OSX 10.6 will give this error

grrr, it's not suppose to be doing this. build it from the xcode project and see if that works.

svn up to r115, Makefile change.
Reply
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 12

Logout Mark Read Team Forum Stats Members Help
CrystalHD & current SVN builds of XBMC?0