TP-Link Archer C20 v4 Build

:no_entry:Warning about bricking your device
You need to use TFTP to install this version. Do not flash it from the stock UI!

Support status
Binaries and information are available in the Table of Hardware about the C20v4. Installation instructions are within this initial support commit.

Additional note.
U-boot has hardcoded tftp update command:

tftp 0x80060000 tp_recovery.bin;erase tplink 0x20000 0x7a0000;cp.b 0x80080000 0x20000 0x7a0000

You can see that the uboot code is not flashed or erased. So the device can't be fully bricked when updating via tftp mode. Uboot will be alive.

How to restore stock firmware via tftp

  1. Download stock firmware from tplink website for your device and unpack it. For a example next link Archer C20(EU)_V4_170822.zip
  2. Perform command: dd if=archer_stock.bin of=tp_recovery.bin bs=512 skip=1 to create firmware for tftp
  3. Use tftp mode to flash tp_recovery.bin.

Known issues:

  • 5GHz wireless is not working. This is because there is no opensource driver for it.

Special thanks goes to everyone who helped along the way.

2 Likes

I've just tested this build with an Archer C20 v4 that I have here. Seems to be working similar to other models with mt7628 chipset. Wireless is unstable but this is related to the mt76 wireless drivers and it's already a known issue. Power LED and wireless LED is not mapped correctly but I can help mapping those correctly.

Thanks for this effort =)

1 Like

Thank you very much for yours feedback! I checked source code and made some corrections in it. Now new Test3 firmware is available. So I would like to ask you to make something and publish results here.

  1. It is necessary to check all LEDS on the device. Please take two fotos of LEDS status after next commands for a and b variants.
    a) Turn off LEDS
    echo 0 > "/sys/class/leds/c20-v4:green:lan/brightness"
    echo 0 > "/sys/class/leds/c20-v4:green:power/brightness"
    echo 0 > "/sys/class/leds/c20-v4:green:wan/brightness"
    echo 0 > "/sys/class/leds/c20-v4:orange:wan/brightness"
    echo 0 > "/sys/class/leds/c20-v4:green:wlan5g/brightness"
    echo 0 > "/sys/class/leds/c20-v4:green:wlan2g/brightness"
    echo 0 > "/sys/class/leds/c20-v4:green:wps/brightness"
    b) Turn on LEDS
    echo 255 > "/sys/class/leds/c20-v4:green:lan/brightness"
    echo 255 > "/sys/class/leds/c20-v4:green:power/brightness"
    echo 255 > "/sys/class/leds/c20-v4:green:wan/brightness"
    echo 255 > "/sys/class/leds/c20-v4:orange:wan/brightness"
    echo 255 > "/sys/class/leds/c20-v4:green:wlan5g/brightness"
    echo 255 > "/sys/class/leds/c20-v4:green:wlan2g/brightness"
    echo 255 > "/sys/class/leds/c20-v4:green:wps/brightness"
  2. Please attach the device boot log for LEDE
  3. Could you check LAN port compliance in the LEDE webinterface? Connection to LAN1 port must be indicated as LAN1 connection in VLAN webinterface section. Also it must be similar for WAN, LAN2, LAN3 and LAN4 ports.

Thanks for testing)

hi, this is my first time to flash a device. And i'm new to LEDE.
below is the kernal log for test3.

