check /dev/videox
ls /dev/video*
Result: create /dev/video0 ~ /dev/video35
capture data by v4l2-ctl
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=“RG10” --device=/dev/video1 --stream-count=10 --stream-mmap --stream-to=tpg .raw
Result: Kernel crashes, hangs for ~30 seconds, then reboots the system and the raw file does not exist.
I don’t know how this error happened?
Can you tell me the solution?
Thanks!
could you please share the details kernel failures for reference,
BTW, may I know which JetPack release you’re working with, what’s the actual use-case for testing with TPG?
R35 (release), REVISION: 1.0, GCID: 31346300, BOARD: t186ref, EABI: aarch64, DATE: Thu Aug 25 18:41:45 UTC 2022
v4l2-ctl message:
Because system crash not print any message, there use --verbose print some message.
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --device=/dev/video1 --stream-count=10 --stream-mmap --stream-to=tpg.raw --verbose
VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture:
Width/Height : 1920/1080
Pixel Format : ‘RG10’ (10-bit Bayer RGRG/GBGB)
Field : None
Bytes per Line : 3840
Size Image : 4147200
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
VIDIOC_REQBUFS returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
what’s the actual use-case for testing with TPG?
Testing the TPG when the all camera driver removed, only install the TPG driver.
there’re different TPG kernel modules,
please load nvhost-vi-tpg-t19x.ko since you’re running with AGX Orin,
for example, /usr/lib/modules/5.10.104-tegra/kernel/drivers/media/platform/tegra/tpg/nvhost-vi-tpg.ko /usr/lib/modules/5.10.104-tegra/kernel/drivers/media/platform/tegra/tpg/nvhost-vi-tpg-t19x.ko
and… it’s by default to create 36 channels.
please revise num-tpg-channels = <1> in sensor device tree, tegra234-p3737-camera-modules.dtsi to reduce the channels in case accessing to the correct node.
I want to load nvhost-vi-tpg-t19x.ko, but can’t insert module
sudo insmod /lib/modules/5.10.104-tegra/kernel/drivers/media/platform/tegra/tpg/nvhost-vi-tpg-t19x.ko
insmod: ERROR: could not insert module /lib/modules/5.10.104-tegra/kernel/drivers/media/platform/tegra/tpg/nvhost-vi-tpg-t19x.ko: No such device
do you see any error reported with below step? 5. cd /mnt/work_disk/nvidia/nvidia_sdk/JetPack_5.1.1_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/ sudo ./apply_binaries.sh
BTW,
we’ve tested with JetPack 5.1.1 directly to verify TPG.