patjak / facetimehd

Reverse engineered Linux driver for the FacetimeHD (Broadcom 1570) PCIe webcam
GNU General Public License v2.0
1.35k stars 160 forks source link

bcwc_pcie make fails (resolve_btfids) - debian 12.1 #287

Open Lat31320 opened 1 year ago

Lat31320 commented 1 year ago

Hi,

I have used firmware and module install for years on debian buster with macbook pro 11.1

I recently updated to debian 12 and if the firmware install works fine I'm stuck at the make step for bcwc_pcie

I had a script containing the different commands described on your wiki which worked perfectly on buster (it had to be replayed after OS updates). To spot any error on my side, I started from scratch by following the steps on your wiki again: the firmware installs fine (/usr/lib/firmware/facetimehd/firmware.bin) but without success for bcwc_pcie

make fails about missing resolve_btfids and I can't figure out how to fix that.

root@macbook:~/facetimecam/bcwc_pcie# make
make -C /lib/modules/6.1.0-10-amd64/build M=/root/facetimecam/bcwc_pcie modules
make[1] : on entre dans le répertoire « /usr/src/linux-headers-6.1.0-10-amd64 »
  CC [M]  /root/facetimecam/bcwc_pcie/fthd_ddr.o
  CC [M]  /root/facetimecam/bcwc_pcie/fthd_hw.o
  CC [M]  /root/facetimecam/bcwc_pcie/fthd_drv.o
  CC [M]  /root/facetimecam/bcwc_pcie/fthd_ringbuf.o
  CC [M]  /root/facetimecam/bcwc_pcie/fthd_isp.o
  CC [M]  /root/facetimecam/bcwc_pcie/fthd_v4l2.o
  CC [M]  /root/facetimecam/bcwc_pcie/fthd_buffer.o
  CC [M]  /root/facetimecam/bcwc_pcie/fthd_debugfs.o
  LD [M]  /root/facetimecam/bcwc_pcie/facetimehd.o
  MODPOST /root/facetimecam/bcwc_pcie/Module.symvers
  CC [M]  /root/facetimecam/bcwc_pcie/facetimehd.mod.o
  LD [M]  /root/facetimecam/bcwc_pcie/facetimehd.ko
  BTF [M] /root/facetimecam/bcwc_pcie/facetimehd.ko
/bin/sh: 1: ./tools/bpf/resolve_btfids/resolve_btfids: not found
make[2]: *** [/usr/src/linux-headers-6.1.0-10-common/scripts/Makefile.modfinal:63 : /root/facetimecam/bcwc_pcie/facetimehd.ko] Erreur 127
make[2]: *** Suppression du fichier « /root/facetimecam/bcwc_pcie/facetimehd.ko »
make[1]: *** [/usr/src/linux-headers-6.1.0-10-common/Makefile:1954 : modules] Erreur 2
make[1] : on quitte le répertoire « /usr/src/linux-headers-6.1.0-10-amd64 »
make: *** [Makefile:12 : all] Erreur 2

uname -a Linux macbook 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-2 (2023-07-27) x86_64 GNU/Linux

Regards,