[    0.000000] Linux version 4.9.67 (linaro@ope-linaro) (gcc version 5.5.0 (OpenWrt GCC 5.5.0 r5495-22d797dd81) ) #0 Tue Dec 12 05:14:05 2017
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is TP-Link Archer C20 V4
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 803f2cf4, node_mem_map 81000020
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=0002acd0
[    0.000000] Readback ErrCtl register=0002acd0
[    0.000000] Memory: 60436K/65536K available (3138K kernel code, 158K rwdata, 752K rodata, 168K init, 209K bss, 5100K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource_probe: no matching clocksources found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007526] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.070043] pid_max: default: 32768 minimum: 301
[    0.074629] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080965] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094416] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.103911] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.109833] pinctrl core: initialized pinctrl subsystem
[    0.115517] NET: Registered protocol family 16
[    0.227397] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[    0.382684] PCI host bridge /pcie@10140000 ranges:
[    0.387262]  MEM 0x0000000020000000..0x000000002fffffff
[    0.392287]   IO 0x0000000010160000..0x000000001016ffff
[    0.409995] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.415659] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.421270] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.427418] PCI host bridge to bus 0000:00
[    0.431373] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.437955] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.443678] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.450219] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.457914] pci 0000:00:00.0: [14c3:0801] type 01 class 0x060400
[    0.457950] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    0.457965] pci 0000:00:00.0: reg 0x14: [mem 0x20200000-0x2020ffff]
[    0.458046] pci 0000:00:00.0: supports D1
[    0.458057] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.458529] pci 0000:01:00.0: [14c3:7650] type 00 class 0x028000
[    0.458567] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    0.458711] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.458979] pci 0000:01:00.1: [14c3:8650] type 00 class 0x0d1100
[    0.459013] pci 0000:01:00.1: reg 0x10: [mem 0x00000000-0x000fffff]
[    0.459145] pci 0000:01:00.1: supports D1
[    0.459156] pci 0000:01:00.1: PME# supported from D0 D1 D3hot D3cold
[    0.459408] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.459428] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.459487] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.465821] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.472589] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    0.479093] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.485667] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
[    0.492202] pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]
[    0.498764] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.503540] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    0.510118] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0
[    0.515722] pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[    0.521370] pci 0000:01:00.1: card - bus=0x1, slot = 0x0 irq=4
[    0.530746] clocksource: Switched to clocksource MIPS
[    0.536903] NET: Registered protocol family 2
[    0.541984] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.548675] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.554864] TCP: Hash tables configured (established 1024 bind 1024)
[    0.561059] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.566656] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.572989] NET: Registered protocol family 1
[    0.577215] PCI: CLS 80 bytes, default 32
[    0.580172] Crashlog allocated RAM at address 0x3f00000
[    0.586378] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.600914] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.606489] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.624612] io scheduler noop registered
[    0.628344] io scheduler deadline registered (default)
[    0.634160] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.641505] console [ttyS0] disabled
[    0.644940] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.653713] console [ttyS0] enabled
[    0.660692] bootconsole [early0] disabled
[    0.669998] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.679149] m25p80 spi32766.0: using chunked io (size=32)
[    0.684699] m25p80 spi32766.0: s25fl064k (8192 Kbytes)
[    0.689950] 6 ofpart partitions found on MTD device spi32766.0
[    0.695871] Creating 6 MTD partitions on "spi32766.0":
[    0.701100] 0x000000000000-0x000000020000 : "u-boot"
[    0.707891] 0x000000020000-0x0000007c0000 : "firmware"
[    0.763655] 2 tplink-fw partitions found on MTD device firmware
[    0.769684] 0x000000020000-0x000000169d5c : "kernel"
[    0.776348] 0x000000169d5c-0x0000007c0000 : "rootfs"
[    0.783268] mtd: device 3 (rootfs) set to be root filesystem
[    0.789550] 1 squashfs-split partitions found on MTD device rootfs
[    0.795895] 0x000000390000-0x0000007c0000 : "rootfs_data"
[    0.803036] 0x0000007c0000-0x0000007d0000 : "config"
[    0.809853] 0x0000007d0000-0x0000007e0000 : "rom"
[    0.816542] 0x0000007e0000-0x0000007f0000 : "romfile"
[    0.823557] 0x0000007f0000-0x000000800000 : "radio"
[    0.831035] libphy: Fixed MDIO Bus: probed
[    0.844906] rt3050-esw 10110000.esw: link changed 0x00
[    0.851938] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.861961] NET: Registered protocol family 10
[    0.869473] NET: Registered protocol family 17
[    0.874116] 8021q: 802.1Q VLAN Support v1.8
[    0.889511] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    0.897649] Freeing unused kernel memory: 168K
[    0.902185] This architecture does not have kernel memory protection.
[    2.029745] init: Console is alive
[    2.033518] init: - watchdog -
[    2.331138] random: fast init done
[    3.293046] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.501131] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.518962] init: - preinit -
[    4.879293] rt3050-esw 10110000.esw: link changed 0x00
[    8.340506] jffs2: notice: (335) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.358431] mount_root: switching to jffs2 overlay
[    8.393144] urandom-seed: Seeding with /etc/urandom.seed
[    8.615276] procd: - early -
[    8.618302] procd: - watchdog -
[    9.055238] rt3050-esw 10110000.esw: link changed 0x04
[    9.195643] procd: - watchdog -
[    9.199104] procd: - ubus -
[    9.466309] procd: - init -
[    9.994623] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.005680] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.023036] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   10.031237] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   10.041343] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.055345] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   10.115673] xt_time: kernel timezone is -0000
[   10.175953] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   10.186765] mt76_wmac 10300000.wmac: Firmware Version: _e2_mp
[   10.192698] mt76_wmac 10300000.wmac: Build Time: 20150211175503
[   10.210747] firmware init done
[   10.381661] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   10.467795] PPP generic driver version 2.4.2
[   10.475016] NET: Registered protocol family 24
[   10.483859] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.744576] rt3050-esw 10110000.esw: link changed 0x00
[   17.671516] rt3050-esw 10110000.esw: link changed 0x04
[   18.591417] br-lan: port 1(eth0.1) entered blocking state
[   18.596909] br-lan: port 1(eth0.1) entered disabled state
[   18.602917] device eth0.1 entered promiscuous mode
[   18.607780] device eth0 entered promiscuous mode
[   18.639541] br-lan: port 1(eth0.1) entered blocking state
[   18.645097] br-lan: port 1(eth0.1) entered forwarding state
[  118.380813] random: crng init done
1 Like

