init.S920_M08_P05_SAM_WCDMA_MU509.rc 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. #For S920_M08_P05_SAM_WCDMA_MU509 (the same with S920_M06_P05_SAM_WCDMA_MU509)
  2. on early-init
  3. insmod /startup/modules/bcm5892-rtc.ko
  4. start ueventd
  5. on init
  6. insmod /startup/modules/devices_base.ko
  7. insmod /startup/modules/S920_M06_P05_SAM_WCDMA_MU509.ko
  8. insmod /startup/modules/ioconfig.ko
  9. write /sys/class/backlight/pwm-backlight/brightness 100
  10. insmod /startup/modules/pm_bcm5892.ko
  11. setprop ro.security_version 14.00.04
  12. #USB support
  13. insmod /startup/modules/bcm589x-dwccom.ko
  14. insmod /startup/modules/bcm589x-otg.ko
  15. insmod /startup/modules/tty-devices.ko
  16. insmod /startup/modules/tty-host.ko
  17. insmod /startup/modules/bcm589x-usb-host.ko
  18. #base drivers
  19. # battery, must before than power on gprs
  20. insmod /startup/modules/bm_mp2625gl.ko
  21. insmod /startup/modules/pmu_dummy.ko
  22. insmod /startup/modules/misc.ko
  23. insmod /startup/modules/input_base.ko
  24. insmod /startup/modules/keypad_matrix.ko
  25. #power on gprs
  26. if property:ro.fac.radio!= write /sys/devices/platform/misc/gprs/cmd 0
  27. #card drivers (sci msr pcd)
  28. insmod /startup/modules/sci_bcm5892_ncn8025.ko
  29. insmod /startup/modules/msr.ko
  30. insmod /startup/modules/pcd_base.ko
  31. insmod /startup/modules/pcd_as3911.ko
  32. #security drivers (bbl, sec, verify)
  33. insmod /startup/modules/bcm5892_bbl.ko
  34. insmod /startup/modules/bcm589x-sec.ko
  35. insmod /startup/modules/verify.ko
  36. #sound driver
  37. if property:ro.fac.audiocard=CS4344-CZZR insmod /startup/modules/bcm589x_i2s.ko
  38. if property:ro.fac.audiocard=BCM589X_DAC insmod /startup/modules/bcm589x_dac.ko
  39. #touchscreen driver
  40. write /sys/devices/:amba:i2c1/enabled 1
  41. insmod /startup/modules/synaptics_dsx.ko
  42. #log server driver
  43. insmod /startup/modules/logger.ko
  44. #switch wifi power.NOTE othis position must before the WIFI driver and after the PUM driver!
  45. # write /sys/devices/platform/misc/wifi/power 1
  46. #wifi
  47. 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=28
  48. 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=28
  49. #printer driver
  50. if property:ro.fac.printer=PT48D-HLV insmod /startup/modules/pt48d-hlv.ko
  51. if property:ro.fac.printer=02 insmod /startup/modules/pt48d-hlv.ko
  52. chmod 666 /sys/power/state
  53. chmod 666 /sys/class/backlight/pwm-backlight/brightness
  54. chmod 666 /sys/devices/platform/keypad/backlight_on
  55. chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
  56. chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
  57. chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
  58. chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
  59. chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
  60. chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
  61. chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
  62. chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
  63. chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
  64. chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
  65. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
  66. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
  67. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
  68. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
  69. chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
  70. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
  71. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
  72. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
  73. write /sys/devices/platform/keypad/buzzer_keypad_duration 150
  74. write /sys/devices/platform/keypad/buzzer_user_duration 150
  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/ttyUSB0 /dev/ttywl
  83. if property:ro.fac.radio!= symlink /dev/ttyUSB2 /dev/mux1
  84. if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
  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 post-fs
  92. #LCD driver
  93. symlink /startup/firmware/lcd_240x320_r90.rle /startup/firmware/lcd.watermark
  94. write /sys/class/backlight/pwm-backlight/brightness 0
  95. insmod /startup/modules/lcd_fb.ko
  96. insmod /startup/modules/lcd_hw_ctrl.ko
  97. if property:ro.fac.videocard=TM035KBH08-36 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
  98. if property:ro.fac.videocard=08 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
  99. if property:ro.fac.videocard=11 insmod /startup/modules/lcd_panel_H35C65_00E.ko
  100. if property:ro.fac.videocard=12 insmod /startup/modules/lcd_panel_H35C128_01N.ko
  101. if property:ro.fac.videocard=15 insmod /startup/modules/lcd_panel_H35C128_01N.ko
  102. if property:ro.fac.videocard=20 insmod /startup/modules/lcd_panel_H35C128_01N.ko
  103. on early-boot
  104. chmod 755 /usr/bin/wpa_supplicant_ap6181
  105. on boot
  106. if property:ro.fac.wifi!= start wpa_supplicant
  107. service servicemanager /usr/bin/servicemanager
  108. class core
  109. user root
  110. group root
  111. critical
  112. onrestart restart systemservice
  113. onrestart restart ipservice
  114. service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant_ap6181 -Dnl80211 -iwlan0 -c /startup/wpa_supplicant_ap6181.conf
  115. disabled
  116. user root
  117. group root
  118. service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
  119. disabled
  120. user root
  121. group root
  122. service ipservice /usr/bin/ipservice
  123. disabled
  124. user root
  125. group root
  126. service pedd /usr/bin/pedd
  127. user root
  128. group root
  129. service modemd /usr/bin/modemd
  130. disabled
  131. user root
  132. group root
  133. service keyman /usr/bin/keyman
  134. disabled
  135. user root
  136. group root
  137. service xcb /usr/bin/xcbd
  138. disabled
  139. user MAINAPP
  140. group MAINAPP
  141. service crashd /usr/bin/crashd
  142. user MAINAPP
  143. group MAINAPP
  144. service systemservice /usr/bin/systemservice
  145. user root
  146. group root
  147. on property:persist.sys.ipservice.enable=1
  148. start ipservice
  149. on property:persist.sys.ipservice.enable=0
  150. stop ipservice
  151. on property:persist.sys.modemd.enable=1
  152. start modemd
  153. on property:persist.sys.modemd.enable=0
  154. stop modemd
  155. on property:persist.sys.xcb.enable=1
  156. start xcb
  157. on property:persist.sys.xcb.enable=0
  158. stop xcb