cancel
Showing results for 
Search instead for 
Did you mean: 

Can't load a MIPI kernel driver on STM32MP257F-DK

rdmikkelsen
Associate III

Hello, 

I am trying to load a kernel driver (.ko file) for a MIPI camera I would like to use with the STM32MP257F-DK. It's for the imx664, and no driver is present already. 

I have the source for the driver, and was able to compile it into a .ko file, cross-compiled with the exact same OS as is present on the board and with the SDK set up as required. The vermagic line matches exactly: vermagic: 6.6.78 SMP preempt mod_unload aarch64

However, every time I try and load the driver with insmod, with or without -f, I get the error: insmod: ERROR: could not insert module imx664.ko: Invalid module format

I am struggling to find where the incompatibility could be, since I have re-tried it a few times and been careful to set it up as ST's documentation says and also to match what is expected by the board. Is there something I am missing with this?

10 REPLIES 10

@Pwxn Thank you and everyone else here for all the help in bringing this up. I will look into the DCMIPP pipeline/v4l2 topics you brought up. Since it looks like the ST-specific issues with this are resolved, I'm going to mark this question as solved.