Skip to content

Instantly share code, notes, and snippets.

@aijanai
Last active January 12, 2022 04:51
Show Gist options
  • 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
@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