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

not able to compile kernel 6 - ERROR: modpost: "vb2_dma_sg_memops" #277

Closed yaguphire closed 1 year ago

yaguphire commented 1 year ago

tux@tux ~/Downloads/bcwc_pcie/firmware $ ls AppleCameraInterface debian extract-firmware.sh facetimehd-firmware-install.sh firmware.bin Makefile tux@tux ~/Downloads/bcwc_pcie/firmware $ sudo make install Copying firmware into '//lib/firmware/facetimehd'

tux@tux ~/Downloads/bcwc_pcie $ sudo make make -C /lib/modules/6.0.6-x86_64/build M=/home/tux/Downloads/bcwc_pcie modules make[1]: Entering directory '/usr/src/linux-6.0.6' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-pc-linux-gnu-gcc (Gentoo 11.3.0 p4) 11.3.0 You are using: gcc (Gentoo 11.3.0 p4) 11.3.0 CC [M] /home/tux/Downloads/bcwc_pcie/fthd_ddr.o CC [M] /home/tux/Downloads/bcwc_pcie/fthd_hw.o CC [M] /home/tux/Downloads/bcwc_pcie/fthd_drv.o CC [M] /home/tux/Downloads/bcwc_pcie/fthd_ringbuf.o CC [M] /home/tux/Downloads/bcwc_pcie/fthd_isp.o CC [M] /home/tux/Downloads/bcwc_pcie/fthd_v4l2.o CC [M] /home/tux/Downloads/bcwc_pcie/fthd_buffer.o CC [M] /home/tux/Downloads/bcwc_pcie/fthd_debugfs.o LD [M] /home/tux/Downloads/bcwc_pcie/facetimehd.o MODPOST /home/tux/Downloads/bcwc_pcie/Module.symvers ERROR: modpost: "vb2_dma_sg_memops" [/home/tux/Downloads/bcwc_pcie/facetimehd.ko] undefined! make[2]: [scripts/Makefile.modpost:128: /home/tux/Downloads/bcwc_pcie/Module.symvers] Error 1 make[1]: [Makefile:1766: modules] Error 2 make[1]: Leaving directory '/usr/src/linux-6.0.6' make: *** [Makefile:12: all] Error 2

yaguphire commented 1 year ago

tux@tux ~/Downloads/bcwc_pcie $ gcc --version gcc (Gentoo 11.3.0 p4) 11.3.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

yaguphire commented 1 year ago

this can be closed out. solution was making sure kernel dependencies were met. I guess would it make sense before compiling it checks the kernel .config to ensure it is set?