Skip to content

Instantly share code, notes, and snippets.

Created February 27, 2017 10:35
Show Gist options
  • Save Stono/990ea9f0b3c41606c292f00382d421bf to your computer and use it in GitHub Desktop.
Save Stono/990ea9f0b3c41606c292f00382d421bf to your computer and use it in GitHub Desktop.
Install the kernal module required for the facetimehd camera to work on Linux
set -e
echo "Installing FacetimeHD camera for $KERNELRELEASE"
cd /tmp
git clone
cd bcwc_pcie/firmware
make install
cd ..
make install
rm -rf /tmp/bcwc_pcie
if [ ! -d "/etc/modules-load.d" ]; then
mkdir -p "/etc/modules-load.d"
cat > "/etc/modules-load.d/facetimehd.conf" << EOL
echo "Install complete."
Copy link

vablinux commented Jul 6, 2018

I've tried to install the camera using the tutorial but I got the same error message. So I decided to run your script but I got the same error.

Copying firmware into '//usr/lib/firmware/facetimehd'
make -C /lib/modules//build M=/tmp/bcwc_pcie modules
make[1]: *** /lib/modules//build: No such file or directory. Stop.
make: *** [Makefile:12: all] Error 2

Any help is much appreciated.


Copy link

vablinux commented Jul 6, 2018

I found a solution. Followed this instructions
Then I installed sudo yum install elfutils-libelf-devel
Facetime camera working fine on my macbook pro with fedora 28

Copy link

jpretori commented Apr 4, 2019

I get this problem though - can you help?

make[1]: Entering directory '/usr/src/linux-headers-4.18.0-17-generic'
  INSTALL /tmp/bcwc_pcie/facetimehd.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:74
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:81
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  4.18.0-17-generic

Copy link

Hello, I have tried the script but I am getting the following error:

**Installing FacetimeHD camera for
Cloning into 'bcwc_pcie'...
remote: Enumerating objects: 1049, done.
remote: Total 1049 (delta 0), reused 0 (delta 0), pack-reused 1049
Receiving objects: 100% (1049/1049), 350.72 KiB | 503.00 KiB/s, done.
Resolving deltas: 100% (707/707), done.

Checking dependencies for driver download...
Makefile:34: fallo en las instrucciones para el objetivo 'AppleCameraInterface'
make: *** [AppleCameraInterface] Error 1**

I don't know what to do here. I am stucked.

Thanks in advanced!

Copy link

This script seems to be outdated

Copy link

@gonzaloFigueras You need to install curl

Copy link

avtkal commented May 2, 2020

I get stucked here:
/tmp/bcwc_pcie/firmware$ make
make: *** No targets specified and no makefile found. Stop.

Could someone help with this?
Thank you!

Copy link

Same error for me on Fedora 32

[apendse@apendse-fedora firmware]$ pwd

[apendse@apendse-fedora firmware]$ sudo make
make: *** No targets specified and no makefile found. Stop.

Copy link

ukn commented Jul 3, 2020

Had to modify the script a bit but got it working on Linux Mint 19.3 (kernel 5.4.0-40-generic)

Copy link

Thanks @ukn I've just tried your script on Fedora 32. I had to comment out line #43:
and it worked great. Enjoying my camera now!

Copy link

Thanks Stono for this script. I ended up using it as the base for what I was trying to solve. I did try it like you instructed, but it wouldnt work on my machine. I have a 2015 MacBook Pro... I though about it a while and realized that the only time I need this to run is when I update the kernel, since this is when it kills the install. So I just changed the script to do the apt update then automatically just run your script and basically reinstall the driver immediately after the kernel update. Works perfectly. I put it on my page if your interested in seeing how I did it. Thank you for helping me get my camera running again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment