ubuntu-rockchip icon indicating copy to clipboard operation
ubuntu-rockchip copied to clipboard

Camera Streaming not working on Ubuntu 24.04 Beta

Open peyton-howe opened this issue 10 months ago • 4 comments

I'm having an issue getting camera streaming to work on Ubuntu 24.04 Desktop. I have an OV13855 plugged into an Orange Pi 5B on camera slot 1, with the overlay set like so: U_BOOT_FDT_OVERLAYS="device-tree/rockchip/overlay/rk3588-ov13855-c1.dtbo"

The output of dmesg looks like the following:

[ 11.097850] platform csi2-dphy0: Fixed dependency cycle(s) with /i2c@fec90000/ov13855-1@36 [ 11.281087] ov13855 7-0036: driver version: 00.01.04 [ 11.281124] ov13855 7-0036: Failed to get power-gpios, maybe no use [ 11.281166] ov13855 7-0036: Looking up avdd-supply from device tree [ 11.281175] ov13855 7-0036: Looking up avdd-supply property in node /i2c@fec90000/ov13855-1@36 failed [ 11.281208] ov13855 7-0036: supply avdd not found, using dummy regulator [ 11.281290] ov13855 7-0036: Looking up dovdd-supply from device tree [ 11.281299] ov13855 7-0036: Looking up dovdd-supply property in node /i2c@fec90000/ov13855-1@36 failed [ 11.281320] ov13855 7-0036: supply dovdd not found, using dummy regulator [ 11.281352] ov13855 7-0036: Looking up dvdd-supply from device tree [ 11.281361] ov13855 7-0036: Looking up dvdd-supply property in node /i2c@fec90000/ov13855-1@36 failed [ 11.281380] ov13855 7-0036: supply dvdd not found, using dummy regulator [ 11.281411] ov13855 7-0036: could not get default pinstate [ 11.281473] ov13855 7-0036: could not get sleep pinstate [ 11.291828] ov13855 7-0036: Detected OV00d855 sensor, REVISION 0xb0 [ 27.175263] ov13855 7-0036: Consider updating driver ov13855 to match on endpoints [ 27.175267] rockchip-csi2-dphy csi2-dphy0: dphy0 matches m00_b_ov13855 7-0036:bus type 5

For kernal 5.10, dmesg looks like the following.

[ 4.937666] ov13855 7-0036: driver version: 00.01.04 [ 4.937725] ov13855 7-0036: Failed to get power-gpios, maybe no use [ 4.937840] ov13855 7-0036: Looking up avdd-supply from device tree [ 4.937857] ov13855 7-0036: Looking up avdd-supply property in node /i2c@fec90000/ov13855-1@36 failed [ 4.937893] ov13855 7-0036: supply avdd not found, using dummy regulator [ 4.938081] ov13855 7-0036: Looking up dovdd-supply from device tree [ 4.938097] ov13855 7-0036: Looking up dovdd-supply property in node /i2c@fec90000/ov13855-1@36 failed [ 4.938117] ov13855 7-0036: supply dovdd not found, using dummy regulator [ 4.938171] ov13855 7-0036: Looking up dvdd-supply from device tree [ 4.938186] ov13855 7-0036: Looking up dvdd-supply property in node /i2c@fec90000/ov13855-1@36 failed [ 4.938203] ov13855 7-0036: supply dvdd not found, using dummy regulator [ 4.938311] ov13855 7-0036: could not get default pinstate [ 4.938453] ov13855 7-0036: could not get sleep pinstate [ 4.949136] ov13855 7-0036: Detected OV00d855 sensor, REVISION 0xb0 [ 5.021811] rockchip-csi2-dphy csi2-dphy0: dphy0 matches m00_b_ov13855 7-0036:bus type 5

and i2cdetect is showing a device on 0x36, the address of the sensor for both 5.10 and 6.1.

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: -- -- -- -- UU -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- UU -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- 58 -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --

Running v4l2-ctl --list-ctrls on the correct /dev/v4l-subdevX device provides the following output.

User Controls

                   exposure 0x00980911 (int)    : min=4 max=3210 step=1 default=2048 value=2048

Image Source Controls

          vertical_blanking 0x009e0901 (int)    : min=78 max=29631 step=1 default=78 value=78
        horizontal_blanking 0x009e0902 (int)    : min=4294964194 max=4294964194 step=1 default=4294964194 value=-3102 flags=read-only
              analogue_gain 0x009e0903 (int)    : min=128 max=1984 step=1 default=128 value=128

Image Processing Controls

             link_frequency 0x009f0901 (intmenu): min=0 max=1 default=0 value=0 (540000000 0x202fbf00)
                 pixel_rate 0x009f0902 (int64)  : min=0 max=432000000 step=1 default=432000000 value=432000000 flags=read-only
               test_pattern 0x009f0903 (menu)   : min=0 max=4 default=0 value=0 (Disabled)

So things appear to be mostly working in that the system recognizes the camera on the i2c bus and the user controls, but streaming video does not appear to be working properly.

peyton-howe avatar Apr 23 '24 05:04 peyton-howe

Hi.

Maybe related with https://github.com/Joshua-Riek/ubuntu-rockchip/issues/730 Camera stream not work on frigate docker with the new kernel. But i'm using rtsp camera.

Al3XKOoL avatar Apr 23 '24 06:04 Al3XKOoL

Camera stream not work on frigate docker with the new kernel. But i'm using rtsp camera.

Could you try using the marca711/frigate:latest-rk image instead? That solved the issue for me.

simon511000 avatar Apr 23 '24 06:04 simon511000

Camera stream not work on frigate docker with the new kernel. But i'm using rtsp camera.

Could you try using the marca711/frigate:latest-rk image instead? That solved the issue for me.

Great, i will try latter.

Al3XKOoL avatar Apr 23 '24 07:04 Al3XKOoL

Maybe related with #730

Could you try using the marca711/frigate:latest-rk image instead? That solved the issue for me.

I get it working with marcA711 version. Thx.

Al3XKOoL avatar Apr 25 '24 15:04 Al3XKOoL

Closing see https://github.com/Joshua-Riek/ubuntu-rockchip/pull/690.

Please open again if this problem still happens.

Joshua-Riek avatar Jun 24 '24 01:06 Joshua-Riek