yes. these r correct!

1 Like

today i connect the serial
following is the boot log

[04030D09][04030C0D]
DDR Calibration DQS reg = 0000888A


U-Boot 1.1.3 (Jul 17 2017 - 17:20:16)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
gpiomode1 55054404.
gpiomode2 05540554.
gpiomode2 05550555.
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jul 17 2017  Time:17:20:16
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
continue to starting system.                                                  0
disable switch phyport...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...
1 Like

Thank you very much for testing! I'll release new test build as soon as possible. I created pull request and now some changes need to test.

about LED
initial power on, all light will blink.
board boot up with all LED light off.
when plug RJ45
to LAN1, LAN LED is flashing fast
to LAN2, nothing
to LAN3, 5G LED is flashing fast
to LAN4, 2G LED is flashing fast
to WAN, internet LED is light on.

only this command work to trigger the LED
echo 255 > "/sys/class/leds/c20v4:green:wan/brightness"
echo 0 > "/sys/class/leds/c20v4:green:wan/brightness"

echo 255 > "/sys/class/leds/c20v4:orange:wan/brightness"
echo 0 > "/sys/class/leds/c20v4:orange:wan/brightness"

echo 255 > "/sys/class/leds/c20v4:green:wps/brightness"
echo 0 > "/sys/class/leds/c20v4:green:wps/brightness"

Thanks! New test build is available. Please install it via tftp mode. Could you make the following steps on the test4 please?

  1. Attach new boot log for test4
  2. Check upgrade procedure from OpenWRT webinterface using openwrt-ramips-mt76x8-tplink_c20-v4-squashfs-sysupgrade.bin image.
  3. Check device LEDS again.

Please report here if you find some problems or bugs. Thanks)

Hi Linaro,
should I do tftp tp_recovery.bin
or just sysupgrade.bin?

for test3, when i do sysupgrade.bin, it fail on target name not compatible.

should I do tftp tp_recovery.bin

Yes, please use tp_recovery.bin! Thats why I asked to update via tftp mode in the step 1.

Boot log test4.

[04030D09][04030C0D]
DDR Calibration DQS reg = 0000888A


