Last active
May 15, 2020 03:31
-
-
Save happyj2me/28bb73e666800c34a37cc79b51b4ad95 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
解决ubuntu18.04无法使用mac摄像头的问题 | |
git clone https://github.com/patjak/bcwc_pcie.git | |
cd bcwc_pcie/firmware | |
make | |
sudo make install | |
cd .. | |
make | |
sudo make install | |
sudo depmod | |
sudo modprobe -r bdc_pci | |
sudo modprobe facetimehd | |
查看系统上有那些pci设备: lspci -v | |
查看某个设备的vendor/device id: lspci -n -s 04:00.1(摄像头) | |
04:00.0 0480: 14e4:1570 | |
modinfo xxxx 查看某个模块的信息 | |
lsmod 和 cat /proc/modules 差不多, 查看当前加载的所有模块信息 | |
depmod 命令会自动查找 /lib/modules/`uname -r`下的模块文件,生成模块依赖关系图文件:/lib/modules/`uname -r`/modules.dep | |
modprobe xxx 会根据上面的modules.dep文件加载某个模块,以及它的依赖模块 | |
modprobe -r xxx 同样会根据依赖关系删除某个模块以及它的依赖 | |
locate facetimehd.ko 看这个ko放在什么位置 | |
系统启动的时候,自动加载和删除模块 | |
自动加载的模块放入: /etc/modules文件 | |
自动删除的模块放入: /etc/modprobe.d/blacklist.conf | |
比如上面的facetimehd内核模块,放入/etc/modules文件,然后bdc_pci放入blacklist.conf文件,那么就能实现开机加载摄像头模块了 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment