force various crashes (kernel panic, wdog bark, wdog bite, secure bite, bus timeout, xpu fatal, noc

0.1 Enable download mode, if not already
     adb shell "echo 1 > /sys/module/restart/parameters/download_mode"
0.2 Enable abnormal reset, if not already and if applicable
      adb shell "echo 1 > /sys/module/restart/parameters/reset_detection "
1. Force Kernel panic 
     adb shell "echo c > /proc/sysrq-trigger"
2. Refer vendor/qcom/opensource/kernel-tests/watchdog/README
   On Target device:
     adb shell 
     cd  /data/kernel-tests/
     chmod a+x msm_watchdog_test.sh
     
./msm_watchdog_test.sh apps_wdog_bark
./msm_watchdog_test.sh apps_wdog_bite
./msm_watchdog_test.sh sec_wdog_bite
./msm_watchdog_test.sh sec_wdog_scm

3. Refer vendor/qcom/opensource/kernel-tests/bus-timeout/README
   On Target device, if applicable:
     adb shell
     cd  /data/kernel-tests/
     chmod a+x bus_timeout_test.sh
./bus_timeout_test.sh --camera-timeout
./bus_timeout_test.sh --usb-timeout
./bus_timeout_test.sh --pc-save

4. Refer vendor/qcom/opensource/kernel-tests/abnormal_reset/README.txt

   On Target device, if applicable:
     adb shell 
     cd  /data/kernel-tests/
     chmod a+x abnormal_reset_test.sh
./abnormal_reset_test.sh --pmic-software-reset
./abnormal_reset_test.sh --pmic-wdt-reset
./abnormal_reset_test.sh --power-key-reset
./abnormal_reset_test.sh --tsensor-reset

猜你喜欢

转载自blog.csdn.net/Ciellee/article/details/87634358