电信WiFi6路由器JCG-Q20刷机后变砖用ttl救砖无法进uboot的经历
电信WiFi6路由器JCG-Q20这是一款 WiFi6 路由器
同时也支持 mesh
soc 是 mt7621
拥有 256M 的内存
和 128M 的闪存
JCG-Q20刷机后变砖用ttl救砖无法进uboot的经历
首先说下我折腾的经过,一开始直接从原厂升级padavan固件的,用的是我自编译的固件,导致无法启动。
自编译固件来自hanwckf,仅增加部分插件,没有改动代码,不知道怎么导致了分区表有问题。后续我又编译了几次,还是存在问题无法启动。现在用的固件是keke1023编译的。可以正常使用。如果需要用scutclient,只修改trunk/configs/templates下的文件该不够,在编译脚本里默认关闭了scutclient等插件,需要去注释一下。
另外还踩了几个坑,一个是进uboot时间很短,如果没有操作会从默认系统引导,我是路由器通电后,插上ttl,大概4-5s左右打开串口serial,然后疯狂按上下键,避免进入默认系统。就和电脑进bios一样。
还有一个坑是有些winpe里用tftp是不成功的,这个卡了我好几个小时。因为我笔记本没有网口,只有一台旧的无系统的笔记本有网口可以用,一开始以为用pe就可以了,反复尝试了几十次一直不行。最后逼得我用u盘装了一个完整的wintogo,一次就成功了。
还有一件事,这个路由器的底部螺丝也太深了,没有一把螺丝刀可以伸进去,还是找一把螺丝刀把把手磨细了才成功的。
Automatic boot ofimage at addr 0x82000000 ... ## Booting kernelfrom Legacy Image at 82000000 ... Image Name: JCG-Q20 Image Type: MIPS Linux Kernel Image (uncompressed) Data Size: 22317919 Bytes = 21.3 MiB Load Address: 80001000 Entry Point: 8058b9a0 Verifying Checksum ... OK Loading Kernel Image ... OK INUX started... Linux version3.4.113 (root@lzy) (gcc version 7.4.0 (crosstool-NG 1.24.0) ) #2 SMP Sun Aug 1416:13:36 UTC 2022 MediaTek SoC:MT7621A, RevID: 0103, RAM: DDR3, XTAL: 40MHz CPU/OCP/SYSfrequency: 880/293/220 MHz prom memory:256MB CPU revision is:0001992f (MIPS 1004Kc) Determined physicalRAM map: memory: 10000000 @ 00000000 (usable) Zone PFN ranges: Normal 0x00000000 -> 0x00010000 Movable zone startPFN for each node Early memory PFNranges 0: 0x00000000 -> 0x00010000 Detected 3 availablesecondary CPU(s) Primary instructioncache 32kB, VIPT, 4-way, linesize 32 bytes. Primary data cache32kB, 4-way, PIPT, no aliases, linesize 32 bytes MIPS secondary cache256kB, 8-way, linesize 32 bytes. PERCPU: Embedded 7pages/cpu @81203000 s5984 r8192 d14496 u32768 Built 1 zonelists inZone order, mobility grouping on. Totalpages: 65024 Kernel command line:console=ttyS0,115200n8 root=/dev/mtdblock5 rootfstype=squashfs PID hash tableentries: 1024 (order: 0, 4096 bytes) Dentry cache hashtable entries: 32768 (order: 5, 131072 bytes) Inode-cache hashtable entries: 16384 (order: 4, 65536 bytes) Writing ErrCtlregister=00060022 Readback ErrCtlregister=00060022 Memory:248748k/262144k available (5730k kernel code, 13396k reserved, 4931k data, 212kinit, 0k highmem) Hierarchical RCUimplementation. NR_IRQS:72 MIPS GIC RevID: 3.0 Setting up vectoredinterrupts console [ttyS0]enabled Calibrating delayloop... 577.53 BogoMIPS (lpj=1155072) pid_max: default:32768 minimum: 301 Mount-cache hashtable entries: 512 Primary instructioncache 32kB, VIPT, 4-way, linesize 32 bytes. Primary data cache32kB, 4-way, PIPT, no aliases, linesize 32 bytes MIPS secondary cache256kB, 8-way, linesize 32 bytes. CPU revision is:0001992f (MIPS 1004Kc) Synchronize countersfor CPU 1: done. Primary instructioncache 32kB, VIPT, 4-way, linesize 32 bytes. Primary data cache32kB, 4-way, PIPT, no aliases, linesize 32 bytes MIPS secondary cache256kB, 8-way, linesize 32 bytes. CPU revision is:0001992f (MIPS 1004Kc) Synchronize countersfor CPU 2: done. Primary instructioncache 32kB, VIPT, 4-way, linesize 32 bytes. Primary data cache32kB, 4-way, PIPT, no aliases, linesize 32 bytes MIPS secondary cache256kB, 8-way, linesize 32 bytes. CPU revision is:0001992f (MIPS 1004Kc) Synchronize countersfor CPU 3: done. Brought up 4 CPUs NET: Registeredprotocol family 16 bio: create slab<bio-0> at 0 PCI host bridge tobus 0000:00 pci_bus 0000:00:root bus resource [mem 0x60000000-0x6fffffff] pci_bus 0000:00:root bus resource [io 0x1e160000-0x1e16ffff] pci 0000:00:00.0:bridge configuration invalid ([bus 00-00]), reconfiguring pci 0000:00:01.0:bridge configuration invalid ([bus 00-00]), reconfiguring pci 0000:00:00.0:BAR 0: can't assign mem (size 0x80000000) pci 0000:00:01.0:BAR 0: can't assign mem (size 0x80000000) pci 0000:00:00.0:BAR 9: assigned [mem 0x60000000-0x601fffff pref] pci 0000:00:01.0:BAR 9: assigned [mem 0x60200000-0x603fffff pref] pci 0000:01:00.0:BAR 0: assigned [mem 0x60000000-0x600fffff 64bit pref] pci 0000:01:00.0:BAR 2: assigned [mem 0x60100000-0x60103fff 64bit pref] pci 0000:01:00.0:BAR 4: assigned [mem 0x60104000-0x60104fff 64bit pref] pci 0000:00:00.0CI bridge to [bus 01-01] pci0000:00:00.0: bridge window [mem0x60000000-0x601fffff pref] pci 0000:02:00.0:BAR 0: assigned [mem 0x60200000-0x602fffff 64bit pref] pci 0000:02:00.0:BAR 2: assigned [mem 0x60300000-0x60303fff 64bit pref] pci 0000:02:00.0:BAR 4: assigned [mem 0x60304000-0x60304fff 64bit pref] pci 0000:00:01.0CI bridge to [bus 02-02] pci0000:00:01.0: bridge window [mem0x60200000-0x603fffff pref] PCI: Enabling device0000:00:00.0 (0000 -> 0002) PCI: Enabling device0000:00:01.0 (0000 -> 0002) Switching toclocksource MIPS NET: Registeredprotocol family 2 IP route cache hashtable entries: 2048 (order: 1, 8192 bytes) TCP established hashtable entries: 8192 (order: 4, 65536 bytes) TCP bind hash tableentries: 8192 (order: 4, 65536 bytes) TCP: Hash tablesconfigured (established 8192 bind 8192) TCP: reno registered UDP hash tableentries: 128 (order: 0, 4096 bytes) NET: Registeredprotocol family 1 4 CPUs re-calibrateudelay (lpj = 1167360) squashfs: version4.0 (2009/01/31) Phillip Lougher msgmni has been setto 485 io scheduler noopregistered (default) Serial: 8250/16550driver, 1 ports, IRQ sharing disabled serial8250: ttyS0 atMMIO 0x1e000c00 (irq = 34) is a 16550A Ralink GPIO driverinitialized. Number of GPIO: 64, GPIO mode: 000A05AC loop: module loaded MediaTek NAND driverinit, version v2.1 MTK NFI: NAND ID [98F1, 80 15 F2 16] MTK NFI: NAND chipwith device ID 98f1 is not found in MTK table! MTK NFI: try detectNAND chip from bootstrap mode (01) NAND device:Manufacturer ID: 0x98, Chip ID: 0xf1 (Toshiba NAND 128MiB 3,3V 8-bit), 128MiB,page size: 2048, OOB size: 64 Scanning device forbad blocks Bad eraseblock 768at 0x000006000000 Creating 11 MTDpartitions on "MT7621-NAND": 0x000000000000-0x000000080000: "Bootloader" 0x000000080000-0x000000100000: "CFG_Bdata" 0x000000100000-0x000000180000: "Factory" 0x000000180000-0x000000200000: "Reserved" 0x000000200000-0x0000e51f0010: "Kernel" mtd: partition"Kernel" extends beyond the end of device "MT7621-NAND" --size truncated to 0x7d80000 0x000007f80000-0xffffffff2478fff0: "RootFS" mtd: partition"RootFS" is out of reach -- disabled 0x000000000000-0x000000080000: "Config" 0x000000080000-0x000000480000: "Storage" 0x000000480000-0x000006580000: "RWFS" 0x000000200000-0x000001a00000: "Firmware_Stub" 0x000000000000-0x000007f80000: "ALL" tun: UniversalTUN/TAP device driver, 1.6 tun: (C) 1999-2004Max Krasnyansky <maxk@qualcomm.com> Ralink APSoCEthernet Driver v3.2.4 (raeth) raeth: PDMA RX ring512, QDMA TX pool 1024. Max packet size 1536 raeth: NAPI &GRO support, weight 64 raeth: Byte QueueLimits (BQL) support PPP generic driverversion 2.4.2 PPP MPPE Compressionmodule registered NET: Registeredprotocol family 24 PPTP driver version0.8.5 register mt_drv PCI: Enabling device0000:01:00.0 (0000 -> 0002) <--mt7916_hif_init() Rx[0] Ring: total24576 bytes allocated Rx[1] Ring: total16384 bytes allocated <--pci_alloc_tx_rx_ring_mem, Status=0 PCI: Enabling device0000:02:00.0 (0000 -> 0002) === pAd = c0301000,size = 11560896 === <--RTMPAllocAdapterBlock, Status=0 PCI CSRBaseAddress=0xc0200000, csr_addr=0xc0200000! RTMPInitPCIeDevice():device_id=0x7915 mt7915_init()--> Use the defaultiPAiLNA bin image! <--mt7915_init() RtmpOSFileOpen():Error 2 opening /etc_ro/Wireless/l1profile.dat Rx[0] Ring: total24576 bytes allocated Rx[1] Ring: total24576 bytes allocated Rx[2] Ring: total8192 bytes allocated Rx[3] Ring: total16384 bytes allocated Rx[4] Ring: total8192 bytes allocated <--pci_alloc_tx_rx_ring_mem, Status=0 nf_conntrack version0.5.0 (32768 buckets, 32768 max) xt_time: kerneltimezone is -0000 Bridge firewallingregistered gre: GRE over IPv4demultiplexor driver ip_tables: (C)2000-2006 Netfilter Core Team TCP: cubicregistered NET: Registeredprotocol family 10 ip6_tables: (C)2000-2006 Netfilter Core Team IPv6 over IPv4tunneling driver NET: Registeredprotocol family 17 L2TP core driver,V2.0 PPPoL2TP kerneldriver, V2.0 8021q: 802.1Q VLANSupport v1.8 ASUS NVRAM, v0.08.Available space: 131072. Integrity: Signature FAILED! end_request: I/Oerror, dev mtdblock5, sector 0 SQUASHFS error:squashfs_read_data failed to read block 0x0 SQUASHFS error:unable to read squashfs_super_block VFS: Cannot openroot device "mtdblock5" or unknown-block(31,5): error -5 Please append acorrect "root=" boot option; here are the available partitions: 1f00 512 mtdblock0 (driver?) 1f01 512 mtdblock1 (driver?) 1f02 512 mtdblock2 (driver?) 1f03 512 mtdblock3 (driver?) 1f04 128512 mtdblock4 (driver?) 1f06 512 mtdblock6 (driver?) 1f07 4096 mtdblock7 (driver?) 1f08 99328 mtdblock8 (driver?) 1f09 24576 mtdblock9 (driver?) 1f0a 130560 mtdblock10 (driver?) Kernel panic - not syncing: VFS: Unable to mount root fs onunknown-block(31,5)
点击链接加入群聊三群:751529538
点击链接加入群聊二群:376877156
点击链接加入群聊【路由器交流群:622891808已满】
本站附件分享,如果附件失效,可以去找找看
饿了么红包