Ubuntu en Macbook air, webcam

(Nota: cal tenir instal.lat curlsudo apt install curl.)

1) Clona, the bcwc_pcie driver desde https://github.com/patjak/bcwc_pcie.git

$ cd /usr/local/src
$ sudo git clone https://github.com/patjak/bcwc_pcie.git
Cloning into 'bcwc_pcie'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 1057 (delta 2), reused 4 (delta 0), pack-reused 1049
Receiving objects: 100% (1057/1057), 352.48 KiB | 537.00 KiB/s, done.
Resolving deltas: 100% (709/709), done.

2) Clona the facetimehd-firmware desde https://github.com/patjak/facetimehd-firmware into the bcwc_pcie folder

$ cd /usr/local/src/bcwc_pcie
$ sudo git clone https://github.com/patjak/facetimehd-firmware
Cloning into 'facetimehd-firmware'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 886 (delta 0), reused 0 (delta 0), pack-reused 885
Receiving objects: 100% (886/886), 290.76 KiB | 294.00 KiB/s, done.
Resolving deltas: 100% (585/585), done.

3) Crea i instal.la facetimehd-firmware

$ cd /usr/local/src/bcwc_pcie/facetimehd-firmware
$ sudo make

Checking dependencies for driver download...
/usr/bin/curl
/usr/bin/xzcat
/bin/cpio

Downloading the driver, please wait...


Found matching hash from OS X, El Capitan 10.11.5
==> Extracting firmware...
 --> Decompressing the firmware using gzip...
 --> Deleting temporary files...
 --> Extracted firmware version 1.43.0

$ sudo make install
Copying firmware into '//lib/firmware/facetimehd'

4) Make and install the bcwc_pcie driver

$ cd /usr/local/src/bcwc_pcie
$ sudo make
make -C /lib/modules/5.0.0-23-generic/build M=/usr/local/src/bcwc_pcie modules
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-23-generic'
  CC [M]  /usr/local/src/bcwc_pcie/fthd_ddr.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_hw.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_drv.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_ringbuf.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_isp.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_v4l2.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_buffer.o
  CC [M]  /usr/local/src/bcwc_pcie/fthd_debugfs.o
  LD [M]  /usr/local/src/bcwc_pcie/facetimehd.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/local/src/bcwc_pcie/facetimehd.mod.o
  LD [M]  /usr/local/src/bcwc_pcie/facetimehd.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-23-generic'

$ sudo make install
make -C /lib/modules/5.0.0-23-generic/build M=/usr/local/src/bcwc_pcie modules_install
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-23-generic'
  INSTALL /usr/local/src/bcwc_pcie/facetimehd.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:72
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:79
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  5.0.0-23-generic
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-23-generic'

5) Habilita els drivers

$ sudo depmod
$ sudo modprobe -r bdc_pci
$ sudo modprobe facetimehd
$ sudo apt install cheese

**6) Per assegurar que facetimehd arranqui al reiniciar afegeix linea a
/etc/modules executant la comanda
sudo echo facetimehd >> /etc/modules

Share