Part Number: J784S4XEVM
Other Parts Discussed in Thread: TDA4VM, SK-AM69, , SK-TDA4VM, J721EXCPXEVM, TDA4VH, AM69
Hi,
I developed a V4L2 camera driver for ti boards. I can get a raw images using the following command: (on J784S4XG01EVM board)
```
gst-launch-1.0 -v v4l2src num-buffers=5 device=/dev/video4 io-mode=dmabuf ! video/x-bayer, width=3840, height=2160, framerate=30/1, format=rggb12 ! multifilesink location="camera-image-%d.raw"
```
We have no issues here.
However, when I try to get camera images using ISP with the following command:
```
gst-launch-1.0 v4l2src num-buffers=5 device=/dev/video4 io-mode=dmabuf-import ! video/x-bayer, width=3840, height=2160, framerate=30/1, format=rggb12 ! tiovxisp sink_0::device=/dev/v4l-media2 sensor-name="SENSOR_SAMSUNG_CAMERA" dcc-isp-file=/opt/imaging/camera/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/camera/dcc_2a.bin format-msb=9 ! video/x-raw, format=NV12, width=3840, height=2160, framerate=30/1 ! jpegenc ! multifilesink location="camera-image-%d.jpg"
```
It just stucks waiting for image. Here is the full log:
```
APP: Init ... !!!
MEM: Init ... !!!
MEM: Initialized DMA HEAP (fd=6) !!!
MEM: Init ... Done !!!
IPC: Init ... !!!
IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
2579.330551 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
2579.330596 s: VX_ZONE_INIT:Enabled
2579.330607 s: VX_ZONE_ERROR:Enabled
2579.330621 s: VX_ZONE_WARNING:Enabled
2579.331437 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
2579.332269 s: VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
```
I've been informed by this topic that https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1339452/j784s4xevm-how-to-use-hw-isp-for-v4l2-cameras my J784S4XG01EVM board doesn't support edgeai. However I've been able to compile it for SOC=j784s4 from my TDA4VM board and then send the output files to my J784S4XG01EVM.
Please Note that, the above gstreamer command for ISP is working fine on TDA4VM board.
For reference I follow the "AM6xA ISP Tuning Guide.pdf" just changed the compilation part, for instance, I change the SOC variable from j721e to j784s4. And after that it's pretty much same basically I only changed the install dir. Then I copy the outputs to my J784S4XG01EVM board from TDA4VM.
- Am I doing something wrong ? Or this operation cannot be done on TDA4VM ?
- Also are there any ISP guides specifically for J784S4XG01EVM ?
Note: SDK => ti-processor-sdk-linux-adas-j784s4-evm-09_01_00_06-Linux-x86
Also I can see my camera when I execute gst-inspect-1.0 tiovxisp:
```
sensor-name : TIOVX camera sensor string ID. Below are the supported sensors
SENSOR_SONY_IMX390_UB953_D3
SENSOR_ONSEMI_AR0820_UB953_LI
SENSOR_ONSEMI_AR0233_UB953_MARS
SENSOR_SONY_IMX219_RPI
SENSOR_SAMSUNG_CAMERA
SENSOR_OV2312_UB953_LI
```
Thanks.