Part Number: SK-AM62A-LP
Hello TI Support Team,
It was a task to port the ar0323 sensor driver to the CUSTOM-made AM62A board and upload it to the video device. However, the video output doesn't seem to work normally, so I'm asking for a guide.
1) Here is custom ar0323 driver probe , and initialization done.
[ 2.123775] smhong ar0323_initialize, client->addr value: 0x10
[ 2.129738] smhong ar0323_initialize, client->addr value: 0x10, i2c channel value: 2
[ 2.158569] [+][smhong] message [F: ar0323_set_regs, L:185]: caller:(i2c_device_probe+0xa8/0x2a8)
[ 2.745516] [+][smhong] message [F: to_ar0323, L:171]: caller:(ar0323_otp_id_read+0x38/0x12c)
[ 2.754242] [+][smhong] message [F: ar0323_otp_id_read, L:548]: caller:(ar0323_probe+0x4a4/0x590)
[ 2.789703] ar0323 2-0010: ar0323 PID d56, res 2560x992, OTP_ID 1a:00:18:16:0a:83
[ 2.797357] smhong [5]
[ 2.799856] [smhong] ar0323_initialize done!!
[ 2.804330] [smhong] ar0323_probe done!!
[ 2.808394] omap_i2c 20010000.i2c: bus 2 rev0.12 at 400 kHz
[ 2.820710] omap_i2c 20020000.i2c: bus 3 rev0.12 at 400 kHz
2) check to the video device
root@am62axx-evm:~# v4l2-ctl --list-devices
j721e-csi2rx (platform:30102000.ticsi2rx):
/dev/video2
/dev/video3
/dev/video4
/dev/video5
/dev/media0
wave5-dec (platform:wave5-dec):
/dev/video0
wave5-enc (platform:wave5-enc):
/dev/video1
3) test video capture using Gstreamer , but not working. video2 seems to be a device driver for our sensor.
root@am62axx-evm:~# gst-launch-1.0 -v v4l2src device=/dev/video2 ! videoconvert ! v4l2h264enc ! filesink location=out.264
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)3840, height=(int)2160, framerate=(fraction)120/1, interlace-mode=(string)progressive, format=(string)YUY2, colorimetry=(string)2:6:5:1
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, width=(int)3840,[ 397.593183] [+][smhong] message [F: to_ar0323, L:171]: caller:(call_get_fmt+0x74/0xd0)
height=(int)2160, framerate=(fraction)120/1, interlace-mode=(st[ 397.602689] [+][smhong] message [F: ar0323_get_fmt, L:262]: caller:(call_get_fmt+0x74/0xd0)
ring)progressive, format=(string)I420, colorimetry=(string)bt601[ 397.616582] cdns-csi2rx 30101000.csi-bridge: Failed to configure external DPHY: -2
/GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)baseline, level=(string)1, width=(int)3840, height=(int)2160, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)baseline, level=(string)1, width=(int)3840, height=(int)2160, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)bt601
Redistribute latency...
/GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0.GstPad:sink: caps = video/x-raw, width=(int)3840, height=(int)2160, framerate=(fraction)120/1, interlace-mode=(string)progressive, format=(string)I420, colorimetry=(string)bt601
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, width=(int)3840, height=(int)2160, framerate=(fraction)120/1, interlace-mode=(string)progressive, format=(string)YUY2, colorimetry=(string)2:6:5:1
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
../gst-plugins-good-1.16.3/sys/v4l2/gstv4l2src.c(660): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
Execution ended after 0:00:00.076171695
Setting pipeline to NULL ...
Freeing pipeline ...
root@am62axx-evm:~# gst-launch-1.0 -v v4l2src device=/dev/video0 ! videoconvert ! v4l2h264enc ! filesink location=out.264
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' is not a capture device.
Additional debug info:
../gst-plugins-good-1.16.3/sys/v4l2/v4l2_calls.c(628): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Capabilities: 0x4204000
Setting pipeline to NULL ...
Freeing pipeline ...
Regards,




