@dorota.czaplejewicz this would require you to look at the mipi change (or at least test it) and the change to your camera driver as well.
With this, I can record a frame by doing:
v4l2-ctl -d 0 --set-fmt-video=width=640,height=480,pixelformat=0
v4l2-ctl -d 0 --stream-mmap --stream-to=test.raw --stream-skip=5 --stream-count=1
@dorota.czaplejewicz you could share the respective commands you use for the back cam, if they work too