hello
I am testing S5K4ECGX camera on firefly RK3128 board.
The camera works fine on android system, but it does not work on linux system.
On linux system, I checked the followings
- /dev/video0 is exist.
- v4l2-ctl -d /dev/video0 --all
firefly@firefly:~/test-v4l2$ v4l2-ctl -d /dev/video0 --all
[64736.020928] s5k4ec_back_3(rk_cam_sensor:1228): generic_sensor_ioctl cmd(0x3) is unknown !
[64736.020928]
[64736.123828] rk818_ldo8: operation not allowed
[64736.192541] rk818_ldo4: operation not allowed
Driver Info (not using libv4l2):
Driver name : rk312x-camera
Card type : s5k4ec_back_3-0_100_100
Bus info :
Driver version: 0.1.14
Capabilities : 0x04000001
Video Capture
Streaming
Video input : 0 (Camera: ok)
Format Video Capture:
Width/Height : 800/600
Pixel Format : 'NV12'
Field : None
Bytes per Line : 1200
Size Image : 720000
Colorspace : JPEG
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Crop Capability Video Capture:
Bounds : Left 0, Top 0, Width 2592, Height 1944
Default : Left 0, Top 0, Width 0, Height 0
Pixel Aspect: 1944/2592
Crop Capability Video Output:
Bounds : Left 0, Top 0, Width 2592, Height 1944
Default : Left 0, Top 0, Width 0, Height 0
Pixel Aspect: 1944/2592
Crop: Left 0, Top 0, Width 0, Height 0
0x0098090d (menu) : min=0 max=4 default=0 value=0
- mplayer tv:// -tv driver=v4l2:fps=30:width=800:height=600:device=/dev/video0
#################################### terminal log
MPlayer2 2.0-728-g2c378c7-4 (C) 2000-2012 MPlayer Team
Cannot open file '/home/firefly/.mplayer/input.conf': No such file or directory
Failed to open /home/firefly/.mplayer/input.conf.
Cannot open file '/etc/mplayer/input.conf': No such file or directory
Failed to open /etc/mplayer/input.conf.
Playing tv://.
Detected file format: TV
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
v4l2: ioctl get standard failed: Inappropriate ioctl for device
Selected device: s5k4ec_back_3-0_100_100
Capabilities: video capture streaming
supported norms:
inputs: 0 = Camera;
Current input: 0
Current format: NV12
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: No data available
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl queue buffer failed: Invalid argument
v4l2: ioctl set mute failed: Invalid argument
v4l2: 0 frames successfully processed, 0 frames dropped.
Opening as detected format "TV" failed.
Failed to recognize file format.
Exiting... (End of file)
firefly@firefly:~$
########################### dmsg
[65117.624086] s5k4ec_back_3(rk_cam_sensor:1228): generic_sensor_ioctl cmd(0x3) is unknown !
[65117.732006] Cam_Powerdowm
[65117.732104] rk818_ldo8: operation not allowed
[65117.801175] rk818_ldo4: operation not allowed
[65117.840305] ret: 0
[65123.125091] rk312x-camera rk312x-camera.33: Format (YV12) not found
[65123.125136] rk_cam_cif(2226):RK_Camera(version:
[65123.125231] rk_cam_cif(2231):(NV12)-YUV420 NV12
[65123.125250] rk_cam_cif(2231):(NV16)-YUV422 NV16
[65123.125265] rk_cam_cif(2231):(NV21)-YUV420 NV21
[65123.125280] rk_cam_cif(2231):(NV61)-YUV422 NV61
[65123.125297] rk_cam_cif(2314):
rk_camera_try_fmt..2314.. ret = -22
[65123.125612] rk312x-camera rk312x-camera.33: Format (YU12) not found
[65123.125637] rk_cam_cif(2226):RK_Camera(version:
[65123.125655] rk_cam_cif(2231):(NV12)-YUV420 NV12
[65123.125670] rk_cam_cif(2231):(NV16)-YUV422 NV16
[65123.125694] rk_cam_cif(2231):(NV21)-YUV420 NV21
[65123.126061] rk_cam_cif(2231):(NV61)-YUV422 NV61
[65123.126076] rk_cam_cif(2314):
rk_camera_try_fmt..2314.. ret = -22
[65123.126240] rk312x-camera rk312x-camera.33: Format (UYVY) not found
[65123.126258] rk_cam_cif(2226):RK_Camera(version:
[65123.126270] rk_cam_cif(2231):(NV12)-YUV420 NV12
[65123.126281] rk_cam_cif(2231):(NV16)-YUV422 NV16
[65123.126291] rk_cam_cif(2231):(NV21)-YUV420 NV21
[65123.126301] rk_cam_cif(2231):(NV61)-YUV422 NV61
[65123.126312] rk_cam_cif(2314):
rk_camera_try_fmt..2314.. ret = -22
[65123.126455] rk312x-camera rk312x-camera.33: Format (YUYV) not found
[65123.126472] rk_cam_cif(2226):RK_Camera(version:
[65123.126484] rk_cam_cif(2231):(NV12)-YUV420 NV12
[65123.126494] rk_cam_cif(2231):(NV16)-YUV422 NV16
[65123.126505] rk_cam_cif(2231):(NV21)-YUV420 NV21
[65123.126515] rk_cam_cif(2231):(NV61)-YUV422 NV61
[65123.126526] rk_cam_cif(2314):
rk_camera_try_fmt..2314.. ret = -22
[65123.126665] rk312x-camera rk312x-camera.33: Format (RGB4) not found
[65123.126682] rk_cam_cif(2226):RK_Camera(version:
[65123.126694] rk_cam_cif(2231):(NV12)-YUV420 NV12
[65123.126704] rk_cam_cif(2231):(NV16)-YUV422 NV16
[65123.126715] rk_cam_cif(2231):(NV21)-YUV420 NV21
[65123.126725] rk_cam_cif(2231):(NV61)-YUV422 NV61
[65123.126736] rk_cam_cif(2314):
rk_camera_try_fmt..2314.. ret = -22
[65123.126863] rk312x-camera rk312x-camera.33: Format (RGB3) not found
[65123.126880] rk_cam_cif(2226):RK_Camera(version:
[65123.126891] rk_cam_cif(2231):(NV12)-YUV420 NV12
[65123.126902] rk_cam_cif(2231):(NV16)-YUV422 NV16
[65123.126912] rk_cam_cif(2231):(NV21)-YUV420 NV21
[65123.126922] rk_cam_cif(2231):(NV61)-YUV422 NV61
[65123.126933] rk_cam_cif(2314):
rk_camera_try_fmt..2314.. ret = -22
[65123.127222] rk312x-camera rk312x-camera.33: Format (BGR) not found
[65123.127240] rk_cam_cif(2226):RK_Camera(version:
[65123.127266] rk_cam_cif(2231):(NV12)-YUV420 NV12
[65123.127277] rk_cam_cif(2231):(NV16)-YUV422 NV16
[65123.127287] rk_cam_cif(2231):(NV21)-YUV420 NV21
[65123.127298] rk_cam_cif(2231):(NV61)-YUV422 NV61
[65123.127309] rk_cam_cif(2314):
rk_camera_try_fmt..2314.. ret = -22
[65123.127484] rk312x-camera rk312x-camera.33: Format (BGR) not found
[65123.127524] rk_cam_cif(2226):RK_Camera(version:
[65123.127539] rk_cam_cif(2231):(NV12)-YUV420 NV12
[65123.127550] rk_cam_cif(2231):(NV16)-YUV422 NV16
[65123.127560] rk_cam_cif(2231):(NV21)-YUV420 NV21
[65123.127571] rk_cam_cif(2231):(NV61)-YUV422 NV61
[65123.127582] rk_cam_cif(2314):
rk_camera_try_fmt..2314.. ret = -22
[65123.134858] systemd-journald[326]: no db file to read /run/udev/data/+platform:rk312x-camera.33: No such file or directory
[65123.136009] systemd-journald[326]: no db file to read /run/udev/data/+platform:rk312x-camera.33: No such file or directory
[65123.137185] systemd-journald[326]: no db file to read /run/udev/data/+platform:rk312x-camera.33: No such file or directory
[65123.138280] systemd-journald[326]: no db file to read /run/udev/data/+platform:rk312x-camera.33: No such file or directory
[65123.139365] systemd-journald[326]: no db file to read /run/udev/data/+platform:rk312x-camera.33: No such file or directory
[65123.140451] systemd-journald[326]: no db file to read /run/udev/data/+platform:rk312x-camera.33: No such file or directory
[65123.141504] systemd-journald[326]: no db file to read /run/udev/data/+platform:rk312x-camera.33: No such file or directory
[65123.142593] systemd-journald[326]: no db file to read /run/udev/data/+platform:rk312x-camera.33: No such file or directory
[65123.425308] s5k4ec_back_3(rk_cam_sensor:1035): v4l2_control id(0x980909) is invalidate
[65123.488644] ret: 0
[65123.616549] Cam_Powerdowm
firefly@firefly:~$
what can i check the others ?
thanks for any help .