U-Boot 1.1.3 (Jul 17 2017 - 17:20:16)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
gpiomode1 55054404.
gpiomode2 05540554.
gpiomode2 05550555.
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jul 17 2017  Time:17:20:16
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
continue to starting system.                                                  0
disable switch phyport...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 4.9.73 (linaro@ope-linaro) (gcc version 5.5.0 (OpenWrt GCC 5.5.0 r5697-a1af454121) ) #0 Tue Jan 9 11:29:04 2018
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is TP-Link Archer C20 v4
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00071dfe
[    0.000000] Readback ErrCtl register=00071dfe
[    0.000000] Memory: 60436K/65536K available (3139K kernel code, 157K rwdata, 752K rodata, 168K init, 209K bss, 5100K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource_probe: no matching clocksources found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007526] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.070044] pid_max: default: 32768 minimum: 301
[    0.074631] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080968] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094409] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.103903] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.109823] pinctrl core: initialized pinctrl subsystem
[    0.115499] NET: Registered protocol family 16
[    0.227450] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[    0.382734] PCI host bridge /pcie@10140000 ranges:
[    0.387314]  MEM 0x0000000020000000..0x000000002fffffff
[    0.392336]   IO 0x0000000010160000..0x000000001016ffff
[    0.409725] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.415387] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.420997] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.427148] PCI host bridge to bus 0000:00
[    0.431106] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.437687] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.443412] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.449953] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.458053] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.466878] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.473259] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.479934] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    0.486494] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.493042] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
[    0.499604] pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]
[    0.506143] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.510940] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    0.517498] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0
[    0.523126] pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[    0.528746] pci 0000:01:00.1: card - bus=0x1, slot = 0x0 irq=4
[    0.538038] clocksource: Switched to clocksource MIPS
[    0.544142] NET: Registered protocol family 2
[    0.549266] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.555957] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.562142] TCP: Hash tables configured (established 1024 bind 1024)
[    0.568338] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.573935] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.580271] NET: Registered protocol family 1
[    0.587392] Crashlog allocated RAM at address 0x3f00000
[    0.593568] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.607955] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.613576] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.631417] io scheduler noop registered
[    0.635148] io scheduler deadline registered (default)
[    0.640958] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.648296] console [ttyS0] disabled
[    0.651728] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.660480] console [ttyS0] enabled
[    0.660480] console [ttyS0] enabled
[    0.667464] bootconsole [early0] disabled
[    0.667464] bootconsole [early0] disabled
[    0.676770] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.685799] m25p80 spi32766.0: using chunked io (size=32)
[    0.691354] m25p80 spi32766.0: s25fl064k (8192 Kbytes)
[    0.696605] 6 ofpart partitions found on MTD device spi32766.0
[    0.702528] Creating 6 MTD partitions on "spi32766.0":
[    0.707745] 0x000000000000-0x000000020000 : "u-boot"
[    0.714521] 0x000000020000-0x0000007c0000 : "firmware"
[    0.769613] 2 tplink-fw partitions found on MTD device firmware
[    0.775642] 0x000000020000-0x000000169e98 : "kernel"
[    0.782299] 0x000000169e98-0x0000007c0000 : "rootfs"
[    0.789176] mtd: device 3 (rootfs) set to be root filesystem
[    0.795453] 1 squashfs-split partitions found on MTD device rootfs
[    0.801800] 0x000000390000-0x0000007c0000 : "rootfs_data"
[    0.808991] 0x0000007c0000-0x0000007d0000 : "config"
[    0.815781] 0x0000007d0000-0x0000007e0000 : "rom"
[    0.822441] 0x0000007e0000-0x0000007f0000 : "romfile"
[    0.829419] 0x0000007f0000-0x000000800000 : "radio"
[    0.836790] libphy: Fixed MDIO Bus: probed
[    0.851012] rt3050-esw 10110000.esw: link changed 0x00
[    0.857824] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.867850] NET: Registered protocol family 10
[    0.875433] NET: Registered protocol family 17
[    0.880082] 8021q: 802.1Q VLAN Support v1.8
[    0.894064] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    0.902198] Freeing unused kernel memory: 168K
[    0.906703] This architecture does not have kernel memory protection.
[    2.054429] init: Console is alive
[    2.058203] init: - watchdog -
[    2.348050] random: fast init done
[    3.086023] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.295863] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.313738] init: - preinit -
[    4.845781] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.309978] jffs2: notice: (339) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.327873] mount_root: switching to jffs2 overlay
[    8.363009] urandom-seed: Seeding with /etc/urandom.seed
[    8.584601] procd: - early -
[    8.587631] procd: - watchdog -
[    8.759601] rt3050-esw 10110000.esw: link changed 0x04
[    9.163366] procd: - watchdog -
[    9.166831] procd: - ubus -
[    9.433320] procd: - init -
Please press Enter to activate this console.
[    9.967821] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.979058] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.996319] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   10.004523] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   10.014579] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.028605] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   10.087515] xt_time: kernel timezone is -0000
[   10.148803] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   10.159589] mt76_wmac 10300000.wmac: Firmware Version: _e2_mp
[   10.165434] mt76_wmac 10300000.wmac: Build Time: 20150211175503
[   10.188037] firmware init done
[   10.445898] PPP generic driver version 2.4.2
[   10.453107] NET: Registered protocol family 24
[   10.461964] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.937145] rt3050-esw 10110000.esw: link changed 0x00
[   18.044522] rt3050-esw 10110000.esw: link changed 0x04
[   19.100010] br-lan: port 1(eth0.1) entered blocking state
[   19.105501] br-lan: port 1(eth0.1) entered disabled state
[   19.111523] device eth0.1 entered promiscuous mode
[   19.116387] device eth0 entered promiscuous mode
[   19.154020] br-lan: port 1(eth0.1) entered blocking state
[   19.159571] br-lan: port 1(eth0.1) entered forwarding state
[   19.165431] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   20.140743] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   22.740459] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   22.762051] br-lan: port 2(wlan0) entered blocking state
[   22.767455] br-lan: port 2(wlan0) entered disabled state
[   22.773413] device wlan0 entered promiscuous mode
[   22.816884] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   22.823593] br-lan: port 2(wlan0) entered blocking state
[   22.829023] br-lan: port 2(wlan0) entered forwarding state
1 Like

