How to create add and write camera driver on yocto.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create add and write camera driver on yocto.

761 Views
KartikFromMarth
Contributor I

Hi, Good evening, NXP Community.

I am working on I.MX 8 QM SBC. I need the steps how to create a new camera(IMX219) device tree file and .ko file in yocto. 

 

0 Kudos
1 Reply

732 Views
brian14
NXP TechSupport
NXP TechSupport

Hi @KartikFromMarth

To create this file please try the following steps:

→ First of all, to write the device tree (.dts) I can suggest to base on the device tree for camera OV5640. You can find this file on linux-imx and search dts for imx8qm-mek-ov5640 (linux-imx/imx8qm-mek-ov5640.dts at lf-6.1.y · nxp-imx/linux-imx · GitHub).
→ Then create the proper modifications based on IMX219 sensor. For this step you can based on an implementation for other embedded devices such as Nvidia Jetson Nano or Raspberry Pi. I found a link forum that could help: Modifying device tree for IMX219 behind I2C mux - Jetson & Embedded Systems / Jetson Nano - NVIDIA D...
Also, you can take as a reference another community thread: IMX219 Camera on Avnet Maaxboard board - NXP Community
→ Finally, once you have the your edited dts file on Yocto use:
     ○ Type the command "bitbake -c devshell linux-imx"
     ○ Add your dts file in <local build folder>/tmp/work/imx8mp_lpddr4_evk-poky-linux/linux-imx/6.1.1+gitAUTOINC+xxxxx-xxxxx/git/arch/arm64/boot/dts/freescale/
     ○ Then use command "make dtbs"

I hope this information will be helpful.

Have a great day!

0 Kudos