找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2837|回复: 10

注意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呢

同请教
回复

使用道具 举报

请问我的用TTL刷 连接后    2.539798] usbcore: registered new interface driver usb-storage
[    2.546321] i2c /dev entries driver
[    2.552906] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    2.559735] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    2.568600] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    2.576761] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    2.58ooking IMQ after NAT on POSTROUTING.
[    2.610123] GACT probability on
[    2.613303] Mirror/redirect action on
[    2.616998] u32 classifier
[    2.619692]     input device check on
[    2.623331]     Actions configured
[    2.628871] [high_prio_host]: high_prio_host init...
[    2.633856] [appmark]: appmark init...
[    2.637917] [emark]: emark init...
[    2.641309] iptables module:NTH_CONNMARK init
[    2.645664] [ifname]: ifname init...
[    2.649282] [matchcount]: matchcount init...
[    2.653534] [bytesband]: bytesband init...
[    2.657649] ifaces init ...
[    2.660433] suffix init ...
[    2.663555] xt_time: kernel timezone is -0000
[    2.668221] ipip: IPv4 and MPLS over IPv4 tunneling driver
[    2.674561] gre: GRE over IPv4 demultiplexor driver
[    2.679508] ip_gre: GRE over IPv4 tunneling driver
[    2.687257] IPv4 over IPsec tunneling driver
[    2.693042] Initializing XFRM netlink socket
[    2.697450] IPsec XFRM device driver
[    2.701702] NET: Registered protocol family 10
[    2.712750] Segment Routing with IPv6
[    2.716717] mip6: Mobile IPv6
[    2.721708] sit: IPv6, IPv4 and MPLS over IPv4 tunneliver IPv6 tunneling driver
[    2.736695] NET: Registered protocol family 17
[    2.741244] NET: Registered protocol family 15
[    2.745816] Bridge firewalling registered
2TP core driverffffff]
[    3.1W0000:00:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    3.243547] pci 0000:00:00.0: reg 0x14: [mem size 0x00010000]
[    3.249369] pci 0000:00:00.0: supports Dq
                                            [   3.278977] pci 0000:00:01.0: reg 0x14: [mem size 0x00010000]
[    3.284771] pci 0000:00:01.0: supports D1
[    3.288781] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    3.295966] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.303983] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.312290] pci 0000:01:00.0: [14c3:7916] type 00 class 0x000280
[    3.318367] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    3.325399] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000 64bit pref]
[    3.332107] pci 0000:01:00.0: reg 0x18: initial BAR value 0x00000000 invalid
[    3.339146] pci 0000:01:00.0: reg 0x18: [mem size 0x00004000 64bit pref]
[    3.345833] pci 0000:01:00.0: reg 0x20: initial BAR value 0x00000000 invalid
[    3.352868] pci 0000:01:00.0: reg 0x20: [mem size 0x00001000 64bit pref]
[    3.359688] pci 0000:01:00.0: supports D1 D2
[    3.363941] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    3.370598] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    3.386913] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    3.392142] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    3.398232] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.404993] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    3.412207] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.419104] pci 0000:02:00.0: [14c3:7915] type 00 class 0x000280
[    3.425159] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    3.432225] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000 64bit pref]
[    3.438934] pci 0000:02:00.0: reg 0x18: initial BAR value 0x00000000 invalid
[    3.445952] pci 0000:02:00.0: reg 0x18: [mem size 0x00004000 64bit pref]
[    3.452656] pci 0000:02:00.0: reg 0x20: initial BAR value 0x00000000 invalid
[    3.459694] pci 0000:02:00.0: reg 0x20: [mem size 0x00001000 64bit pref]
[    3.466495] pci 0000:02:00.0: supports D1 D2
[    3.470764] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    3.477413] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    3.493681] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    3.498936] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    3.505006] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.511787] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff pref]
[    3.519005] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    3.525645] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    3.532251] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    3.539207] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    3.545792] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    3.552757] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    3.559541] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x602fffff pref]
[    3.566732] pci 0000:00:01.0: BAR 8: assigned [mem 0x60300000-0x603fffff]
[    3.573515] pci 0000:00:01.0: BAR 9: assigned [mem 0x60400000-0x605fffff pref]
[    3.580730] pci 0000:00:00.0: BAR 1: assigned [mem 0x60600000-0x6060ffff]
[    3.587518] pci 0000:00:01.0: BAR 1: assigned [mem 0x60610000-0x6061ffff]
[    3.594279] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    3.601059] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    3.607860] pci 0000:01:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit pref]
[    3.615584] pci 0000:01:00.0: BAR 2: assigned [mem 0x60200000-0x60203fff 64bit pref]
[    3.623328] pci 0000:01:00.0: BAR 4: assigned [mem 0x60204000-0x60204fff 64bit pref]
[    3.631070] pci 0000:00:00.0: PCI bridge to [bus 01]
[    3.636016] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    3.642794] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.649574] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x602fffff pref]
[    3.656780] pci 0000:02:00.0: BAR 0: assigned [mem 0x60400000-0x604fffff 64bit pref]
[    3.664533] pci 0000:02:00.0: BAR 2: assigned [mem 0x60500000-0x60503fff 64bit pref]
[    3.672287] pci 0000:02:00.0: BAR 4: assigned [mem 0x60504000-0x60504fff 64bit pref]
[    3.680029] pci 0000:00:01.0: PCI bridge to [bus 02]
[    3.684973] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    3.691750] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff]
[    3.698529] pci 0000:00:01.0:   bridge window [mem 0x60400000-0x605fffff pref]
[    3.714755] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    3.726379] Freeing unused kernel memory: 1288K
[    3.730950] This architecture does not have kernel memory protection.
[    3.737838] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off

Login:
Login:
Login:

怎么登录呀???
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-5-15 06:55

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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