Closed nerbivol closed 1 month ago
What is the result when you run rsetup
- Hardware - Video capture devices? It should save a picture under /root/ folder.
and output in terminal
Hardware connections are as follows:
I forgot there was an issue in currently released rsetup
regarding camera test. It was fixed in 0.4.6 but it is not released yet.
We will take a look at this.
Code for update to 0.4.6 version:
sudo apt-get update
sudo apt-get build-dep --no-install-recommends .
sudo apt-get install git-buildpackage
wget https://github.com/radxa-pkg/rsetup/releases/download/0.4.6/rsetup_0.4.6_all.deb
sudo dpkg -i rsetup_0.4.6_all.deb
And results from rsetup
video capture
Otput from terminal:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
../sys/v4l2/gstv4l2src.c(700): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
Execution ended after 0:00:00.020098472
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Freeing pipeline ...
I have a similar problem, the camera from Radxa does not want to connect to the Radxa zero W3 board, which is a very strange problem, given that the software is from the same manufacturer @RadxaYuntian
Please run the following command to see it,check whether the camera is mounted successfully
sudo dmesg | grep imx
radxa@radxa-zero3:~$ sudo dmesg | grep imx
[sudo] password for radxa:
[ 19.989369] imx219 2-0010: driver version: 00.01.01
[ 20.092275] imx219 2-0010: Reading register 100 from 10 failed
[ 20.195585] imx219 2-0010: Reading register 100 from 10 failed
[ 20.507604] imx219 2-0010: Error -5 setting default controls
[ 20.507850] imx219: probe of 2-0010 failed with error -5
It looks like the camera didn't load properly.Need to check whether the cable and camera are normal.
It seems the camera isn't working. The cable is connected as shown in the documentation (we've also tried different connections and cables), but we haven't had any success. Do you have functional Radxa camera and Radxa ZERO 3w board units?
Please run the following command to see it,check whether the camera is mounted successfully
sudo dmesg | grep imx
radxa@radxa-zero3:~$ sudo dmesg | grep imx
[sudo] password for radxa:
[ 19.844757] imx219 2-0010: driver version: 00.01.01
[ 19.869602] imx219 2-0010: Model ID 0x0219, Lot ID 0x5b2402, Chip ID 0x06d1
[ 19.880573] rockchip-csi2-dphy csi2-dphy0: dphy0 matches m00_b_imx219 2-0010:bus type 5
@Radxa-Alvin does this mean I have a properly connected camera?
I am encountering multiple errors when executing certain commands on my Radxa Zero 3 device.
radxa@radxa-zero3:~$ sudo rsetup
[sudo] password for radxa:
error: XDG_RUNTIME_DIR not set in the environment.
Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Cannot identify device '/dev/Capture a picture'.
Additional debug info:
../sys/v4l2/v4l2_calls.c(608): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: No such file or directory
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...
radxa@radxa-zero3:~$ gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=/home/radxa/test.jpg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:19.053323709
Setting pipeline to NULL ...
Freeing pipeline ...
Ctrl+C
to take a picture, the photo is not saved in /home/radxa/test.jpg
.radxa@radxa-zero3:~$ sudo cheese
[sudo] password for radxa:
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
error: XDG_RUNTIME_DIR not set in the environment.
(cheese:2509): dconf-WARNING **: 10:09:57.859: failed to commit changes to dconf:
Failed to execute child process “dbus-launch” (No such file or directory)
...
Please let me know if you need more details or further clarification.
Can I get any advice or suggestions to help resolve these issues?
Can you please take a picture of the back of your ZERO 3? Focus on the CSI connector.
We recently found out that some ZERO 3 uses the wrong CSI connector, which is the one you are having. Those systems will need a different CSI cable, which we plan to provide to the affected customer free of charge. For now please disconnect the camera from ZERO 3 to avoid potential malfunction due to incompatible cable.
Do you happen to still have the card box around? We'd like to check the serial number to determine the affected batch.
Thanks, and I assume both are having camera issue right?
Yes
Thanks. I'll contact you again once the cable is ready.
Can you provide an approximate waiting time for cable production?
We just verified the sample working on the affected ZERO 3. We now placed the full production order.
Understood. Thank you for your quick response. I look forward to further updates from you
Hi nerbivol. The special CSI cable is now ready. Please send your shipping info to support@radxa.com as well as the quantity of affected ZERO 3. We will arrange the shipping to you shortly.
We've received the special CSI cable, and I'm happy to report that the camera is working perfectly.
System Configuration
I use Radxa Camera 8M and choose Raspberry Pi Camera V2 (because Radxa Camera 8M does not exist in
rsetup
). In the file/boot/extlinux/extlinux.conf
, the code is as follows:When I run the command
sudo cheese
, I get the following error:When I run the following GStreamer pipeline:
I get this error:
USB Devices
Video Devices