USB fastboot

1 Samsung
fastboot flashing unlock

2 bootloader增加解锁密码
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c

index e4d46e4..1b4b450 100755
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -2613,6 +2613,20 @@ void cmd_oem_unlock(const char *arg,
    void *data, unsigned sz)

void cmd_oem_unlock_go(const char *arg,
        void *data, unsigned sz)
 {
+        // oem-start
+        char *p = (char *)arg;
+        if (!arg) {
+            fastboot_fail(
+            "[oem] key in password please,
+            \"fastboot oem unlock-go [pwd]\"");
+            return;
+        }
+
+        while (isspace(*p)) p++;
+        if (strncmp(p, "12345678",
+            strlen("12345678"))) {
+                fastboot_fail(
+                "[oem] wrong password,
+                \"fastboot oem unlock-go [pwd]\"");
+                return;
+        }
+        // oem-end
+
Fastboot command call chain as shown below, from the viewpoint of device-side.
Figure 1-1 Fastboot Command Call Chain

3 Abbreviations
ARC:Argonant RISC Core
AT91SAM9260:SAM means Smart ARM-based
ATMEL SAMBA:ATMEL Smart ARM-based Boot Assistant
DWC2:Design Ware Controller 2,Apple的嵌入式设备,包括iPad和iPhone都是使用的DWC2
ISP1161:Philips' Integrated host Solution Pairs 1161,“Firms introduce USB host controllers”,https://www.eetimes.com/document.asp?doc_id=1290054
SL811HS:Cypress/ScanLogic 811 Host/Slave,性能上与ISP1161(Integrated host Solution Pairs 1161)相当
TDI:TransDimension Inc.,该公司首先发明了将TT集成到EHCI RootHub中的方法,这样对于嵌入式系统来说,就省去了OHCI/UHCI的硬件,同时降低了成本,作为对该公司的纪念,Linux内核定义了宏ehci_is_TDI(ehci)
TT:Transaction Translator(事务转换器,将USB2.0的包转换成USB1.1的包)

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值