|
本帖最后由 Gocsen 于 2022-7-20 03:22 编辑
- 1. 如果无法中断Autoboot,且代码为如下内容:
看标红部分(倒数第五行代码):
- U-Boot 2016.01 (Jul 13 2020 - 12:00:51 +0000), Build: jenkins-common_router_openwrt_ota_publish-75
-
- DRAM: smem ram ptable found: ver: 2 len: 4
- 256 MiB
- NAND: ONFI device found
- ID = 9500a1ef
- Vendor = ef
- Device = a1
- SF: Unsupported flash IDs: manuf 00, jedec 0000, ext_jedec 0000
- ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
- 128 MiB
- MMC: sdhci: Node Not found, skipping initialization
-
- PCI0 is not defined in the device tree
- In: serial@78B1000
- Out: serial@78B1000
- Err: serial@78B1000
- machid: 8030200
- eth0 MAC Address from ART is not valid,use random ethaddr
- <b><font color="#ff0000">bootwait is off</font></b>, bootdelay=5
- ### main_loop: bootcmd="bootmiwifi"
- Hit any key to stop autoboot: 0
- trigger button release!
- boot from rootfs 0
复制代码
可按以下步骤操作:
①断开电源; ②找个东西按住reset(复位)键; ③通电; ④直到黄灯开始闪烁再松开reset; ⑤等待片刻,路由器开始重启,迅速多次按任意键,直到出现:IPQ6018#,若未出现则断电重启并按键盘任意键直到出现:IPQ6018#。
以下为过程代码,截取了比较显眼的部分,省略的部分用“…………”替代
- <p style="">U-Boot 2016.01 (Jul 13 2020 -
- 12:00:51 +0000), Build: jenkins-common_router_openwrt_ota_publish-75</p>
- <div style="text-indent:1em;"> </div>
- <div style="">…………</div>
- <div style=""> </div>
- <div style="">machid: 8030200</div>
- <p style="">eth0 MAC Address from ART is not
- valid,use random ethaddr</p>
- <div style="">bootwait is off, bootdelay=5</div>
- <p style="">### main_loop:
- bootcmd="bootmiwifi"</p>
- <p style="">Hit any key to stop
- autoboot: 0</p>
- <div style=""> detect button press, continue check 5 secs //此代码表示我需要按住reset(复位)键</div>
- <div style=""> detect button pressed 5 secs ! //此代码表示黄灯已经开始闪烁可以松开reset键</div>
- <div style=""> confirm to launch xq_upgrade !</div>
- <div style=""> cmd=dhcp</div>
- <div style=""> </div>
- <div style="">Net: MAC0 addr:…………</div>
- <div style="">PHY ID1: 0x4d</div>
- <div style="">PHY ID2: 0xd0b1</div>
- <div style="">EDMA ver 1 hw init</div>
- <p style="">Num rings - TxDesc:1 (0-0)
- TxCmpl:1 (0-0)</p>
- <div style="">RxDesc:1 (15-15) RxFill:1 (7-7)</div>
- <p style="">ipq6018_edma_alloc_rings:
- successfull</p>
- <div style="">…………</div>
- <p style="">ipq6018_edma_hw_init:
- successfull</p>
- <div style="">eth0</div>
- <p style="">Warning: eth0 MAC addresses
- don't match:</p>
- <div style="">Address in SROM is …………</div>
- <div style="">Address in environment is …………</div>
- <div style=""> </div>
- <div style="">Trying to ping server.....</div>
- <div style="">ipq6018_eth_halt: done</div>
- <p style="">eth0 PHY0 Down Speed :10 Half
- duplex</p>
- <div style="">…………</div>
- <p style="">eth0 PHY4 Down Speed :10 Half
- duplex</p>
- <div style="">ipq6018_eth_halt: done</div>
- <p style="">ping failed; host 192.168.31.100 is not
- alive //路由器会尝试ping很多次host,然后就会重启</p>
- <div style="">Ping test fail</div>
- <div style="">ipq6018_eth_halt: done</div>
- <p style="">eth0 PHY0 Down Speed :10 Half
- duplex</p>
- <p style="">eth0 PHY1 Down Speed :10 Half
- duplex</p>
- <p style="">eth0 PHY2 Down Speed :10 Half
- duplex</p>
- <p style="">eth0 PHY3 Down Speed :10 Half
- duplex</p>
- <p style="">eth0 PHY4 Down Speed :10 Half
- duplex</p>
- <div style="">ipq6018_eth_halt: done</div>
- <p style="">======== dhcp failed, retry
- !========</p>
- <div style="">boot from rootfs 1 //路由器开始重启,准备跑时间进程代码</div>
- <p style="">
- miwifi: check crash in rmem !</p>
- <div style="">ubi0: attaching mtd1</div>
- <p style="">qpic_nand_read_oob: ecc failure
- while reading from 3580800</p>
- <div style="">…………</div>
- <p style="">qpic_nand_read_oob: ecc failure
- while reading from 5820800</p>
- <div style="">ubi0: scanning is finished</div>
- <div style="">…………</div>
- <p style="">ubi0: available PEBs: 0, total
- reserved PEBs: 288, PEBs reserved for bad PEB handling: 20</p>
- <p style="">qpic_nand_read_oob: ecc failure
- while reading from 3580800</p>
- <div style="">…………</div>
- <p style="">qpic_nand_read_oob: ecc failure
- while reading from 5821000</p>
- <p style="">Read 0 bytes from volume kernel
- to 44000000</p>
- <p style="">No size specified -> Using
- max size (3809280)</p>
- <div style="">Erasing NAND...</div>
- <p style="">Erasing at 0x7e0000 -- 100%
- complete.</p>
- <div style="">Writing to NAND... OK</div>
- <p style="">## Loading kernel from FIT Image
- at 44000000 ...</p>
- <div style=""> Using 'config@cp03-c1' configuration</div>
- <div style=""> Trying 'kernel@1' kernel subimage</div>
- <div style=""> …………</div>
- <div style=""> Verifying Hash Integrity ... crc32+ sha1+ OK</div>
- <div style=""> Booting using the fdt blob at 0x44376e58</div>
- <div style=""> Uncompressing Kernel Image ... OK</div>
- <p style=""> Loading Device Tree to 484ec000, end 484ff27a
- ... OK</p>
- <p style="">Could not find PCI in device
- tree</p>
- <p style="">Using machid 0x8030200 from
- environment</p>
- <div style=""> </div>
- <div style="">Starting kernel ...</div>
- <div style=""> </div>
- <div style="">[ 0.000000] Booting Linux on physical CPU 0x0</div>
- <div style="">…………</div>
- <div style="">[ 0.317106] msm_rpm_log_probe: OK</div>
- <div style="">…………</div>
- <p style="">[ 1.067462] 0x000000980000-0x000000a00000 :
- "0:ART"</p>
- <div style="">…………</div>
- <p style="">[ 5.327883] kmodloader: done loading kernel
- modules from /etc/modules-boot.d/*</p>
- <div style="">[ 5.337009] init: - preinit -</div>
- <p style="">Press the [f] key and hit
- [enter] to enter failsafe mode</p>
- <p style="">Press the [1], [2], [3] or [4]
- key and hit [enter] to select the debug level</p>
- <div style="">…………</div>
- <p style="">[ 9.904080] [<812de8ac>] (mount_fs)
- from [<812f45e8>] (vfs_kern_mount+0x4c/0xf4)</p>
- <p style="">[ 9.911372] [<812f45e8>]
- (vfs_kern_mount) from [<812f7688>] (do_mount+0x95c/0xae8)</p>
- <div style="">[ 9.918837]</div>
- <div style=""> </div>
- <div style="">Format: Log Type - Time(microsec) - Message - Optional Info //如果跑时间代码,没有这一步则断电重启</div>
- <p style="">Log Type: B - Since Boot(Power
- On Reset), D - Delta, S - Statistic</p>
- <p style="">S -
- QC_IMAGE_VERSION_STRING=BOOT.XF.0.3-00077-IPQ60xxLZB-2</p>
- <p style="">S -
- IMAGE_VARIANT_STRING=IPQ6018LA</p>
- <div style="">…………</div>
- <div style="">D - 814137 - SBL1, Delta</div>
- <p style="">S - Flash Throughput, 4000
- KB/s (2155057 Bytes, 431900 us)</p>
- <div style="">S - Core 0 Frequency, 800 MHz</div>
- <div style="">S - DDR Frequency, 466 MHz</div>
- <div style=""> </div>
- <div style=""> </div>
- <p style="">U-Boot 2016.01 (Jul 13 2020 -
- 12:00:51 +0000), Build: jenkins-common_router_openwrt_ota_publish-75</p>
- <div style=""> </div>
- <div style="">…………</div>
- <div style=""> </div>
- <p style="">PCI0 is not defined in the
- device tree</p>
- <div style="">In: serial@78B1000</div>
- <div style="">Out: serial@78B1000</div>
- <div style="">Err: serial@78B1000</div>
- <div style="">machid: 8030200</div>
- <p style="">eth0 MAC Address from ART is not
- valid,use random ethaddr</p>
- <div style="">bootwait is on, bootdelay=5 //此时中断进程已打开,只要按键盘任意键即可中断AutoBoot</div>
- <p style="">### main_loop:
- bootcmd="bootmiwifi"</p>
- <p style="">Hit any key to stop
- autoboot: 0</p>
- <div style=""> </div>
- <div style="">Net: MAC0 addr:…………</div>
- <div style="">PHY ID1: 0x4d</div>
- <div style="">PHY ID2: 0xd0b1</div>
- <div style="">EDMA ver 1 hw init</div>
- <p style="">Num rings - TxDesc:1 (0-0)
- TxCmpl:1 (0-0)</p>
- <div style="">RxDesc:1 (15-15) RxFill:1 (7-7)</div>
- <p style="">ipq6018_edma_alloc_rings:
- successfull</p>
- <div style="">…………</div>
- <div style=""> </div>
- <div>
- <div style="">IPQ6018# //成功进入U-Boot<b><span style="color:red;font-size:8.0pt;"></span></b></div></div>
复制代码
|
|