Last active
January 12, 2022 04:51
-
-
Save aijanai/8c01167354b48996641c3544c267d394 to your computer and use it in GitHub Desktop.
Enables Macbook Pro Retina's FaceTimeHD on Ubuntu/Debian (thanks to patjak)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
AFAIK no: it doesn't mount my OSX partition, it downloads the firmware on the fly