test4
LED
Power on, all LED blink onces
Booting, power LED blink
finish boot,
power LED on
lan LED on

turn on wifi, 2.4G LED on
wifi data transmit, 2.4G LED blink

for internet LED, plug cable in will on

Thanks. Now LEDS works ok. Right?

yes. LED is working

1 Like

Could you check firmware update via OpenWRT webinterface on the test4? Please use openwrt-ramips-mt76x8-tplink_c20-v4-squashfs-sysupgrade.bin image from test4.

1 Like

test4 sysupgrade.bin

using webinterface (Window 10, Firefox 57.0.5 (64bit)
Error: The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform.

Command Line upgrade successful.

1 Like

Hi cmwong1024. Thanks for help with testing. I have one more request.

Command Line upgrade successful.

Could you attach console logfile of a sysupgrade done via command line?

root@OpenWrt:/# sysupgrade -v /tmp/*.bin
Saving config files...
etc/config/dhcp
etc/config/dropbear
etc/config/firewall
etc/config/luci
etc/config/network
etc/config/rpcd
etc/config/system
etc/config/ucitrack
etc/config/uhttpd
etc/config/wireless
etc/dropbear/dropbear_rsa_host_key
etc/group
etc/hosts
etc/inittab
etc/luci-uploads/.placeholder
etc/opkg/keys/3bf3f01eeceed87f
etc/opkg/keys/4b42a4756caac097
etc/opkg/keys/5151f69420c3f508
etc/opkg/keys/72a57f2191b211e0
etc/opkg/keys/792d9d9b39f180dc
etc/opkg/keys/9ef4694208102c43
etc/opkg/keys/b5043e70f9a75cde
etc/opkg/keys/dace9d4df16896bf
etc/opkg/keys/dd6de0d06bbd3d85
etc/passwd
etc/profile
etc/rc.local
etc/shadow
etc/shells
etc/sysctl.conf
etc/sysctl.d/local.conf
killall: watchdog: no process killed
Commencing upgrade. All shell sessions will be closed now.
Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
Sending TERM to remaining processes ... odhcp6c ntpd hostapd [ 4185.268894] device wlan0 left promiscuous mode
[ 4185.273598] br-lan: port 2(wlan0) entered disabled state
dnsmasq ubusd pppd logd rpcd netifd odhcpd uhttpd
Sending KILL to remaining processes ... ntpd
Switching to ramdisk...
Performing system upgrade...
Unlocking firmware ...

Writing from <stdin> to firmware ...
Appending jffs2 data from /tmp/sysupgrade.tgz to firmware..                     
Upgrade completed
Rebooting system...
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
[ 4214.354680] reboot: Restarting system
[04040D08][04040C0D]
DDR Calibration DQS reg = 0000888A


U-Boot 1.1.3 (Jul 17 2017 - 17:20:16)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
******************************
Software System Reset Occurred
******************************
gpiomode1 55054404.
gpiomode2 05540554.
gpiomode2 05550555.
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jul 17 2017  Time:17:20:16
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
continue to starting system.                                                  0
disable switch phyport...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 4.9.73 (linaro@ope-linaro) (gcc version 5.5.0 (OpenWrt GCC 5.5.0 r5697-a1af454121) ) #0 Tue Jan 9 11:29:04 2018
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is TP-Link Archer C20 v4
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=000359b0
[    0.000000] Readback ErrCtl register=000359b0
[    0.000000] Memory: 60436K/65536K available (3139K kernel code, 157K rwdata, 752K rodata, 168K init, 209K bss, 5100K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource_probe: no matching clocksources found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007527] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.070045] pid_max: default: 32768 minimum: 301
[    0.074631] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080968] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094409] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.103902] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.109823] pinctrl core: initialized pinctrl subsystem
[    0.115499] NET: Registered protocol family 16
[    0.227449] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[    0.382734] PCI host bridge /pcie@10140000 ranges:
[    0.387314]  MEM 0x0000000020000000..0x000000002fffffff
[    0.392336]   IO 0x0000000010160000..0x000000001016ffff
[    0.409725] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.415387] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.420997] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.427148] PCI host bridge to bus 0000:00
[    0.431106] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.437687] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.443413] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.449953] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.459198] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.465533] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.472303] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    0.478804] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.485374] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
[    0.491913] pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]
[    0.498474] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.503252] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    0.509830] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0
[    0.515434] pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[    0.521083] pci 0000:01:00.1: card - bus=0x1, slot = 0x0 irq=4
[    0.530347] clocksource: Switched to clocksource MIPS
[    0.536509] NET: Registered protocol family 2
[    0.541594] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.548284] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.554471] TCP: Hash tables configured (established 1024 bind 1024)
[    0.560668] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.566266] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.572603] NET: Registered protocol family 1
[    0.579725] Crashlog allocated RAM at address 0x3f00000
[    0.585900] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.600287] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.605907] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.623748] io scheduler noop registered
[    0.627479] io scheduler deadline registered (default)
[    0.633290] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.640628] console [ttyS0] disabled
[    0.644061] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.652819] console [ttyS0] enabled
[    0.652819] console [ttyS0] enabled
[    0.659798] bootconsole [early0] disabled
[    0.659798] bootconsole [early0] disabled
[    0.669104] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.678134] m25p80 spi32766.0: using chunked io (size=32)
[    0.683688] m25p80 spi32766.0: s25fl064k (8192 Kbytes)
[    0.688937] 6 ofpart partitions found on MTD device spi32766.0
[    0.694859] Creating 6 MTD partitions on "spi32766.0":
[    0.700078] 0x000000000000-0x000000020000 : "u-boot"
[    0.706855] 0x000000020000-0x0000007c0000 : "firmware"
[    0.761922] 2 tplink-fw partitions found on MTD device firmware
[    0.767951] 0x000000020000-0x000000169e98 : "kernel"
[    0.774607] 0x000000169e98-0x0000007c0000 : "rootfs"
[    0.781485] mtd: device 3 (rootfs) set to be root filesystem
[    0.787762] 1 squashfs-split partitions found on MTD device rootfs
[    0.794107] 0x000000390000-0x0000007c0000 : "rootfs_data"
[    0.801298] 0x0000007c0000-0x0000007d0000 : "config"
[    0.808088] 0x0000007d0000-0x0000007e0000 : "rom"
[    0.814747] 0x0000007e0000-0x0000007f0000 : "romfile"
[    0.821725] 0x0000007f0000-0x000000800000 : "radio"
[    0.829094] libphy: Fixed MDIO Bus: probed
[    0.843179] rt3050-esw 10110000.esw: link changed 0x00
[    0.849992] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.860019] NET: Registered protocol family 10
[    0.867602] NET: Registered protocol family 17
[    0.872250] 8021q: 802.1Q VLAN Support v1.8
[    0.886228] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    0.894361] Freeing unused kernel memory: 168K
[    0.898867] This architecture does not have kernel memory protection.
[    2.046914] init: Console is alive
[    2.050684] init: - watchdog -
[    2.340357] random: fast init done
[    3.078258] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.289089] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.306956] init: - preinit -
[    4.841144] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.273070] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[    8.280444] jffs2_build_filesystem(): unlocking the mtd device... [    8.286528] done.
[    8.288477] jffs2_build_filesystem(): erasing all blocks after the end marker... [    8.787637] rt3050-esw 10110000.esw: link changed 0x02
[   23.080190] done.
[   23.082217] jffs2: notice: (339) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   23.099659] mount_root: overlay filesystem has not been fully initialized yet
[   23.118306] mount_root: switching to jffs2 overlay
- config restore -
[   23.511057] urandom-seed: Seed file not found (/etc/urandom.seed)
[   23.716383] procd: - early -
[   23.719414] procd: - watchdog -
[   24.293582] procd: - watchdog -
[   24.297057] procd: - ubus -
[   24.474678] procd: - init -
Please press Enter to activate this console.
[   24.991691] kmodloader: loading kernel modules from /etc/modules.d/*
[   25.002825] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   25.020041] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   25.028234] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   25.038250] ip_tables: (C) 2000-2006 Netfilter Core Team
[   25.052272] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   25.111877] xt_time: kernel timezone is -0000
[   25.173317] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   25.184087] mt76_wmac 10300000.wmac: Firmware Version: _e2_mp
[   25.189933] mt76_wmac 10300000.wmac: Build Time: 20150211175503
[   25.210346] firmware init done
[   25.468212] PPP generic driver version 2.4.2
[   25.475425] NET: Registered protocol family 24
[   25.484280] kmodloader: done loading kernel modules from /etc/modules.d/*
[   30.364117] rt3050-esw 10110000.esw: link changed 0x00
[   35.176174] rt3050-esw 10110000.esw: link changed 0x02
[   35.388221] br-lan: port 1(eth0.1) entered blocking state
[   35.393785] br-lan: port 1(eth0.1) entered disabled state
[   35.399719] device eth0.1 entered promiscuous mode
[   35.404640] device eth0 entered promiscuous mode
[   35.439515] br-lan: port 1(eth0.1) entered blocking state
[   35.445066] br-lan: port 1(eth0.1) entered forwarding state
[   35.450959] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   36.440753] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   39.669540] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   39.686890] br-lan: port 2(wlan0) entered blocking state
[   39.692386] br-lan: port 2(wlan0) entered disabled state
[   39.698254] device wlan0 entered promiscuous mode
[   40.216394] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   40.223073] br-lan: port 2(wlan0) entered blocking state
[   40.228464] br-lan: port 2(wlan0) entered forwarding state



BusyBox v1.27.2 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
		  |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r5697-a1af454121
 -----------------------------------------------------
1 Like

i redo webinterface update. it is working. Maybe my first time was selected the zip file.

Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
killall: dropbear: no process killed
killall: ash: no process killed
Sending TERM to remaining processes ... hostapd [  230.480277] device wlan0 left promiscuous mode
[  230.484922] br-lan: port 2(wlan0) entered disabled state
dnsmasq pppd sh sysupgrade ubus ubusd askfirst logd rpcd netifd odhcpd ntpd
Sending KILL to remaining processes ... ntpd
Switching to ramdisk...
Performing system upgrade...
Unlocking firmware ...

Writing from <stdin> to firmware ...
Appending jffs2 data from /tmp/sysupgrade.tgz to firmware..                     
Upgrade completed
Rebooting system...
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
[  259.634400] reboot: Restarting system
[04040D07][04040C0C]
DDR Calibration DQS reg = 00008889


U-Boot 1.1.3 (Jul 17 2017 - 17:20:16)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
******************************
Software System Reset Occurred
******************************
gpiomode1 55054404.
gpiomode2 05540554.
gpiomode2 05550555.
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jul 17 2017  Time:17:20:16
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
continue to starting system.                                                  0
disable switch phyport...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 4.9.73 (linaro@ope-linaro) (gcc version 5.5.0 (OpenWrt GCC 5.5.0 r5697-a1af454121) ) #0 Tue Jan 9 11:29:04 2018
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is TP-Link Archer C20 v4
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=0002add0
[    0.000000] Readback ErrCtl register=0002add0
[    0.000000] Memory: 60436K/65536K available (3139K kernel code, 157K rwdata, 752K rodata, 168K init, 209K bss, 5100K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource_probe: no matching clocksources found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007527] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.070045] pid_max: default: 32768 minimum: 301
[    0.074631] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080968] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094409] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.103902] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.109823] pinctrl core: initialized pinctrl subsystem
[    0.115499] NET: Registered protocol family 16
[    0.227450] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[    0.382734] PCI host bridge /pcie@10140000 ranges:
[    0.387314]  MEM 0x0000000020000000..0x000000002fffffff
[    0.392336]   IO 0x0000000010160000..0x000000001016ffff
[    0.409724] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.415387] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.420997] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.427148] PCI host bridge to bus 0000:00
[    0.431105] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.437687] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.443412] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.449952] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.459199] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.465533] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.472303] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[    0.478804] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.485375] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
[    0.491914] pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]
[    0.498474] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.503252] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x201fffff]
[    0.509831] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0
[    0.515434] pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[    0.521084] pci 0000:01:00.1: card - bus=0x1, slot = 0x0 irq=4
[    0.530348] clocksource: Switched to clocksource MIPS
[    0.536510] NET: Registered protocol family 2
[    0.541595] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.548285] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.554472] TCP: Hash tables configured (established 1024 bind 1024)
[    0.560669] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.566267] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.572604] NET: Registered protocol family 1
[    0.579726] Crashlog allocated RAM at address 0x3f00000
[    0.585902] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.600289] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.605909] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.623750] io scheduler noop registered
[    0.627482] io scheduler deadline registered (default)
[    0.633293] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.640630] console [ttyS0] disabled
[    0.644064] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.652821] console [ttyS0] enabled
[    0.652821] console [ttyS0] enabled
[    0.659800] bootconsole [early0] disabled
[    0.659800] bootconsole [early0] disabled
[    0.669107] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.678136] m25p80 spi32766.0: using chunked io (size=32)
[    0.683690] m25p80 spi32766.0: s25fl064k (8192 Kbytes)
[    0.688940] 6 ofpart partitions found on MTD device spi32766.0
[    0.694862] Creating 6 MTD partitions on "spi32766.0":
[    0.700081] 0x000000000000-0x000000020000 : "u-boot"
[    0.706858] 0x000000020000-0x0000007c0000 : "firmware"
[    0.761923] 2 tplink-fw partitions found on MTD device firmware
[    0.767952] 0x000000020000-0x000000169e98 : "kernel"
[    0.774609] 0x000000169e98-0x0000007c0000 : "rootfs"
[    0.781487] mtd: device 3 (rootfs) set to be root filesystem
[    0.787764] 1 squashfs-split partitions found on MTD device rootfs
[    0.794109] 0x000000390000-0x0000007c0000 : "rootfs_data"
[    0.801300] 0x0000007c0000-0x0000007d0000 : "config"
[    0.808089] 0x0000007d0000-0x0000007e0000 : "rom"
[    0.814748] 0x0000007e0000-0x0000007f0000 : "romfile"
[    0.821727] 0x0000007f0000-0x000000800000 : "radio"
[    0.829096] libphy: Fixed MDIO Bus: probed
[    0.843179] rt3050-esw 10110000.esw: link changed 0x00
[    0.849991] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.860018] NET: Registered protocol family 10
[    0.867602] NET: Registered protocol family 17
[    0.872249] 8021q: 802.1Q VLAN Support v1.8
[    0.886229] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    0.894362] Freeing unused kernel memory: 168K
[    0.898868] This architecture does not have kernel memory protection.
[    2.046602] init: Console is alive
[    2.050276] init: - watchdog -
[    2.340360] random: fast init done
[    3.078490] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.288586] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.306457] init: - preinit -
[    4.837678] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.272865] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[    8.280216] jffs2_build_filesystem(): unlocking the mtd device... [    8.286327] done.
[    8.288278] jffs2_build_filesystem(): erasing all blocks after the end marker... [    8.768043] rt3050-esw 10110000.esw: link changed 0x02
[   23.121299] done.
[   23.123306] jffs2: notice: (339) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   23.140832] mount_root: overlay filesystem has not been fully initialized yet
[   23.158886] mount_root: switching to jffs2 overlay
- config restore -
[   23.552523] urandom-seed: Seed file not found (/etc/urandom.seed)
[   23.757753] procd: - early -
[   23.761580] procd: - watchdog -
[   24.335685] procd: - watchdog -
[   24.339150] procd: - ubus -
[   24.516790] procd: - init -
Please press Enter to activate this console.
[   25.034487] kmodloader: loading kernel modules from /etc/modules.d/*
[   25.045587] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   25.062910] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   25.071103] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   25.081154] ip_tables: (C) 2000-2006 Netfilter Core Team
[   25.095146] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   25.155644] xt_time: kernel timezone is -0000
[   25.217724] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   25.228491] mt76_wmac 10300000.wmac: Firmware Version: _e2_mp
[   25.234405] mt76_wmac 10300000.wmac: Build Time: 20150211175503
[   25.260347] firmware init done
[   25.519337] PPP generic driver version 2.4.2
[   25.526542] NET: Registered protocol family 24
[   25.535401] kmodloader: done loading kernel modules from /etc/modules.d/*
[   30.416580] rt3050-esw 10110000.esw: link changed 0x00
[   34.557106] rt3050-esw 10110000.esw: link changed 0x02
[   35.439591] br-lan: port 1(eth0.1) entered blocking state
[   35.445153] br-lan: port 1(eth0.1) entered disabled state
[   35.451114] device eth0.1 entered promiscuous mode
[   35.455978] device eth0 entered promiscuous mode
[   35.489522] br-lan: port 1(eth0.1) entered blocking state
[   35.495074] br-lan: port 1(eth0.1) entered forwarding state
[   35.500963] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   36.440761] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   39.833098] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   39.843964] br-lan: port 2(wlan0) entered blocking state
[   39.849441] br-lan: port 2(wlan0) entered disabled state
[   39.855383] device wlan0 entered promiscuous mode
[   40.463556] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   40.470553] br-lan: port 2(wlan0) entered blocking state
[   40.475978] br-lan: port 2(wlan0) entered forwarding state
[   79.920441] random: crng init done



BusyBox v1.27.2 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
		  |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r5697-a1af454121
 -----------------------------------------------------
root@OpenWrt:/#
1 Like