找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5565|回复: 65

Redmi AX5通电无法中断autoboot进入U-Boot解决方案

  [复制链接]
发表于 2022-7-7 21:30 | 显示全部楼层 |阅读模式
本帖最后由 Gocsen 于 2022-7-20 03:22 编辑

  • 1.    如果无法中断Autoboot,且代码为如下内容:

看标红部分(倒数第五行代码):



  1. U-Boot 2016.01 (Jul 13 2020 - 12:00:51 +0000), Build: jenkins-common_router_openwrt_ota_publish-75

  2. DRAM:  smem ram ptable found: ver: 2 len: 4
  3. 256 MiB
  4. NAND:  ONFI device found
  5. ID = 9500a1ef
  6. Vendor = ef
  7. Device = a1
  8. SF: Unsupported flash IDs: manuf 00, jedec 0000, ext_jedec 0000
  9. ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
  10. 128 MiB
  11. MMC:   sdhci: Node Not found, skipping initialization

  12. PCI0 is not defined in the device tree
  13. In:    serial@78B1000
  14. Out:   serial@78B1000
  15. Err:   serial@78B1000
  16. machid: 8030200
  17. eth0 MAC Address from ART is not valid,use random ethaddr
  18. <b><font color="#ff0000">bootwait is off</font></b>, bootdelay=5
  19. ### main_loop: bootcmd="bootmiwifi"
  20. Hit any key to stop autoboot:  0

  21. trigger button release!
  22. boot from rootfs 0
复制代码



可按以下步骤操作:
①断开电源;
②找个东西按住reset(复位)键;
③通电;
④直到黄灯开始闪烁再松开reset;
⑤等待片刻,路由器开始重启,迅速多次按任意键,直到出现:IPQ6018#,若未出现则断电重启并按键盘任意键直到出现:IPQ6018#。

