How to replace dtbo in I-Pi SMARC 1200

Hi I am currently working on the I-Pi SMARC 1200 kit with genio1200. I have currently built the Image and able to flash it using genio-flash. I am planning on integrating a YUV camera. I give my entries and use bitbake -k dtbo to build and able to generate .dtbo file. How to replace it in the kit ? Do I need to flash the kit everytime using genio-flash –load-dtbo ? Is there any alternative way?

Hi @Harish_V ,

Please refer to the local.conf.sample and try adding your dtbo to KERNEL_DEVICETREE_OVERLAYS_AUTOLOAD. (add to local.conf)

Thank you for your reply.

I still have one doubt , do we have to flash the kit everytime we want to change the dtbo? Is there any other option to overcome this ?

You can try flashing only the kernel image and the required *.dtbo files.

If you don’t want to re-flash the entire root file system, you can simply update the overlay configuration with:

genio-flash -i rity-demo-image --unload-dtbo display-dsi.dtbo --load-dtbo display-edp-4k.dtbo kernel mmc0boot1

Alternatively, you can modify the kernel boot_conf.

For example, to dynamically load the video.dtbo(by adding #conf-video.dtbo):

root@genio-720-evk-ufs:~# fw_printenv boot_conf
boot_conf=#conf-mediatek_mt8391-genio-720-evk.dtb#conf-display-dsi.dtbo#conf-ufs.dtbo#conf-apusys.dtbo

root@genio-720-evk-ufs:~# fw_setenv boot_conf “#conf-mediatek_mt8391-genio-720-evk.dtb#conf-display-dsi.dtbo#conf-ufs.dtbo#conf-apusys.dtbo#conf-video.dtbo”

root@genio-720-evk-ufs:~# reboot

After rebooting, video-related devices are successfully mounted:

root@genio-720-evk-ufs:~# ls -al /sys/class/video4linux/
total 0
drwxr-xr-x 2 root root 0 Jun 1 12:05 .
drwxr-xr-x 82 root root 0 May 29 18:48 ..
lrwxrwxrwx 1 root root 0 May 29 18:48 video0 → ../../devices/platform/soc/17030000.jpeg-encoder/video4linux/video0
lrwxrwxrwx 1 root root 0 May 29 18:48 video1 → ../../devices/platform/soc/17040000.jpeg-decoder/video4linux/video1
lrwxrwxrwx 1 root root 0 Jun 1 12:05 video2 → ../../devices/platform/soc/1f003000.dma-controller/video4linux/video2
lrwxrwxrwx 1 root root 0 Jun 1 12:05 video3 → ../../devices/platform/soc/17020000.venc/video4linux/video3
lrwxrwxrwx 1 root root 0 Jun 1 12:05 video4 → ../../devices/platform/soc/16000000.vdec/video4linux/video4