I’m trying to make the Radxa 4K MIPI/CSI camera capture video on my Rock 5A, but have problems with using anything else than /dev/video11. Can someone give me a hint?
I’m running Armbian which I build with the new “vendor” kernel 6.1. I did add the 4K camera device tree overlay node successfully. I can capture video from /dev/video11 (the raw video device if I understand right) but trying with /dev/video[01] (mainpath/selfpath) always fails with “VIDIOC_STREAMON returned -1 (Operation not permitted)”. Question is: is there something I can do about this, or is it just that the hardware blocks used by mainline/selfpath not yet supported even in the “vendor” branch of 6.1? Has anyone been able to use these selfpath/mainpath streams on any rk3588 platform?
Big thanks! Output from v4l2-ctl video capture commands follow:
‘’’
enok@rock-5a:~$ sudo v4l2-ctl --verbose -d11 --set-fmt-video=width=1920,height=1280,pixelformat=‘RG10’ --stream-to=out.rgbp --stream-mmap=4 --stream-count=60
VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture Multiplanar:
Width/Height : 1920/1280
Pixel Format : ‘RG10’ (10-bit Bayer RGRG/GBGB)
Field : None
Number of planes : 1
Flags :
Colorspace : Default
Transfer Function : Default
YCbCr/HSV Encoding: Default
Quantization : Default
Plane 0 :
Bytes per Line : 2560
Size Image : 2764800
VIDIOC_REQBUFS returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_STREAMON returned 0 (Success)
cap dqbuf: 0 seq: 0 bytesused: 2764800 ts: 424222.531128 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 1 bytesused: 2764800 ts: 424222.564458 delta: 33.330 ms (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 2 bytesused: 2764800 ts: 424222.597792 delta: 33.334 ms (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 3 bytesused: 2764800 ts: 424222.631126 delta: 33.334 ms (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 4 bytesused: 2764800 ts: 424222.664459 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 5 bytesused: 2764800 ts: 424222.697793 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 6 bytesused: 2764800 ts: 424222.731126 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 7 bytesused: 2764800 ts: 424222.764461 delta: 33.335 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 8 bytesused: 2764800 ts: 424222.797795 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 9 bytesused: 2764800 ts: 424222.831128 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 10 bytesused: 2764800 ts: 424222.864462 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 11 bytesused: 2764800 ts: 424222.897795 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 12 bytesused: 2764800 ts: 424222.931129 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 13 bytesused: 2764800 ts: 424222.964462 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 14 bytesused: 2764800 ts: 424222.997796 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 15 bytesused: 2764800 ts: 424223.031130 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 16 bytesused: 2764800 ts: 424223.064463 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 17 bytesused: 2764800 ts: 424223.097797 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 18 bytesused: 2764800 ts: 424223.131131 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 19 bytesused: 2764800 ts: 424223.164464 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 20 bytesused: 2764800 ts: 424223.197798 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 21 bytesused: 2764800 ts: 424223.231131 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 22 bytesused: 2764800 ts: 424223.264466 delta: 33.335 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 23 bytesused: 2764800 ts: 424223.297799 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 24 bytesused: 2764800 ts: 424223.331132 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 25 bytesused: 2764800 ts: 424223.364466 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 26 bytesused: 2764800 ts: 424223.397800 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 27 bytesused: 2764800 ts: 424223.431133 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 28 bytesused: 2764800 ts: 424223.464467 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 29 bytesused: 2764800 ts: 424223.497800 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 30 bytesused: 2764800 ts: 424223.531135 delta: 33.335 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 31 bytesused: 2764800 ts: 424223.564468 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 32 bytesused: 2764800 ts: 424223.597802 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 33 bytesused: 2764800 ts: 424223.631135 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 34 bytesused: 2764800 ts: 424223.664469 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 35 bytesused: 2764800 ts: 424223.697802 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 36 bytesused: 2764800 ts: 424223.731136 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 37 bytesused: 2764800 ts: 424223.764470 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 38 bytesused: 2764800 ts: 424223.797803 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 39 bytesused: 2764800 ts: 424223.831137 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 40 bytesused: 2764800 ts: 424223.864471 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 41 bytesused: 2764800 ts: 424223.897804 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 42 bytesused: 2764800 ts: 424223.931138 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 43 bytesused: 2764800 ts: 424223.964472 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 44 bytesused: 2764800 ts: 424223.997805 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 45 bytesused: 2764800 ts: 424224.031138 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 46 bytesused: 2764800 ts: 424224.064472 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 47 bytesused: 2764800 ts: 424224.097805 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 48 bytesused: 2764800 ts: 424224.131139 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 49 bytesused: 2764800 ts: 424224.164474 delta: 33.335 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 50 bytesused: 2764800 ts: 424224.197806 delta: 33.332 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 51 bytesused: 2764800 ts: 424224.231141 delta: 33.335 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 52 bytesused: 2764800 ts: 424224.264474 delta: 33.333 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 53 bytesused: 2764800 ts: 424224.297808 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 54 bytesused: 2764800 ts: 424224.331142 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 55 bytesused: 2764800 ts: 424224.364476 delta: 33.334 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 0 seq: 56 bytesused: 2764800 ts: 424224.397883 delta: 33.407 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq: 57 bytesused: 2764800 ts: 424224.431215 delta: 33.332 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq: 58 bytesused: 2764800 ts: 424224.464466 delta: 33.251 ms fps: 30.00 (ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq: 59 bytesused: 2764800 ts: 424224.497881 delta: 33.415 ms fps: 30.00 (ts-monotonic, ts-src-eof)
enok@rock-5a:~$ sudo v4l2-ctl --verbose -d1 --set-fmt-video=width=1920,height=1280,pixelformat=‘RGBP’ --stream-to=out.rgbp --stream-mmap=4 --stream-count=60
VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture Multiplanar:
Width/Height : 1920/1280
Pixel Format : ‘RGBP’ (16-bit RGB 5-6-5)
Field : None
Number of planes : 1
Flags :
Colorspace : Default
Transfer Function : Default
YCbCr/HSV Encoding: Default
Quantization : Full Range
Plane 0 :
Bytes per Line : 3840
Size Image : 4915200
VIDIOC_REQBUFS returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_STREAMON returned -1 (Operation not permitted)
enok@rock-5a:
‘’’