aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2013-06-01 11:40:09 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2013-06-01 11:40:09 +0800
commit73a419e9c0b5997672dd4f1b48abaf26f79f6889 (patch)
tree80e2da51ecd38b445cc895fbadf7aded69170c97
parent5aa3da34264cada45059b53783c0e569266f9d04 (diff)
origen: add sdcard supportlinaro-jb
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--device.mk3
-rw-r--r--init.origen.rc16
-rw-r--r--overlay/frameworks/base/core/res/res/xml/storage_list.xml6
-rw-r--r--vold.fstab2
4 files changed, 21 insertions, 6 deletions
diff --git a/device.mk b/device.mk
index 573940a..acb635d 100644
--- a/device.mk
+++ b/device.mk
@@ -15,8 +15,7 @@
LOCAL_PATH := device/linaro/origen
PRODUCT_COPY_FILES := \
- device/linaro/common/init.partitions.rc:root/init.partitions.rc \
- device/linaro/common/fstab.partitions-with-kernelpartition:root/fstab.partitions \
+ device/linaro/common/fstab.partitions-with-kernelpartition:root/fstab.origen \
device/linaro/origen/vold.fstab:system/etc/vold.fstab \
device/linaro/origen/egl.cfg:system/lib/egl/egl.cfg \
device/linaro/common/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf
diff --git a/init.origen.rc b/init.origen.rc
index 3a6c1c7..1c296bb 100644
--- a/init.origen.rc
+++ b/init.origen.rc
@@ -1,9 +1,15 @@
import init.origen.usb.rc
-on init
+on early-init
+ export EXTERNAL_STORAGE /mnt/sdcard
+ mkdir /storage 0050 system sdcard_r
+ # for backwards compatibility
+ symlink /mnt/sdcard /storage/sdcard0
+
# mount debugfs
mount debugfs /sys/kernel/debug /sys/kernel/debug
+on init
# power management
# Enable off mode by default
#write /sys/kernel/debug/pm_debug/enable_off_mode 1
@@ -13,14 +19,20 @@ on init
write /sys/kernel/debug/pm_debug/smartreflex/sr_iva/autocomp 1
write /sys/kernel/debug/pm_debug/smartreflex/sr_mpu/autocomp 1
+on post-fs-data
+ mkdir /data/media 0770 media_rw media_rw
+
on boot
- setprop hw.nobattery true
setprop ro.build.product exynos4
setprop ro.product.device exynos4
setprop wifi.interface wlan0
+ setprop hw.nobattery true
setprop dev.hdmi 0
setprop dev.videoPlayback 0
+on fs
+ mount_all /fstab.origen
+
# switch CPUfreq from performance to hotplug
#write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor hotplug
#write /sys/devices/system/cpu/cpufreq/hotplug/down_threshold 30
diff --git a/overlay/frameworks/base/core/res/res/xml/storage_list.xml b/overlay/frameworks/base/core/res/res/xml/storage_list.xml
index 0a03928..3062ef0 100644
--- a/overlay/frameworks/base/core/res/res/xml/storage_list.xml
+++ b/overlay/frameworks/base/core/res/res/xml/storage_list.xml
@@ -33,9 +33,13 @@
-->
<StorageList xmlns:android="http://schemas.android.com/apk/res/android">
- <storage android:mountPoint="/storage/sdcard0"
+ <!-- <storage android:mountPoint="/storage/sdcard0" -->
+ <storage android:mountPoint="/mnt/sdcard"
android:storageDescription="@string/storage_internal"
android:primary="true"
+ android:removable="true" />
+ <!--
android:emulated="true"
android:mtpReserve="100" />
+ -->
</StorageList>
diff --git a/vold.fstab b/vold.fstab
index 2c388f4..5679357 100644
--- a/vold.fstab
+++ b/vold.fstab
@@ -12,4 +12,4 @@
## <sysfs_path> - List of sysfs paths to source devices
######################
-dev_mount sdcard /mnt/sdcard 7 /devices/platform/exynos4-sdhci.2/mmc_host/mmc0
+dev_mount sdcard /mnt/sdcard auto /devices/platform/exynos4-sdhci.0/mmc_host/mmc1