init.S900_M05_P04_GPRS_MG323.rc 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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_M05_P04_GPRS_MG323.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_bq24103.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. #card drivers (sci msr pcd)
  27. insmod /startup/modules/sci_bcm5892_tda8026.ko
  28. insmod /startup/modules/msr.ko
  29. insmod /startup/modules/pcd_base.ko
  30. insmod /startup/modules/pcd_rc663.ko
  31. #security drivers (bbl, sec, verify)
  32. insmod /startup/modules/bcm5892_bbl.ko
  33. insmod /startup/modules/bcm589x-sec.ko
  34. insmod /startup/modules/verify.ko
  35. #sound driver
  36. if property:ro.fac.audiocard=CS4344-CZZR insmod /startup/modules/bcm589x_i2s.ko
  37. #touchscreen driver
  38. insmod /startup/modules/ads7846.ko
  39. #log server driver
  40. insmod /startup/modules/logger.ko
  41. #printer driver
  42. if property:ro.fac.printer=LTPJ245G insmod /startup/modules/sii_printer.ko
  43. if property:ro.fac.printer=PRT-48F insmod /startup/modules/prt_printer.ko
  44. chmod 666 /sys/power/state
  45. chmod 666 /sys/class/backlight/pwm-backlight/brightness
  46. chmod 666 /sys/devices/platform/keypad/backlight_on
  47. chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
  48. chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
  49. chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
  50. chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
  51. chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
  52. chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
  53. chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
  54. chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
  55. chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
  56. chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
  57. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
  58. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
  59. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
  60. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
  61. chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
  62. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
  63. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
  64. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
  65. #time of back light auto active, unit:Second
  66. setprop persist.sys.backlighttime 60
  67. setprop persist.sys.sleeptime 0
  68. setprop persist.sys.sleepwaittime 1
  69. # usb ethernet driver
  70. insmod /startup/modules/asix.ko
  71. # create some symlinks
  72. if property:ro.fac.radio!= symlink /dev/ttyAMA1 /dev/ttywl
  73. symlink /dev/input/event0 /dev/keypad
  74. symlink /dev/input/event1 /dev/keypad_ped
  75. symlink /dev/input/event2 /dev/tp
  76. symlink /dev/input/event3 /dev/tp_ped
  77. symlink /dev/graphics/fb0 /dev/fb
  78. symlink /dev/graphics/fb1 /dev/fb_ped
  79. symlink /dev/ttyAMA0 /dev/tty_barcode
  80. on fs
  81. export TSLIB_CONSOLEDEVICE none
  82. export TSLIB_FBDEVICE /dev/fb
  83. export TSLIB_TSDEVICE /dev/tp
  84. export TSLIB_CALIBFILE /etc/ts/pointercal
  85. export TSLIB_CONFFILE /etc/ts/ts.conf
  86. export TSLIB_PLUGINDIR /usr/lib/ts
  87. on post-fs
  88. #LCD driver
  89. symlink /startup/firmware/lcd_240x320_r90.rle /startup/firmware/lcd.watermark
  90. write /sys/class/backlight/pwm-backlight/brightness 0
  91. insmod /startup/modules/lcd_fb.ko
  92. insmod /startup/modules/lcd_hw_ctrl.ko
  93. if property:ro.fac.videocard=TM035KBH08-36 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
  94. if property:ro.fac.videocard=08 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
  95. service servicemanager /usr/bin/servicemanager
  96. class core
  97. user root
  98. group root
  99. critical
  100. onrestart restart systemservice
  101. onrestart restart ipservice
  102. service ipservice /usr/bin/ipservice
  103. disabled
  104. user root
  105. group root
  106. service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
  107. disabled
  108. user root
  109. group root
  110. service pedd /usr/bin/pedd
  111. user root
  112. group root
  113. service modemd /usr/bin/modemd
  114. disabled
  115. user root
  116. group root
  117. service keyman /usr/bin/keyman
  118. disabled
  119. user root
  120. group root
  121. service xcb /usr/bin/xcbd
  122. disabled
  123. user MAINAPP
  124. group MAINAPP
  125. service crashd /usr/bin/crashd
  126. user MAINAPP
  127. group MAINAPP
  128. service systemservice /usr/bin/systemservice
  129. user root
  130. group root
  131. on property:persist.sys.ipservice.enable=1
  132. start ipservice
  133. on property:persist.sys.ipservice.enable=0
  134. stop ipservice
  135. on property:persist.sys.modemd.enable=1
  136. start modemd
  137. on property:persist.sys.modemd.enable=0
  138. stop modemd
  139. on property:persist.sys.xcb.enable=1
  140. start xcb
  141. on property:persist.sys.xcb.enable=0
  142. stop xcb