找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2797|回复: 9

注意JCG Q20的U-Boot版本

[复制链接]
本帖最后由 nasbdh9 于 2022-2-26 08:24 编辑

新版的原厂U-Boot使用了lzma-loader,比如 U-Boot 2018.09 (Nov 20 2020 - 19:56:59 +0800)
直接刷OpenWRT会导致引导时循环报错
  1. U-Boot SPL 2018.09 (Nov 20 2020 - 19:56:59 +0800)
  2. Trying to boot from NAND


  3. U-Boot 2018.09 (Nov 20 2020 - 19:56:59 +0800)

  4. CPU:   MediaTek MT7621AT ver 1, eco 3
  5. Clocks: CPU: 880MHz, DDR: 1200MHz, Bus: 220MHz, XTAL: 40MHz
  6. Model: MediaTek MT7621 reference board (NAND)
  7. DRAM:  256 MiB
  8. NAND:  128 MiB
  9. Loading Environment from NAND... OK
  10. In:    uartlite0@1e000c00
  11. Out:   uartlite0@1e000c00
  12. Err:   uartlite0@1e000c00
  13. Net:
  14. Warning: eth@1e100000 (eth0) using random MAC address -
  15. eth0: eth@1e100000
  16. Hit any key to stop autoboot:  0

  17.   *** U-Boot Boot Menu ***

  18.      1. Startup system (Default)
  19.      2. Upgrade firmware
  20.      3. Upgrade bootloader
  21.      4. Upgrade bootloader (advanced mode)
  22.      5. Load image
  23.      0. U-Boot console


  24.   Press UP/DOWN to move, ENTER to select

  25. Loading from nand0, offset 0x180000
  26.    Image Name:   MIPS OpenWrt Linux-5.10.100
  27.    Image Type:   MIPS Linux Kernel Image (lzma compressed)
  28.    Data Size:    2858711 Bytes = 2.7 MiB
  29.    Load Address: 80001000
  30.    Entry Point:  80001000
  31. Automatic boot of image at addr 0x80010000 ...
  32. ## Booting kernel from Legacy Image at 80010000 ...
  33.    Image Name:   MIPS OpenWrt Linux-5.10.100
  34.    Image Type:   MIPS Linux Kernel Image (lzma compressed)
  35.    Data Size:    2858711 Bytes = 2.7 MiB
  36.    Load Address: 80001000
  37.    Entry Point:  80001000
  38.    Verifying Checksum ... OK
  39.    Uncompressing Kernel Image ... lzma compressed: uncompress error 1
  40. Must RESET board to recover
复制代码


