Other Parts Discussed in Thread: AM625
Hi,
1. which version of the SDK are you using?
- SDK Version;- 09.02.01.09
2. what did you do to bring up the camera?
by refering this link :- e2e.ti.com/.../sk-am62a-lp-bring-up-ov5647
3. which camera module are you using?
OV5647 5MP 1080P IR-Cut Camera for Raspberry Pi 3/4 with Automatic Day Night Mode
4. what's the output of "media-ctl -p"?
root@am62xx-evm:~# media-ctl -p
Media controller API version 6.1.80
Media device information
------------------------
driver j721e-csi2rx
model TI-CSI2RX
serial
bus info platform:30102000.ticsi2rx
hw revision 0x1
driver version 6.1.80
Device topology
- entity 1: 30102000.ticsi2rx (5 pads, 5 links, 1 route)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
routes:
0/0 -> 1/0 [ACTIVE]
pad0: Sink
[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
<- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
pad1: Source
[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
-> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
pad2: Source
-> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
pad3: Source
-> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
pad4: Source
-> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
- entity 7: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 1 route)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
routes:
0/0 -> 1/0 [ACTIVE]
pad0: Sink
[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
<- "ov5647 4-0036":0 [ENABLED,IMMUTABLE]
pad1: Source
[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
-> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
pad2: Source
pad3: Source
pad4: Source
- entity 13: ov5647 4-0036 (1 pad, 1 link, 0 route)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2
pad0: Source
[stream:0 fmt:SBGGR10_1X10/640x480 field:none colorspace:srgb
crop.bounds:(16,16)/2592x1944
crop:(32,16)/2560x1920]
-> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
- entity 19: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
- entity 25: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: Sink
<- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
- entity 31: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route)
type Node subtype V4L flags 0
device node name /dev/video2
pad0: Sink
<- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
- entity 37: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route)
type Node subtype V4L flags 0
device node name /dev/video3
pad0: Sink
<- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]
Now i wanted to start this camera on TI apps launcher ?
or how i can able to take raw image just for seeing that it is working ?
also want to test for videos ?
Somebody can guide me in this regards ,
I have tried to capture the image but unable to take :-
root@am62xx-evm:~# cam -c1 -I
[2:10:38.713684168] [9178] INFO Camera camera_manager.cpp:298 libcamera v0.0.5+dirty (2024-03-23T14:12:31+00:00)
[2:10:38.730666460] [9179] WARN CameraSensor camera_sensor.cpp:244 'ov5647 4-0036': Recommended V4L2 control 0x009a0922 not supported
[2:10:38.730801587] [9179] WARN CameraSensor camera_sensor.cpp:311 'ov5647 4-0036': The sensor kernel driver needs to be fixed
[2:10:38.730831947] [9179] WARN CameraSensor camera_sensor.cpp:313 'ov5647 4-0036': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[2:10:38.732914868] [9179] WARN CameraSensor camera_sensor.cpp:459 'ov5647 4-0036': Failed to retrieve the camera location
Using camera /base/bus@f0000/i2c@20020000/i2c-switch@71/i2c@1/camera@36 as cam0
0: 640x480-SBGGR10
* Pixelformat: SBGGR10 (640x480)-(2592x1944)/(+0,+0)
- 640x480
- 1296x972
- 1920x1080
- 2592x1944
root@am62xx-evm:~# cam -c1 --stream width=1296,height=972,pixelformat=[fmt:SBGGR10_1X10/1296x972 field:none] -C20
Invalid non-option argument 'field:none]'
Options:
-c, --camera camera ... Specify which camera to operate on, by id or by index
-h, --help Display this help message
-I, --info Display information about stream(s)
-l, --list List all cameras
--list-controls List cameras controls
-p, --list-properties List cameras properties
-m, --monitor Monitor for hotplug and unplug camera events
Options valid in the context of --camera:
-C, --capture[=count] Capture until interrupted by user or until <count> frames captured
-D, --display[=connector] Display viewfinder through DRM/KMS on specified connector
-F, --file[=filename] Write captured frames to disk
If the file name ends with a '/', it sets the directory in which
to write files, using the default file name. Otherwise it sets the
full file path and name. The first '#' character in the file name
is expanded to the camera index, stream name and frame sequence number.
The default file name is 'frame-#.bin'.
-s, --stream key=value[,key=value,...] ... Set configuration of a camera stream
colorspace=string Color space
height=integer Height in pixels
pixelformat=string Pixel format name
role=string Role for the stream (viewfinder, video, still, raw)
width=integer Width in pixels
--strict-formats Do not allow requested stream format(s) to be adjusted
--metadata Print the metadata for completed requests
--script script Load a capture session configuration script from a file
root@am62xx-evm:~# cam -c1 --stream width=1296,height=972,pixelformat= SBGGR10_1X10/1296x972 -C20
Option pixelformat requires an argument
Can't parse key=value argument for option --stream
Options:
-c, --camera camera ... Specify which camera to operate on, by id or by index
-h, --help Display this help message
-I, --info Display information about stream(s)
-l, --list List all cameras
--list-controls List cameras controls
-p, --list-properties List cameras properties
-m, --monitor Monitor for hotplug and unplug camera events
Options valid in the context of --camera:
-C, --capture[=count] Capture until interrupted by user or until <count> frames captured
-D, --display[=connector] Display viewfinder through DRM/KMS on specified connector
-F, --file[=filename] Write captured frames to disk
If the file name ends with a '/', it sets the directory in which
to write files, using the default file name. Otherwise it sets the
full file path and name. The first '#' character in the file name
is expanded to the camera index, stream name and frame sequence number.
The default file name is 'frame-#.bin'.
-s, --stream key=value[,key=value,...] ... Set configuration of a camera stream
colorspace=string Color space
height=integer Height in pixels
pixelformat=string Pixel format name
role=string Role for the stream (viewfinder, video, still, raw)
width=integer Width in pixels
--strict-formats Do not allow requested stream format(s) to be adjusted
--metadata Print the metadata for completed requests
--script script Load a capture session configuration script from a file
root@am62xx-evm:~# cam -c1 --stream width=1296,height=972,pixelformat= SBGGR10_1X10/1296x972 -C20
Option pixelformat requires an argument
Can't parse key=value argument for option --stream
Options:
-c, --camera camera ... Specify which camera to operate on, by id or by index
-h, --help Display this help message
-I, --info Display information about stream(s)
-l, --list List all cameras
--list-controls List cameras controls
-p, --list-properties List cameras properties
-m, --monitor Monitor for hotplug and unplug camera events
Options valid in the context of --camera:
-C, --capture[=count] Capture until interrupted by user or until <count> frames captured
-D, --display[=connector] Display viewfinder through DRM/KMS on specified connector
-F, --file[=filename] Write captured frames to disk
If the file name ends with a '/', it sets the directory in which
to write files, using the default file name. Otherwise it sets the
full file path and name. The first '#' character in the file name
is expanded to the camera index, stream name and frame sequence number.
The default file name is 'frame-#.bin'.
-s, --stream key=value[,key=value,...] ... Set configuration of a camera stream
colorspace=string Color space
height=integer Height in pixels
pixelformat=string Pixel format name
role=string Role for the stream (viewfinder, video, still, raw)
width=integer Width in pixels
--strict-formats Do not allow requested stream format(s) to be adjusted
--metadata Print the metadata for completed requests
--script script Load a capture session configuration script from a file
root@am62xx-evm:~# cam -c1 --stream width=1296,height=972,pixelformat= SBGGR10 -C20
Option pixelformat requires an argument
Can't parse key=value argument for option --stream
Options:
-c, --camera camera ... Specify which camera to operate on, by id or by index
-h, --help Display this help message
-I, --info Display information about stream(s)
-l, --list List all cameras
--list-controls List cameras controls
-p, --list-properties List cameras properties
-m, --monitor Monitor for hotplug and unplug camera events
Options valid in the context of --camera:
-C, --capture[=count] Capture until interrupted by user or until <count> frames captured
-D, --display[=connector] Display viewfinder through DRM/KMS on specified connector
-F, --file[=filename] Write captured frames to disk
If the file name ends with a '/', it sets the directory in which
to write files, using the default file name. Otherwise it sets the
full file path and name. The first '#' character in the file name
is expanded to the camera index, stream name and frame sequence number.
The default file name is 'frame-#.bin'.
-s, --stream key=value[,key=value,...] ... Set configuration of a camera stream
colorspace=string Color space
height=integer Height in pixels
pixelformat=string Pixel format name
role=string Role for the stream (viewfinder, video, still, raw)
width=integer Width in pixels
--strict-formats Do not allow requested stream format(s) to be adjusted
--metadata Print the metadata for completed requests
--script script Load a capture session configuration script from a file
root@am62xx-evm:~# cam -c1 --stream width=1296,height=972,pixelformat= SBGGR10 -C20
Option pixelformat requires an argument
Can't parse key=value argument for option --stream
Options:
-c, --camera camera ... Specify which camera to operate on, by id or by index
-h, --help Display this help message
-I, --info Display information about stream(s)
-l, --list List all cameras
--list-controls List cameras controls
-p, --list-properties List cameras properties
-m, --monitor Monitor for hotplug and unplug camera events
Options valid in the context of --camera:
-C, --capture[=count] Capture until interrupted by user or until <count> frames captured
-D, --display[=connector] Display viewfinder through DRM/KMS on specified connector
-F, --file[=filename] Write captured frames to disk
If the file name ends with a '/', it sets the directory in which
to write files, using the default file name. Otherwise it sets the
full file path and name. The first '#' character in the file name
is expanded to the camera index, stream name and frame sequence number.
The default file name is 'frame-#.bin'.
-s, --stream key=value[,key=value,...] ... Set configuration of a camera stream
colorspace=string Color space
height=integer Height in pixels
pixelformat=string Pixel format name
role=string Role for the stream (viewfinder, video, still, raw)
width=integer Width in pixels
--strict-formats Do not allow requested stream format(s) to be adjusted
--metadata Print the metadata for completed requests
--script script Load a capture session configuration script from a file
root@am62xx-evm:~# ^C
root@am62xx-evm:~# cam -c1 --stream width=1296,height=972,pixelformat=SBGGR10 -C20
[2:17:21.006233446] [9919] INFO Camera camera_manager.cpp:298 libcamera v0.0.5+dirty (2024-03-23T14:12:31+00:00)
[2:17:21.021617720] [9920] WARN CameraSensor camera_sensor.cpp:244 'ov5647 4-0036': Recommended V4L2 control 0x009a0922 not supported
[2:17:21.021763627] [9920] WARN CameraSensor camera_sensor.cpp:311[ 8241.146240] v4l2_get_link_freq: Link frequency estimated using pixel rate: result might be inaccurate
'ov5647 4-0036': The sensor kernel driver needs to b[ 8241.156253] v4l2_get_link_freq: Consider implementing support for V4L2_CID_LINK_FREQ in the transmitter driver
e fixed
[2:17:21.021792842] [9920] WARN CameraSensor camera_sensor.cpp:313 'ov5647 4-0036': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[2:17:21.023737081] [9920] WARN CameraSensor camera_sensor.cpp:459 'ov5647 4-0036': Failed to retrieve the camera location
Using camera /base/bus@f0000/i2c@20020000/i2c-switch@71/i2c@1/camera@36 as cam0
[2:17:21.027388201] [9919] INFO Camera camera.cpp:1028 configuring streams: (0) 1296x972-SBGGR10
cam0: Capture 20 frames
^CExiting
root@am62xx-evm:~# cam -c1 --stream width=1296,height=972,pixelformat=SBGGR10 -C20 -F#.uyvy
[2:19:11.325540687] [10123] INFO Camera camera_manager.cpp:298 libcamera v0.0.5+dirty (2024-03-23T14:12:31+00:00)
[2:19:11.337549013] [10124] WARN CameraSensor camera_sensor.cpp:244 'ov5647 4-0036': Recommended V4L2 control 0x009a0922 not supported
[2:19:11.337674068] [10124] WARN CameraSensor camera_sensor.cpp:3[ 8351.457930] v4l2_get_link_freq: Link frequency estimated using pixel rate: result might be inaccurate
11 'ov5647 4-0036': The sensor kernel driver needs to[ 8351.471202] v4l2_get_link_freq: Consider implementing support for V4L2_CID_LINK_FREQ in the transmitter driver
be fixed
[2:19:11.337701764] [10124] WARN CameraSensor camera_sensor.cpp:313 'ov5647 4-0036': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[2:19:11.339321179] [10124] WARN CameraSensor camera_sensor.cpp:459 'ov5647 4-0036': Failed to retrieve the camera location
Using camera /base/bus@f0000/i2c@20020000/i2c-switch@71/i2c@1/camera@36 as cam0
[2:19:11.342717457] [10123] INFO Camera camera.cpp:1028 configuring streams: (0) 1296x972-SBGGR10
cam0: Capture 20 frames
^CExiting
root@am62xx-evm:~# ls *.uyvy
ls: cannot access '*.uyvy': No such file or directory
root@am62xx-evm:~#

