init.D200_M11_P11_GPRS.rc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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/D200_M11_P11_GPRS.ko
  7. insmod /startup/modules/ioconfig.ko
  8. insmod /startup/modules/pm_bcm5892.ko
  9. write /sys/class/backlight/pwm-backlight/brightness 255
  10. setprop ro.security_version 13.03.00
  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. #base drivers
  17. insmod /startup/modules/misc.ko
  18. #enable i2c1 adapter for pmu
  19. write /sys/devices/:amba:i2c1/enabled 1
  20. insmod /startup/modules/pmu_rn5t614x.ko
  21. #i2c-GPIO driver for touch key
  22. insmod /startup/modules/i2c-gpio.ko
  23. insmod /startup/modules/input_base.ko power_key=116 press_time=2
  24. #touch_key driver
  25. insmod /startup/modules/touch_key_cy8c20436a.ko
  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_as3911.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. #log server driver
  36. insmod /startup/modules/logger.ko
  37. chmod 666 /sys/power/state
  38. chmod 666 /sys/class/backlight/pwm-backlight/brightness
  39. chmod 666 /sys/devices/platform/keypad/backlight_on
  40. chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
  41. chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
  42. chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
  43. chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
  44. chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
  45. chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
  46. chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
  47. chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
  48. chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
  49. chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
  50. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
  51. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
  52. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
  53. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
  54. chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
  55. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
  56. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
  57. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
  58. #key_value of back_light
  59. setprop ro.backlightkey 116
  60. #time of back light auto active, unit:Second
  61. setprop persist.sys.backlighttime 60
  62. setprop persist.sys.sleeptime 0
  63. setprop persist.sys.sleepwaittime 1
  64. # usb et/hernet driver
  65. insmod /startup/modules/asix.ko
  66. # create some symlinks
  67. if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
  68. symlink /dev/input/event0 /dev/keypad
  69. symlink /dev/input/event1 /dev/keypad_ped
  70. symlink /dev/graphics/fb0 /dev/fb
  71. symlink /dev/graphics/fb1 /dev/fb_ped
  72. on post-fs
  73. #LCD driver
  74. symlink /startup/firmware/lcd_320x240.rle /startup/firmware/lcd.watermark
  75. write /sys/class/backlight/pwm-backlight/brightness 0
  76. insmod /startup/modules/lcd_fb.ko
  77. insmod /startup/modules/lcd_hw_smc.ko
  78. if property:ro.fac.videocard=TM023KDZ32 insmod /startup/modules/lcd_panel_TM023KDZ32.ko
  79. if property:ro.fac.videocard=LCD_01 insmod /startup/modules/lcd_panel_LCD_01.ko
  80. if property:ro.fac.videocard=01 insmod /startup/modules/lcd_panel_LCD_01.ko
  81. service servicemanager /usr/bin/servicemanager
  82. class core
  83. user root
  84. group root
  85. critical
  86. onrestart restart systemservice
  87. onrestart restart ipservice
  88. service ipservice /usr/bin/ipservice
  89. disabled
  90. user root
  91. group root
  92. service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
  93. disabled
  94. user root
  95. group root
  96. service pedd /usr/bin/pedd
  97. user root
  98. group root
  99. service keyman /usr/bin/keyman
  100. disabled
  101. user root
  102. group root
  103. service xcb /usr/bin/xcbd
  104. disabled
  105. user MAINAPP
  106. group MAINAPP
  107. service crashd /usr/bin/crashd
  108. user MAINAPP
  109. group MAINAPP
  110. service systemservice /usr/bin/systemservice
  111. user root
  112. group root
  113. on property:persist.sys.ipservice.enable=1
  114. start ipservice
  115. on property:persist.sys.ipservice.enable=0
  116. stop ipservice
  117. on property:persist.sys.xcb.enable=1
  118. start xcb
  119. on property:persist.sys.xcb.enable=0
  120. stop xcb