init.S900_ECR_M01_P03_G510.rc 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. on early-boot
  2. chmod 755 /usr/bin/wpa_supplicant
  3. on early-init
  4. insmod /startup/modules/bcm5892-rtc.ko
  5. start ueventd
  6. on init
  7. insmod /startup/modules/devices_base.ko
  8. insmod /startup/modules/S900_ECR_M01_P03_G510.ko
  9. insmod /startup/modules/ioconfig.ko
  10. write /sys/class/backlight/pwm-backlight/brightness 100
  11. insmod /startup/modules/pm_bcm5892.ko
  12. setprop ro.security_version 14.00.00
  13. #USB support
  14. insmod /startup/modules/bcm589x-dwccom.ko
  15. insmod /startup/modules/bcm589x-otg.ko
  16. insmod /startup/modules/tty-devices.ko
  17. insmod /startup/modules/tty-host.ko
  18. #insmod /startup/modules/bcm589x-usb-host.ko
  19. #base drivers
  20. # battery, must before than power on gprs
  21. insmod /startup/modules/bm_bq24133.ko
  22. insmod /startup/modules/pmu_dummy.ko
  23. insmod /startup/modules/misc.ko
  24. insmod /startup/modules/input_base.ko power_key=223 press_time=2
  25. insmod /startup/modules/keypad_matrix.ko
  26. #power on gprs
  27. if property:ro.fac.radio!= write /sys/devices/platform/misc/gprs/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. #sound driver
  38. if property:ro.fac.audiocard=CS4344-CZZR insmod /startup/modules/bcm589x_i2s.ko
  39. if property:ro.fac.audiocard=BCM589X_DAC insmod /startup/modules/bcm589x_dac.ko
  40. #touchscreen driver
  41. insmod /startup/modules/ads7846.ko
  42. #log server driver
  43. insmod /startup/modules/logger.ko
  44. #printer driver
  45. if property:ro.fac.printer=LTPJ245G insmod /startup/modules/sii_printer.ko
  46. if property:ro.fac.printer=PRT-48F insmod /startup/modules/prt_printer.ko
  47. chmod 666 /sys/power/state
  48. chmod 666 /sys/class/backlight/pwm-backlight/brightness
  49. chmod 666 /sys/devices/platform/keypad/backlight_on
  50. chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
  51. chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
  52. chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
  53. chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
  54. chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
  55. chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
  56. chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
  57. chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
  58. chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
  59. chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
  60. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
  61. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
  62. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
  63. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
  64. chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
  65. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
  66. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
  67. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
  68. #time of back light auto active, unit:Second
  69. setprop persist.sys.backlighttime 60
  70. setprop persist.sys.sleeptime 0
  71. setprop persist.sys.sleepwaittime 1
  72. # usb ethernet driver
  73. insmod /startup/modules/asix.ko
  74. # create some symlinks
  75. if property:ro.fac.radio!= symlink /dev/ttyAMA1 /dev/ttywl
  76. symlink /dev/input/event0 /dev/keypad
  77. symlink /dev/input/event1 /dev/keypad_ped
  78. symlink /dev/input/event2 /dev/tp
  79. symlink /dev/input/event3 /dev/tp_ped
  80. symlink /dev/graphics/fb0 /dev/fb
  81. symlink /dev/graphics/fb1 /dev/fb_ped
  82. symlink /dev/ttyAMA3 /dev/tty_barcode
  83. on fs
  84. export TSLIB_CONSOLEDEVICE none
  85. export TSLIB_FBDEVICE /dev/fb
  86. export TSLIB_TSDEVICE /dev/tp
  87. export TSLIB_CALIBFILE /etc/ts/pointercal
  88. export TSLIB_CONFFILE /etc/ts/ts.conf
  89. export TSLIB_PLUGINDIR /usr/lib/ts
  90. on post-fs
  91. #LCD driver
  92. symlink /startup/firmware/lcd_240x320_r90.rle /startup/firmware/lcd.watermark
  93. write /sys/class/backlight/pwm-backlight/brightness 0
  94. insmod /startup/modules/lcd_fb.ko
  95. insmod /startup/modules/lcd_hw_ctrl.ko
  96. if property:ro.fac.videocard=TM035KBH08-36 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
  97. if property:ro.fac.videocard=08 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
  98. service servicemanager /usr/bin/servicemanager
  99. class core
  100. user root
  101. group root
  102. critical
  103. onrestart restart systemservice
  104. onrestart restart ipservice
  105. #service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant -iwlan0 -Drsi -c /startup/wifi_settings.cfg
  106. # disabled
  107. # user root
  108. # group root
  109. service ipservice /usr/bin/ipservice
  110. disabled
  111. user root
  112. group root
  113. service pedd /usr/bin/pedd
  114. user root
  115. group root
  116. service modemd /usr/bin/modemd
  117. disabled
  118. user root
  119. group root
  120. service keyman /usr/bin/keyman
  121. disabled
  122. user root
  123. group root
  124. service xcb /usr/bin/xcbd
  125. disabled
  126. user MAINAPP
  127. group MAINAPP
  128. service crashd /usr/bin/crashd
  129. user MAINAPP
  130. group MAINAPP
  131. service systemservice /usr/bin/systemservice
  132. user root
  133. group root
  134. on property:persist.sys.ipservice.enable=1
  135. start ipservice
  136. on property:persist.sys.ipservice.enable=0
  137. stop ipservice
  138. on property:persist.sys.modemd.enable=1
  139. start modemd
  140. on property:persist.sys.modemd.enable=0
  141. stop modemd
  142. on property:persist.sys.xcb.enable=1
  143. start xcb
  144. on property:persist.sys.xcb.enable=0
  145. stop xcb