android安卓 - embedded - adb工作原理介绍 + arm linux移植 + fastboot + recovery

目录

history

adb client和adbd

arm linux移植adbd

Android ADB Commands Manual

fastboot 和adb 两个不同的命令

target端, recovery命令和fastboot命令


history

Since January 2017, Google also provides the package in a separate, unbundled downloadable package with all other platform-tools, in which also the ADB and fastboot is included. 

 

adb client和adbd

一图胜万言

 

system/core/adb/OVERVIEW.txt,对整个adb模块的工作原理讲解。

https://github.com/aosp-mirror/platform_system_core/tree/master/adb

https://blog.youkuaiyun.com/yushanddddfenghailin/article/details/14519753
https://www.pianshen.com/article/6066753772/

 

arm linux移植adbd

https://github.com/chenwr2018/study_record

 

Android ADB Commands Manual

https://adbshell.com

 

fastboot 和adb 是两个不同的命令

fastboot是我们在开发板和主机之间定义的一套协议,这套协议以usb为底层传输物理层,协议规定了主机fastboot软件和开发板fastboot软件之间的信息传输规则。

fastboot是uboot中的一个命令。fastboot需要主机端的fastboot软件配合。要实现fastboot刷机,只有开发板端uboot是不行的,还需要在主机上有fastboot.exe的软件配合。

uboot的fastboot命令将开发板伪装成一个usb从设备。

主机端:fastboot.exe。fastboot协议虽然能找到但是很枯燥,所以主机端没有去分析的。
开发板端:执行fastboot命令进入fastboot模式。fastboot模式下如何响应主机发送的各种命令。

 

adb reboot bootloader,这个命令实现的是从电脑端控制手机或者设备进入bootloader模式,而fastboot正是工作在这个模式的,我们所谓的线刷实际上都是工作在bootloader模式。

一般fastboot线刷都会结合adb调试工具一起使用,先使用adb reboot bootloader进入bootloder模式,再使用fastboot工具进行刷机

target端, recovery模式和fastboot模式

recovery模式

fastboot模式,即bootloader模式

target进入recovery模式,运行recovery程序,https://blog.youkuaiyun.com/fyh2003/article/details/6982697

 

 

Android’s growth is phenomenal. In a very short time span, it has succeeded in becoming one of the top mobile platforms in the market. Clearly, the unique combination of open source licensing, aggressive go-to-market, and trendy interface is bearing fruit for Google’s Android team. Needless to say, the massive user uptake generated by Android has not gone unnoticed by handset manufacturers, mobile network operators, silicon manufacturers, and app developers. Products, apps, and devices “for,” “compatible with,” or “based on” Android seem to be coming out ever so fast. Beyond its mobile success, however, Android is also attracting the attention of yet another, unintended crowd: embedded systems developers. While a large number of embedded devices have little to no human interface, a substantial number of devices that would traditionally be considered “embedded” do have user interfaces. For a goodly number of modern machines, in addition to pure technical functionality, developers creating user-facing devices must also contend with human-computer interaction (HCI) factors. Therefore, designers must either present users with an experience they are already familiar with or risk alienating users by requiring them to learn a lesserknown or entirely new user experience. Before Android, the user interface choices available to the developers of such devices were fairly limited and limiting. Clearly, embedded developers prefer to offer users an interface they are already familiar with. Although that interface might have been window-based in the past—and hence a lot of embedded devices were based on classic window-centric, desktop-like, or desktopbased interfaces—Apple’s iOS and Google’s Android have forever democratized the use of touch-based, iPhone-like graphical interfaces. This shift in user paradigms and expectations, combined with Android’s open source licensing, have created a groundswell of interest about Android within the embedded world.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值