| kyoungheon | c46b48b | 2010-08-18 15:07:38 -0700 | [diff] [blame] | 1 | on boot |
| Brian Swetland | ec04e35 | 2010-09-19 06:34:17 -0700 | [diff] [blame] | 2 | mount debugfs /sys/kernel/debug /sys/kernel/debug |
| 3 | |
| Brian Swetland | 921f0de | 2010-09-20 17:06:13 -0700 | [diff] [blame] | 4 | setprop ro.build.product herring |
| 5 | setprop ro.product.device herring |
| kyoungheon | c46b48b | 2010-08-18 15:07:38 -0700 | [diff] [blame] | 6 | setprop ro.radio.noril yes |
| hyungseoung.yoo | 7f217b6 | 2010-09-15 12:47:10 -0700 | [diff] [blame] | 7 | setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" |
| kyoungheon | c46b48b | 2010-08-18 15:07:38 -0700 | [diff] [blame] | 8 | |
| 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 | |
| Choi jonghwan | 043350a | 2010-09-05 19:41:25 -0700 | [diff] [blame] | 15 | # ko files for 3D |
| 16 | insmod /modules/pvrsrvkm.ko |
| 17 | insmod /modules/s3c_lcd.ko |
| 18 | insmod /modules/s3c_bc.ko |
| 19 | |
| JIKWANG KANG | 44732f1 | 2010-08-31 12:42:55 -0700 | [diff] [blame] | 20 | # wi-fi |
| 21 | mkdir /data/misc/wifi/sockets 0770 wifi wifi |
| 22 | mkdir /data/misc/dhcp 0770 dhcp dhcp |
| 23 | |
| Ed Heyl | eb722dd | 2010-09-07 18:13:41 -0700 | [diff] [blame] | 24 | # phone |
| 25 | chown radio radio /sys/class/modemctl/xmm/control |
| 26 | chmod 660 /sys/class/modemctl/xmm/control |
| JIKWANG KANG | 94e2554 | 2010-09-22 20:12:55 -0700 | [diff] [blame] | 27 | chown radio radio /dev/s3c2410_serial3 |
| 28 | chmod 660 /dev/s3c2410_serial3 |
| 29 | chown radio radio /dev/block/mtdblock5 |
| 30 | chmod 640 /dev/block/mtdblock5 |
| 31 | setprop ro.telephony.call_ring.multiple 0 |
| Ed Heyl | eb722dd | 2010-09-07 18:13:41 -0700 | [diff] [blame] | 32 | |
| Ed Heyl | 0f26a39 | 2010-09-02 11:40:57 -0700 | [diff] [blame] | 33 | # create data/gps for GPS demon |
| 34 | chown root system /dev/s3c2410_serial1 |
| 35 | chmod 664 /dev/s3c2410_serial1 |
| 36 | mkdir /data/gps 771 system system |
| 37 | chown system system /data/gps |
| 38 | chown root system /sys/class/sec/gps/GPS_PWR_EN/value |
| 39 | chmod 664 /sys/class/sec/gps/GPS_PWR_EN/value |
| 40 | chown root system /sys/class/gpio/gpio104/value |
| 41 | chmod 664 /sys/class/gpio/gpio104/value |
| 42 | chown root system /sys/class/gpio/gpio105/value |
| 43 | chmod 664 /sys/class/gpio/gpio105/value |
| hyungseoung.yoo | 393fc37 | 2010-09-02 22:50:35 +0900 | [diff] [blame] | 44 | |
| Mike J. Chen | ac9a9cd | 2010-09-11 22:16:37 -0700 | [diff] [blame] | 45 | # sensors sysfs attributes. input devices are created dynamically |
| 46 | # so we can't be sure which is which. this is a bit of a hack until |
| 47 | # (and if) init is modified to handle uevents (or ueventd is modified |
| 48 | # to support sysfs). |
| 49 | chown input input /sys/class/input/event0/device/enable |
| 50 | chown input input /sys/class/input/event1/device/enable |
| 51 | chown input input /sys/class/input/event2/device/enable |
| 52 | chown input input /sys/class/input/event3/device/enable |
| 53 | chown input input /sys/class/input/event4/device/enable |
| 54 | chown input input /sys/class/input/event5/device/enable |
| 55 | chown input input /sys/class/input/event6/device/enable |
| 56 | chown input input /sys/class/input/event7/device/enable |
| 57 | chown input input /sys/class/input/event8/device/enable |
| 58 | chown input input /sys/class/input/event9/device/enable |
| 59 | chmod 660 /sys/class/input/event0/device/enable |
| 60 | chmod 660 /sys/class/input/event1/device/enable |
| 61 | chmod 660 /sys/class/input/event2/device/enable |
| 62 | chmod 660 /sys/class/input/event3/device/enable |
| 63 | chmod 660 /sys/class/input/event4/device/enable |
| 64 | chmod 660 /sys/class/input/event5/device/enable |
| 65 | chmod 660 /sys/class/input/event6/device/enable |
| 66 | chmod 660 /sys/class/input/event7/device/enable |
| 67 | chmod 660 /sys/class/input/event8/device/enable |
| 68 | chmod 660 /sys/class/input/event9/device/enable |
| 69 | chown input input /sys/class/input/event0/device/poll_delay |
| 70 | chown input input /sys/class/input/event1/device/poll_delay |
| 71 | chown input input /sys/class/input/event2/device/poll_delay |
| 72 | chown input input /sys/class/input/event3/device/poll_delay |
| 73 | chown input input /sys/class/input/event4/device/poll_delay |
| 74 | chown input input /sys/class/input/event5/device/poll_delay |
| 75 | chown input input /sys/class/input/event6/device/poll_delay |
| 76 | chown input input /sys/class/input/event7/device/poll_delay |
| 77 | chown input input /sys/class/input/event9/device/poll_delay |
| 78 | chown input input /sys/class/input/event9/device/poll_delay |
| 79 | chmod 660 /sys/class/input/event0/device/poll_delay |
| 80 | chmod 660 /sys/class/input/event1/device/poll_delay |
| 81 | chmod 660 /sys/class/input/event2/device/poll_delay |
| 82 | chmod 660 /sys/class/input/event3/device/poll_delay |
| 83 | chmod 660 /sys/class/input/event4/device/poll_delay |
| 84 | chmod 660 /sys/class/input/event5/device/poll_delay |
| 85 | chmod 660 /sys/class/input/event6/device/poll_delay |
| 86 | chmod 660 /sys/class/input/event7/device/poll_delay |
| 87 | chmod 660 /sys/class/input/event9/device/poll_delay |
| 88 | chmod 660 /sys/class/input/event9/device/poll_delay |
| 89 | |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 90 | on fs |
| 91 | mkdir /efs 0775 radio radio |
| 92 | mount yaffs2 mtd@efs /efs nosuid nodev |
| Brian Swetland | 921f0de | 2010-09-20 17:06:13 -0700 | [diff] [blame] | 93 | mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/system /system wait ro |
| 94 | mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/cache /cache wait noatime |
| 95 | mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata /data wait noatime |
| Choi jonghwan | 043350a | 2010-09-05 19:41:25 -0700 | [diff] [blame] | 96 | |
| hyungseoung.yoo | 393fc37 | 2010-09-02 22:50:35 +0900 | [diff] [blame] | 97 | # permissions for bluetooth. |
| 98 | chown bluetooth bluetooth ro.bt.bdaddr_path |
| 99 | chown bluetooth bluetooth /dev/s3c2410_serial0 |
| 100 | chmod 0600 /dev/s3c2410_serial0 |
| 101 | chmod 0660 /sys/class/rfkill/rfkill0/state |
| 102 | chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state |
| 103 | chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type |
| 104 | |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 105 | # Permissions for System Server and daemons. |
| 106 | chown system system /sys/class/backlight/s5p_bl/brightness |
| 107 | |
| Brian Swetland | 43a841e | 2010-09-21 15:50:50 -0700 | [diff] [blame] | 108 | service gpsd /system/vendor/bin/gpsd -c /vendor/etc/gps.xml |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 109 | user system |
| 110 | group system inet |
| 111 | |
| Brian Swetland | 86304be | 2010-09-15 16:13:20 -0700 | [diff] [blame] | 112 | # create filesystems if necessary |
| Brian Swetland | 921f0de | 2010-09-20 17:06:13 -0700 | [diff] [blame] | 113 | service 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 Swetland | 86304be | 2010-09-15 16:13:20 -0700 | [diff] [blame] | 114 | user root |
| 115 | group root |
| 116 | oneshot |
| 117 | |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 118 | # 3D init |
| Brian Swetland | 61da085 | 2010-09-19 03:46:56 -0700 | [diff] [blame] | 119 | service pvrsrvinit /system/vendor/bin/pvrsrvinit |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 120 | user root |
| 121 | group root |
| 122 | oneshot |
| 123 | |
| JIKWANG KANG | 44732f1 | 2010-08-31 12:42:55 -0700 | [diff] [blame] | 124 | service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 125 | socket wpa_eth0 dgram 0660 wifi wifi |
| 126 | disabled |
| 127 | oneshot |
| JIKWANG KANG | 44732f1 | 2010-08-31 12:42:55 -0700 | [diff] [blame] | 128 | |
| 129 | service dhcpcd /system/bin/dhcpcd -ABKL |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 130 | disabled |
| 131 | oneshot |
| hyungseoung.yoo | 393fc37 | 2010-09-02 22:50:35 +0900 | [diff] [blame] | 132 | |
| hyungseoung.yoo | 7f217b6 | 2010-09-15 12:47:10 -0700 | [diff] [blame] | 133 | service hciattach /system/bin/brcm_patchram_plus -d --enable_hci \ |
| hyungseoung.yoo | 7b728e2 | 2010-09-22 11:12:43 -0700 | [diff] [blame^] | 134 | --baudrate 3000000 --patchram /vendor/firmware/bcm4329.hcd /dev/s3c2410_serial0 |
| hyungseoung.yoo | 393fc37 | 2010-09-02 22:50:35 +0900 | [diff] [blame] | 135 | user bluetooth |
| 136 | group bluetooth net_bt_admin |
| 137 | disabled |
| 138 | oneshot |
| Ed Heyl | d1c4091 | 2010-09-07 18:13:00 -0700 | [diff] [blame] | 139 | |
| 140 | # sensor service |
| Brian Swetland | 34cfd9e | 2010-09-21 13:19:29 -0700 | [diff] [blame] | 141 | service akmd8973 /system/vendor/bin/akmd8973 |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 142 | enabled |
| 143 | oneshot |
| Brian Swetland | 34cfd9e | 2010-09-21 13:19:29 -0700 | [diff] [blame] | 144 | |
| 145 | service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport |
| 146 | disabled |
| 147 | oneshot |
| 148 | keycodes 115 139 |