一、参考文档:
https://community.nxp.com/docs/DOC-335803
二、操作步骤
- 源码打 patch
cd <KERNEL_DIR>
patch -p1 <PATCH_DIR>/0001-IPU-update-IPU-capture-driver-to-support-up-to-four-.patch
patch -p1 <PATCH_DIR>/0002-Remove-the-page-size-align-requirement-for-v4l2-capt.patch
patch -p1 <PATCH_DIR>/0003-Add-TP2854-support-on-SabreAuto-board-which-can-supp.patch
去除补丁回到旧版本可以通过-R选项实现
- kernel distclean
cd <KERNEL_BUILD_DIR> //
source [email protected]:~/yocto/fsl-release-bsp/build-avm718/tmp/work/imx6q_avm718-poky-linux-gnueabi/linux-imx/4.1.15-r0/build
make distclean
- do configure生成.config文件
cd <YOCTO_BUILD_DIR>
bitbake -c configure -f linux-imx
- 修改配置
cd <KERNEL_BUILD_DIR>
make menuconfig
配置如下
5.编译内核
cd <YOCTO_BUILD_DIR>
bitbake -c compile -f linux-imx