Hi, i am trying to enable camera on my board AM437xsk, I am using Marshmallow.
I built HAL module of camera and activated driver in kernel, but when android is booting, I got these logs and when i start camera, it crashes. 01-01 03:58:11.396 1395 1395 I CameraService: CameraService started (pid=1395) 01-01 03:58:11.396 1395 1395 I CameraService: CameraService process starting 01-01 03:58:11.445 1395 1395 I CameraService: Loaded "V4L2 CameraHal Module" camera module 01-01 03:58:11.445 1395 1395 I CameraFlashlight: Opening camera 0 01-01 03:58:11.446 1395 1395 D ****CameraHAL: cameraHal BACK 0 01-01 03:58:11.446 1395 1395 D ****CameraHAL: cameraHal 0 01-01 03:58:11.446 1395 1395 I ****CameraHAL: camera_device open 01-01 03:58:11.453 1395 1395 D CameraHardware: Set Parameter...!! 01-01 03:58:11.453 1395 1395 D CameraHardware: PreviewFormat yuv422sp 01-01 03:58:11.453 1395 1395 D CameraHardware: PictureFormat jpeg 01-01 03:58:11.453 1395 1395 D CameraHardware: preview width:640,height:480 01-01 03:58:11.453 1395 1395 D CameraHardware: picture width:640,height:480 01-01 03:58:11.453 1395 1395 D CameraHardware: FRAMERATE 15 01-01 03:58:11.453 1395 1395 D CameraHardware: Picture Size by CamHAL 640 x 480 01-01 03:58:11.453 1395 1395 D CameraHardware: Preview Resolution by CamHAL 640 x 480 01-01 03:58:11.453 1395 1395 D CameraHardware: Set Parameter...!! 01-01 03:58:11.453 1395 1395 D CameraHardware: PreviewFormat yuv422sp 01-01 03:58:11.453 1395 1395 D CameraHardware: PictureFormat jpeg 01-01 03:58:11.453 1395 1395 D CameraHardware: preview width:640,height:480 01-01 03:58:11.453 1395 1395 D CameraHardware: picture width:640,height:480 01-01 03:58:11.454 1395 1395 D CameraHardware: FRAMERATE 15 01-01 03:58:11.454 1395 1395 D CameraHardware: Picture Size by CamHAL 640 x 480 01-01 03:58:11.454 1395 1395 D CameraHardware: Preview Resolution by CamHAL 640 x 480 01-01 03:58:11.456 1395 1395 D ****CameraHAL: Exiting the function 01-01 03:58:11.456 1395 1395 D CameraHardware: Set Parameter...!! 01-01 03:58:11.456 1395 1395 D CameraHardware: PreviewFormat yuv422sp 01-01 03:58:11.456 1395 1395 D CameraHardware: PictureFormat jpeg 01-01 03:58:11.456 1395 1395 D CameraHardware: preview width:640,height:480 01-01 03:58:11.456 1395 1395 D CameraHardware: picture width:640,height:480 01-01 03:58:11.456 1395 1395 D CameraHardware: FRAMERATE 15 01-01 03:58:11.456 1395 1395 D CameraHardware: Picture Size by CamHAL 640 x 480 01-01 03:58:11.456 1395 1395 D CameraHardware: Preview Resolution by CamHAL 640 x 480 01-01 03:58:11.457 1395 1395 W ****CameraHAL: window is NULL 01-01 03:58:11.457 1395 1395 W CameraHardware: Window is Null 01-01 03:58:11.457 1395 1395 I CameraFlashlight: Destroying camera 0 01-01 03:58:11.457 1395 1395 E V4L2Camera: Uninit: Unmap failed 01-01 03:58:11.457 1395 1395 E V4L2Camera: Uninit: Unmap failed 01-01 03:58:11.457 1395 1395 E V4L2Camera: Uninit: Unmap failed 01-01 03:58:11.457 1395 1395 E V4L2Camera: Uninit: Unmap failed 01-01 03:58:11.458 1395 1395 D ****CameraHAL: cameraHal BACK 0 01-01 03:58:11.458 1395 1395 D ****CameraHAL: cameraHal 0 01-01 03:58:37.536 2935 2935 I SystemServer: Camera Service 01-01 03:58:37.537 2935 2935 I SystemServiceManager: Starting com.android.server.camera.CameraService 01-01 03:58:45.833 3375 3375 I CameraManagerGlobal: Connecting to camera service 01-01 03:58:45.843 1395 2343 I CameraService: getCameraCharacteristics: Switching to HAL1 shim implementation... 01-01 03:58:45.843 1395 2343 D ****CameraHAL: cameraHal BACK 0 01-01 03:58:45.843 1395 2343 D ****CameraHAL: cameraHal 0 01-01 03:58:45.843 1395 2343 I CameraService: CameraService::connect call (PID 1395 "media", camera ID 0) for HAL version default and Camera API version 1 01-01 03:58:45.849 1395 2343 E CameraService: getCameraPriorityFromProcState: Received invalid process state -1 from ActivityManagerService! 01-01 03:58:45.849 1395 2343 D ****CameraHAL: cameraHal BACK 0 01-01 03:58:45.849 1395 2343 D ****CameraHAL: cameraHal 0 01-01 03:58:46.509 1395 2343 I CameraClient: Opening camera 0 01-01 03:58:46.509 1395 2343 D ****CameraHAL: cameraHal BACK 0 01-01 03:58:46.509 1395 2343 D ****CameraHAL: cameraHal 0 01-01 03:58:46.509 1395 2343 I ****CameraHAL: camera_device open 01-01 03:58:46.510 1395 2343 D CameraHardware: Set Parameter...!! 01-01 03:58:46.510 1395 2343 D CameraHardware: PreviewFormat yuv422sp 01-01 03:58:46.510 1395 2343 D CameraHardware: PictureFormat jpeg 01-01 03:58:46.510 1395 2343 D CameraHardware: preview width:640,height:480 01-01 03:58:46.510 1395 2343 D CameraHardware: picture width:640,height:480 01-01 03:58:46.510 1395 2343 D CameraHardware: FRAMERATE 15 01-01 03:58:46.510 1395 2343 D CameraHardware: Picture Size by CamHAL 640 x 480 01-01 03:58:46.510 1395 2343 D CameraHardware: Preview Resolution by CamHAL 640 x 480 01-01 03:58:46.510 1395 2343 D CameraHardware: enableMsgType:3085 01-01 03:58:46.510 1395 2343 D CameraHardware: Set Parameter...!! 01-01 03:58:46.510 1395 2343 D CameraHardware: PreviewFormat yuv422sp 01-01 03:58:46.510 1395 2343 D CameraHardware: PictureFormat jpeg 01-01 03:58:46.510 1395 2343 D CameraHardware: preview width:640,height:480 01-01 03:58:46.510 1395 2343 D CameraHardware: picture width:640,height:480 01-01 03:58:46.510 1395 2343 D CameraHardware: FRAMERATE 15 01-01 03:58:46.510 1395 2343 D CameraHardware: Picture Size by CamHAL 640 x 480 01-01 03:58:46.510 1395 2343 D CameraHardware: Preview Resolution by CamHAL 640 x 480 01-01 03:58:46.511 1395 2343 D CameraHardware: disableMsgType:65535 01-01 03:58:46.512 1395 2343 I CameraFlashlight: Destroying camera 0 01-01 03:58:46.512 1395 2343 E V4L2Camera: Uninit: Unmap failed 01-01 03:58:46.512 1395 2343 E V4L2Camera: Uninit: Unmap failed 01-01 03:58:46.512 1395 2343 E V4L2Camera: Uninit: Unmap failed 01-01 03:58:46.512 1395 2343 E V4L2Camera: Uninit: Unmap failed 01-01 03:58:46.523 1395 2343 I CameraService: disconnect: Disconnected client for camera 0 for PID 1395 01-01 03:58:46.547 1395 3334 D ****CameraHAL: cameraHal BACK 0 01-01 03:58:46.547 1395 3334 D ****CameraHAL: cameraHal 0 01-01 03:58:46.566 1395 2343 D ****CameraHAL: cameraHal BACK 0 01-01 03:58:46.566 1395 2343 D ****CameraHAL: cameraHal 0 01-01 03:58:46.716 3375 3375 E FlashlightController: at android.hardware.Camera$Parameters.getFocalLength(Camera.java:3469) 01-01 03:58:46.716 3375 3375 E FlashlightController: at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:251) 01-01 03:58:46.716 3375 3375 E FlashlightController: at com.android.systemui.statusbar.policy.FlashlightController.getCameraId(FlashlightController.java:128) Has someone already face this error? Help. -- -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
