1、配置交叉编译环境
既然配置的是imx6平台的内核,那么就需要先配置交叉编译环境使得make使用的gcc是指定平台的gcc。
2、打开内核config配置界面
进到kernel目录下,然后输入
make menuconfig
就会出现如下配置界面:
可能出现问题:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
这说明没有ncurses这个工具,安装:
sudo apt-get install libncurses5-dev
3、配置对usb摄像头的支持
按以下顺序一次选择:
Device Drivers —>
Multimedia support —>
Media USB Adapters —>
勾选:
USB Video Class (UVC)
UVC input events device support
最后编译内核,使用。