init.D200_M22_P21_WIFI.rc 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. on early-boot
  2. chmod 755 /usr/bin/wpa_supplicant
  3. on early-init
  4. insmod /startup/modules/bcm5892-rtc.ko
  5. start ueventd
  6. on init
  7. insmod /startup/modules/devices_base.ko
  8. insmod /startup/modules/pm_bcm5892.ko
  9. insmod /startup/modules/D200_M22_P21_WIFI.ko
  10. insmod /startup/modules/ioconfig.ko
  11. write /sys/class/backlight/pwm-backlight/brightness 255
  12. setprop ro.security_version 13.03.00
  13. #USB support
  14. insmod /startup/modules/bcm589x-dwccom.ko
  15. insmod /startup/modules/bcm589x-otg.ko
  16. insmod /startup/modules/tty-devices.ko
  17. insmod /startup/modules/tty-host.ko
  18. #base drivers
  19. insmod /startup/modules/misc.ko
  20. #enable i2c1 adapter for pmu
  21. write /sys/devices/:amba:i2c1/enabled 1
  22. insmod /startup/modules/pmu_rn5t614x.ko
  23. #i2c-GPIO driver for touch key
  24. insmod /startup/modules/i2c-gpio.ko
  25. insmod /startup/modules/input_base.ko power_key=116 press_time=2
  26. #touch_key driver
  27. insmod /startup/modules/touch_key_cy8c20436a.ko
  28. #card drivers (sci msr pcd)
  29. insmod /startup/modules/sci_bcm5892_ncn8025.ko
  30. insmod /startup/modules/msr.ko
  31. insmod /startup/modules/pcd_base.ko
  32. insmod /startup/modules/pcd_rc663.ko
  33. #security drivers (bbl, sec, verify)
  34. insmod /startup/modules/bcm5892_bbl.ko
  35. insmod /startup/modules/bcm589x-sec.ko
  36. insmod /startup/modules/verify.ko
  37. # bluetooth MFI for apple
  38. if property:ro.fac.bt=WLT2564 insmod /startup/modules/mfi_encrypt.ko
  39. if property:ro.fac.bt=01 insmod /startup/modules/mfi_encrypt.ko
  40. #log server driver
  41. insmod /startup/modules/logger.ko
  42. #switch wifi power.NOTE¡êothis position must before the WIFI driver and after the PUM driver!
  43. write /sys/devices/platform/misc/wifi/power 1
  44. #wifi
  45. if property:ro.fac.wifi!= insmod /startup/modules/rsi_client.ko
  46. 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
  47. chmod 666 /sys/power/state
  48. chmod 666 /sys/class/backlight/pwm-backlight/brightness
  49. chmod 666 /sys/devices/platform/keypad/backlight_on
  50. chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
  51. chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
  52. chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
  53. chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
  54. chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
  55. chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
  56. chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
  57. chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
  58. chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
  59. chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
  60. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
  61. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
  62. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
  63. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
  64. chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
  65. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
  66. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
  67. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
  68. #key_value of back_light
  69. setprop ro.backlightkey 116
  70. #time of back light auto active, unit:Second
  71. setprop persist.sys.backlighttime 60
  72. setprop persist.sys.sleeptime 0
  73. setprop persist.sys.sleepwaittime 1
  74. # usb et/hernet driver
  75. insmod /startup/modules/asix.ko
  76. # create some symlinks
  77. if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
  78. symlink /dev/input/event0 /dev/keypad
  79. symlink /dev/input/event1 /dev/keypad_ped
  80. symlink /dev/graphics/fb0 /dev/fb
  81. symlink /dev/graphics/fb1 /dev/fb_ped
  82. on post-fs
  83. #LCD driver
  84. symlink /startup/firmware/lcd_320x240.rle /startup/firmware/lcd.watermark
  85. write /sys/class/backlight/pwm-backlight/brightness 0
  86. insmod /startup/modules/lcd_fb.ko
  87. insmod /startup/modules/lcd_hw_smc.ko
  88. if property:ro.fac.videocard=TM023KDZ32 insmod /startup/modules/lcd_panel_TM023KDZ32.ko
  89. if property:ro.fac.videocard=LCD_01 insmod /startup/modules/lcd_panel_LCD_01.ko
  90. if property:ro.fac.videocard=01 insmod /startup/modules/lcd_panel_LCD_01.ko
  91. on boot
  92. if property:ro.fac.wifi!= start wpa_supplicant
  93. service servicemanager /usr/bin/servicemanager
  94. class core
  95. user root
  96. group root
  97. critical
  98. onrestart restart systemservice
  99. onrestart restart ipservice
  100. service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant -iwlan0 -Drsi -c /startup/wifi_settings.cfg
  101. disabled
  102. user root
  103. group root
  104. service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
  105. disabled
  106. user root
  107. group root
  108. service ipservice /usr/bin/ipservice
  109. disabled
  110. user root
  111. group root
  112. service pedd /usr/bin/pedd
  113. user root
  114. group root
  115. service keyman /usr/bin/keyman
  116. disabled
  117. user root
  118. group root
  119. service xcb /usr/bin/xcbd
  120. disabled
  121. user MAINAPP
  122. group MAINAPP
  123. service crashd /usr/bin/crashd
  124. user MAINAPP
  125. group MAINAPP
  126. service systemservice /usr/bin/systemservice
  127. user root
  128. group root
  129. on property:persist.sys.ipservice.enable=1
  130. start ipservice
  131. on property:persist.sys.ipservice.enable=0
  132. stop ipservice
  133. on property:persist.sys.xcb.enable=1
  134. start xcb
  135. on property:persist.sys.xcb.enable=0
  136. stop xcb