Skip to content

Instantly share code, notes, and snippets.

@aijanai
Last active January 12, 2022 04:51
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aijanai/8c01167354b48996641c3544c267d394 to your computer and use it in GitHub Desktop.
Save aijanai/8c01167354b48996641c3544c267d394 to your computer and use it in GitHub Desktop.
Enables Macbook Pro Retina's FaceTimeHD on Ubuntu/Debian (thanks to patjak)
#!/bin/bash
DRIVER_DIR="bcwc_pcie"
if [ ! -d "$DRIVER_DIR" ]; then
echo "Dir not present. Well, let's bootstrap then"
echo "Cloning code"
git clone https://github.com/patjak/bcwc_pcie.git
fi
echo "Installing utils"
sudo apt-get install -y cpio make curl xz-utils git kmod libssl-dev checkinstall
# enter dir
pushd bcwc_pcie
# extract firmware
pushd firmware
echo "Extracting firmware"
sudo make clean
sudo make -j4
sudo make install
popd
echo "Building driver"
sudo make clean
sudo make -j4
sudo make install
echo "Linking driver"
sudo depmod
echo "Unloading deprecated driver"
sudo modprobe -r bdc_pci
echo "Unloading old driver version"
sudo modprobe -r facetimehd
echo "Loading driver"
sudo modprobe facetimehd
popd
@Alessandro1970
Copy link

I would like to know if this script works on a native Linux installation on MBP or if it is necessary to have OSX in a partition?
I can install Linux Mint Sylvia without problems apart from the camera driver, but the guides found on the web are too complicated for me.
Could you give me some help about it or indicate me a differet easy way?
Thank you
Bye

@aijanai
Copy link
Author

aijanai commented Jan 6, 2019

Hi,
AFAIK no: it doesn't mount my OSX partition, it downloads the firmware on the fly

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