SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-05-09 09:37:48

Arda
New Member
Registered: 2013-05-07
Posts: 7

[SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

Hi,

I want to install Broadcom Crystal HD driver for my netbook, before that I used to compile from git.wilsonet.com  and it was working okay on ubuntu based distros (I was using Linux Mint Maya back then).

How can I do this? Has anyone tried any solutions? Can this guide work? I don't want to mess before doing anything wrong.

Thanks in advance,

Last edited by Arda (2013-05-09 11:39:04)

Offline

Help fund CrunchBang, donate to the project!

#2 2013-05-09 10:21:24

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

Yes. Nothing Ubuntu-specific in there at first sight.
You don't even have to edit the file like it says. Has been done already.

You will need the linux-headers package for your kernel:

sudo apt-get install linux-headers-$(uname -r)

before.

Offline

#3 2013-05-09 10:33:02

Arda
New Member
Registered: 2013-05-07
Posts: 7

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

xaos52 wrote:

Yes. Nothing Ubuntu-specific in there at first sight.
You don't even have to edit the file like it says. Has been done already.

You will need the linux-headers package for your kernel:

sudo apt-get install linux-headers-$(uname -r)

before.

Thanks, I installed linux headers as you've described, and I tried installing, but I get exactly this error on make:

arda@arda-lappy:~/crystalhd/driver/linux$ make
make -C /lib/modules/3.2.0-4-amd64/build SUBDIRS=/home/arda/crystalhd/driver/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64'
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: modpost: Found 2 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-4-amd64'
arda@arda-lappy:~/crystalhd/driver/linux$ make CONFIG_DEBUG_SECTION_MISMATCH=y
make -C /lib/modules/3.2.0-4-amd64/build SUBDIRS=/home/arda/crystalhd/driver/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64'
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_lnx.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_misc.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_cmds.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_hw.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_linkfuncs.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_fleafuncs.o
/home/arda/crystalhd/driver/linux/crystalhd_fleafuncs.c: In function ‘crystalhd_flea_runtime_power_dn’:
/home/arda/crystalhd/driver/linux/crystalhd_fleafuncs.c:619:14: error: ‘regVal’ may be used uninitialized in this function [-Werror=uninitialized]
cc1: all warnings being treated as errors
make[4]: *** [/home/arda/crystalhd/driver/linux/crystalhd_fleafuncs.o] Error 1
make[3]: *** [_module_/home/arda/crystalhd/driver/linux] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-4-amd64'
make: *** [all] Error 2
arda@arda-lappy:~/crystalhd/driver/linux$ 

Any ideas?


Edit: Found a fix for that, applied it, but now new errors occur:


arda@arda-lappy:~/crystalhd/driver/linux$ make CONFIG_DEBUG_SECTION_MISMATCH=y
make -C /lib/modules/3.2.0-4-amd64/build SUBDIRS=/home/arda/crystalhd/driver/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64'
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_lnx.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_misc.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_cmds.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_hw.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_linkfuncs.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_fleafuncs.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_flea_ddr.o
  LD [M]  /home/arda/crystalhd/driver/linux/crystalhd.o
WARNING: /home/arda/crystalhd/driver/linux/crystalhd.o(.devinit.text+0x4b8): Section mismatch in reference from the function chd_dec_pci_probe() to the function .devexit.text:chd_dec_release_chdev()
The function __devinit chd_dec_pci_probe() references
a function __devexit chd_dec_release_chdev().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
chd_dec_release_chdev() so it may be used outside an exit section.

WARNING: /home/arda/crystalhd/driver/linux/crystalhd.o(.devinit.text+0x4c0): Section mismatch in reference from the function chd_dec_pci_probe() to the function .devexit.text:chd_pci_release_mem()
The function __devinit chd_dec_pci_probe() references
a function __devexit chd_pci_release_mem().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
chd_pci_release_mem() so it may be used outside an exit section.

  Building modules, stage 2.
  MODPOST 1 modules
WARNING: /home/arda/crystalhd/driver/linux/crystalhd.o(.devinit.text+0x4b8): Section mismatch in reference from the function chd_dec_pci_probe() to the function .devexit.text:chd_dec_release_chdev()
The function __devinit chd_dec_pci_probe() references
a function __devexit chd_dec_release_chdev().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
chd_dec_release_chdev() so it may be used outside an exit section.

WARNING: /home/arda/crystalhd/driver/linux/crystalhd.o(.devinit.text+0x4c0): Section mismatch in reference from the function chd_dec_pci_probe() to the function .devexit.text:chd_pci_release_mem()
The function __devinit chd_dec_pci_probe() references
a function __devexit chd_pci_release_mem().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
chd_pci_release_mem() so it may be used outside an exit section.

  CC      /home/arda/crystalhd/driver/linux/crystalhd.mod.o
  LD [M]  /home/arda/crystalhd/driver/linux/crystalhd.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-4-amd64'
arda@arda-lappy:~/crystalhd/driver/linux$ 

Last edited by Arda (2013-05-09 10:41:27)

Offline

#4 2013-05-09 10:50:12

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

home/arda/crystalhd/driver/linux/crystalhd_fleafuncs.c: In function ‘crystalhd_flea_runtime_power_dn’:
/home/arda/crystalhd/driver/linux/crystalhd_fleafuncs.c:619:14: error: ‘regVal’ may be used uninitialized in this function [-Werror=uninitialized]

See those strange characters in the output you posted?
Could be that something went wrong with the git clone.
Can you check line 619 of file /home/arda/crystalhd/driver/linux/crystalhd_fleafuncs.c in your preferred editor and check if there are any strange chars on that line?
Have you tried editing that line?

If the starnge chars are there, then

rm -rf /home/arda/crystalhd

run the git clone again, and check if the strange chars are there again.

Offline

#5 2013-05-09 10:52:54

Arda
New Member
Registered: 2013-05-07
Posts: 7

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

Nah, those strange characters should be ' (shows OK on terminal), please ignore them (I'm installing on my laptop, and writing from PC, those occurred while transferring via a paste site), sorry about that.

