Line 189: |
Line 189: |
| | | |
| === Build the drivers from source === | | === Build the drivers from source === |
| + | The following operations are done on Ubuntu Host PC. |
| + | |
| + | ==== Set up the Host PC environment ==== |
| + | Refer to the official document ''OKMX8MPQ-C_Linux5.4.70+Qt5.15.0_manual_V1.2_20230406.pdf'' to deploy the development environment. |
| + | |
| + | ==== Build Forlinx version kernel ==== |
| + | Compile the standard version according to the above document. |
| + | |
| + | ====Patch code==== |
| + | |
| + | *Driver source code |
| + | |
| + | <code>git clone <nowiki>https://github.com/veyeimaging/nxp_i.mx_veye_bsp.git</nowiki></code> |
| + | |
| + | The source code path of the camera driver is: ''linux/drivers/media/i2c'', places the source code of the camera driver in the corresponding directory. |
| + | |
| + | Merge the Config and Makefile in the same path. Add the corresponding camera driver. |
| + | |
| + | *dts file |
| + | |
| + | <code>git clone <nowiki>https://github.com/veyeimaging/forlinx_nxp_i.mx.git</nowiki></code> |
| + | |
| + | The path to the dts file is: ''linux/arch/arm64/boot/dts/freescale'', places the dts file in this path. |
| + | |
| + | Modify the Config and Makefile in the same path. Add the corresponding dts option. |
| + | ====Add compilation options==== |
| + | <code>make menuconfig</code> |
| + | |
| + | Add the compilation options for the corresponding camera module driver, and the path is ''> Device Drivers > Multimedia support > I2C Encoders, decoders, sensors and other helper chips'' . |
| + | ====Build==== |
| + | Refer to the official documentation and compile to obtain Image and dtb output. |