Created
February 27, 2017 10:35
-
-
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
This file contains 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 | |
set -e | |
export CONFIG_MODULE_SIG=n | |
export CONFIG_MODULE_SIG_ALL=n | |
export KERNELRELEASE=${1} | |
echo "Installing FacetimeHD camera for $KERNELRELEASE" | |
cd /tmp | |
git clone https://github.com/patjak/bcwc_pcie.git | |
cd bcwc_pcie/firmware | |
make | |
make install | |
cd .. | |
make | |
make install | |
rm -rf /tmp/bcwc_pcie | |
if [ ! -d "/etc/modules-load.d" ]; then | |
mkdir -p "/etc/modules-load.d" | |
fi | |
cat > "/etc/modules-load.d/facetimehd.conf" << EOL | |
videobuf2-core | |
videobuf2_v4l2 | |
videobuf2-dma-sg | |
facetimehd | |
EOL | |
echo "Install complete." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.10
Release: 24.10
Codename: oracular
apt-get install pahole
ln -sf /boot/System.map-$(uname -r) /usr/src/linux-headers-$(uname -r)/System.map
ln -sf /usr/lib/modules/$(uname -r)/vmlinux.xz /boot/
install this version : https://gist.github.com/petrstepanov/73e1eeaeca8b56bf4bca2a367f18fe95