Changes

Jump to navigation Jump to search
Line 179: Line 179:  
===Build the drivers from source===
 
===Build the drivers from source===
 
The following operations are done on ubuntu Host PC.
 
The following operations are done on ubuntu Host PC.
 +
 +
==== Compile the standard version ====
 +
Refer to the official document ''MaaXBoard-Linux-Development_Guide-V1.1-EN.pdf''.
 +
 +
===== Set up the Host PC environment =====
 +
<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 -j4</code>
 +
 +
==== 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/platform/mxc/capture'', places the source code of the camera driver in the corresponding directory.
 +
 +
*Modify the the Makefile and Kconfig files
 +
 +
Modify the Config and Makefile  in the same path. Add the corresponding camera driver.
 +
 +
* dts file
 +
 +
<code>git clone <nowiki>https://github.com/veyeimaging/avnet_maaxboard.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 > V4L platform devices > MXC Camera/V4L2 PRP Features support''.
 +
====Build====
 +
<code>make Image dtbs -j4</code>
 +
===References===
 +
Maaxboard embest-tech official site :http://www.embest-tech.cn/
 +
 +
Maaxboard :http://www.embest-tech.cn/down.aspx?key=maaxboard
 
<br />
 
<br />

Navigation menu