Hello,
I’m trying to capture video on Jetson AGX Xavier in a Forecr DSBOARD-VX2. The camera is a RPi HQ with sensor IMX477, I’m using Jetpack 5.1
After running
gst-launch-1.0 -v nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1280,height=720,framerate=60/1,format=NV12' ! nvvidconv flip-method=0 ! 'video/x-raw,width=1280,height=720' | queue | nvvidconv | nvegltransform | nveglglessing -e
I’m getting a video, but with a tint (such that white objects become green, and there are red artifacts too), and even with a lens covered by a cap it outputs a purple ellipse:
I tried to capture a raw from v4l2-ctl
for comparison, but I’m not sure how to interpret the output format:
v4l2-ctl --device /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap --stream-to=frame.raw --stream-count=1
The RG10 format is the only one reported byv4l2-ctl
with --list-formats-ext
.
Do you enable the IMX477 by jetson-io?
Please confirm by latest release.
Thanks
I can’t, IMX477 is not listed in jetson-io on AGX Xavier. This is a continuation of Jetson AGX Xavier - any support for IMX477? (I and lukasz.szmyt from the same company), we’ve go the device tree files from the board manufacturer, and the camera produces an image that seems to be good except for the bad colors.
OK,
Could you dump the device tree to check.
sudo dtc -I fs -O dts -o extracted_proc.dts /proc/device-tree
See attached, I think the part in the beginning with
nvidia,dtsfilename = "/media/ubuntu/Extra/forecr_kernel_sources/jetpack-51/forecr_xavier_kernel/kernel/kernel-5.10/arch/arm64/boot/dts/../../../../../../hardware/nvidia/platform/t19x/galen/kernel-dts/tegra194-p2888-0001-dsboard-xv2-0000-imx477.dts";
is the right one.
extracted_proc.txt (397.8 KB)
Change the “P5V27C” in the badge information in device tree.
Don’t copy any badge from the reference device tree.
badge = “dsboard_xv2_centerleft_P5V27C”;
Thank you. I’m not the author of the device tree though.
What should I change the “P5V27C” in the badge to?
How to load the device tree back into /proc/device-tree
?
You can generate by randomly.
You need to modify it and compile to dtb and apply to the system.
system
Closed
March 26, 2024, 4:42pm
10
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.