adb快速调试驱动常用命令
2017-08-14 20:07
344 查看
adb root 获取root权限
adb shell busybox mount –o rw,remount /misc 挂载misc分区
adb push xxx.ko /misc/modules push进小机
adb shell sync 确保写到flash中
adb shell rmmod xxx 卸载原驱动
adb shell insmod /misc/modules/xxx.ko 重新加载驱动
如果嫌这样输入命令太慢了,可以写一个windows下的批处理脚本。
adbauto.bat :内容如下:
@echo off
echo %1
adb root
abd shell busybox mount -o rw,remount /misc
adb push %1.ko /misc/modules
adb shell sync
adb shell rmmod %1
adb shell insmod /misc/modules/%1.ko
用法: adbauto.bat test
假设驱动名叫test。
adb shell busybox mount –o rw,remount /misc 挂载misc分区
adb push xxx.ko /misc/modules push进小机
adb shell sync 确保写到flash中
adb shell rmmod xxx 卸载原驱动
adb shell insmod /misc/modules/xxx.ko 重新加载驱动
如果嫌这样输入命令太慢了,可以写一个windows下的批处理脚本。
adbauto.bat :内容如下:
@echo off
echo %1
adb root
abd shell busybox mount -o rw,remount /misc
adb push %1.ko /misc/modules
adb shell sync
adb shell rmmod %1
adb shell insmod /misc/modules/%1.ko
用法: adbauto.bat test
假设驱动名叫test。
相关文章推荐
- 调试tp驱动常用的adb命令
- 驱动开发调试-adb常用命令
- Android系统adb调试命令及常用抓log方法
- 常用的android adb 调试命令
- ADB常用的命令以及展讯平台调试小技巧
- ADB调试常用命令
- Android系统adb调试命令及常用抓log方法
- 常用adb调试命令
- Android adb 内存调试常用命令
- adb 安桌调试桥的常用命令
- Android adb的使用及Android系统常用调试命令
- Android系统adb调试命令及常用抓log方法
- Android 调试桥(adb)常用命令详解(转)
- 关于在adb调试过程中常用的用法及adb命令
- <Android> 常用ADB调试命令
- adb logcat调试中常用的命令介绍
- adb logcat调试中常用的命令介绍
- 工程调试过程中常用的adb命令
- adb 常用命令使用+adb 无线调试
- ADB 常用命令