Line 89: |
Line 89: |
| ==== I2C脚本 ==== | | ==== I2C脚本 ==== |
| 由于我们的摄像头参数自由度比较高,并没有采用V4L2参数进行控制,而是使用脚本进行参数配置。 | | 由于我们的摄像头参数自由度比较高,并没有采用V4L2参数进行控制,而是使用脚本进行参数配置。 |
| + | |
| + | https://github.com/veyeimaging/nxp_i.mx_veye_bsp/tree/main/i2c_cmd |
| | | |
| [[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系列参数控制软件包使用说明]] | | [[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系列参数控制软件包使用说明]] |
Line 95: |
Line 97: |
| | | |
| === 驱动的源代码编译 === | | === 驱动的源代码编译 === |
− | 在Host主机:
| + | 以下操作均在ubuntu Host PC上进行。 |
| + | |
| + | ==== 编译标准版本 ==== |
| + | 参考官方文档《MaaXBoard-Linux-Development_Guide-V1.1-CN.pdf》 |
| + | |
| + | ==== Patch我们的代码 ==== |
| + | |
| + | * Driver source code |
| | | |
| <code>git clone <nowiki>https://github.com/veyeimaging/nxp_i.mx_veye_bsp.git</nowiki></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/avnet_maaxboard.git</nowiki></code> |
| + | |
| + | dts文件路径为:linux/arch/arm64/boot/dts/freescale,将dts文件放到此路径。 |
| + | |
| + | * Modify dts Makefile |
| + | |
| + | 修改同路径下的Makefile,增加对应dts编译选项。 |
| + | |
| + | ====编译准备==== |
| + | <code>export PATH=$PATH:[REPLACE with your path]/toolchain/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/</code> |
| + | |
| + | <code>export CC=aarch64-linux-gnu-gcc</code> |
| + | |
| + | <code>export CROSS_COMPILE=aarch64-linux-gnu-</code> |
| + | |
| + | <code>export ARCH=arm64</code> |
| + | |
| + | * Maaxboard |
| + | |
| + | <code>make bcm2711_defconfig</code> |
| + | =====增加编译选项===== |
| + | <code>make menuconfig</code> |
| + | |
| + | 增加对应camera模块驱动的编译选项,路径为 Device Drivers > Multimedia support > V4L platform devices > MXC Camera/V4L2 PRP Features support 。 |
| + | =====编译输出===== |
| + | <code>make Image dtbs -j4</code> |
| === 参考资料 === | | === 参考资料 === |
| | | |