|
本帖最后由 nasbdh9 于 2022-2-26 08:24 编辑
新版的原厂U-Boot使用了lzma-loader,比如 U-Boot 2018.09 (Nov 20 2020 - 19:56:59 +0800)
直接刷OpenWRT会导致引导时循环报错- U-Boot SPL 2018.09 (Nov 20 2020 - 19:56:59 +0800)
- Trying to boot from NAND
- U-Boot 2018.09 (Nov 20 2020 - 19:56:59 +0800)
- CPU: MediaTek MT7621AT ver 1, eco 3
- Clocks: CPU: 880MHz, DDR: 1200MHz, Bus: 220MHz, XTAL: 40MHz
- Model: MediaTek MT7621 reference board (NAND)
- DRAM: 256 MiB
- NAND: 128 MiB
- Loading Environment from NAND... OK
- In: uartlite0@1e000c00
- Out: uartlite0@1e000c00
- Err: uartlite0@1e000c00
- Net:
- Warning: eth@1e100000 (eth0) using random MAC address -
- eth0: eth@1e100000
- Hit any key to stop autoboot: 0
- *** U-Boot Boot Menu ***
- 1. Startup system (Default)
- 2. Upgrade firmware
- 3. Upgrade bootloader
- 4. Upgrade bootloader (advanced mode)
- 5. Load image
- 0. U-Boot console
- Press UP/DOWN to move, ENTER to select
- Loading from nand0, offset 0x180000
- Image Name: MIPS OpenWrt Linux-5.10.100
- Image Type: MIPS Linux Kernel Image (lzma compressed)
- Data Size: 2858711 Bytes = 2.7 MiB
- Load Address: 80001000
- Entry Point: 80001000
- Automatic boot of image at addr 0x80010000 ...
- ## Booting kernel from Legacy Image at 80010000 ...
- Image Name: MIPS OpenWrt Linux-5.10.100
- Image Type: MIPS Linux Kernel Image (lzma compressed)
- Data Size: 2858711 Bytes = 2.7 MiB
- Load Address: 80001000
- Entry Point: 80001000
- Verifying Checksum ... OK
- Uncompressing Kernel Image ... lzma compressed: uncompress error 1
- Must RESET board to recover
复制代码
添加
https://github.com/nasbdh9/openw ... cc8f5c4b7d44cd3c0a7
后再从TTL刷入即可正常开机
- U-Boot SPL 2018.09 (Nov 20 2020 - 19:56:59 +0800)
- Trying to boot from NAND
- U-Boot 2018.09 (Nov 20 2020 - 19:56:59 +0800)
- CPU: MediaTek MT7621AT ver 1, eco 3
- Clocks: CPU: 880MHz, DDR: 1200MHz, Bus: 220MHz, XTAL: 40MHz
- Model: MediaTek MT7621 reference board (NAND)
- DRAM: 256 MiB
- NAND: 128 MiB
- Loading Environment from NAND... OK
- In: uartlite0@1e000c00
- Out: uartlite0@1e000c00
- Err: uartlite0@1e000c00
- Net:
- Warning: eth@1e100000 (eth0) using random MAC address -
- eth0: eth@1e100000
- Hit any key to stop autoboot: 0
- *** U-Boot Boot Menu ***
- 1. Startup system (Default)
- 2. Upgrade firmware
- 3. Upgrade bootloader
- 4. Upgrade bootloader (advanced mode)
- 5. Load image
- 0. U-Boot console
- Press UP/DOWN to move, ENTER to select
- *** Upgrading Firmware ***
- Available load methods:
- 0 - TFTP client (Default)
- 1 - Xmodem
- 2 - Ymodem
- 3 - Kermit
- 4 - S-Record
- Select (enter for default): 0
- Input U-Boot's IP address: 192.168.1.1
- Input TFTP server's IP address: 192.168.1.2
- Input IP netmask: 255.255.255.0
- Input file name: openwrt-ramips-mt7621-jcg_q20-squashfs-factory.bin
- Using eth@1e100000 device
- TFTP from server 192.168.1.2; our IP address is 192.168.1.1
- Filename 'openwrt-ramips-mt7621-jcg_q20-squashfs-factory.bin'.
- Load address: 0x80010000
- Loading: #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- #################################################################
- ##########################################################
- 13 MiB/s
- done
- Bytes transferred = 9437184 (900000 hex)
- *** Loaded 9437184 (0x900000) bytes at 0x80010000 ***
- Erasing from 0x180000 to 0xa7ffff, size 0x900000 ... OK
- Writting from 0x80010000 to 0x180000, size 0x900000 ... OK
- *** Firmware upgrade completed! ***
- Hit any key to stop firmware bootup: 0
- Loading from nand0, offset 0x180000
- Image Name: MIPS OpenWrt Linux-5.10.100
- Image Type: MIPS Linux Kernel Image (uncompressed)
- Data Size: 2730136 Bytes = 2.6 MiB
- Load Address: 80001000
- Entry Point: 80001000
- Automatic boot of image at addr 0x80010000 ...
- ## Booting kernel from Legacy Image at 80010000 ...
- Image Name: MIPS OpenWrt Linux-5.10.100
- Image Type: MIPS Linux Kernel Image (uncompressed)
- Data Size: 2730136 Bytes = 2.6 MiB
- Load Address: 80001000
- Entry Point: 80001000
- Verifying Checksum ... OK
- Loading Kernel Image ... OK
- OpenWrt kernel loader for MIPS based SoC
- Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
- Decompressing kernel... done!
- Starting kernel at 80001000...
- [ 0.000000] Linux version 5.10.100 (nasbdh9@nasbdh9-virtual-build) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r18974+1-8144f9c665) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Fri Feb 25 21:22:37 2022
- [ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
- [ 0.000000] printk: bootconsole [early0] enabled
- [ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
- [ 0.000000] MIPS: machine is JCG Q20
- [ 0.000000] Initrd not found or empty - disabling initrd
- [ 0.000000] VPE topology {2,2} total 4
- [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
- [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
- [ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
复制代码
|
|