ADB命令-Kernel-Debug

    1. adb shell mount -t debugfs /debug /sys/kernel/debug 挂载debug文件系统,重启后失效
    1. adb shell umount /sys/kernel/debug 卸载debug文件系统
    1. adb shell cat /sys/kernel/debug/gpio
    1. adb shell cat d/gpio 是debug/gpio的简写:查看gpio状态
    1. adb shell cat d/pinctrl/f000000.pinctrl/pinmux-functions 查询单个功能对应的所有引脚
    1. adb shell cat d/pinctrl/f000000.pinctrl/pinmux-pins 查询引脚对应的功能
    1. adb shell cat /sys/kernel/debug/pinctrl/pinctrl-rockchip-pinctrl/pinmux-pins RK平台查看gpio pin配置
    1. adb shell cat d/regulator/16500000.rsc:drv@2:rpmh-regulator-ldob1-pm_humu_l1/consumers 查看ldo1的使用者
    1. adb shell cat d/regulator/16500000.rsc:drv@2:rpmh-regulator-ldob1-pm_humu_l1/voltage 查看ldo2输出电压
    1. adb shell cat d/regulator/16500000.rsc:drv@2:rpmh-regulator-ldob1-pm_humu_l1/enable 查看ldo1是否使能
    1. adb shell cat d/pwm 查看pwm
    1. adb shell cat /proc/interrupts 查看中断信息
    1. adb shell cat /sys/kernel/debug/lpm_stats/stats 高通平台查看系统休眠状态
    1. adb shell cat sys/kernel/debug/wakeup_sources 查看系统唤醒源
    1. adb shell cat /sys/power/state 查看内核系统休眠状态
posted @ 2026-01-24 18:13  RichardHuang1  阅读(3)  评论(0)    收藏  举报