1.进入工程mode adb shell am start -n com.mediatek.engineermode/.EngineerMode
2.adb命令查看LED或者backlight的亮度status
cd /sys/class/leds/xxx/brightness
echo brightness_level > brightness 检查是否按照你设置的亮度显示
下面关于GPIO的debug方法,先用GPIO DEBUG命令来控制此GPIO输出高电平低电平试一下。
GPIO Debug for Kernel-3.18/Kernel-4.4
cd /sys/devices/platform/soc/1000b000.pinctrl/
PIN: [MODE] [DIR] [DOUT] [DIN] [PULL_EN] [PULL_SEL] [IES] [SMT] [DRIVE] ( [R1] [R0] ) /*R1 R0 Optional, property of special pins*/
cat mt_gpio /*show info of pins*/
常见的MTK调试命令:
1.进工程模式
adb shell am start -n com.mediatek.engineermode/.EngineerMode
2.查看gpio状态:
oTPD_DMESG("enter %s, %d\n", __func__, __LINE__);
//查看安卓系统的系统信息命令 ,相关的clj2.txt 在目录C:\Users\Administrator下
C:\Users\Administrator>adb shell getprop > clj2.txt
source build/envsetup.sh
make -j16 2>&1 | tee