I porting Ar0820 camera to my Jetson Orin kit。
I can use v4l2-ctrl cmd to capture rawimg,the image is correct 。
use this command , it is work 。
v4l2-ctl -V --set-fmt-video=width=3848,height=2168,pixelformat=‘RG12’ --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 -d /dev/video0 --stream-to=0820.raw
but when i use nvargus_nvraw to capture,
nvargus_nvraw can find the camera , but it does not work when i capture images .it here is nvargus log and kernel trace.
root@orin-desktop:/home/orin# nvargus_nvraw --lps
nvargus_nvraw version 1.13.1
Number of supported sensor entries 1
Entry Source Mode Uniquename Resolution FR BitDepth Mode
Index Index Index CSI Dyn Type
0 0 0 ar0820_rear_p1 3840x2160 29 12 12 Bayer
root@orin-desktop:/home/orin# nvargus_nvraw --c 0 --mode 0 --file 1.raw --format “nvraw”
nvargus_nvraw version 1.13.1
(“nvargus_nvraw”) Error BadParameter (0x04): No events in queue (in capture_nvraw/src/mobile/ArgusNvRawCapture.cpp,
func captureRequest(), line 656)
(“nvargus_nvraw”) Error BadParameter (0x04): (propagating from capture_nvraw/src/mobile/ArgusNvRawCapture.cpp,
func capture(), line 766)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
(Argus) Error InvalidState: Argus client is exiting with 2 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 355)
(“nvargus_nvraw”) Error BadParameter (0x04): Unable to capture (propagating from capture_nvraw/src/mobile/main.cpp,
func main(), line 97)
root@orin-desktop:/home/orin# cat /sys/kernel/debug/tracing/trace
tracer: nop
entries-in-buffer/entries-written: 21/21 #P:8
_-----=> irqs-off
/ _----=> need-resched
| / _—=> hardirq/softirq
|| / _–=> preempt-depth
||| / delay
TASK-PID CPU# |||| TIMESTAMP FUNCTION
| | | |||| | |
kworker/3:4-202 [003] .... 129.604759: rtcpu_string: tstamp:4868763103 id:0x04010000 str:"VM0 deactivating."
kworker/3:4-202 [003] .... 138.028749: rtcpu_string: tstamp:5132163132 id:0x04010000 str:"VM0 activating."
nvargus-daemon-2700 [000] … 138.144062: tegra_channel_open: vi-output, ar0820 30-0010
nvargus-daemon-2700 [000] … 138.144151: tegra_channel_close: vi-output, ar0820 30-0010
nvargus-daemon-2700 [000] … 138.144999: tegra_channel_open: vi-output, ar0820 30-0010
nvargus-daemon-2700 [000] … 138.145037: tegra_channel_close: vi-output, ar0820 30-0010
nvargus-daemon-2700 [005] … 138.168675: tegra_channel_open: vi-output, ar0820 30-0010
nvargus-daemon-2700 [005] … 138.168695: tegra_channel_close: vi-output, ar0820 30-0010
nvargus-daemon-2700 [005] … 138.168708: tegra_channel_open: vi-output, ar0820 30-0010
nvargus-daemon-2700 [005] … 138.168764: tegra_channel_close: vi-output, ar0820 30-0010
nvargus-daemon-2700 [005] … 138.168785: tegra_channel_open: vi-output, ar0820 30-0010
nvargus-daemon-2700 [005] … 138.168856: tegra_channel_close: vi-output, ar0820 30-0010
CaptureSchedule-2716 [001] … 138.327772: tegra_channel_open: vi-output, ar0820 30-0010
CaptureSchedule-2716 [001] … 138.342351: tegra_channel_set_power: ar0820 30-0010 : 0x1
CaptureSchedule-2716 [001] … 138.342357: camera_common_s_power: status : 0x1
CaptureSchedule-2716 [001] … 138.342568: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
CaptureSchedule-2716 [001] … 138.342572: csi_s_power: enable : 0x1
CaptureSchedule-2716 [001] … 138.342905: tegra_channel_set_stream: enable : 0x1
CaptureSchedule-2716 [003] … 138.355302: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
CaptureSchedule-2716 [003] … 138.355306: csi_s_stream: enable : 0x1
CaptureSchedule-2716 [003] … 138.355307: tegra_channel_set_stream: ar0820 30-0010 : 0x1
please give some suggest, thanks.