init.S900_M08_P05_WCDMA_MU509.rc 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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_M08_P05_WCDMA_MU509.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 "Prolin 21.301.110.100.101"
  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_bq24103.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_tda8026.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. #switch wifi power.NOTE¡êothis position must before the WIFI driver and after the PUM driver!
  43. write /sys/devices/platform/misc/wifi/power 1
  44. #wifi
  45. if property:ro.fac.wifi=01 insmod /startup/modules/rsi_client.ko
  46. if property:ro.fac.wifi=01 insmod /startup/modules/rsi_master.ko firmware_path=/startup/firmware/redpine/ sdio_clock=20 driver_mode=1 eeprom_address_type=0 txiq_feature=0
  47. if property:ro.fac.wifi=RS9110-N-11-02 insmod /startup/modules/rsi_client.ko
  48. if property:ro.fac.wifi=RS9110-N-11-02 insmod /startup/modules/rsi_master.ko firmware_path=/startup/firmware/redpine/ sdio_clock=20 driver_mode=1 eeprom_address_type=0 txiq_feature=0
  49. #log server driver
  50. insmod /startup/modules/logger.ko
  51. #printer driver
  52. if property:ro.fac.printer=LTPJ245G insmod /startup/modules/sii_printer.ko
  53. if property:ro.fac.printer=PRT-48F insmod /startup/modules/prt_printer.ko
  54. chmod 666 /sys/power/state
  55. chmod 666 /sys/class/backlight/pwm-backlight/brightness
  56. chmod 666 /sys/devices/platform/keypad/backlight_on
  57. chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
  58. chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
  59. chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
  60. chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
  61. chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
  62. chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
  63. chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
  64. chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
  65. chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
  66. chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
  67. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
  68. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
  69. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
  70. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
  71. chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
  72. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
  73. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
  74. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
  75. #time of back light auto active, unit:Second
  76. setprop persist.sys.backlighttime 60
  77. setprop persist.sys.sleeptime 0
  78. setprop persist.sys.sleepwaittime 1
  79. # usb ethernet driver
  80. insmod /startup/modules/asix.ko
  81. # create some symlinks
  82. if property:ro.fac.radio!= symlink /dev/ttyAMA1 /dev/ttywl
  83. symlink /dev/input/event0 /dev/keypad
  84. symlink /dev/input/event1 /dev/keypad_ped
  85. symlink /dev/input/event2 /dev/tp
  86. symlink /dev/input/event3 /dev/tp_ped
  87. symlink /dev/graphics/fb0 /dev/fb
  88. symlink /dev/graphics/fb1 /dev/fb_ped
  89. on fs
  90. export TSLIB_CONSOLEDEVICE none
  91. export TSLIB_FBDEVICE /dev/fb
  92. export TSLIB_TSDEVICE /dev/tp
  93. export TSLIB_CALIBFILE /etc/ts/pointercal
  94. export TSLIB_CONFFILE /etc/ts/ts.conf
  95. export TSLIB_PLUGINDIR /usr/lib/ts
  96. on post-fs
  97. #LCD driver
  98. symlink /startup/firmware/lcd_240x320_r90.rle /startup/firmware/lcd.watermark
  99. write /sys/class/backlight/pwm-backlight/brightness 0
  100. insmod /startup/modules/lcd_fb.ko
  101. insmod /startup/modules/lcd_hw_ctrl.ko
  102. if property:ro.fac.videocard=TM035KBH08-36 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
  103. if property:ro.fac.videocard=08 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
  104. on boot
  105. if property:ro.fac.wifi!= start wpa_supplicant
  106. service servicemanager /usr/bin/servicemanager
  107. class core
  108. user root
  109. group root
  110. critical
  111. onrestart restart systemservice
  112. onrestart restart ipservice
  113. service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant -iwlan0 -Drsi -c /startup/wifi_settings.cfg
  114. disabled
  115. user root
  116. group root
  117. service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
  118. disabled
  119. user root
  120. group root
  121. service ipservice /usr/bin/ipservice
  122. disabled
  123. user root
  124. group root
  125. service pedd /usr/bin/pedd
  126. user root
  127. group root
  128. service modemd /usr/bin/modemd
  129. disabled
  130. user root
  131. group root
  132. service keyman /usr/bin/keyman
  133. disabled
  134. user root
  135. group root
  136. service xcb /usr/bin/xcbd
  137. disabled
  138. user MAINAPP
  139. group MAINAPP
  140. service crashd /usr/bin/crashd
  141. user MAINAPP
  142. group MAINAPP
  143. service systemservice /usr/bin/systemservice
  144. user root
  145. group root
  146. on property:persist.sys.ipservice.enable=1
  147. start ipservice
  148. on property:persist.sys.ipservice.enable=0
  149. stop ipservice
  150. on property:persist.sys.modemd.enable=1
  151. start modemd
  152. on property:persist.sys.modemd.enable=0
  153. stop modemd
  154. on property:persist.sys.xcb.enable=1
  155. start xcb
  156. on property:persist.sys.xcb.enable=0
  157. stop xcb