init.D200_M14_P13_WIFI.rc 5.1 KB

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