iMX93EVK: Can't load AP1302 firmware onto RPI-CAM-MIPI board

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

iMX93EVK: Can't load AP1302 firmware onto RPI-CAM-MIPI board

738 Views
andyclayton
Contributor I

I have an iMX93EVK, running the supplied factory image and a RPI-CAM-MIPI board.

I have followed the instructions contained within

https://docs.nxp.com/bundle/UM11933/page/topics/getting_started.html

and I get the following error when trying to load the firmware.

[ 2.654564] ap1302_mipi 2-003c: AP1302 Chip ID is 0x265
[ 2.659861] ap1302_mipi 2-003c: Direct firmware load for imx/camera/ap1302.fw
failed with error -2
[ 2.662449] ap1302_mipi 2-003c: Write reg error: reg=0x5058, val=0x186
[ 2.668994] ap1302_mipi 2-003c: Falling back to sysfs fallback for: imx/camera/ap1302.fw
[ 2.675340] ap1302_mipi 2-003c: AP1302 is found
[ 6.530463] ap1302_mipi 2-003c: Fail to write AP1302 firware window ret=-151
[ 8.923634] mx8-img-md: Registered mxc_isi.0.capture as /dev/video0
[ 8.974938] mxc-md 42800000.bus:camera: Entity type for entity ap1302_mipi 2-003c was not initialized!
[ 8.985246] mx8-img-md: Registered sensor subdevice: ap1302_mipi 2-003c (1)
[ 8.992296] mx8-img-md: created link [mxc_isi.0] => [mxc_isi.0.capture]
[ 9.002628] mx8-img-md: created link [mxc-mipi-csi2.0] => [mxc_isi.0]
[ 9.012548] mx8-img-md: created link [ap1302_mipi 2-003c] => [mxc-mipi-csi2.0]

As a result of the above error I am unable to grab any images from the camera.

Any help would be appreciated.

 

0 Kudos
Reply
4 Replies

653 Views
Nobita
Contributor III
0 Kudos
Reply

705 Views
Keith_RL
Contributor II

 

I am seeing the same error using iMX8MP with an AP1302 on a custom board,

[ 1.824349] ap1302_mipi 3-003c: AP1302 Chip ID is 0x265
[ 1.829670] ap1302_mipi 3-003c: Direct firmware load for imx/camera/ap1302.fw failed with error -2
[ 1.838661] ap1302_mipi 3-003c: AP1302 is found
[ 1.848020] ap1302_mipi 3-003c: Falling back to sysfs fallback for: imx/camera/ap1302.fw
[ 6.180342] ap1302_mipi 3-003c: Failed to request_firmware

In addition to the AP1302 I also see an error with loading the sdma-imx firmware

[ 0.165676] imx-sdma 30bd0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
[ 1.829670] ap1302_mipi 3-003c: Direct firmware load for imx/camera/ap1302.fw failed with error -2

I have seen community responses regarding sdma-imx firmware error being casued by the driver being intialised before the rootfs is available, I was wondering if the issue with the AP1302 firmware is the same.


https://community.nxp.com/t5/i-MX-Processors/IMX8MM-EVK-kernel-hang-on-imx-yocto-L5-4-24-2-1-0/m-p/1...

0 Kudos
Reply

714 Views
andyclayton
Contributor I

I have already downloaded that file, renamed it and placed it in /lib/firmware/imx/camera as directed in the document.

The file is found but there is an error programming it

0 Kudos
Reply

718 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You have to download the ap1302 firmware from ONSemiconductor, and rename it as ap1302.fw

Please check it:

https://www.nxp.com/docs/en/application-note/AN13917.pdf

 

Regards

0 Kudos
Reply