Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: radxa-zero3-rpi-camera on Ubuntu24 give wrong colors and poor video quality #1127

Open
VladyslavDoronin opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@VladyslavDoronin
Copy link

What happened?

I'm trying to run the radxa-zero3-rpi-camera-v2 camera on Ubuntu24-desktop, which I downloaded here https://joshua-riek.github.io/ubuntu-rockchip-download/boards/radxa-zero3.html

I registered the overlay fdtoverlays /lib/firmware/6.1.0-1025-rockchip/device-tree/rockchip/overlay/radxa-zero3-rpi-camera-v2.dtbo
in the file /boot/extlinux/extlinux.conf
Updated and upgraded the system and installed all the packages that I saw in one of your issues camera_engine_rkaiq_rk3588_1.0.3_arm64.deb, camera_engine_rkaiq_rk3588_update_arm64.deb, camera_engine_rkisp-v2.2.0_arm64.deb
Gained access to the camera and received video by comand gst-launch-1.0 v4l2src device=/dev/video0 io-mode=auto ! video/x-raw,framerate=30/1 ! autovideosink. But I saw that the video was dark.
dark

I found out that there was camera gain on minimum(256) and set it another with the command v4l2-ctl -c gain=32768. After that I saw that the video don't give the correct colors and had poor picture quality. The colors feel like there is no red and too much green. And camera’s auto-gain doesn’t work

color

I also tried to run the code using opencv and got the same problem.

Then I tried the same thing on Debian. I configured the camera by rsetup and launched it via cheese. I tried the same thing with opencv code and got excellent video and color quality.
debian

The difference in colors and quality is very strong at Ubuntu24 vs Debian.
I use the same radxa and the same camera, I only replaced the OS.

Kernel version

6.1.0-1025-rockchip

SBC model

Radxa ZERO 3

What operating system are you seeing this problem on?

Ubuntu 24.04 LTS (Noble Nombat)

Relevant logs

dmesg | grep csi
[   12.832951] platform csi2-dphy0: Fixed dependency cycle(s) with /rkisp-vir0/port/endpoint@0
[   14.324533] rockchip-csi2-dphy-hw fe870000.csi2-dphy-hw: csi2 dphy hw probe successfully!
[   14.960474] i2c 2-0010: Fixed dependency cycle(s) with /csi2-dphy0/ports/port@0/endpoint@1
[   15.009551] rockchip-mipi-csi2-hw fdfb0000.mipi-csi2-hw: enter mipi csi2 hw probe!
[   15.010006] rockchip-mipi-csi2-hw fdfb0000.mipi-csi2-hw: probe success, v4l2_dev:mipi-csi2-hw!
[   15.016100] rkisp rkisp-vir0: Entity type for entity rkisp-csi-subdev was not initialized!
[   15.176653] rockchip-csi2-dphy csi2-dphy0: dphy0 matches m00_b_imx219 2-0010:bus type 5
[   15.177231] rockchip-csi2-dphy csi2-dphy0: csi2 dphy0 probe successfully!
@VladyslavDoronin VladyslavDoronin added the bug Something isn't working label Nov 25, 2024
@Joshua-Riek Joshua-Riek removed their assignment Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants