Camera Driver 640X480 Not getting output in ARGUS

Hi @ShaneCCC ,
I don’t get you.
Does it mean it should work?

Any other error from daemon? Also have a check the trace log. You should able to get the enable information from the bring up link in my previous comment.

Hi @ShaneCCC ,
I tried the following command and got Daemon Log

sudo service nvargus-daemon stop
sudo su
export enableCamInfiniteTimeout=1
export enableCamPclLogs=5
export enableCamScfLogs=5
/usr/sbin/nvargus-daemon

I have attached the respective trace log and Daemon log
argus.log (29.8 KB)
trace.log (41.6 KB)

Didn’t saw any clue for the issue.
Could you attached your dts here for review.

Hi @ShaneCCC ,
Please have a look at the device tree file attached here.
tegra194-camera-rbpcv2-imx219.dtsi (26.2 KB)

Can this camera output 1280x720 bigger than 640x480 output size to try?

Hi @ShaneCCC ,
The camera cannot output 720p.

Hi @ShaneCCC ,
Is there anyway to solve it ?

What’s your BSP version?

cat /etc/nv_tegra_release

Hi @ShaneCCC ,
I got the following

R32 (release), REVISION: 5.2, GCID: 27767740, BOARD: t186ref, EABI: aarch64, DATE: Fri Jul 9 16:05:07 UTC 2021

Could you upgrade to J4.6(r32.6.1)

Hi @ShaneCCC ,
I tried to flash 32.6.1 in NX its not booting for me. I tried the same in AGX too but its not booting either.
is there any alternative way?

Did you update by SDKManager?

Hi @ShaneCCC ,
I am using the kernel customization documentation mentioned here to flash custom driver.
Is there anyway to flash the custom driver in SDK manager ?

Did you download the kernel source and build follow the docuemnt?
You can update to J4.6 by sdkmanager and then replace the /boot/Image build from your host machine.

Hi @ShaneCCC
I am installing SDK to check with the newer version.
Meanwhile I wanted to share the dmesg log with you something looks odd I am not able to find out whats wrong from the log .
can you help me out?

[  809.141790] ------------[ cut here ]------------
[  809.141932] WARNING: CPU: 3 PID: 9970 at /home/htic/Kernel_builds/NX/32.5.2/sources/kernel/kernel/kernel-4.9/drivers/media/v4l2-core/videobuf2-core.c:1664 __vb2_queue_cancel+0x11c/0x188
[  809.142200] Modules linked in: fuse xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack br_netfilter zram overlay bnep rtl8822ce cfg80211 rtk_btusb btusb btrtl btbcm btintel userspace_alert imx219 spidev nvgpu bluedroid_pm ip_tables x_tables

[  809.142342] CPU: 3 PID: 9970 Comm: gst-launch-1.0 Tainted: G        W       4.9.201-tegra #2
[  809.142350] Hardware name: NVIDIA Jetson Xavier NX Developer Kit (DT)
[  809.142357] task: ffffffc0c1e0d400 task.stack: ffffffc15f9a4000
[  809.142364] PC is at __vb2_queue_cancel+0x11c/0x188
[  809.142371] LR is at __vb2_queue_cancel+0x34/0x188
[  809.142376] pc : [<ffffff8008b3182c>] lr : [<ffffff8008b31744>] pstate: 20400045
[  809.142379] sp : ffffffc15f9a7b20
[  809.142386] x29: ffffffc15f9a7b20 x28: 0000000000000000 
[  809.142402] x27: ffffffc1e0f56000 x26: 0000000000000001 
[  809.142416] x25: ffffff8009fcea20 x24: 0000000000000013 
[  809.142430] x23: 0000000000000000 x22: ffffffc15f9a7d10 
[  809.142443] x21: ffffff8009071bf8 x20: ffffffc1e2b845d0 
[  809.142457] x19: ffffffc1e2b845d0 x18: 0000000000000000 
[  809.142471] x17: 0000000000004378 x16: 0000000000000000 
[  809.142485] x15: 0000000000000000 x14: 000000000010b6d6 
[  809.142515] x13: 0000000000000345 x12: 071c71c71c71c71c 
[  809.142533] x11: 000000000000000b x10: 0000000000000a10 
[  809.142544] x9 : ffffffc15f9a7220 x8 : ffffffc0c1e0de70 
[  809.142558] x7 : fefefeff646c606d x6 : 00000000167a821a 
[  809.142568] x5 : 0000000000000000 x4 : 0000000000000000 
[  809.142577] x3 : ffffff80094f9d90 x2 : 0000000000000000 
[  809.142586] x1 : ffffffc1f4e32c90 x0 : 0000000000000006 

[  809.142599] ---[ end trace 6cd49fb2d3ff43c0 ]---
[  809.142701] Call trace:
[  809.142713] [<ffffff8008b3182c>] __vb2_queue_cancel+0x11c/0x188
[  809.142721] [<ffffff8008b31af4>] vb2_core_streamoff+0x54/0xb8
[  809.142730] [<ffffff8008b3641c>] vb2_streamoff+0x54/0x88
[  809.142737] [<ffffff8008b364a4>] vb2_ioctl_streamoff+0x54/0x60
[  809.142746] [<ffffff8008b0ffdc>] v4l_streamoff+0x3c/0x50
[  809.142754] [<ffffff8008b1508c>] __video_do_ioctl+0x204/0x2c8
[  809.142760] [<ffffff8008b14a38>] video_usercopy+0x2a0/0x6a0
[  809.142766] [<ffffff8008b14e74>] video_ioctl2+0x3c/0x50
[  809.142775] [<ffffff8008b0e8d8>] v4l2_ioctl+0x88/0x118
[  809.142784] [<ffffff8008271f58>] do_vfs_ioctl+0xb0/0x8d8
[  809.142790] [<ffffff800827280c>] SyS_ioctl+0x8c/0xa8
[  809.142798] [<ffffff8008083900>] el0_svc_naked+0x34/0x38
[  809.143099] imx219 9-0010: imx219_power_off: power off

Have a try the patch from below link.

Hi @ShaneCCC ,
I am not able to find the line. I have added the code below

void vi_capture_shutdown(struct tegra_vi_channel *chan)
{
	struct vi_capture *capture = chan->capture_data;

	dev_dbg(chan->dev, "%s--\n", __func__);
	if (capture == NULL)
		return;

	if (capture->channel_id != CAPTURE_CHANNEL_INVALID_ID)
		vi_capture_reset(chan,
			CAPTURE_CHANNEL_RESET_FLAG_IMMEDIATE);

	if (capture->stream_id != NVCSI_STREAM_INVALID_ID)
		csi_stream_release(chan);

	if (capture->channel_id != CAPTURE_CHANNEL_INVALID_ID)
	{
		int i;
		vi_capture_release(chan,
			CAPTURE_CHANNEL_RESET_FLAG_IMMEDIATE);

		if (capture->is_mem_pinned) {
			for (i = 0; i < capture->queue_depth; i++)
				vi_capture_request_unpin(chan, i);
		}

		capture_common_unpin_memory(&capture->requests);
		kfree(capture->unpins_list);
	}
	kfree(capture);
	chan->capture_data = NULL;
}

Did you get the kernel for r32.6.1?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.