Guest User

Untitled

a guest
Jun 3rd, 2017
1,523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. 2.5 Commercial release configurations
  2. Some features are intended for use only during the development and debugging stages. These features must be
  3. disabled prior to commercial release to improve performance and user experience.
  4. Disabling kernel debug feature to optimize HLOS performance
  5. By default, the kernel configuration file includes many settings that are useful during the development and
  6. debugging phase but may affect performance.
  7. To disable the default kernel debugging settings, use LINUX/android/kernel/arch/arm/configs/msm8226-
  8. perf_defconfig instead of msm8226_defconfig.
  9. Enabling Subsystem Restart (SSR)
  10. When a subsystem (mode, wifi, video core, etc.) crashes, the subsystem can be configured to automatically notify
  11. the AP. The AP then restarts the applicable subsystem. This provides a better user experience.
  12. 1. To enable subsystem restart prior to commercial release, open the
  13. android/device/qcom/msmXXXX/system.prop file.
  14. 2. Modify the persist.sys.ssr.restart_level property as follows:
  15. persist.sys.ssr.restart_level=modem,wcnss,adsp,venus or 1
  16. This enables subsystem restart for modem, wifi, adsp, and video subsystems. This is the recommended setting
  17. for commercial release.
  18. During engineering development, this property should be set to 1 as shown below. This enables subsystem panic
  19. which is useful for engineering releases.
  20. persist.sys.ssr.restart_level=1
  21. Subsystem panic means that when each subsystem encounters a problem which triggers a reset, the AP will catch
  22. this event and will call kernel panic. As a result, the device can enter download mode to capture ramdump.
  23. Disabling Download Mode
  24. During development and debugging, Download mode is used to get memory dump for crash analysis. For a
  25. production device, Download mode is not needed since the device should just reboot.
  26. 80-NP616-2 A
  27. 16
  28. Confidential and Proprietary – Qualcomm Technologies, Inc.
  29. MAY CONTAIN U.S. AND INTERNATIONAL EXPORT CONTROLLED INFORMATIONSoftware Customization Guidelines
  30. Use one of the following methods to disable download mode:
  31. Modify the arch/arm/mach-msm/restart.c file as follows:
  32. static int download_mode = 1;
  33. change 1 -> 0
  34. Modifying the download_mode value is the preferred method because you have the ability to dynamically
  35. obtain a memory dump for a launched phone. Download mode can be enabled from the shell:
  36. echo 1 > /sys/module/restart/parameters/download_mode
  37. Remove CONFIG_MSM_DLOAD_MODE=y from
  38. LINUX/android/kernel/arch/arm/configs/msm8226_defconfig
  39. Using this method, Download mode is completely disabled. It cannot be enabled dynamically so you will not
  40. be able to switch to Download mode for image programming.
  41. If needed, Firehose can be used for image programming. QFIL (QPST 2.7 Build 416 or later) supports Firehose.
  42. QFIL uses adb reboot edl to switch to emergency download mode.
Advertisement
Add Comment
Please, Sign In to add comment