summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChoi jonghwan <jhbird.choi@samsung.com>2010-09-05 19:41:25 -0700
committerEd Heyl <edheyl@google.com>2010-09-07 09:30:05 -0700
commit043350a083c6cfbb5b434d07d0027e0246dec1e0 (patch)
tree94a6efd54ca606698c4e8bcb7a025950ab8fd7be
parent456180fde027b1e209158b208c5dc472296cf8d0 (diff)
downloaddevice_samsung_crespo-043350a083c6cfbb5b434d07d0027e0246dec1e0.zip
device_samsung_crespo-043350a083c6cfbb5b434d07d0027e0246dec1e0.tar.gz
device_samsung_crespo-043350a083c6cfbb5b434d07d0027e0246dec1e0.tar.bz2
Add ueventd.smdkc110.rc (For changes the permissions of 3D driver nodes).
Hardward name is smdkc110. (get from /proc/cpuinfo). Change the permissions of 3D driver nodes. init.rc rollback to original code. Change-Id: Id69688987e4fc720aacbd586cca9db6bd2d644c5
-rw-r--r--device.mk3
-rwxr-xr-xinit.rc18
-rwxr-xr-xinit.smdkc110.rc13
-rw-r--r--ueventd.smdkc110.rc8
4 files changed, 21 insertions, 21 deletions
diff --git a/device.mk b/device.mk
index 4591c19..ddd98ff 100644
--- a/device.mk
+++ b/device.mk
@@ -51,7 +51,8 @@ PRODUCT_COPY_FILES := \
# Init files
PRODUCT_COPY_FILES += \
device/samsung/crespo/init.rc:root/init.rc \
- device/samsung/crespo/init.smdkc110.rc:root/init.smdkc110.rc
+ device/samsung/crespo/init.smdkc110.rc:root/init.smdkc110.rc \
+ device/samsung/crespo/ueventd.smdkc110.rc:root/ueventd.smdkc110.rc
# Prebuilt kl keymaps
PRODUCT_COPY_FILES += \
diff --git a/init.rc b/init.rc
index 38f9a0f..f4ce2af 100755
--- a/init.rc
+++ b/init.rc
@@ -19,11 +19,6 @@ loglevel 3
export LOOP_MOUNTPOINT /mnt/obb
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
- # ko files for 3D
- insmod /modules/pvrsrvkm.ko
- insmod /modules/s3c_lcd.ko
- insmod /modules/s3c_bc.ko
-
# Backward compatibility
symlink /system/etc /etc
symlink /sys/kernel/debug /d
@@ -267,13 +262,6 @@ on boot
chown system system /sys/kernel/ipv4/tcp_rmem_max
chown root radio /proc/cmdline
- # dev files for 3D
- chmod 0666 /dev/pvrsrvkm
-
- # for phone
- chown radio radio /dev/onedram
- chmod 0664 /dev/onedram
-
# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
@@ -306,12 +294,6 @@ on property:persist.service.adb.enable=1
on property:persist.service.adb.enable=0
stop adbd
-# 3D init
-service pvrsrvinit /system/bin/pvrsrvinit
- user root
- group root
- oneshot
-
service servicemanager /system/bin/servicemanager
user system
critical
diff --git a/init.smdkc110.rc b/init.smdkc110.rc
index 6a6c7d0..c249f82 100755
--- a/init.smdkc110.rc
+++ b/init.smdkc110.rc
@@ -1,6 +1,4 @@
on boot
-# setprop net.eth0.dns1 10.32.192.11
-# setprop net.eth0.dns2 10.32.193.11
setprop ro.build.product smdkc110
setprop ro.product.device smdkc110
setprop ro.radio.noril yes
@@ -12,6 +10,11 @@ on boot
setprop status.battery.level_raw 50
setprop status.battery.level_scale 9
+# ko files for 3D
+ insmod /modules/pvrsrvkm.ko
+ insmod /modules/s3c_lcd.ko
+ insmod /modules/s3c_bc.ko
+
# wi-fi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
@@ -32,6 +35,12 @@ service glgps /system/bin/gpsd/glgps_samsungJupiter -c /system/etc/jupiter.xml
user system
group system inet
+# 3D init
+service pvrsrvinit /system/bin/pvrsrvinit
+ user root
+ group root
+ oneshot
+
# permissions for bluetooth.
chown bluetooth bluetooth ro.bt.bdaddr_path
chown bluetooth bluetooth /dev/s3c2410_serial0
diff --git a/ueventd.smdkc110.rc b/ueventd.smdkc110.rc
new file mode 100644
index 0000000..2221972
--- /dev/null
+++ b/ueventd.smdkc110.rc
@@ -0,0 +1,8 @@
+# dev files for 3D
+/dev/pvrsrvkm 0666 system system
+/dev/video1 0664 system camera
+/dev/pmem_gpu1 0664 system graphics
+/dev/s3c-mem 0664 system system
+/dev/s3c_bc 0664 system system
+/dev/onedram 0664 radio radio
+