添加
https://github.com/nasbdh9/openw ... cc8f5c4b7d44cd3c0a7
后再从TTL刷入即可正常开机
  1. U-Boot SPL 2018.09 (Nov 20 2020 - 19:56:59 +0800)
  2. Trying to boot from NAND


  3. U-Boot 2018.09 (Nov 20 2020 - 19:56:59 +0800)

  4. CPU:   MediaTek MT7621AT ver 1, eco 3
  5. Clocks: CPU: 880MHz, DDR: 1200MHz, Bus: 220MHz, XTAL: 40MHz
  6. Model: MediaTek MT7621 reference board (NAND)
  7. DRAM:  256 MiB
  8. NAND:  128 MiB
  9. Loading Environment from NAND... OK
  10. In:    uartlite0@1e000c00
  11. Out:   uartlite0@1e000c00
  12. Err:   uartlite0@1e000c00
  13. Net:
  14. Warning: eth@1e100000 (eth0) using random MAC address -
  15. eth0: eth@1e100000
  16. Hit any key to stop autoboot:  0

  17.   *** U-Boot Boot Menu ***

  18.      1. Startup system (Default)
  19.      2. Upgrade firmware
  20.      3. Upgrade bootloader
  21.      4. Upgrade bootloader (advanced mode)
  22.      5. Load image
  23.      0. U-Boot console


  24.   Press UP/DOWN to move, ENTER to select

  25. *** Upgrading Firmware ***

  26. Available load methods:
  27.     0 - TFTP client (Default)
  28.     1 - Xmodem
  29.     2 - Ymodem
  30.     3 - Kermit
  31.     4 - S-Record

  32. Select (enter for default): 0

  33. Input U-Boot's IP address: 192.168.1.1
  34. Input TFTP server's IP address: 192.168.1.2
  35. Input IP netmask: 255.255.255.0
  36. Input file name: openwrt-ramips-mt7621-jcg_q20-squashfs-factory.bin

  37. Using eth@1e100000 device
  38. TFTP from server 192.168.1.2; our IP address is 192.168.1.1
  39. Filename 'openwrt-ramips-mt7621-jcg_q20-squashfs-factory.bin'.
  40. Load address: 0x80010000
  41. Loading: #################################################################
  42.          #################################################################
  43.          #################################################################
  44.          #################################################################
  45.          #################################################################
  46.          #################################################################
  47.          #################################################################
  48.          #################################################################
  49.          #################################################################
  50.          ##########################################################
  51.          13 MiB/s
  52. done
  53. Bytes transferred = 9437184 (900000 hex)

  54. *** Loaded 9437184 (0x900000) bytes at 0x80010000 ***


  55. Erasing from 0x180000 to 0xa7ffff, size 0x900000 ... OK
  56. Writting from 0x80010000 to 0x180000, size 0x900000 ... OK

  57. *** Firmware upgrade completed! ***

  58. Hit any key to stop firmware bootup:  0

  59. Loading from nand0, offset 0x180000
  60.    Image Name:   MIPS OpenWrt Linux-5.10.100
  61.    Image Type:   MIPS Linux Kernel Image (uncompressed)
  62.    Data Size:    2730136 Bytes = 2.6 MiB
  63.    Load Address: 80001000
  64.    Entry Point:  80001000
  65. Automatic boot of image at addr 0x80010000 ...
  66. ## Booting kernel from Legacy Image at 80010000 ...
  67.    Image Name:   MIPS OpenWrt Linux-5.10.100
  68.    Image Type:   MIPS Linux Kernel Image (uncompressed)
  69.    Data Size:    2730136 Bytes = 2.6 MiB
  70.    Load Address: 80001000
  71.    Entry Point:  80001000
  72.    Verifying Checksum ... OK
  73.    Loading Kernel Image ... OK


  74. OpenWrt kernel loader for MIPS based SoC
  75. Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
  76. Decompressing kernel... done!
  77. Starting kernel at 80001000...

  78. [    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
  79. [    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
  80. [    0.000000] printk: bootconsole [early0] enabled
  81. [    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
  82. [    0.000000] MIPS: machine is JCG Q20
  83. [    0.000000] Initrd not found or empty - disabling initrd
  84. [    0.000000] VPE topology {2,2} total 4
  85. [    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
  86. [    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
  87. [    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
复制代码


这货现在翻车概率相当高了.哪怕是TTL刷bootloader也有概率死循环
回复

使用道具 举报

 楼主| | 显示全部楼层
sendlan 发表于 2022-2-26 17:30
这货现在翻车概率相当高了.哪怕是TTL刷bootloader也有概率死循环

bootloader不需要改,原厂就是最好的
回复

使用道具 举报

大佬,这个代码怎么用啊
回复

使用道具 举报

来自手机 | 显示全部楼层
新版的能引导老子不?
回复

使用道具 举报

henrek 发表于 2022-3-14 13:15
新版的能引导老子不?

能,hiboy版网页直刷什么都正常
回复

使用道具 举报

电信送了个,直接升级挂了...........
回复

使用道具 举报

原来如此,之前查过“uncompress error”,但是没找到相关的,然后对比了下提示信息里面的“Image Type”,还以为是文件自身有问题或者分区不对
回复

使用道具 举报

怎么看原厂的是新版还是旧版U-Boot呢
回复

使用道具 举报

hzz314 发表于 2023-3-31 11:02
怎么看原厂的是新版还是旧版U-Boot呢

同请教
回复

使用道具 举报

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

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

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

GMT+8, 2024-5-11 19:59

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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