Has anybody tried to configure the TPG in the CSI unit of Tegra K1? I’m trying using the default values provided in the tegra camera driver. But I’m unable to get a correct frame. Anybody else having any luck?
I’m assuming that TEGRA_VI_CSI_0_SURFACE0_OFFSET_MSB and TEGRA_VI_CSI_0_SURFACE0_OFFSET_LSB are the registers where you specify the location where the output of VI channel is stored. Am I correct?
Hi, I tried the exact same commands you have mentioned, but the output file that I get contains only zeros when I checked with a hex viewer. The output file size is 3686400 bytes which seems to be correct for the mentioned resolution and format (with alpha channel).
This is the output i get on my device.
ubuntu@tegra-ubuntu:~$ yavta /dev/video0 -l
Device /dev/video0 opened.
Device `vi' on `' is a video output (without mplanes) device.
No control found.
Video format: RGB32 (34424752) 1280x720 (stride 5120) field none buffer size 3686400
ubuntu@tegra-ubuntu:~$ cat /sys/module/tegra_camera/parameters/tpg_mode
1
ubuntu@tegra-ubuntu:~$ yavta /dev/video0 -c1 -n1 -s1280x720 -fRGB32 -Ftpg.rgba
Device /dev/video0 opened.
Device `vi' on `' is a video output (without mplanes) device.
Video format set: RGB32 (34424752) 1280x720 (stride 5120) field none buffer size 3686400
Video format: RGB32 (34424752) 1280x720 (stride 5120) field none buffer size 3686400
1 buffers requested.
length: 3686400 offset: 0 timestamp type/source: mono/EoF
Buffer 0/0 mapped at address 0xb62cd000.
0 (0) [-] none 0 3686400 B 1411563408.134773 241.274778 0.001 fps ts mono/EoF
Captured 1 frames in 0.000017 seconds (57411.872775 fps, 211643127798.828827 B/s).
1 buffers released.
Have you tried these commands and obtained correct TPG frame data in your board?
Yes, we are able to obtain TPG data in both modes. Thank you. It seems that enabling the regulator did the trick. How did you figure it out? Is it mentioned in any document?
Instead of doing this, you can directly enable the required regulator using sysfs entries as root user.