以下为过程代码,截取了比较显眼的部分,省略的部分用“…………”替代

  1. <p style="">U-Boot 2016.01 (Jul 13 2020 -
  2. 12:00:51 +0000), Build: jenkins-common_router_openwrt_ota_publish-75</p>

  3. <div style="text-indent:1em;"> </div>

  4. <div style="">…………</div>

  5. <div style=""> </div>

  6. <div style="">machid: 8030200</div>

  7. <p style="">eth0 MAC Address from ART is not
  8. valid,use random ethaddr</p>

  9. <div style="">bootwait is off, bootdelay=5</div>

  10. <p style="">### main_loop:
  11. bootcmd="bootmiwifi"</p>

  12. <p style="">Hit any key to stop
  13. autoboot:  0</p>

  14. <div style=""> detect button press, continue check 5 secs                          //此代码表示我需要按住reset(复位)键</div>

  15. <div style=""> detect button pressed 5 secs !                                           //此代码表示黄灯已经开始闪烁可以松开reset键</div>

  16. <div style=""> confirm to launch xq_upgrade !</div>

  17. <div style=""> cmd=dhcp</div>

  18. <div style=""> </div>

  19. <div style="">Net:   MAC0 addr:…………</div>

  20. <div style="">PHY ID1: 0x4d</div>

  21. <div style="">PHY ID2: 0xd0b1</div>

  22. <div style="">EDMA ver 1 hw init</div>

  23. <p style="">Num rings - TxDesc:1 (0-0)
  24. TxCmpl:1 (0-0)</p>

  25. <div style="">RxDesc:1 (15-15) RxFill:1 (7-7)</div>

  26. <p style="">ipq6018_edma_alloc_rings:
  27. successfull</p>

  28. <div style="">…………</div>

  29. <p style="">ipq6018_edma_hw_init:
  30. successfull</p>

  31. <div style="">eth0</div>

  32. <p style="">Warning: eth0 MAC addresses
  33. don't match:</p>

  34. <div style="">Address in SROM is         …………</div>

  35. <div style="">Address in environment is  …………</div>

  36. <div style=""> </div>

  37. <div style="">Trying to ping server.....</div>

  38. <div style="">ipq6018_eth_halt: done</div>

  39. <p style="">eth0 PHY0 Down Speed :10 Half
  40. duplex</p>

  41. <div style="">…………</div>

  42. <p style="">eth0 PHY4 Down Speed :10 Half
  43. duplex</p>

  44. <div style="">ipq6018_eth_halt: done</div>

  45. <p style="">ping failed; host 192.168.31.100 is not
  46. alive          //路由器会尝试ping很多次host,然后就会重启</p>

  47. <div style="">Ping test fail</div>

  48. <div style="">ipq6018_eth_halt: done</div>

  49. <p style="">eth0 PHY0 Down Speed :10 Half
  50. duplex</p>

  51. <p style="">eth0 PHY1 Down Speed :10 Half
  52. duplex</p>

  53. <p style="">eth0 PHY2 Down Speed :10 Half
  54. duplex</p>

  55. <p style="">eth0 PHY3 Down Speed :10 Half
  56. duplex</p>

  57. <p style="">eth0 PHY4 Down Speed :10 Half
  58. duplex</p>

  59. <div style="">ipq6018_eth_halt: done</div>

  60. <p style="">======== dhcp failed, retry
  61. !========</p>

  62. <div style="">boot from rootfs 1                                                           //路由器开始重启,准备跑时间进程代码</div>

  63. <p style="">
  64. miwifi: check crash in rmem !</p>

  65. <div style="">ubi0: attaching mtd1</div>

  66. <p style="">qpic_nand_read_oob: ecc failure
  67. while reading from 3580800</p>

  68. <div style="">…………</div>

  69. <p style="">qpic_nand_read_oob: ecc failure
  70. while reading from 5820800</p>

  71. <div style="">ubi0: scanning is finished</div>

  72. <div style="">…………</div>

  73. <p style="">ubi0: available PEBs: 0, total
  74. reserved PEBs: 288, PEBs reserved for bad PEB handling: 20</p>

  75. <p style="">qpic_nand_read_oob: ecc failure
  76. while reading from 3580800</p>

  77. <div style="">…………</div>

  78. <p style="">qpic_nand_read_oob: ecc failure
  79. while reading from 5821000</p>

  80. <p style="">Read 0 bytes from volume kernel
  81. to 44000000</p>

  82. <p style="">No size specified -> Using
  83. max size (3809280)</p>

  84. <div style="">Erasing NAND...</div>

  85. <p style="">Erasing at 0x7e0000 -- 100%
  86. complete.</p>

  87. <div style="">Writing to NAND... OK</div>

  88. <p style="">## Loading kernel from FIT Image
  89. at 44000000 ...</p>

  90. <div style="">   Using 'config@cp03-c1' configuration</div>

  91. <div style="">   Trying 'kernel@1' kernel subimage</div>

  92. <div style="">     …………</div>

  93. <div style="">   Verifying Hash Integrity ... crc32+ sha1+ OK</div>

  94. <div style="">   Booting using the fdt blob at 0x44376e58</div>

  95. <div style="">   Uncompressing Kernel Image ... OK</div>

  96. <p style="">   Loading Device Tree to 484ec000, end 484ff27a
  97. ... OK</p>

  98. <p style="">Could not find PCI in device
  99. tree</p>

  100. <p style="">Using machid 0x8030200 from
  101. environment</p>

  102. <div style=""> </div>

  103. <div style="">Starting kernel ...</div>

  104. <div style=""> </div>

  105. <div style="">[    0.000000] Booting Linux on physical CPU 0x0</div>

  106. <div style="">…………</div>

  107. <div style="">[    0.317106] msm_rpm_log_probe: OK</div>

  108. <div style="">…………</div>

  109. <p style="">[    1.067462] 0x000000980000-0x000000a00000 :
  110. "0:ART"</p>

  111. <div style="">…………</div>

  112. <p style="">[    5.327883] kmodloader: done loading kernel
  113. modules from /etc/modules-boot.d/*</p>

  114. <div style="">[    5.337009] init: - preinit -</div>

  115. <p style="">Press the [f] key and hit
  116. [enter] to enter failsafe mode</p>

  117. <p style="">Press the [1], [2], [3] or [4]
  118. key and hit [enter] to select the debug level</p>

  119. <div style="">…………</div>

  120. <p style="">[    9.904080] [<812de8ac>] (mount_fs)
  121. from [<812f45e8>] (vfs_kern_mount+0x4c/0xf4)</p>

  122. <p style="">[    9.911372] [<812f45e8>]
  123. (vfs_kern_mount) from [<812f7688>] (do_mount+0x95c/0xae8)</p>

  124. <div style="">[    9.918837]</div>

  125. <div style=""> </div>

  126. <div style="">Format: Log Type - Time(microsec) - Message - Optional Info       //如果跑时间代码,没有这一步则断电重启</div>

  127. <p style="">Log Type: B - Since Boot(Power
  128. On Reset),  D - Delta,  S - Statistic</p>

  129. <p style="">S -
  130. QC_IMAGE_VERSION_STRING=BOOT.XF.0.3-00077-IPQ60xxLZB-2</p>

  131. <p style="">S -
  132. IMAGE_VARIANT_STRING=IPQ6018LA</p>

  133. <div style="">…………</div>

  134. <div style="">D -    814137 - SBL1, Delta</div>

  135. <p style="">S - Flash Throughput, 4000
  136. KB/s  (2155057 Bytes,  431900 us)</p>

  137. <div style="">S - Core 0 Frequency, 800 MHz</div>

  138. <div style="">S - DDR Frequency, 466 MHz</div>

  139. <div style=""> </div>

  140. <div style=""> </div>

  141. <p style="">U-Boot 2016.01 (Jul 13 2020 -
  142. 12:00:51 +0000), Build: jenkins-common_router_openwrt_ota_publish-75</p>

  143. <div style=""> </div>

  144. <div style="">…………</div>

  145. <div style=""> </div>

  146. <p style="">PCI0 is not defined in the
  147. device tree</p>

  148. <div style="">In:    serial@78B1000</div>

  149. <div style="">Out:   serial@78B1000</div>

  150. <div style="">Err:   serial@78B1000</div>

  151. <div style="">machid: 8030200</div>

  152. <p style="">eth0 MAC Address from ART is not
  153. valid,use random ethaddr</p>

  154. <div style="">bootwait is on, bootdelay=5                   //此时中断进程已打开,只要按键盘任意键即可中断AutoBoot</div>

  155. <p style="">### main_loop:
  156. bootcmd="bootmiwifi"</p>

  157. <p style="">Hit any key to stop
  158. autoboot:  0</p>

  159. <div style=""> </div>

  160. <div style="">Net:   MAC0 addr:…………</div>

  161. <div style="">PHY ID1: 0x4d</div>

  162. <div style="">PHY ID2: 0xd0b1</div>

  163. <div style="">EDMA ver 1 hw init</div>

  164. <p style="">Num rings - TxDesc:1 (0-0)
  165. TxCmpl:1 (0-0)</p>

  166. <div style="">RxDesc:1 (15-15) RxFill:1 (7-7)</div>

  167. <p style="">ipq6018_edma_alloc_rings:
  168. successfull</p>

  169. <div style="">…………</div>

  170. <div style=""> </div>


  171. <div>

  172. <div style="">IPQ6018#                                                    //成功进入U-Boot<b><span style="color:red;font-size:8.0pt;"></span></b></div></div>
复制代码



我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-7-9 07:06 | 显示全部楼层
看看怎么样
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-9 20:27 | 显示全部楼层
好好好好好好好好
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-9 20:59 | 显示全部楼层

回帖奖励 +1 币恩山币

可按以下步骤操作:
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-9 21:57 | 显示全部楼层
看一下看一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 13:46 | 显示全部楼层
可按以下步骤操作:
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 20:43 | 显示全部楼层
学习一下下。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 21:24 | 显示全部楼层
学习一下下。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-19 22:26 | 显示全部楼层
学习一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-19 23:40 | 显示全部楼层
可按以下步骤操作
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-21 22:43 | 显示全部楼层
学习一下下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-21 23:02 | 显示全部楼层
感谢楼主分享~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-21 23:44 | 显示全部楼层
牛啊  楼主大神   厉害!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-22 05:14 来自手机 | 显示全部楼层
看看能用不
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-22 20:03 | 显示全部楼层
通电无法中断autoboot进入U
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-24 16:02

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表