Offline

#6 2013-05-09 10:58:49

Arda
New Member
Registered: 2013-05-07
Posts: 7

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

Found a patch about a similar question here,

and after that, I executed, and terminal output is like this:

Does this mean it's installed correctly?

arda@arda-lappy:~/crystalhd/driver/linux$ make CONFIG_DEBUG_SECTION_MISMATCH=y
make -C /lib/modules/3.2.0-4-amd64/build SUBDIRS=/home/arda/crystalhd/driver/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64'
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_lnx.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_misc.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_cmds.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_hw.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_linkfuncs.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_fleafuncs.o
  CC [M]  /home/arda/crystalhd/driver/linux/crystalhd_flea_ddr.o
  LD [M]  /home/arda/crystalhd/driver/linux/crystalhd.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/arda/crystalhd/driver/linux/crystalhd.mod.o
  LD [M]  /home/arda/crystalhd/driver/linux/crystalhd.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-4-amd64'
arda@arda-lappy:~/crystalhd/driver/linux$ sudo make install
if [ -e "/lib/udev/rules.d" ] ; then cp -f 20-crystalhd.rules /lib/udev/rules.d/ ; fi
if [ -e "/etc/udev/rules.d" ] ; then cp -f 20-crystalhd.rules /etc/udev/rules.d/ ; fi
if [ -d "/lib/modules/3.2.0-4-amd64/kernel/drivers/staging/crystalhd" ] ; \
		then install -m 0644 crystalhd.ko /lib/modules/3.2.0-4-amd64/kernel/drivers/staging/crystalhd/ ; \
	else \
		install -d /lib/modules/3.2.0-4-amd64/kernel/drivers/video/broadcom ; \
		install -m 0644 crystalhd.ko /lib/modules/3.2.0-4-amd64/kernel/drivers/video/broadcom ; \
	fi
/sbin/depmod -a
arda@arda-lappy:~/crystalhd/driver/linux$ 

Offline

#7 2013-05-09 11:23:44

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

That looks OK, yes.

Offline

#8 2013-05-09 11:38:45

Arda
New Member
Registered: 2013-05-07
Posts: 7

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

Much appreciated , It's shown on lsmod | grep crystalhd. I guess it works now, thanks! smile I'll post if anything further unexpected occurs.

Offline

#9 2013-05-09 11:50:04

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

No problem.
happy hacking

Offline

#10 2013-12-18 02:04:53

DjangoR
New Member
Registered: 2013-08-18
Posts: 5

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

Re the fix referenced in post 3, how do I apply that? I'm getting the same error message but I don't know what to do with the referenced fix code.

Offline

#11 2013-12-18 07:03:46

Arda
New Member
Registered: 2013-05-07
Posts: 7

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

DjangoR wrote:

Re the fix referenced in post 3, how do I apply that? I'm getting the same error message but I don't know what to do with the referenced fix code.

Try installing from here instead. Works flawlessly for me.

Offline

#12 2013-12-19 09:23:02

DjangoR
New Member
Registered: 2013-08-18
Posts: 5

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

Thank you so much, Arda. That seems to have installed the driver but when I use "vlc --codec=crystalhd" to start vlc with the crystalhd codec and then select a video it plays the audio but no video. The terminal message says "Opened CrystalHD hardware with success" but also says "COULD not find free MDATA try again"
'

Offline

#13 2013-12-19 09:45:50

Arda
New Member
Registered: 2013-05-07
Posts: 7

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

DjangoR wrote:

Thank you so much, Arda. That seems to have installed the driver but when I use "vlc --codec=crystalhd" to start vlc with the crystalhd codec and then select a video it plays the audio but no video. The terminal message says "Opened CrystalHD hardware with success" but also says "COULD not find free MDATA try again"
'

Could you please try/install temporarily XBMC and try to decode with it?

Offline

#14 2013-12-20 21:18:30

DjangoR
New Member
Registered: 2013-08-18
Posts: 5

Re: [SOLVED]Compiling/installing CrystalHD for "Waldorf" 2013.05.06

Cool! Installing XBMC seems to have fixed the crystalhd problems in VLC. It works great with XBMC. Arda, have you gotten any ap-indicator to work in the taskbar so it's easier to tell if the card is engaged? Thanks for your help and feedback.

I was just playing a 720p video in YouTube via Chromium and the computer totally locked up. I can't get to another console to try to kill services or reboot so it looks like I'll have to just hit the power button. Same thing happened last night wih VLC before I installed XBMC.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo