Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] CAM-8MS1M camera on iCore-3568JQ rkisp-vir0: MIPI error: packet: 0x00100000

15

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
15

【Linux】 CAM-8MS1M camera on iCore-3568JQ rkisp-vir0: MIPI error: packet: 0x00100000

Posted at 1/23/2025 15:23:15      View:623 | Replies:2        Print      Only Author   [Copy Link] 1#
Problem description and steps to reproduce:
Last edited by di929873 In 1/23/2025 15:25 Editor

Hello, the problem is rkisp-vir0: MIPI error: packet: 0x00100000

with the CAM-8MS1M (XC7160) camera on the iCore-3568JQ, I built the OS according to the instructions of Compile Linux5.10 firmware (https://wiki.t-firefly.com/en/iC ... pile_linux5.10.html), can you tell me how to solve and what is the problem?


firefly@firefly:/boot$ sudo i2cdetect -y 4
    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- 44 -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

firefly@firefly:~/Downloads$ v4l2-ctl --verbose -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelfor
mat='NV12' --stream-mmap=4 --set-selection=target=crop,flags=0,top=0,left=0,width=1920,height=1080 --stream-to
=out.yuv
VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture Multiplanar:
       Width/Height      : 1920/1080
       Pixel Format      : 'NV12' (Y/CbCr 4:2:0)
       Field             : None
       Number of planes  : 1
       Flags             :
       Colorspace        : Default
       Transfer Function : Default
       YCbCr/HSV Encoding: Default
       Quantization      : Full Range
       Plane 0           :
          Bytes per Line : 1920
          Size Image     : 3110400
VIDIOC_G_SELECTION: ok
VIDIOC_S_SELECTION: ok
               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)


firefly@firefly:~/Downloads$ ffplay -f rawvideo -video_size 1920x1080 -pix_fmt nv12 out.yuv
ffplay version 4.2.4-1ubuntu1.0firefly3 Copyright (c) 2003-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --prefix=/usr --extra-version=1ubuntu1.0firefly3 --toolchain=hardened --libdir=/usr/lib/aarch
64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-av
resample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-
libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libfl
ite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-l
ibjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enab
le-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --en
able-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --
enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable
-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sd
l2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx2
64 --enable-libdrm --enable-librga --enable-rkmpp --enable-version3 --disable-libopenh264 --disable-vaapi --di
sable-vdpau --disable-decoder=h264_v4l2m2m --disable-decoder=vp8_v4l2m2m --disable-decoder=mpeg2_v4l2m2m --dis
able-decoder=mpeg4_v4l2m2m --enable-shared --disable-doc
libavutil      56. 31.100 / 56. 31.100
libavcodec     58. 54.100 / 58. 54.100
libavformat    58. 29.100 / 58. 29.100
libavdevice    58.  8.100 / 58.  8.100
libavfilter     7. 57.100 /  7. 57.100
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  5.100 /  5.  5.100
libswresample   3.  5.100 /  3.  5.100
libpostproc    55.  5.100 / 55.  5.100
Option -pix_fmt is deprecated, use -pixel_format.
Failed to initialize a hardware accelerated renderer: Couldn't find matching render driver
Input #0, rawvideo, from 'out.yuv':
Duration: N/A, bitrate: 622080 kb/s
   Stream #0:0: Video: rawvideo (NV12 / 0x3231564E), nv12, 1920x1080, 622080 kb/s, 25 tbr, 25 tbn, 25 tbc

firefly@firefly:~/Downloads$ ls -all
total 12
drwxr-xr-x 2 firefly firefly 4096 Jan 23 06:24 .
drwxr-xr-x 1 firefly firefly 4096 Jan 23 05:51 ..
-rw-rw-r-- 1 firefly firefly    0 Jan 23 06:58 out.yuv

firefly@firefly:/boot$ dmesg | grep rkisp-vir0 | tail -n 10
[ 2034.618102] rkisp-vir0: MIPI error: packet: 0x00100000
[ 2034.618132] rkisp-vir0: MIPI error: packet: 0x00100000
ls /dev/video* -la
crw-rw----+ 1 root video 81, 0 Jan 23 05:51 /dev/video0




firefly@firefly:/boot$ nano rk3568-firefly-itx-3568q.dts
        i2c@fe5d0000 {
               compatible = "rockchip,rk3399-i2c";
               reg = <0x00 0xfe5d0000 0x00 0x1000>;
               clocks = <0x23 0x14e 0x23 0x14d>;
               clock-names = "i2c\0pclk";
               interrupts = <0x00 0x32 0x04>;
               pinctrl-names = "default";
               pinctrl-0 = <0xee>;
               #address-cells = <0x01>;
               #size-cells = <0x00>;
               status = "okay";
               clock-frequency = <0x61a80>;

               gc8034@37 {
                       compatible = "galaxycore,gc8034";
                       status = "disabled";
                       reg = <0x37>;
                       clocks = <0x23 0xd6>;
                       clock-names = "xvclk";
                       pinctrl-names = "default";
                       pinctrl-0 = <0xef>;
                       reset-gpios = <0xeb 0x0e 0x01>;
                       pwdn-gpios = <0xf0 0x0c 0x01>;
                       rockchip,grf = <0x3b>;
                       rockchip,camera-module-index = <0x00>;
                       rockchip,camera-module-facing = "back";
                       rockchip,camera-module-name = "RK-CMK-8M-2-v1";
                       rockchip,camera-module-lens-name = "CK8401";

                       port {

                               endpoint {
                                       remote-endpoint = <0xf1>;
                                       data-lanes = <0x01 0x02 0x03 0x04>;
                                       phandle = <0x12a>;
                               };
                       };
               };

               os04a10@36 {
                       status = "disabled";
                       compatible = "ovti,os04a10";
                       reg = <0x36>;
                       clocks = <0x23 0xd6>;
                       clock-names = "xvclk";
                       power-domains = <0x25 0x08>;
                       pinctrl-names = "default";
                       pinctrl-0 = <0xef>;
                       reset-gpios = <0xeb 0x0e 0x01>;
                       pwdn-gpios = <0xf0 0x0c 0x00>;
                       rockchip,camera-module-index = <0x00>;
                       rockchip,camera-module-facing = "back";
                       rockchip,camera-module-name = "CMK-OT1607-FV1";
                       rockchip,camera-module-lens-name = "M12-40IRC-4MP-F16";

                       port {

                               endpoint {
                                       remote-endpoint = <0xf2>;
                                       data-lanes = <0x01 0x02 0x03 0x04>;
                                       phandle = <0x129>;
                               };
                       };
               };

               ov5695@36 {
                       status = "disabled";
                       compatible = "ovti,ov5695";
                       reg = <0x36>;
                       clocks = <0x23 0xd6>;
                       clock-names = "xvclk";
                       power-domains = <0x25 0x08>;
                       pinctrl-names = "default";
                       pinctrl-0 = <0xef>;
                       reset-gpios = <0xeb 0x0e 0x00>;
                       pwdn-gpios = <0xf0 0x0c 0x00>;
                       rockchip,camera-module-index = <0x00>;
                       rockchip,camera-module-facing = "back";
                       rockchip,camera-module-name = "TongJu";
                       rockchip,camera-module-lens-name = "CHT842-MD";

                       port {

                               endpoint {
                                       remote-endpoint = <0xf3>;
                                       data-lanes = <0x01 0x02>;
                                       phandle = <0x12b>;
                               };
                       };
               };

               XC7160b@1b {
                       status = "okay";
                       compatible = "firefly,xc7160";
                       reg = <0x1b>;
                       clocks = <0x23 0xd6>;
                       clock-names = "xvclk";
                       power-domains = <0x25 0x08>;
                       pinctrl-names = "default";
                       pinctrl-0 = <0xef>;
                       reset-gpios = <0xbb 0x02 0x00>;
                       pwdn-gpios = <0xbb 0x04 0x00>;
                       firefly,clkout-enabled-index = <0x00>;
                       rockchip,camera-module-index = <0x00>;
                       rockchip,camera-module-facing = "back";
                       rockchip,camera-module-name = "NC";
                       rockchip,camera-module-lens-name = "NC";

                       port {

                               endpoint {
                                       remote-endpoint = <0xf4>;
                                       data-lanes = <0x01 0x02 0x03 0x04>;
                                       phandle = <0x12c>;
                               };
                       };
               };
       };



firefly@firefly:/boot$ cheese

(cheese:3492): GLib-CRITICAL **: 06:54:02.465: g_strsplit: assertion 'string != NULL' failed
Segmentation fault



camera_logs.tar.gz

1.01 MB, Down times: 0

Reply

Use props Report

26

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
26
Posted at 2/8/2025 15:15:27        Only Author  2#
Why is the out.yuv file size 0 bytes despite successful execution of v4l2-ctl, and how can we ensure proper build now gg video data is being captured?
Reply

Use props Report

30

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
30
Posted at 3 day before        Only Author  3#
Procedurally generated levels in Sprunki Game guarantee no two playthroughs are ever the same, offering endless replayability and ensuring players never run out of new areas to explore and conquer.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list