Hi,
I have an ADV7280m connected via MIPI to my Jetson Nano Super Devkit. I used the driver for the ADV, which can be found under the JetsonLinux source nvidia-oot/drivers/media/i2c/adv7180.c (I only changed the defaults to PAL and progressive). I am able to load the driver and see the camera image. But the odd/even lines are misaligned.
Then I implemented a tegra camera driver myself (vvr2-video.c and vvr2-video.dts), and there I got the same result.
To ensure that the ADV is not the problem, I implemented a test pattern generator in an Xilinx FPGA that sends a checkerboard pattern via MIPI. But here, the odd/even lines are not aligned either.
I guess there must be something wrong with the MIPI configuration in my device tree overlays. Does anyone know what the reason for this could be?
PS: The gstreamer call is:
gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,framerate=50/1,width=720,height=576 ! nvvidconv ! xvimagesink
adv7180.dts.txt (4.3 KB)
vvr2-video.dts.txt (5.1 KB)
vvr2-video.c.txt (12.5 KB)
adv7180.c.txt (42.3 KB)
hello s.zieker,
may I know which Jetpack release version you’re working with?
you may check release tag, $ cat /etc/nv_tegra_release for confirmation.
besides.. it seems like alignment issue, which VI should follow 64 alignment,
per your settings.. fmt->width = 720; please try updating the width to 768 for testing.
Hi Jerry,
first of all thx for your response.
nv_tegra_release
R36 (release), REVISION: 4.4, GCID: 41062509, BOARD: generic, EABI: aarch64, DATE: Mon Jun 16 16:07:13 UTC 2025 KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia
setting the width to 768
I did the following:
- set the active_w property in the device tree overlay (vvr2-video.dts) to 768
- set the the width in the camera_common_frmfmt struct (vvr2-video.c) to 768
- changed my gstreamer call:
gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,framerate=50/1,width=768,height=576 ! nvvidconv ! xvimagesink
Now the the even/odd lines are aligned but at the right side I have a green area (the PAL camera has a really bad quality).
PAL camera
Test pattern generator in the FPGA
Best regards,
Stefan
hello s.zieker,
that’s expected, please specify a crop region to crop the green area.
for instance,
$ gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,framerate=50/1,width=768,height=576 ! nvvidconv left=0 right=720 top=0 bottom=576 ! xvimagesink
Hi Jerry,
now it looks perfect. Thx for your help :-).