ARMSOM CM5: raspberry camera does not work

I’m using a armsom CM5, I just compiled from scratch as per SDK instructions. I’m using a waveshare CM4-IO-BASE-A board and I got the overlays to load the camera properly. But then nothing worked, I could not get the camera to be properly detected. I started to patch the driver and I can now see the camera and probe for formats, yet I cannot get images. Anyone who has tested the imx219 driver for the build?

because I think it is broken