Загрузка данных


root@imx95-19x19-lpddr5-evk:~# ./i2c_fpga_flash /dev/i2c-2 /lib/firmware/csi2_aggr_vc_RD_NX_impl_1_done_dis.bit
[USER_FLASH] Connected to 0x40. Starting direct execution...
[USER_FLASH] Memory erasing... waiting 100ms
[USER_FLASH] Streaming payload data directly into SCL/SDA wires...
[USER_FLASH] Sent 862756 bytes of bitstream.
[USER_FLASH] Execution complete. Check the LED! Run i2ctransfer status now.
root@imx95-19x19-lpddr5-evk:~# i2ctransfer -f -y 2 w4@0x40 0x3c 0x00 0x00 0x00 r8
0x00 0x00 0x05 0x11 0x54 0x80 0x00 0x00

./i2c_fpga_flash /dev/i2c-2 /lib/firmware/csi2_aggr_vc_RD_NX_impl_1.bit
[USER_FLASH] Connected to 0x40. Starting direct execution...
[USER_FLASH] Memory erasing... waiting 100ms
[USER_FLASH] Streaming payload data directly into SCL/SDA wires...
[USER_FLASH] Sent 862756 bytes of bitstream.
[USER_FLASH] Execution complete. Check the LED! Run i2ctransfer status now.
root@imx95-19x19-lpddr5-evk:~# i2ctransfer -f -y 2 w4@0x40 0x3c 0x00 0x00 0x00 r8
0x00 0x00 0x05 0x11 0x54 0x80 0x00 0x0f

Если на плате нажать кнопку prog:
root@imx95-19x19-lpddr5-evk:~# i2ctransfer -f -y 2 w4@0x40 0x3c 0x00 0x00 0x00 r8
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff

Прошиваем заново:
root@imx95-19x19-lpddr5-evk:~# ./i2c_fpga_flash /dev/i2c-2 /lib/firmware/csi2_aggr_vc_RD_NX_impl_1.bit
[USER_FLASH] Connected to 0x40. Starting direct execution...
[USER_FLASH] Memory erasing... waiting 100ms
[USER_FLASH] Streaming payload data directly into SCL/SDA wires...
[USER_FLASH] Sent 862756 bytes of bitstream.
[USER_FLASH] Execution complete. Check the LED! Run i2ctransfer status now.
root@imx95-19x19-lpddr5-evk:~# i2ctransfer -f -y 2 w4@0x40 0x3c 0x00 0x00 0x00 r8
0x00 0x00 0x05 0x11 0x54 0x80 0x00 0x0f

root@imx95-19x19-lpddr5-evk:~# insmod /lib/modules/6.12.34-lts-next-gbe78e49cb433/kernel/drivers/media/i2c/lt6911uxe/lt6911uxe.ko
root@imx95-19x19-lpddr5-evk:~# insmod /lib/modules/6.12.34-lts-next-gbe78e49cb433/kernel/drivers/fpga/lattice-sysconfig.ko
xt-gbe78e49cb433/kernel/drivers/media/i2c/fpga_lifmd6000_csi_bridge.koroot@imx95-19x19-lpddr5-evk:~# insmod /lib/modules/6.12.34-lts-next-gbe78e49cb433
/kernel/drivers/media/i2c/fpga_lifmd6000_csi_bridge.ko
root@imx95-19x19-lpddr5-evk:~# media-ctl -R '"fpga_csi_bridge 2-0040" [0/0->4/0[1],1/0->4/1[0]]'                                                       
root@imx95-19x19-lpddr5-evk:~# media-ctl -R '"csidev-4ad30000.csi" [0/0->1/0[1],0/1->1/1[0]]'
:formatter@20" [0/0->1/0[1],0/1->1/1[0]]'
media-ctl -R '"crossbarroot@imx95-19x19-lpddr5-evk:~# media-ctl -R '"4ac10000.syscon:formatter@20" [0/0->1/0[1],0/1->1/1[0]]'
root@imx95-19x19-lpddr5-evk:~# media-ctl -R '"crossbar" [2/0->5/0[1],2/1->6/0[0]]'
root@imx95-19x19-lpddr5-evk:~# media-ctl -V "'fpga_csi_bridge 2-0040':0 [fmt:UYVY8_1X16/3840x2160 field:none colorspace:srgb ycbcr:601 quantization:lim
-range]"                                                                                                                                               
root@imx95-19x19-lpddr5-evk:~# media-ctl -V "'csidev-4ad30000.csi':0/0 [fmt:UYVY8_1X16/3840x2160 field:none colorspace:srgb ycbcr:601 quantization:lim-
range]"
on:formatter@20':0/0 [fmt:UYVY8_1X16/3840x2160 field:none colorspace:srgb ycbcr:601 qroot@imx95-19x19-lpddr5-evk:~# media-ctl -V "'4ac10000.syscon:form
tion:lim-range]"mt:UYVY8_1X16/3840x2160 field:none colorspace:srgb ycbcr:601 quantizat
b ycbcr:601 quantization:lim-range]"
media-ctl -V "'mxc_isi.0':0 [fmt:UYVY8root@imx95-19x19-lpddr5-evk:~# media-ctl -V "'crossbar':2/0 [fmt:UYVY8_1X16/3840x2160 field:none colorspace:srgb 
ycbcr:601 quantization:lim-range]"
root@imx95-19x19-lpddr5-evk:~# media-ctl -V "'mxc_isi.0':0 [fmt:UYVY8_1X16/3840x2160 field:none colorspace:srgb ycbcr:601 quantization:lim-range]"
root@imx95-19x19-lpddr5-evk:~# gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,width=3840,height=2160,format=YUY2" ! queue ! waylandsink

команда висит, кина нету, fpga не работает. Также на плате есть LEDS status: DONE - не горит, INITN - горит красным, ACT - не горит.