blob: c4261fe39659e25e0a58b6aeb912c211997d0ad3 [file] [log] [blame]
kyoungheonc46b48b2010-08-18 15:07:38 -07001on boot
Brian Swetlandec04e352010-09-19 06:34:17 -07002 mount debugfs /sys/kernel/debug /sys/kernel/debug
3
Brian Swetland921f0de2010-09-20 17:06:13 -07004 setprop ro.build.product herring
5 setprop ro.product.device herring
kyoungheonc46b48b2010-08-18 15:07:38 -07006 setprop ro.radio.noril yes
hyungseoung.yoo7f217b62010-09-15 12:47:10 -07007 setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
kyoungheonc46b48b2010-08-18 15:07:38 -07008
9# fake some battery state
10 setprop status.battery.state Slow
11 setprop status.battery.level 5
12 setprop status.battery.level_raw 50
13 setprop status.battery.level_scale 9
14
JIKWANG KANG44732f12010-08-31 12:42:55 -070015# wi-fi
16 mkdir /data/misc/wifi/sockets 0770 wifi wifi
17 mkdir /data/misc/dhcp 0770 dhcp dhcp
18
Ed Heyleb722dd2010-09-07 18:13:41 -070019# phone
JIKWANG KANG94e25542010-09-22 20:12:55 -070020 setprop ro.telephony.call_ring.multiple 0
Ed Heyleb722dd2010-09-07 18:13:41 -070021
Ed Heyl0f26a392010-09-02 11:40:57 -070022# create data/gps for GPS demon
23 chown root system /dev/s3c2410_serial1
24 chmod 664 /dev/s3c2410_serial1
25 mkdir /data/gps 771 system system
26 chown system system /data/gps
27 chown root system /sys/class/sec/gps/GPS_PWR_EN/value
28 chmod 664 /sys/class/sec/gps/GPS_PWR_EN/value
29 chown root system /sys/class/gpio/gpio104/value
30 chmod 664 /sys/class/gpio/gpio104/value
31 chown root system /sys/class/gpio/gpio105/value
32 chmod 664 /sys/class/gpio/gpio105/value
hyungseoung.yoo393fc372010-09-02 22:50:35 +090033
Mike J. Chenac9a9cd2010-09-11 22:16:37 -070034# sensors sysfs attributes. input devices are created dynamically
35# so we can't be sure which is which. this is a bit of a hack until
36# (and if) init is modified to handle uevents (or ueventd is modified
37# to support sysfs).
38 chown input input /sys/class/input/event0/device/enable
39 chown input input /sys/class/input/event1/device/enable
40 chown input input /sys/class/input/event2/device/enable
41 chown input input /sys/class/input/event3/device/enable
42 chown input input /sys/class/input/event4/device/enable
43 chown input input /sys/class/input/event5/device/enable
44 chown input input /sys/class/input/event6/device/enable
45 chown input input /sys/class/input/event7/device/enable
46 chown input input /sys/class/input/event8/device/enable
47 chown input input /sys/class/input/event9/device/enable
48 chmod 660 /sys/class/input/event0/device/enable
49 chmod 660 /sys/class/input/event1/device/enable
50 chmod 660 /sys/class/input/event2/device/enable
51 chmod 660 /sys/class/input/event3/device/enable
52 chmod 660 /sys/class/input/event4/device/enable
53 chmod 660 /sys/class/input/event5/device/enable
54 chmod 660 /sys/class/input/event6/device/enable
55 chmod 660 /sys/class/input/event7/device/enable
56 chmod 660 /sys/class/input/event8/device/enable
57 chmod 660 /sys/class/input/event9/device/enable
58 chown input input /sys/class/input/event0/device/poll_delay
59 chown input input /sys/class/input/event1/device/poll_delay
60 chown input input /sys/class/input/event2/device/poll_delay
61 chown input input /sys/class/input/event3/device/poll_delay
62 chown input input /sys/class/input/event4/device/poll_delay
63 chown input input /sys/class/input/event5/device/poll_delay
64 chown input input /sys/class/input/event6/device/poll_delay
65 chown input input /sys/class/input/event7/device/poll_delay
66 chown input input /sys/class/input/event9/device/poll_delay
67 chown input input /sys/class/input/event9/device/poll_delay
68 chmod 660 /sys/class/input/event0/device/poll_delay
69 chmod 660 /sys/class/input/event1/device/poll_delay
70 chmod 660 /sys/class/input/event2/device/poll_delay
71 chmod 660 /sys/class/input/event3/device/poll_delay
72 chmod 660 /sys/class/input/event4/device/poll_delay
73 chmod 660 /sys/class/input/event5/device/poll_delay
74 chmod 660 /sys/class/input/event6/device/poll_delay
75 chmod 660 /sys/class/input/event7/device/poll_delay
76 chmod 660 /sys/class/input/event9/device/poll_delay
77 chmod 660 /sys/class/input/event9/device/poll_delay
78
Jeong-Seok Yang7562f3f2010-09-07 22:08:26 -070079on fs
80 mkdir /efs 0775 radio radio
81 mount yaffs2 mtd@efs /efs nosuid nodev
Brian Swetland921f0de2010-09-20 17:06:13 -070082 mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/system /system wait ro
83 mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/cache /cache wait noatime
84 mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata /data wait noatime
Choi jonghwan043350a2010-09-05 19:41:25 -070085
hyungseoung.yoo393fc372010-09-02 22:50:35 +090086# permissions for bluetooth.
87 chown bluetooth bluetooth ro.bt.bdaddr_path
88 chown bluetooth bluetooth /dev/s3c2410_serial0
89 chmod 0600 /dev/s3c2410_serial0
90 chmod 0660 /sys/class/rfkill/rfkill0/state
91 chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
92 chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
93
Nick Pelly5cc7d642010-09-03 17:22:42 -070094# permissions for NFC
95 setprop ro.nfc.port "I2C"
96 chmod 0666 /dev/pn544
97
Jeong-Seok Yang7562f3f2010-09-07 22:08:26 -070098# Permissions for System Server and daemons.
99 chown system system /sys/class/backlight/s5p_bl/brightness
100
Brian Swetland43a841e2010-09-21 15:50:50 -0700101service gpsd /system/vendor/bin/gpsd -c /vendor/etc/gps.xml
Jeong-Seok Yang7562f3f2010-09-07 22:08:26 -0700102 user system
103 group system inet
104
Brian Swetland86304be2010-09-15 16:13:20 -0700105# create filesystems if necessary
Brian Swetland921f0de2010-09-20 17:06:13 -0700106service setup_fs /system/bin/setup_fs /dev/block/platform/s3c-sdhci.0/by-name/cache /dev/block/platform/s3c-sdhci.0/by-name/userdata
Brian Swetland86304be2010-09-15 16:13:20 -0700107 user root
108 group root
109 oneshot
110
Jeong-Seok Yang7562f3f2010-09-07 22:08:26 -0700111# 3D init
Brian Swetland61da0852010-09-19 03:46:56 -0700112service pvrsrvinit /system/vendor/bin/pvrsrvinit
Jeong-Seok Yang7562f3f2010-09-07 22:08:26 -0700113 user root
114 group root
115 oneshot
116
JIKWANG KANG44732f12010-08-31 12:42:55 -0700117service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
Jeong-Seok Yang7562f3f2010-09-07 22:08:26 -0700118 socket wpa_eth0 dgram 0660 wifi wifi
119 disabled
120 oneshot
JIKWANG KANG44732f12010-08-31 12:42:55 -0700121
122service dhcpcd /system/bin/dhcpcd -ABKL
Jeong-Seok Yang7562f3f2010-09-07 22:08:26 -0700123 disabled
124 oneshot
hyungseoung.yoo393fc372010-09-02 22:50:35 +0900125
hyungseoung.yoo7f217b62010-09-15 12:47:10 -0700126service hciattach /system/bin/brcm_patchram_plus -d --enable_hci \
hyungseoung.yoo7b728e22010-09-22 11:12:43 -0700127 --baudrate 3000000 --patchram /vendor/firmware/bcm4329.hcd /dev/s3c2410_serial0
hyungseoung.yoo393fc372010-09-02 22:50:35 +0900128 user bluetooth
129 group bluetooth net_bt_admin
130 disabled
131 oneshot
Ed Heyld1c40912010-09-07 18:13:00 -0700132
133# sensor service
Brian Swetland34cfd9e2010-09-21 13:19:29 -0700134service akmd8973 /system/vendor/bin/akmd8973
Jeong-Seok Yang7562f3f2010-09-07 22:08:26 -0700135 enabled
136 oneshot
Brian Swetland34cfd9e2010-09-21 13:19:29 -0700137
138service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
139 disabled
140 oneshot
DooHyunHwang8a469ff2010-09-28 17:12:48 -0700141 keycodes 114 115