aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2011-10-18 22:36:12 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2011-10-18 22:39:48 +0530
commitbc7cfa7c4e3705cc4825acd04f653111453827b6 (patch)
treeb1a1109a3646b6f802460e16a66dac6c866e7a1d
parent6d58a5e077b9e6bdf0e50c94f09fb0ce273e48c7 (diff)
downloadimx53-bc7cfa7c4e3705cc4825acd04f653111453827b6.tar.gz
camera: Enable camera in the build
Enable camera in the build and set right permissions to camera for the app to access it Change-Id: I7fac818ae8fd0a86ffb5fb360cf29748613c0bf4 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--BoardConfig.mk2
-rw-r--r--init.rc3
2 files changed, 4 insertions, 1 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index d69761f..47175fa 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -17,7 +17,7 @@ TARGET_PROVIDES_INIT_RC := true
BOARD_USES_GENERIC_AUDIO := false
BOARD_USES_ALSA_AUDIO := true
BUILD_WITH_ALSA_UTILS := true
-USE_CAMERA_STUB := true
+USE_CAMERA_STUB := false
BOARD_HAVE_BLUETOOTH := false
BOARD_HAVE_BLUETOOTH_BCM := false
diff --git a/init.rc b/init.rc
index f8b19fe..daaad7a 100644
--- a/init.rc
+++ b/init.rc
@@ -89,6 +89,9 @@ loglevel 3
# 5.0 %
write /dev/cpuctl/bg_non_interactive/cpu.shares 52
+ # Set access for camera
+ chmod 0666 /dev/video0
+
on fs
# mount mmc partitions
mount ext4 /dev/block/mmcblk0p3 /system ro