init.S900_M08_P05_GPRS_MG323.rc 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. #The hardware of S900_M08_P05_GPRS_MG323 is same as S900_M07_P05_GPRS_MG323, only swap SDMA and SDMB.
  2. on early-boot
  3. chmod 755 /usr/bin/wpa_supplicant
  4. on early-init
  5. insmod /startup/modules/bcm5892-rtc.ko
  6. start ueventd
  7. on init
  8. insmod /startup/modules/devices_base.ko
  9. insmod /startup/modules/S900_M07_P05_GPRS_MG323.ko
  10. insmod /startup/modules/ioconfig.ko
  11. write /sys/class/backlight/pwm-backlight/brightness 100
  12. insmod /startup/modules/pm_bcm5892.ko
  13. setprop ro.security_version "Prolin 21.301.110.100.101"
  14. #USB support
  15. insmod /startup/modules/bcm589x-dwccom.ko
  16. insmod /startup/modules/bcm589x-otg.ko
  17. insmod /startup/modules/tty-devices.ko
  18. insmod /startup/modules/tty-host.ko
  19. #insmod /startup/modules/bcm589x-usb-host.ko
  20. #base drivers
  21. # battery, must before than power on gprs
  22. insmod /startup/modules/bm_bq24103.ko
  23. insmod /startup/modules/pmu_dummy.ko
  24. insmod /startup/modules/misc.ko
  25. insmod /startup/modules/input_base.ko power_key=223 press_time=2
  26. insmod /startup/modules/keypad_matrix.ko
  27. #power on gprs
  28. if property:ro.fac.radio!= write /sys/devices/platform/misc/gprs/cmd 0
  29. #card drivers (sci msr pcd)
  30. insmod /startup/modules/sci_bcm5892_tda8026.ko
  31. insmod /startup/modules/msr.ko
  32. insmod /startup/modules/pcd_base.ko
  33. insmod /startup/modules/pcd_rc663.ko
  34. #security drivers (bbl, sec, verify)
  35. insmod /startup/modules/bcm5892_bbl.ko
  36. insmod /startup/modules/bcm589x-sec.ko
  37. insmod /startup/modules/verify.ko
  38. #sound driver
  39. if property:ro.fac.audiocard=CS4344-CZZR insmod /startup/modules/bcm589x_i2s.ko
  40. if property:ro.fac.audiocard=BCM589X_DAC insmod /startup/modules/bcm589x_dac.ko
  41. #touchscreen driver
  42. insmod /startup/modules/ads7846.ko
  43. #switch wifi power.NOTE¡êothis position must before the WIFI driver and after the PUM driver!
  44. write /sys/devices/platform/misc/wifi/power 1
  45. #wifi
  46. if property:ro.fac.wifi!= insmod /startup/modules/rsi_client.ko
  47. if property:ro.fac.wifi!= insmod /startup/modules/rsi_master.ko firmware_path=/startup/firmware/redpine/ sdio_clock=20 driver_mode=1 eeprom_address_type=0 txiq_feature=0
  48. #log server driver
  49. insmod /startup/modules/logger.ko
  50. #printer driver
  51. if property:ro.fac.printer=LTPJ245G insmod /startup/modules/sii_printer.ko
  52. if property:ro.fac.printer=PRT-48F insmod /startup/modules/prt_printer.ko
  53. chmod 666 /sys/power/state
  54. chmod 666 /sys/class/backlight/pwm-backlight/brightness
  55. chmod 666 /sys/devices/platform/keypad/backlight_on
  56. chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
  57. chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
  58. chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
  59. chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
  60. chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
  61. chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
  62. chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
  63. chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
  64. chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
  65. chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
  66. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
  67. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
  68. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
  69. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
  70. chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
  71. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
  72. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
  73. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
  74. #time of back light auto active, unit:Second
  75. setprop persist.sys.backlighttime 60
  76. setprop persist.sys.sleeptime 0
  77. setprop persist.sys.sleepwaittime 1
  78. # usb ethernet driver
  79. insmod /startup/modules/asix.ko
  80. # create some symlinks
  81. if property:ro.fac.radio!= symlink /dev/ttyAMA1 /dev/ttywl
  82. symlink /dev/input/event0 /dev/keypad
  83. symlink /dev/input/event1 /dev/keypad_ped
  84. symlink /dev/input/event2 /dev/tp
  85. symlink /dev/input/event3 /dev/tp_ped
  86. symlink /dev/graphics/fb0 /dev/fb
  87. symlink /dev/graphics/fb1 /dev/fb_ped
  88. on fs
  89. export TSLIB_CONSOLEDEVICE none
  90. export TSLIB_FBDEVICE /dev/fb
  91. export TSLIB_TSDEVICE /dev/tp
  92. export TSLIB_CALIBFILE /etc/ts/pointercal
  93. export TSLIB_CONFFILE /etc/ts/ts.conf
  94. export TSLIB_PLUGINDIR /usr/lib/ts
  95. on post-fs
  96. #LCD driver
  97. symlink /startup/firmware/lcd_240x320_r90.rle /startup/firmware/lcd.watermark
  98. write /sys/class/backlight/pwm-backlight/brightness 0
  99. insmod /startup/modules/lcd_fb.ko
  100. insmod /startup/modules/lcd_hw_ctrl.ko
  101. if property:ro.fac.videocard=TM035KBH08-36 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
  102. if property:ro.fac.videocard=08 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
  103. on boot
  104. if property:ro.fac.wifi!= start wpa_supplicant
  105. service servicemanager /usr/bin/servicemanager
  106. class core
  107. user root
  108. group root
  109. critical
  110. onrestart restart systemservice
  111. onrestart restart ipservice
  112. service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant -iwlan0 -Drsi -c /startup/wifi_settings.cfg
  113. disabled
  114. user root
  115. group root
  116. service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
  117. disabled
  118. user root
  119. group root
  120. service ipservice /usr/bin/ipservice
  121. disabled
  122. user root
  123. group root
  124. service pedd /usr/bin/pedd
  125. user root
  126. group root
  127. service modemd /usr/bin/modemd
  128. disabled
  129. user root
  130. group root
  131. service keyman /usr/bin/keyman
  132. disabled
  133. user root
  134. group root
  135. service xcb /usr/bin/xcbd
  136. disabled
  137. user MAINAPP
  138. group MAINAPP
  139. service crashd /usr/bin/crashd
  140. user MAINAPP
  141. group MAINAPP
  142. service systemservice /usr/bin/systemservice
  143. user root
  144. group root
  145. on property:persist.sys.ipservice.enable=1
  146. start ipservice
  147. on property:persist.sys.ipservice.enable=0
  148. stop ipservice
  149. on property:persist.sys.modemd.enable=1
  150. start modemd
  151. on property:persist.sys.modemd.enable=0
  152. stop modemd
  153. on property:persist.sys.xcb.enable=1
  154. start xcb
  155. on property:persist.sys.xcb.enable=0
  156. stop xcb