31 Sie

How to install Broadcom Crystal HD driver on Ubuntu 13.10/14.04+

The Broadcom Crystal HD cards (BCM70012 and BCM70015) bring 1080p HD video decoding capability to low powered media centers and netbooks. Software decoding HD video strains the CPU and many cases causes stutters and skips during video playback. In this post, I will explain how to install Broadcom Crystal HD driver on Ubuntu systems.

There is many tutorials explaining how to install Crystal HD in linux environment. However sinse kernel update in Ubuntu 13+ you have do some additional steps.

1. Do steps 1-3 described in http://www.htpcbeginner.com/install-broadcom-crystal-hd-driver-ubuntu/

2. In step 3 you’ll propably have same error as described here https://bbs.archlinux.org/viewtopic.php?pid=1253802 – read this thread carefully

M25:

Found it! This worked for me building from source on Ubuntu, after receiving the same exact set of errors, so I assume it’ll work as well on Arch.
The problem is that with the 3.8 kernel update, the __devinit and __devexit macros were removed. Those macros are used in the source, so that’s what’s causing the failures. I did some research, these macros check if hotplugging is enabled in the kernel, and if it is, they get replaced with __init and __exit respectively. Since I can’t imagine a situation where you wouldn’t want hotplugging, the solution is to replace all instances of __devinit and __devexit with __init and __exit in driver/linux/crystalhd_cmds.c and driver/linux/crystalhd_lnx.c

I’ve created a patch file that does this, but since I’m new to this forum I can’t find the upload file button, so instead I’ve hosted it on my own server, at http://m25.mooo.com/devinitFix.patch
you can apply it by going into the main crystalhd source directory and doing

then build as normal. Let me know if you have any trouble, it’s working great for me now

If you try to download path

you’ll find that devinitFix.patch doesn’t exist any more on that server

3. Download patch from this server:

4. Then build as normal (step 3… end) from http://www.htpcbeginner.com/install-broadcom-crystal-hd-driver-ubuntu/

Tested on lubuntu 14.04.

Backups of articles and files used in this tutorial:

CrystalHD indicator (tray)

– readme inside