Skip to content

Instantly share code, notes, and snippets.

@jasco
Last active February 27, 2020 01:09
Show Gist options
  • Save jasco/b383ded3fc129036204a5031b77ba098 to your computer and use it in GitHub Desktop.
Save jasco/b383ded3fc129036204a5031b77ba098 to your computer and use it in GitHub Desktop.
ubuntu facetimehd kernel module build
#!/bin/bash
set -e
# References
# - https://github.com/patjak/bcwc_pcie/wiki/Get-Started#get-started-on-ubuntu
# - https://gist.github.com/Stono/990ea9f0b3c41606c292f00382d421bf
git clone https://github.com/patjak/bcwc_pcie.git /tmp/bcwc_pcie
cd /tmp/bcwc_pcie
git clone https://github.com/patjak/facetimehd-firmware.git
cd facetimehd-firmware
make
sudo make install
cd ..
make
sudo make install
sudo rm -rf /tmp/bcwc_pcie
if [ ! -d "/etc/modules-load.d" ]; then
sudo mkdir -p "/etc/modules-load.d"
fi
echo | sudo tee "/etc/modules-load.d/facetimehd.conf" << EOL
videobuf2-core
videobuf2_v4l2
videobuf2-dma-sg
facetimehd
EOL
sudo depmod
sudo modprobe -r bdc_pci
sudo modprobe facetimehd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment