fastboot usb 驱动相关
1. fastboot -- 安卓線刷協議.
? ? 協議: uboot/doc/README.android-fastboot
? ? ? ? ? ? ?uboot/doc/README.android-fastboot-protocol
2. 源碼
? ? uboot及android-platform-system-core中都有.
?
3. 配置uboot usb外設模式啟動.
? ? * uboot中不能動態切換主從角色(DRD role switch.)
? ? * xilinx zynqmp 中配置uboot usb啟動模式.
?
? ??https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842468/ZynqMp+USB+Stadalone+Driver#ZynqMpUSBStadaloneDriver-USBDFUTesting
Build u-boot for DFU
In order to test DFU at u-boot ensure that usb node has below two properties as shown.
dr_mode = "peripheral";
maximum-speed = "high-speed";
The dr_mode with "peripheral" informs u-boot to act as usb device and maximum-speed is used to inform about max-speed that driver supports.?
NOTE:?For ZynqMP maximum-speed can be super-speed also but as of now?u-boot doesn't support USB 3.0 so, always ensure that maximum-speed was set to high-speed.?
?
4. Linux PC配置
? ? * sudo apt-get install fastboot
? ? * 配置51-android.rules (udev規則)
如果您在 Ubuntu Linux 上開發,則需要為想要在開發中使用的每一種設備類型添加一個包含 USB 配置的?udev?規則文件。在規則文件中,每一個設備制造商都由一個唯一的供應商 ID(如?ATTR{idVendor}?屬性所指定)標識。要查看供應商 ID 列表,請參見下文的?USB 供應商 ID。要在 Ubuntu Linux 上設置設備檢測,請執行以下操作:
使用下面的格式將各個供應商添加到文件中:
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"?
在本例中,供應商 ID 為 HTC 的 ID。MODE?賦值指定讀/寫權限,GROUP?則定義哪個 Unix 組擁有設備節點。
注:取決于您的環境,規則語法可能稍有不同。如有需要,請查閱適用于您的系統的?udev?文檔。有關規則語法的概述,請參閱編寫 udev 規則的指南。
chmod a+r /etc/udev/rules.d/51-android.rules
5. Windows PC配置
? ??https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842468/ZynqMp+USB+Stadalone+Driver#ZynqMpUSBStadaloneDriver-USBDFUTesting
總結
以上是生活随笔為你收集整理的fastboot usb 驱动相关的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IDEA快速生成测试用例类和完成单元测试
- 下一篇: 英文名称(缩写)汇总