init.S900_M30_P30_WCDMA_GPS.rc 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. on early-init
  2. insmod /startup/modules/bcm5892-rtc.ko
  3. start ueventd
  4. on init
  5. insmod /startup/modules/devices_base.ko
  6. insmod /startup/modules/S900_M30_P30_GPRS_GPS.ko
  7. insmod /startup/modules/ioconfig.ko
  8. write /sys/class/backlight/pwm-backlight/brightness 100
  9. insmod /startup/modules/pm_bcm5892.ko
  10. setprop ro.security_version "Prolin 21.301.110.100.101"
  11. #USB support
  12. insmod /startup/modules/bcm589x-dwccom.ko
  13. insmod /startup/modules/bcm589x-otg.ko
  14. insmod /startup/modules/tty-devices.ko
  15. insmod /startup/modules/tty-host.ko
  16. insmod /startup/modules/bcm589x-usb-host.ko
  17. #base drivers
  18. # battery, must before than power on gprs
  19. insmod /startup/modules/bm_bq24133.ko
  20. insmod /startup/modules/pmu_dummy.ko
  21. insmod /startup/modules/misc.ko
  22. insmod /startup/modules/input_base.ko power_key=223 press_time=2
  23. insmod /startup/modules/keypad_matrix.ko
  24. #power on gprs
  25. if property:ro.fac.radio!= write /sys/devices/platform/misc/gprs/cmd 0
  26. #switch wifi power.NOTE othis position must before the WIFI driver and after the PUM driver!
  27. #if property:ro.fac.wifi!= write /sys/devices/platform/misc/wifi/cmd 0
  28. #card drivers (sci msr pcd)
  29. insmod /startup/modules/sci_bcm5892_ncn8025.ko
  30. insmod /startup/modules/msr.ko
  31. insmod /startup/modules/pcd_base.ko
  32. insmod /startup/modules/pcd_rc663.ko
  33. #security drivers (bbl, sec, verify)
  34. insmod /startup/modules/bcm5892_bbl.ko
  35. insmod /startup/modules/bcm589x-sec.ko
  36. insmod /startup/modules/verify.ko
  37. #crypto drivers
  38. if property:ro.fac.cipher_chip=01 insmod /startup/modules/thk88.ko
  39. #sound driver
  40. if property:ro.fac.audiocard=CS4344-CZZR insmod /startup/modules/bcm589x_i2s.ko
  41. if property:ro.fac.audiocard=BCM589X_DAC insmod /startup/modules/bcm589x_dac.ko
  42. #touchscreen driver
  43. insmod /startup/modules/ads7846.ko
  44. #log server driver
  45. insmod /startup/modules/logger.ko
  46. #printer driver
  47. if property:ro.fac.printer=LTPJ245G insmod /startup/modules/sii_printer.ko
  48. if property:ro.fac.printer=PRT-48F insmod /startup/modules/prt_printer.ko
  49. chmod 666 /sys/power/state
  50. chmod 666 /sys/class/backlight/pwm-backlight/brightness
  51. chmod 666 /sys/devices/platform/keypad/backlight_on
  52. chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
  53. chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
  54. chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
  55. chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
  56. chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
  57. chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
  58. chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
  59. chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
  60. chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
  61. chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
  62. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
  63. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
  64. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
  65. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
  66. chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
  67. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
  68. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
  69. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
  70. write /sys/devices/platform/keypad/buzzer_keypad_duration 150
  71. write /sys/devices/platform/keypad/buzzer_user_duration 150
  72. #time of back light auto active, unit:Second
  73. setprop persist.sys.backlighttime 60
  74. setprop persist.sys.sleeptime 0
  75. setprop persist.sys.sleepwaittime 1
  76. # usb ethernet driver
  77. insmod /startup/modules/asix.ko
  78. # create some symlinks
  79. #if property:ro.fac.radio!= symlink /dev/ttyAMA3 /dev/ttywl
  80. if property:ro.fac.radio!= symlink /dev/ttyUSB0 /dev/ttywl
  81. if property:ro.fac.radio!= symlink /dev/ttyUSB2 /dev/mux1
  82. if property:ro.fac.gps!= symlink /dev/ttyAMA1 /dev/ttygps
  83. if property:ro.fac.modem!= symlink /dev/ttyAMA0 /dev/ttymodem
  84. if property:ro.fac.barcode!= symlink /dev/ttyAMA0 /dev/tty_barcode
  85. symlink /dev/input/event0 /dev/keypad
  86. symlink /dev/input/event1 /dev/keypad_ped
  87. symlink /dev/input/event2 /dev/tp
  88. symlink /dev/input/event3 /dev/tp_ped
  89. symlink /dev/graphics/fb0 /dev/fb
  90. symlink /dev/graphics/fb1 /dev/fb_ped
  91. on fs
  92. export TSLIB_CONSOLEDEVICE none
  93. export TSLIB_FBDEVICE /dev/fb
  94. export TSLIB_TSDEVICE /dev/tp
  95. export TSLIB_CALIBFILE /etc/ts/pointercal
  96. export TSLIB_CONFFILE /etc/ts/ts.conf
  97. export TSLIB_PLUGINDIR /usr/lib/ts
  98. on post-fs
  99. #LCD driver
  100. symlink /startup/firmware/lcd_240x320_r90.rle /startup/firmware/lcd.watermark
  101. write /sys/class/backlight/pwm-backlight/brightness 0
  102. insmod /startup/modules/lcd_fb.ko
  103. insmod /startup/modules/lcd_hw_ctrl.ko
  104. if property:ro.fac.videocard=TM035KBH08-36 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
  105. if property:ro.fac.videocard=08 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
  106. on early-boot
  107. chmod 755 /usr/bin/wpa_supplicant_ap6181
  108. #wifi
  109. wait /sys/class/mmc_host/mmc0/mmc0:0001
  110. if property:ro.fac.wifi=03 insmod /startup/modules/bcmdhd.ko firmware_path=/startup/firmware/bcm_ap6181/fw_bcm40181a2.bin nvram_path=/startup/firmware/bcm_ap6181/nvram_ap6181.txt iface_name=wlan0 config_path=/startup/firmware/bcm_ap6181/config.txt PAX_INT_GPIO=48
  111. if property:ro.fac.wifi=04 insmod /startup/modules/bcmdhd.ko firmware_path=/startup/firmware/bcm_ap6181/fw_bcm43438a0.bin nvram_path=/startup/firmware/bcm_ap6181/nvram_ap6212.txt iface_name=wlan0 config_path=/startup/firmware/bcm_ap6181/config.txt PAX_INT_GPIO=48
  112. on boot
  113. if property:ro.fac.wifi!= start wpa_supplicant
  114. service servicemanager /usr/bin/servicemanager
  115. class core
  116. user root
  117. group root
  118. critical
  119. onrestart restart systemservice
  120. onrestart restart ipservice
  121. service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant_ap6181 -Dnl80211 -iwlan0 -c /startup/wpa_supplicant_ap6181.conf
  122. disabled
  123. user root
  124. group root
  125. service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
  126. disabled
  127. user root
  128. group root
  129. service bsa_server /data/opt/bin/bsa_server -lpm -d /dev/ttybt -p const -u /tmp/ -k /data/var/bluetooth/ap6212_ble_local_keys
  130. disabled
  131. user root
  132. group root
  133. service ipservice /usr/bin/ipservice
  134. disabled
  135. user root
  136. group root
  137. service pedd /usr/bin/pedd
  138. user root
  139. group root
  140. service modemd /usr/bin/modemd
  141. disabled
  142. user root
  143. group root
  144. service keyman /usr/bin/keyman
  145. disabled
  146. user root
  147. group root
  148. service xcb /usr/bin/xcbd
  149. disabled
  150. user MAINAPP
  151. group MAINAPP
  152. service crashd /usr/bin/crashd
  153. user MAINAPP
  154. group MAINAPP
  155. service systemservice /usr/bin/systemservice
  156. user root
  157. group root
  158. on property:persist.sys.ipservice.enable=1
  159. start ipservice
  160. on property:persist.sys.ipservice.enable=0
  161. stop ipservice
  162. on property:persist.sys.modemd.enable=1
  163. start modemd
  164. on property:persist.sys.modemd.enable=0
  165. stop modemd
  166. on property:persist.sys.xcb.enable=1
  167. start xcb
  168. on property:persist.sys.xcb.enable=0
  169. stop xcb
  170. on property:rt.app.bsa_server.enable=1
  171. start bsa_server
  172. on property:rt.app.bsa_server.enable=0
  173. stop bsa_server