Changes

Jump to navigation Jump to search
Line 185: Line 185:     
[http://wiki.veye.cc/index.php/VEYE_MIPI_290/327_for_Raspberry_Pi/zh#.E8.A7.86.E9.A2.91.E6.8E.A7.E5.88.B6.E8.BD.AF.E4.BB.B6.E5.8C.85.E4.BD.BF.E7.94.A8 VEYE系列参数控制软件包使用说明]
 
[http://wiki.veye.cc/index.php/VEYE_MIPI_290/327_for_Raspberry_Pi/zh#.E8.A7.86.E9.A2.91.E6.8E.A7.E5.88.B6.E8.BD.AF.E4.BB.B6.E5.8C.85.E4.BD.BF.E7.94.A8 VEYE系列参数控制软件包使用说明]
 +
 +
=== 驱动的源代码编译 ===
 +
以下操作均在ubuntu Host PC上进行。
 +
 +
=====准备编译环境=====
 +
参考官方文档《OKMX8MPQ-C_Linux5.4.70+Qt5.15.0用户编译手册_V1.2_20230406.pdf》,部署开发环境。
 +
 +
==== 编译飞凌标准版本 ====
 +
参考上述文档,编译标准版本。
 +
 +
====patch我们的代码====
 +
 +
*Driver source code
 +
 +
<code>git clone <nowiki>https://github.com/veyeimaging/nxp_i.mx_veye_bsp.git</nowiki></code>
 +
 +
camera驱动源码路径为: linux/drivers/media/platform/mxc/capture,将camera驱动的源码放到对应目录。
 +
 +
*Modify the the Makefile and Kconfig files
 +
 +
修改同路径下的Config和Makefile,增加对应camera驱动。
 +
 +
*dts file
 +
 +
<code>git clone <nowiki>https://github.com/veyeimaging/forlinx_nxp_i.mx.git</nowiki></code>
 +
 +
dts文件路径为:linux/arch/arm64/boot/dts/freescale,将dts文件放到此路径。
 +
====增加编译选项====
 +
<code>make menuconfig</code>
 +
 +
增加对应camera模块驱动的编译选项,路径为 ''> Device Drivers > Multimedia support > I2C Encoders, decoders, sensors and other helper chips.''
 +
====编译输出====
 +
参考官方文档,编译输出得到Image和dtb。

Navigation menu