init.S800_M08_P05_GPRS_MG323.rc 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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/S800_M08_P05_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. insmod /startup/modules/pmu_dummy.ko
  19. insmod /startup/modules/misc.ko
  20. insmod /startup/modules/input_base.ko power_key=223 press_time=2
  21. insmod /startup/modules/keypad_matrix.ko
  22. #power on gprs
  23. if property:ro.fac.radio!= write /sys/devices/platform/misc/gprs/cmd 0
  24. #card drivers (sci msr pcd)
  25. insmod /startup/modules/sci_bcm5892_tda8026.ko
  26. insmod /startup/modules/msr.ko
  27. insmod /startup/modules/pcd_base.ko
  28. insmod /startup/modules/pcd_rc663.ko
  29. #security drivers (bbl, sec, verify)
  30. insmod /startup/modules/bcm5892_bbl.ko
  31. insmod /startup/modules/bcm589x-sec.ko
  32. insmod /startup/modules/verify.ko
  33. #sound driver
  34. if property:ro.fac.audiocard=CS4344-CZZR insmod /startup/modules/bcm589x_i2s.ko
  35. #log server driver
  36. insmod /startup/modules/logger.ko
  37. #printer driver
  38. if property:ro.fac.printer=LTPJ245G insmod /startup/modules/sii_printer.ko
  39. if property:ro.fac.printer=PRT-48F insmod /startup/modules/prt_printer.ko
  40. chmod 666 /sys/power/state
  41. chmod 666 /sys/class/backlight/pwm-backlight/brightness
  42. chmod 666 /sys/devices/platform/keypad/backlight_on
  43. chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
  44. chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
  45. chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
  46. chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
  47. chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
  48. chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
  49. chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
  50. chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
  51. chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
  52. chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
  53. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
  54. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
  55. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
  56. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
  57. chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
  58. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
  59. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
  60. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
  61. #time of back light auto active, unit:Second
  62. setprop persist.sys.backlighttime 60
  63. setprop persist.sys.sleeptime 0
  64. setprop persist.sys.sleepwaittime 1
  65. # usb ethernet driver
  66. insmod /startup/modules/asix.ko
  67. # create some symlinks
  68. if property:ro.fac.modem!= symlink /dev/ttyAMA0 /dev/ttymodem
  69. if property:ro.fac.radio!= symlink /dev/ttyAMA1 /dev/ttywl
  70. symlink /dev/input/event0 /dev/keypad
  71. symlink /dev/input/event1 /dev/keypad_ped
  72. symlink /dev/graphics/fb0 /dev/fb
  73. symlink /dev/graphics/fb1 /dev/fb_ped
  74. on post-fs
  75. #LCD driver
  76. symlink /startup/firmware/lcd_320x240_r90.rle /startup/firmware/lcd.watermark
  77. write /sys/class/backlight/pwm-backlight/brightness 0
  78. insmod /startup/modules/lcd_fb.ko
  79. insmod /startup/modules/lcd_hw_ctrl.ko
  80. if property:ro.fac.videocard=S90357-DT028QV insmod /startup/modules/lcd_panel_S90357_DT028QV.ko
  81. if property:ro.fac.videocard=07 insmod /startup/modules/lcd_panel_S90357_DT028QV.ko
  82. if property:ro.fac.videocard=21 insmod /startup/modules/lcd_panel_TM028HDHG54-00.ko
  83. service servicemanager /usr/bin/servicemanager
  84. class core
  85. user root
  86. group root
  87. critical
  88. onrestart restart systemservice
  89. onrestart restart ipservice
  90. service ipservice /usr/bin/ipservice
  91. disabled
  92. user root
  93. group root
  94. service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
  95. disabled
  96. user root
  97. group root
  98. service pedd /usr/bin/pedd
  99. user root
  100. group root
  101. service modemd /usr/bin/modemd
  102. disabled
  103. user root
  104. group root
  105. service keyman /usr/bin/keyman
  106. disabled
  107. user root
  108. group root
  109. service xcb /usr/bin/xcbd
  110. disabled
  111. user MAINAPP
  112. group MAINAPP
  113. service crashd /usr/bin/crashd
  114. user MAINAPP
  115. group MAINAPP
  116. service systemservice /usr/bin/systemservice
  117. user root
  118. group root
  119. on property:persist.sys.ipservice.enable=1
  120. start ipservice
  121. on property:persist.sys.ipservice.enable=0
  122. stop ipservice
  123. on property:persist.sys.modemd.enable=1
  124. start modemd
  125. on property:persist.sys.modemd.enable=0
  126. stop modemd
  127. on property:persist.sys.xcb.enable=1
  128. start xcb
  129. on property:persist.sys.xcb.enable=0
  130. stop xcb