TP-Link Archer C20 v1 Build

Trying use other kernel version ? May be downgrade ?

Good point @root, I'll try from LEDE Reboot instead of master.

@NeonClub, could you kindly provide following bootlogs please:

  • From stock TP-Link version (I know that there is a bootlog already in the Wiki, but I'd like a fresh one from your device to compare)
  • From your working OpenWrt version (same comment about existing bootlog)

Regards

DjiPi use latest stable lede 17.01.2 with kernel 4.4.71, not latest beta\experimental 4.9.37, i think it must be work =)

1 Like

1)Bootlog from https://wiki.openwrt.org/toh/tp-link/tp-link_archer_c20_1

http://neonclub.lv/FILES/archerc20/openwrt_15.04.txt

2)Bootlog from sys c20i up to c20 https://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7620/openwrt-15.05.1-ramips-mt7620-ArcherC20i-squashfs-sysupgrade.bin

http://neonclub.lv/FILES/archerc20/C20iSys.txt

3)And bootlog from tplink

http://neonclub.lv/FILES/archerc20/tplinks.txt

1 Like

Thank you very much @NeonClub for these logs!

You have some weird stuff going on on your router from TP-Link's original firmware:

spiflash_ioctl_read, Read from 0x007f0000 length 0x200, ret 0, retlen 0x200
eeFlashId = 0x7643!
!! default cal bin is /etc/MT7620_AP_2T2R-4L_V15.BIN
--> rtmp_ee_flash_reset copy /etc/MT7620_AP_2T2R-4L_V15.BIN to eeprom buffer
write cal to mem only!!
The EEPROM in Flash is wrong, use default

This is from the Wiki to compare:

spiflash_ioctl_read, Read from 0x007f0000 length 0x200, ret 0, retlen 0x200
eeFlashId = 0x7620!
E2PROM: D0 target power=0xff1e
E2PROM: 40 MW Power Delta= 0

Here is the new (code) experimental version based on the 17.01.2: https://github.com/jpstyves/lede/releases/tag/beta3-17.01.2

Yes , i not like this model . is bad work all time..
and i get a flash dead, on upgrading to tplink new version .. (creazy)
Next time i soldering a new flash chip , and get from this forum dump

ok , is a new bootlogs from new code ))))))

[details=Bootlogs_17.01.2]U-Boot 1.1.3 (Aug 26 2015 - 18:00:56)

Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb0000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.

Archer C20 v1.0.0

spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
find flash: GD25Q64BF

Ralink UBoot Version: 4.1.2.0

ASIC 7620_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Aug 26 2015 Time:18:00:56

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

continue to starting system. 0
disableEthForward(1158):disable switch forward...

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.4.71 (jpstyves@LEDE-Dev) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3435-65eec8bd5f) ) #0 Thu Jun 8 21:02:37 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 MT7620A ver:2 eco:6
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is TP-Link Archer C20
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 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] 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] 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=000597ce
[ 0.000000] Readback ErrCtl register=000597ce
[ 0.000000] Memory: 60760K/65536K available (2895K kernel code, 136K rwdata, 696K rodata, 168K init, 203K bss, 4776K 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] CPU Clock: 580MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[ 0.000000] systick: enable autosleep mode
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.007570] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.070057] pid_max: default: 32768 minimum: 301
[ 0.074683] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.081056] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094820] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.104375] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.110437] pinctrl core: initialized pinctrl subsystem
[ 0.116185] NET: Registered protocol family 16
[ 0.605825] PCI host bridge /pcie@10140000 ranges:
[ 0.610441] MEM 0x0000000020000000..0x000000002fffffff
[ 0.615491] IO 0x0000000010160000..0x000000001016ffff
[ 0.629044] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.634490] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.640622] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.646015] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.652167] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.657564] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.663675] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.668980] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.675703] PCI host bridge to bus 0000:00
[ 0.679670] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 0.686294] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 0.692052] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.698636] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.706816] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.715736] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 0.722146] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 0.728866] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[ 0.735469] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[ 0.742060] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
[ 0.748662] pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]
[ 0.755236] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.760065] pci 0000:00:00.0: bridge window [mem 0x20000000-0x201fffff]
[ 0.766662] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0
[ 0.772326] pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[ 0.777981] pci 0000:01:00.1: card - bus=0x1, slot = 0x0 irq=4
[ 0.784647] clocksource: Switched to clocksource systick
[ 0.791201] NET: Registered protocol family 2
[ 0.796348] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.803076] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.809294] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.815519] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.821145] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.827544] NET: Registered protocol family 1
[ 0.836669] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.843524] Crashlog allocated RAM at address 0x3f00000
[ 0.863875] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.869552] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.881809] io scheduler noop registered
[ 0.885624] io scheduler deadline registered (default)
[ 0.890808] ralink-usb-phy usbphy: invalid resource
[ 0.896248] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.903550] console [ttyS0] disabled
[ 0.907057] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.916670] console [ttyS0] enabled
[ 0.916670] console [ttyS0] enabled
[ 0.923712] bootconsole [early0] disabled
[ 0.923712] bootconsole [early0] disabled
[ 0.936660] spi spi0.0: force spi mode3
[ 0.941114] m25p80 spi0.0: gd25q64 (8192 Kbytes)
[ 0.945935] 6 ofpart partitions found on MTD device spi0.0
[ 0.951529] Creating 6 MTD partitions on "spi0.0":
[ 0.956438] 0x000000000000-0x000000020000 : "u-boot"
[ 0.963307] 0x000000020000-0x0000007c0000 : "firmware"
[ 1.934515] 2 tplink-fw partitions found on MTD device firmware
[ 1.940597] 0x000000020000-0x000000153b74 : "kernel"
[ 1.947287] 0x000000153b74-0x0000007c0000 : "rootfs"
[ 1.954150] mtd: device 3 (rootfs) set to be root filesystem
[ 1.960139] 1 squashfs-split partitions found on MTD device rootfs
[ 1.966471] 0x0000003a1000-0x0000007c0000 : "rootfs_data"
[ 1.973874] 0x0000007c0000-0x0000007d0000 : "config"
[ 1.980802] 0x0000007d0000-0x0000007e0000 : "rom"
[ 1.987478] 0x0000007e0000-0x0000007f0000 : "romfile"
[ 1.994424] 0x0000007f0000-0x000000800000 : "radio"
[ 2.004348] gsw: setting port4 to ephy mode
[ 2.008913] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 2.015771] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 2.024828] rt2880_wdt 10000120.watchdog: Initialized
[ 2.031551] NET: Registered protocol family 10
[ 2.040615] NET: Registered protocol family 17
[ 2.045324] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 2.058225] 8021q: 802.1Q VLAN Support v1.8
[ 2.077563] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 2.085739] Freeing unused kernel memory: 168K (803a6000 - 803d0000)
[ 4.148906] init: Console is alive
[ 4.152595] init: - watchdog -
[ 5.602796] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.695720] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.704899] init: - preinit -
[ 6.840147] 8021q: adding VLAN 0 to HW filter on device eth0
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
[ 7.255193] mount_root: no usable overlay filesystem found, using tmpfs overlay
[ 7.266789] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 7.394423] procd: - early -
[ 7.397517] procd: - watchdog -
[ 7.588714] procd: - ubus -
[ 7.607786] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 7.617525] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 7.626874] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 7.636490] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 7.645799] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 7.655195] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 7.664640] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 7.674271] procd: - init -
Please press Enter to activate this console.
[ 7.996819] kmodloader: loading kernel modules from /etc/modules.d/*
[ 8.009636] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 8.026157] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[ 8.034404] Backport generated by backports.git backports-20160324-13-g24da7d3c
[ 8.101101] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 8.115968] nf_conntrack version 0.5.0 (952 buckets, 3808 max)
[ 8.168200] xt_time: kernel timezone is -0000
[ 8.185922] PPP generic driver version 2.4.2
[ 8.193269] NET: Registered protocol family 24
[ 8.215997] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "radio"
[ 8.223293] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[ 8.231247] ieee80211 phy0: rt2800_init_eeprom: Error - Invalid RF chipset 0x7643 detected
[ 8.239702] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to allocate device
[ 8.247446] ------------[ cut here ]------------
[ 8.252194] WARNING: CPU: 0 PID: 407 at mm/vmalloc.c:1466 release_firmware+0x64/0x144()
[ 8.260369] Trying to vfree() nonexistent vm area (83bd6000)
[ 8.266138] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt mt76x2e mt7603e mt76 mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables eeprom_93cx6 leds_gpio gpio_button_hotplug
[ 8.331402] CPU: 0 PID: 407 Comm: kmodloader Not tainted 4.4.71 #0
[ 8.337705] Stack : 803472b4 00000000 00000001 80390000 838cc284 8038ad23 80328bf0 00000197
803d3438 00000003 00000016 024000c0 80066174 8004ad88 8032e104 80380000
00000003 00000003 8032c508 8300dae4 80066174 80048cf4 00000006 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
...
[ 8.374084] Call Trace:
[ 8.376619] [<80066174>] module_sect_show+0x0/0x18
[ 8.381531] [<8004ad88>] vprintk_default+0x24/0x30
[ 8.386425] [<80066174>] module_sect_show+0x0/0x18
[ 8.391327] [<80048cf4>] printk+0x2c/0x38
[ 8.395426] [<80025368>] warn_slowpath_common+0xa0/0xd0
[ 8.400779] [<80149914>] dump_stack+0x14/0x28
[ 8.405227] [<80014838>] show_stack+0x50/0x84
[ 8.409685] [<80025368>] warn_slowpath_common+0xa0/0xd0
[ 8.415030] [<801aeac4>] release_firmware+0x64/0x144
[ 8.420125] [<800253c4>] warn_slowpath_fmt+0x2c/0x38
[ 8.425195] [<8009dbf0>] __vunmap+0x4c/0x114
[ 8.429568] [<80036478>] queue_work_on+0x44/0x74
[ 8.434300] [<801aeac4>] release_firmware+0x64/0x144
[ 8.439414] [<830c682c>] rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[ 8.446383] [<830c1b80>] rt2x00lib_probe_dev+0x7a8/0x848 [rt2x00lib]
[ 8.452917] [<80066174>] module_sect_show+0x0/0x18
[ 8.457813] [<831731e4>] rt2x00soc_probe+0x160/0x1bc [rt2x00soc]
[ 8.463974] [<8003cc30>] blocking_notifier_call_chain+0x14/0x20
[ 8.470049] [<801ac128>] devm_kfree+0x20/0x44
[ 8.474507] [<801aa624>] platform_drv_probe+0x28/0x70
[ 8.479690] [<801a8c58>] driver_probe_device+0x120/0x288
[ 8.485131] [<8008a0dc>] kstrdup+0x44/0x8c
[ 8.489320] [<801aa7f8>] platform_match+0x60/0x110
[ 8.494239] [<801a8e3c>] __driver_attach+0x7c/0xb4
[ 8.499132] [<801a7060>] next_device+0x10/0x30
[ 8.503688] [<801a8dc0>] __driver_attach+0x0/0xb4
[ 8.508490] [<801a711c>] bus_for_each_dev+0x9c/0xac
[ 8.513504] [<802d1220>] klist_add_tail+0x24/0x50
[ 8.518314] [<801a6ef0>] bus_get+0x2c/0x50
[ 8.522522] [<801a8350>] bus_add_driver+0xec/0x20c
[ 8.527423] [<80066174>] module_sect_show+0x0/0x18
[ 8.532331] [<801554a0>] kvasprintf+0x70/0x94
[ 8.536782] [<801ebafc>] __alloc_skb+0x88/0x184
[ 8.541431] [<800a5804>] __slab_alloc.isra.13.constprop.17+0x20/0x44
[ 8.547934] [<83197000>] init_module+0x0/0x2c [rt2800soc]
[ 8.553468] [<801a9554>] driver_register+0xa8/0xf8
[ 8.558377] [<800456e0>] __wake_up+0x24/0x48
[ 8.562760] [<83197000>] init_module+0x0/0x2c [rt2800soc]
[ 8.568287] [<8000d890>] do_one_initcall+0x1e8/0x214
[ 8.573378] [<83197000>] init_module+0x0/0x2c [rt2800soc]
[ 8.578896] [<800a5a18>] kmem_cache_alloc+0x40/0xfc
[ 8.583910] [<80033e88>] call_usermodehelper_setup+0x38/0xa8
[ 8.589714] [<80066174>] module_sect_show+0x0/0x18
[ 8.594617] [<80067394>] do_init_module+0x74/0x1cc
[ 8.599513] [<8009dc94>] __vunmap+0xf0/0x114
[ 8.603904] [<80068c28>] load_module+0x16c0/0x1b68
[ 8.608799] [<80066760>] unknown_module_param_cb+0x0/0xac
[ 8.614329] [<8009e188>] __vmalloc_node+0x34/0x40
[ 8.619146] [<80069164>] SyS_init_module+0x94/0x180
[ 8.624142] [<80069200>] SyS_init_module+0x130/0x180
[ 8.629228] [<8000682c>] syscall_common+0x30/0x54
[ 8.634053] [<80008c58>] __bzero+0xbc/0x164
[ 8.638319]
[ 8.639851] ---[ end trace aafa149b068ca664 ]---
[ 8.644567] Kernel bug detected[#1]:
[ 8.648221] CPU: 0 PID: 407 Comm: kmodloader Tainted: G W 4.4.71 #0
[ 8.655768] task: 838cc000 ti: 8300c000 task.ti: 8300c000
[ 8.661269] $ 0 : 00000000 00000000 810618e0 00000001
[ 8.666615] $ 4 : 830c7b20 ffffffff 000000e8 830c7b20
[ 8.671958] $ 8 : 0000002d 36306239 36616338 5d203436
[ 8.677301] $12 : 00000000 00000013 00000000 6d6f635f
[ 8.682642] $16 : 83ba1460 ffffffed 83ba0b40 8388ee10
[ 8.687985] $20 : 83ba1734 00000003 00000016 024000c0
[ 8.693328] $24 : 00000003 8019e6ac
[ 8.698669] $28 : 8300c000 8300dbb0 80066174 830c682c
[ 8.704015] Hi : 00000000
[ 8.706950] Lo : ec4e4000
[ 8.709895] epc : 800a4d14 kfree+0x70/0x150
[ 8.714368] ra : 830c682c rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[ 8.721642] Status: 1100a403 KERNEL EXL IE
[ 8.725921] Cause : 10800034 (ExcCode 0d)
[ 8.730008] PrId : 00019650 (MIPS 24KEc)
[ 8.734092] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt mt76x2e mt7603e mt76 mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables eeprom_93cx6 leds_gpio gpio_button_hotplug
[ 8.799275] Process kmodloader (pid: 407, threadinfo=8300c000, task=838cc000, tls=77df1d48)
[ 8.807788] Stack : 83ba1460 8300dbd0 830c6d6c 83ba1460 83ba1460 830c1b80 83ba0b40 8388ee10
830c69e4 00000000 00000000 83bc2300 83ba0160 024080c0 83ba1460 02400000
83ba0b40 8388ee10 83bd5524 00000003 00000016 024000c0 80066174 831731e4
80400000 8003cc30 83bd57d4 801ac128 8388ee10 83bd57d4 83bd57d4 80400000
80400000 801aa624 83bc2100 00000001 83bd57d4 83bd57d4 8388ee10 8388ee10
...
[ 8.844131] Call Trace:
[ 8.846629] [<800a4d14>] kfree+0x70/0x150
[ 8.850741] [<830c682c>] rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[ 8.857688] [<830c1b80>] rt2x00lib_probe_dev+0x7a8/0x848 [rt2x00lib]
[ 8.864186] [<831731e4>] rt2x00soc_probe+0x160/0x1bc [rt2x00soc]
[ 8.870329] [<801aa624>] platform_drv_probe+0x28/0x70
[ 8.875488] [<801a8c58>] driver_probe_device+0x120/0x288
[ 8.880910] [<801a8e3c>] __driver_attach+0x7c/0xb4
[ 8.885802] [<801a711c>] bus_for_each_dev+0x9c/0xac
[ 8.890781] [<801a8350>] bus_add_driver+0xec/0x20c
[ 8.895673] [<801a9554>] driver_register+0xa8/0xf8
[ 8.900577] [<8000d890>] do_one_initcall+0x1e8/0x214
[ 8.905659] [<80067394>] do_init_module+0x74/0x1cc
[ 8.910553] [<80068c28>] load_module+0x16c0/0x1b68
[ 8.915445] [<80069200>] SyS_init_module+0x130/0x180
[ 8.920520] [<8000682c>] syscall_common+0x30/0x54
[ 8.925313]
[ 8.926829]
Code: 30630001 24030001 38630001 <00030336> 8c430000 7c630380 10600003 00000000 10000002
[ 8.937023] ---[ end trace aafa149b068ca665 ]---
[ 8.944645] Fatal exception: panic in 5 seconds
[ 9.456488] Kernel panic - not syncing: Fatal exception
[ 9.463831] Rebooting in 1 seconds..[/details]

Ok next time I'll try from LEDE Reboot. Thank you for your tests!

May be is in dump problem ? other dump i not find in internet .. if you get other dump , I will test )
This is my hobby testing, no problem. I like it)

Did you ask also for original dump on OpenWrt forum?

You know, looking that close to the logs I found out that the partitions's names rom and romfile are inverted between stock and OpenWrt/LEDE... I don't know why or if it's an error.

As you suggested @NeonClub, I've done an experimental release without wireless drivers.

No work Lan ports . not get ip . i manual add . but not work upload )

[details=Summary]
U-Boot 1.1.3 (Aug 26 2015 - 18:00:56)

Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb0000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.

Archer C20 v1.0.0

spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
find flash: GD25Q64BF

Ralink UBoot Version: 4.1.2.0

ASIC 7620_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Aug 26 2015 Time:18:00:56

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

continue to starting system. 0
disableEthForward(1158):disable switch forward...

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.37 (jpstyves@LEDE-Dev) (gcc version 5.4.0 (LEDE GCC 5.4.0 r4591-7f9123d740) ) #0 Tue Jul 25 19:05:17 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 MT7620A ver:2 eco:6
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is TP-Link Archer C20
[ 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 byt es
[ 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 pag es: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jff s2
[ 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=0005978e
[ 0.000000] Readback ErrCtl register=0005978e
[ 0.000000] Memory: 60424K/65536K available (3134K kernel code, 155K rwdata, 752K rodata, 176K init, 216K bss, 5112K 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] CPU Clock: 580MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_n s: 583261500 ns
[ 0.000000] systick: enable autosleep mode
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_i dle_ns: 6590553264 ns
[ 0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 74051 15902ns
[ 0.007575] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.070075] pid_max: default: 32768 minimum: 301
[ 0.074685] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.081055] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094843] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma x_idle_ns: 19112604462750000 ns
[ 0.104384] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.110350] pinctrl core: initialized pinctrl subsystem
[ 0.116056] NET: Registered protocol family 16
[ 0.454268] mt7620-pci 10140000.pcie: MT7620 PPLL unlock
[ 0.459415] mt7620-pci: probe of 10140000.pcie failed with error -1
[ 0.478906] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.484353] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.490680] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.496089] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.502318] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.507715] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.513949] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.519264] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.529200] clocksource: Switched to clocksource systick
[ 0.535640] NET: Registered protocol family 2
[ 0.540775] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.547502] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.553724] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.559950] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.565574] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.571945] NET: Registered protocol family 1
[ 0.578432] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.585129] Crashlog allocated RAM at address 0x3f00000
[ 0.591359] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.605728] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.611374] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT Y) (c) 2001-2006 Red Hat, Inc.
[ 0.629437] io scheduler noop registered
[ 0.633183] io scheduler deadline registered (default)
[ 0.638394] ralink-usb-phy usbphy: invalid resource
[ 0.643713] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.651013] console [ttyS0] disabled
[ 0.654463] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.664142] console [ttyS0] enabled
[ 0.664142] console [ttyS0] enabled
[ 0.671172] bootconsole [early0] disabled
[ 0.671172] bootconsole [early0] disabled
[ 0.683599] spi spi0.0: force spi mode3
[ 0.690150] m25p80 spi0.0: gd25q64 (8192 Kbytes)
[ 0.694917] 6 ofpart partitions found on MTD device spi0.0
[ 0.700533] Creating 6 MTD partitions on "spi0.0":
[ 0.705432] 0x000000000000-0x000000020000 : "u-boot"
[ 0.712224] 0x000000020000-0x0000007c0000 : "firmware"
[ 1.737625] 2 tplink-fw partitions found on MTD device firmware
[ 1.743710] 0x000000020000-0x0000001698f8 : "kernel"
[ 1.750473] 0x0000001698f8-0x0000007c0000 : "rootfs"
[ 1.757339] mtd: device 3 (rootfs) set to be root filesystem
[ 1.763767] 1 squashfs-split partitions found on MTD device rootfs
[ 1.770143] 0x00000032e000-0x0000007c0000 : "rootfs_data"
[ 1.777326] 0x0000007c0000-0x0000007d0000 : "config"
[ 1.784297] 0x0000007d0000-0x0000007e0000 : "rom"
[ 1.790999] 0x0000007e0000-0x0000007f0000 : "romfile"
[ 1.797975] 0x0000007f0000-0x000000800000 : "radio"
[ 1.805536] libphy: Fixed MDIO Bus: probed
[ 1.813351] gsw: setting port4 to ephy mode
[ 1.817670] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 1 link u p (100Mbps/Full duplex)
[ 1.827258] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 1.834185] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0 100000, irq 5
[ 1.843192] rt2880_wdt 10000120.watchdog: Initialized
[ 1.849546] NET: Registered protocol family 10
[ 1.857417] NET: Registered protocol family 17
[ 1.862095] 8021q: 802.1Q VLAN Support v1.8
[ 1.880447] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 1.888594] Freeing unused kernel memory: 176K (803f4000 - 80420000)
[ 1.895135] This architecture does not have kernel memory protection.
[ 2.659138] random: fast init done
[ 3.227788] init: Console is alive
[ 3.231582] init: - watchdog -
[ 3.665898] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 3.926884] kmodloader: done loading kernel modules from /etc/modules-boot.d/ *
[ 3.936109] init: - preinit -
[ 5.430986] 8021q: adding VLAN 0 to HW filter on device eth0
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
[ 6.039160] mount_root: no usable overlay filesystem found, using tmpfs overl ay
[ 6.068275] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 6.193701] procd: - early -
[ 6.196746] procd: - watchdog -
[ 6.404985] procd: - watchdog -
[ 6.408585] procd: - ubus -
[ 6.428447] procd: - init -
Please press Enter to activate this console.
[ 6.768744] kmodloader: loading kernel modules from /etc/modules.d/*
[ 6.779678] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 6.798557] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 6.812298] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 6.872035] xt_time: kernel timezone is -0000
[ 6.886951] PPP generic driver version 2.4.2
[ 6.894197] NET: Registered protocol family 24
[ 6.902845] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 13.853245] 8021q: adding VLAN 0 to HW filter on device eth0
[ 13.968900] br-lan: port 1(eth0.1) entered blocking state
[ 13.974517] br-lan: port 1(eth0.1) entered disabled state
[ 13.980494] device eth0.1 entered promiscuous mode
[ 13.985444] device eth0 entered promiscuous mode
[ 14.015538] br-lan: port 1(eth0.1) entered blocking state
[ 14.021064] br-lan: port 1(eth0.1) entered forwarding state
[ 49.560553] jffs2_scan_eraseblock(): End of filesystem marker found at 0x2000
[ 49.570048] jffs2_build_filesystem(): unlocking the mtd device... [ 49.5765 15] done.
[ 49.578485] jffs2_build_filesystem(): erasing all blocks after the end marker ... [ 94.354698] done.
[ 94.356718] jffs2: notice: (976) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 98.362432] random: crng init done
[ 99.633515] mtk_soc_eth 10100000.ethernet eth0: port 1 link down
[ 99.641390] br-lan: port 1(eth0.1) entered disabled state
[ 101.205074] mtk_soc_eth 10100000.ethernet eth0: port 4 link up (100Mbps/Full duplex)
[ 101.213384] br-lan: port 1(eth0.1) entered blocking state
[ 101.218946] br-lan: port 1(eth0.1) entered forwarding state
[ 102.195655] mtk_soc_eth 10100000.ethernet eth0: port 4 link down
[ 102.203598] br-lan: port 1(eth0.1) entered disabled state
[ 103.633788] mtk_soc_eth 10100000.ethernet eth0: port 4 link up (100Mbps/Full duplex)
[ 103.642100] br-lan: port 1(eth0.1) entered blocking state
[ 103.647660] br-lan: port 1(eth0.1) entered forwarding state
[ 109.932682] mtk_soc_eth 10100000.ethernet eth0: port 4 link down
[ 109.940567] br-lan: port 1(eth0.1) entered disabled state
[ 111.479845] mtk_soc_eth 10100000.ethernet eth0: port 3 link up (100Mbps/Full duplex)
[ 111.488372] br-lan: port 1(eth0.1) entered blocking state
[ 111.493939] br-lan: port 1(eth0.1) entered forwarding state
[ 115.190391] mtk_soc_eth 10100000.ethernet eth0: port 3 link down
[ 115.198080] br-lan: port 1(eth0.1) entered disabled state
[ 116.704916] mtk_soc_eth 10100000.ethernet eth0: port 0 link up (100Mbps/Full duplex)
[ 116.713449] br-lan: port 1(eth0.1) entered blocking state
[ 116.719016] br-lan: port 1(eth0.1) entered forwarding state[/details]

I probably removed too many drivers... I'll try adding them back one by one.

So at least, now we have a working firmware that doesn't reboot and panic. Thanks!

@NeonClub , new build with some wireless drivers.

[details=Again Panic]U-Boot 1.1.3 (Aug 26 2015 - 18:00:56)

Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb0000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.

Archer C20 v1.0.0

spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
find flash: GD25Q64BF

Ralink UBoot Version: 4.1.2.0

ASIC 7620_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Aug 26 2015 Time:18:00:56

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

continue to starting system. 0
disableEthForward(1158):disable switch forward...

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.4.71 (jpstyves@LEDE-Dev) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3435-65eec8bd5f) ) #0 Thu Jun 8 21:02:37 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 MT7620A ver:2 eco:6
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is TP-Link Archer C20
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 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] 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] 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=0003fff6
[ 0.000000] Readback ErrCtl register=0003fff6
[ 0.000000] Memory: 60760K/65536K available (2895K kernel code, 136K rwdata, 696K rodata, 168K init, 203K bss, 4776K 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] CPU Clock: 580MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[ 0.000000] systick: enable autosleep mode
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.007570] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.070057] pid_max: default: 32768 minimum: 301
[ 0.074683] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.081056] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094820] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.104375] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.110437] pinctrl core: initialized pinctrl subsystem
[ 0.116185] NET: Registered protocol family 16
[ 0.605825] PCI host bridge /pcie@10140000 ranges:
[ 0.610441] MEM 0x0000000020000000..0x000000002fffffff
[ 0.615492] IO 0x0000000010160000..0x000000001016ffff
[ 0.629045] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.634490] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.640623] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.646016] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.652167] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.657564] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.663675] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.668980] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.675704] PCI host bridge to bus 0000:00
[ 0.679671] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 0.686295] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 0.692053] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.698636] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.706817] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.715737] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 0.722147] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 0.728867] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]
[ 0.735470] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[ 0.742061] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
[ 0.748663] pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]
[ 0.755238] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.760066] pci 0000:00:00.0: bridge window [mem 0x20000000-0x201fffff]
[ 0.766662] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0
[ 0.772327] pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[ 0.777983] pci 0000:01:00.1: card - bus=0x1, slot = 0x0 irq=4
[ 0.784648] clocksource: Switched to clocksource systick
[ 0.791201] NET: Registered protocol family 2
[ 0.796350] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.803078] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.809297] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.815521] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.821148] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.827547] NET: Registered protocol family 1
[ 0.836672] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.843527] Crashlog allocated RAM at address 0x3f00000
[ 0.863877] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.869554] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.881810] io scheduler noop registered
[ 0.885625] io scheduler deadline registered (default)
[ 0.890809] ralink-usb-phy usbphy: invalid resource
[ 0.896249] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.903551] console [ttyS0] disabled
[ 0.907059] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.916671] console [ttyS0] enabled
[ 0.916671] console [ttyS0] enabled
[ 0.923713] bootconsole [early0] disabled
[ 0.923713] bootconsole [early0] disabled
[ 0.936661] spi spi0.0: force spi mode3
[ 0.941115] m25p80 spi0.0: gd25q64 (8192 Kbytes)
[ 0.945938] 6 ofpart partitions found on MTD device spi0.0
[ 0.951533] Creating 6 MTD partitions on "spi0.0":
[ 0.956442] 0x000000000000-0x000000020000 : "u-boot"
[ 0.963312] 0x000000020000-0x0000007c0000 : "firmware"
[ 1.934519] 2 tplink-fw partitions found on MTD device firmware
[ 1.940601] 0x000000020000-0x000000153b74 : "kernel"
[ 1.947291] 0x000000153b74-0x0000007c0000 : "rootfs"
[ 1.954153] mtd: device 3 (rootfs) set to be root filesystem
[ 1.960142] 1 squashfs-split partitions found on MTD device rootfs
[ 1.966475] 0x0000003a1000-0x0000007c0000 : "rootfs_data"
[ 1.973878] 0x0000007c0000-0x0000007d0000 : "config"
[ 1.980806] 0x0000007d0000-0x0000007e0000 : "rom"
[ 1.987482] 0x0000007e0000-0x0000007f0000 : "romfile"
[ 1.994427] 0x0000007f0000-0x000000800000 : "radio"
[ 2.004352] gsw: setting port4 to ephy mode
[ 2.008919] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 2.015778] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 2.024835] rt2880_wdt 10000120.watchdog: Initialized
[ 2.031558] NET: Registered protocol family 10
[ 2.040623] NET: Registered protocol family 17
[ 2.045332] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 2.058233] 8021q: 802.1Q VLAN Support v1.8
[ 2.077571] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 2.085748] Freeing unused kernel memory: 168K (803a6000 - 803d0000)
[ 4.149022] init: Console is alive
[ 4.152712] init: - watchdog -
[ 5.601671] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.694518] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.703742] init: - preinit -
[ 6.839765] 8021q: adding VLAN 0 to HW filter on device eth0
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
[ 7.362307] mount_root: no usable overlay filesystem found, using tmpfs overlay
[ 7.373873] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 7.501157] procd: - early -
[ 7.504205] procd: - watchdog -
[ 7.695748] procd: - ubus -
[ 7.714871] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[ 7.724609] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[ 7.733958] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[ 7.743570] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[ 7.752877] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[ 7.762268] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[ 7.771706] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[ 7.781280] procd: - init -
Please press Enter to activate this console.
[ 8.102081] kmodloader: loading kernel modules from /etc/modules.d/*
[ 8.114722] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 8.131087] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[ 8.139333] Backport generated by backports.git backports-20160324-13-g24da7d3c
[ 8.206445] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 8.221498] nf_conntrack version 0.5.0 (952 buckets, 3808 max)
[ 8.273402] xt_time: kernel timezone is -0000
[ 8.291007] PPP generic driver version 2.4.2
[ 8.298349] NET: Registered protocol family 24
[ 8.320735] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "radio"
[ 8.328030] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[ 8.335984] ieee80211 phy0: rt2800_init_eeprom: Error - Invalid RF chipset 0x7643 detected
[ 8.344431] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to allocate device
[ 8.352186] ------------[ cut here ]------------
[ 8.356925] WARNING: CPU: 0 PID: 408 at mm/vmalloc.c:1466 release_firmware+0x64/0x144()
[ 8.365100] Trying to vfree() nonexistent vm area (83bd6000)
[ 8.370869] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt mt76x2e mt7603e mt76 mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables eeprom_93cx6 leds_gpio gpio_button_hotplug
[ 8.436135] CPU: 0 PID: 408 Comm: kmodloader Not tainted 4.4.71 #0
[ 8.442451] Stack : 803472b4 00000000 00000001 80390000 838cdbac 8038ad23 80328bf0 00000198
803d3438 00000003 00000016 024000c0 80066174 8004ad88 8032e104 80380000
00000003 00000003 8032c508 8300dae4 80066174 80048cf4 00000006 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
...
[ 8.478820] Call Trace:
[ 8.481354] [<80066174>] module_sect_show+0x0/0x18
[ 8.486265] [<8004ad88>] vprintk_default+0x24/0x30
[ 8.491164] [<80066174>] module_sect_show+0x0/0x18
[ 8.496067] [<80048cf4>] printk+0x2c/0x38
[ 8.500172] [<80025368>] warn_slowpath_common+0xa0/0xd0
[ 8.505526] [<80149914>] dump_stack+0x14/0x28
[ 8.509979] [<80014838>] show_stack+0x50/0x84
[ 8.514437] [<80025368>] warn_slowpath_common+0xa0/0xd0
[ 8.519778] [<801aeac4>] release_firmware+0x64/0x144
[ 8.524873] [<800253c4>] warn_slowpath_fmt+0x2c/0x38
[ 8.529943] [<8009dbf0>] __vunmap+0x4c/0x114
[ 8.534323] [<80036478>] queue_work_on+0x44/0x74
[ 8.539049] [<801aeac4>] release_firmware+0x64/0x144
[ 8.544179] [<830d682c>] rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[ 8.551132] [<830d1b80>] rt2x00lib_probe_dev+0x7a8/0x848 [rt2x00lib]
[ 8.557669] [<80066174>] module_sect_show+0x0/0x18
[ 8.562574] [<831731e4>] rt2x00soc_probe+0x160/0x1bc [rt2x00soc]
[ 8.568723] [<8003cc30>] blocking_notifier_call_chain+0x14/0x20
[ 8.574796] [<801ac128>] devm_kfree+0x20/0x44
[ 8.579254] [<801aa624>] platform_drv_probe+0x28/0x70
[ 8.584431] [<801a8c58>] driver_probe_device+0x120/0x288
[ 8.589871] [<8008a0dc>] kstrdup+0x44/0x8c
[ 8.594076] [<801aa7f8>] platform_match+0x60/0x110
[ 8.598980] [<801a8e3c>] __driver_attach+0x7c/0xb4
[ 8.603884] [<801a7060>] next_device+0x10/0x30
[ 8.608427] [<801a8dc0>] __driver_attach+0x0/0xb4
[ 8.613242] [<801a711c>] bus_for_each_dev+0x9c/0xac
[ 8.618246] [<802d1220>] klist_add_tail+0x24/0x50
[ 8.623066] [<801a6ef0>] bus_get+0x2c/0x50
[ 8.627261] [<801a8350>] bus_add_driver+0xec/0x20c
[ 8.632172] [<80066174>] module_sect_show+0x0/0x18
[ 8.637068] [<801554a0>] kvasprintf+0x70/0x94
[ 8.641530] [<801ebafc>] __alloc_skb+0x88/0x184
[ 8.646168] [<800a5804>] __slab_alloc.isra.13.constprop.17+0x20/0x44
[ 8.652680] [<83197000>] init_module+0x0/0x2c [rt2800soc]
[ 8.658204] [<801a9554>] driver_register+0xa8/0xf8
[ 8.663124] [<800456e0>] __wake_up+0x24/0x48
[ 8.667495] [<83197000>] init_module+0x0/0x2c [rt2800soc]
[ 8.673034] [<8000d890>] do_one_initcall+0x1e8/0x214
[ 8.678113] [<83197000>] init_module+0x0/0x2c [rt2800soc]
[ 8.683644] [<800a5a18>] kmem_cache_alloc+0x40/0xfc
[ 8.688643] [<80033e88>] call_usermodehelper_setup+0x38/0xa8
[ 8.694445] [<80066174>] module_sect_show+0x0/0x18
[ 8.699351] [<80067394>] do_init_module+0x74/0x1cc
[ 8.704261] [<8009dc94>] __vunmap+0xf0/0x114
[ 8.708643] [<80068c28>] load_module+0x16c0/0x1b68
[ 8.713551] [<80066760>] unknown_module_param_cb+0x0/0xac
[ 8.719069] [<8009e188>] __vmalloc_node+0x34/0x40
[ 8.723897] [<80069164>] SyS_init_module+0x94/0x180
[ 8.728879] [<80069200>] SyS_init_module+0x130/0x180
[ 8.733980] [<8000682c>] syscall_common+0x30/0x54
[ 8.738785]
[ 8.740305] ---[ end trace 074dc7a83d65866a ]---
[ 8.745033] Kernel bug detected[#1]:
[ 8.748687] CPU: 0 PID: 408 Comm: kmodloader Tainted: G W 4.4.71 #0
[ 8.756232] task: 838cd928 ti: 8300c000 task.ti: 8300c000
[ 8.761733] $ 0 : 00000000 00000000 81061ae0 00000001
[ 8.767078] $ 4 : 830d7b20 ffffffff 000000e7 830d7b20
[ 8.772419] $ 8 : 0000002d 64333861 36383536 5d206136
[ 8.777760] $12 : 00000000 00000013 00000000 6d6f635f
[ 8.783101] $16 : 83ba9460 ffffffed 83ba8b40 8388ee10
[ 8.788443] $20 : 83ba9734 00000003 00000016 024000c0
[ 8.793785] $24 : 00000003 8019e6ac
[ 8.799128] $28 : 8300c000 8300dbb0 80066174 830d682c
[ 8.804471] Hi : 00000000
[ 8.807406] Lo : ec4e4000
[ 8.810349] epc : 800a4d14 kfree+0x70/0x150
[ 8.814822] ra : 830d682c rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[ 8.822094] Status: 1100a403 KERNEL EXL IE
[ 8.826376] Cause : 10800034 (ExcCode 0d)
[ 8.830463] PrId : 00019650 (MIPS 24KEc)
[ 8.834547] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt mt76x2e mt7603e mt76 mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables eeprom_93cx6 leds_gpio gpio_button_hotplug
[ 8.899723] Process kmodloader (pid: 408, threadinfo=8300c000, task=838cd928, tls=7724bd48)
[ 8.908237] Stack : 83ba9460 8300dbd0 830d6d6c 83ba9460 83ba9460 830d1b80 83ba8b40 8388ee10
830d69e4 00000000 00000000 83bc2300 83ba8160 024080c0 83ba9460 02400000
83ba8b40 8388ee10 83bd5524 00000003 00000016 024000c0 80066174 831731e4
80400000 8003cc30 83bd57d4 801ac128 8388ee10 83bd57d4 83bd57d4 80400000
80400000 801aa624 83bc2100 00000001 83bd57d4 83bd57d4 8388ee10 8388ee10
...
[ 8.944579] Call Trace:
[ 8.947079] [<800a4d14>] kfree+0x70/0x150
[ 8.951190] [<830d682c>] rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[ 8.958136] [<830d1b80>] rt2x00lib_probe_dev+0x7a8/0x848 [rt2x00lib]
[ 8.964634] [<831731e4>] rt2x00soc_probe+0x160/0x1bc [rt2x00soc]
[ 8.970777] [<801aa624>] platform_drv_probe+0x28/0x70
[ 8.975935] [<801a8c58>] driver_probe_device+0x120/0x288
[ 8.981356] [<801a8e3c>] __driver_attach+0x7c/0xb4
[ 8.986247] [<801a711c>] bus_for_each_dev+0x9c/0xac
[ 8.991228] [<801a8350>] bus_add_driver+0xec/0x20c
[ 8.996121] [<801a9554>] driver_register+0xa8/0xf8
[ 9.001023] [<8000d890>] do_one_initcall+0x1e8/0x214
[ 9.006104] [<80067394>] do_init_module+0x74/0x1cc
[ 9.010999] [<80068c28>] load_module+0x16c0/0x1b68
[ 9.015892] [<80069200>] SyS_init_module+0x130/0x180
[ 9.020965] [<8000682c>] syscall_common+0x30/0x54
[ 9.025759]
[ 9.027274]
Code: 30630001 24030001 38630001 <00030336> 8c430000 7c630380 10600003 00000000 10000002
[ 9.037469] ---[ end trace 074dc7a83d65866b ]---
[ 9.045093] Fatal exception: panic in 5 seconds[/details]

it's hopeless? =(

I didn't give up yet, I'm on vacation :sunny:

New release from my spare time.

Not get ip adress ((( Manualy not work ...

[details=Serial]U-Boot 1.1.3 (Aug 26 2015 - 18:00:56)

Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb0000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.

Archer C20 v1.0.0

spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
find flash: GD25Q64BF

Ralink UBoot Version: 4.1.2.0

ASIC 7620_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Aug 26 2015 Time:18:00:56

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

continue to starting system. 0
disableEthForward(1158):disable switch forward...

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.37 (jpstyves@LEDE-Dev) (gcc version 5.4.0 (LEDE GCC 5.4.0 r4591-7f9123d740) ) #0 Tue Jul 25 19:05:17 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 MT7620A ver:2 eco:6
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is TP-Link Archer C20
[ 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=000517ce
[ 0.000000] Readback ErrCtl register=000517ce
[ 0.000000] Memory: 60424K/65536K available (3134K kernel code, 155K rwdata, 752K rodata, 176K init, 216K bss, 5112K 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] CPU Clock: 580MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[ 0.000000] systick: enable autosleep mode
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.007575] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.070072] pid_max: default: 32768 minimum: 301
[ 0.074682] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.081052] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094840] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.104381] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.110346] pinctrl core: initialized pinctrl subsystem
[ 0.116052] NET: Registered protocol family 16
[ 0.454264] mt7620-pci 10140000.pcie: MT7620 PPLL unlock
[ 0.459411] mt7620-pci: probe of 10140000.pcie failed with error -1
[ 0.478903] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.484350] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.490677] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.496086] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.502315] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.507712] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.513946] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.519261] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.529197] clocksource: Switched to clocksource systick
[ 0.535637] NET: Registered protocol family 2
[ 0.540772] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.547499] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.553720] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.559947] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.565571] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.571942] NET: Registered protocol family 1
[ 0.578429] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.585126] Crashlog allocated RAM at address 0x3f00000
[ 0.591356] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.605724] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.611370] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.629433] io scheduler noop registered
[ 0.633179] io scheduler deadline registered (default)
[ 0.638390] ralink-usb-phy usbphy: invalid resource
[ 0.643708] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.651008] console [ttyS0] disabled
[ 0.654458] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.664137] console [ttyS0] enabled
[ 0.664137] console [ttyS0] enabled
[ 0.671168] bootconsole [early0] disabled
[ 0.671168] bootconsole [early0] disabled
[ 0.683595] spi spi0.0: force spi mode3
[ 0.690146] m25p80 spi0.0: gd25q64 (8192 Kbytes)
[ 0.694913] 6 ofpart partitions found on MTD device spi0.0
[ 0.700530] Creating 6 MTD partitions on "spi0.0":
[ 0.705429] 0x000000000000-0x000000020000 : "u-boot"
[ 0.712221] 0x000000020000-0x0000007c0000 : "firmware"
[ 1.737620] 2 tplink-fw partitions found on MTD device firmware
[ 1.743705] 0x000000020000-0x0000001698f8 : "kernel"
[ 1.750471] 0x0000001698f8-0x0000007c0000 : "rootfs"
[ 1.757337] mtd: device 3 (rootfs) set to be root filesystem
[ 1.763765] 1 squashfs-split partitions found on MTD device rootfs
[ 1.770142] 0x0000003ae000-0x0000007c0000 : "rootfs_data"
[ 1.777325] 0x0000007c0000-0x0000007d0000 : "config"
[ 1.784295] 0x0000007d0000-0x0000007e0000 : "rom"
[ 1.790996] 0x0000007e0000-0x0000007f0000 : "romfile"
[ 1.797971] 0x0000007f0000-0x000000800000 : "radio"
[ 1.805534] libphy: Fixed MDIO Bus: probed
[ 1.813348] gsw: setting port4 to ephy mode
[ 1.817882] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 1.824822] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 1.833830] rt2880_wdt 10000120.watchdog: Initialized
[ 1.840173] NET: Registered protocol family 10
[ 1.848045] NET: Registered protocol family 17
[ 1.852723] 8021q: 802.1Q VLAN Support v1.8
[ 1.869408] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 1.877557] Freeing unused kernel memory: 176K (803f4000 - 80420000)
[ 1.884087] This architecture does not have kernel memory protection.
[ 2.659152] random: fast init done
[ 3.506918] init: Console is alive
[ 3.510713] init: - watchdog -
[ 4.590514] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.851536] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.860791] init: - preinit -
[ 6.836180] 8021q: adding VLAN 0 to HW filter on device eth0
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
[ 7.823896] jffs2: notice: (337) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 7.842707] mount_root: switching to jffs2 overlay
[ 7.883120] urandom-seed: Seeding with /etc/urandom.seed
[ 8.143009] procd: - early -
[ 8.146051] procd: - watchdog -
[ 8.356765] procd: - watchdog -
[ 8.360249] procd: - ubus -
[ 8.479188] procd: - init -
Please press Enter to activate this console.
[ 8.931362] kmodloader: loading kernel modules from /etc/modules.d/*
[ 8.944033] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 8.959653] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[ 8.967897] Backport generated by backports.git backports-20160324-13-g24da7d3c
[ 9.031665] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.046234] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 9.107352] xt_time: kernel timezone is -0000
[ 9.122375] PPP generic driver version 2.4.2
[ 9.129675] NET: Registered protocol family 24
[ 9.138459] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 17.366289] 8021q: adding VLAN 0 to HW filter on device eth0
[ 17.448784] br-lan: port 1(eth0.1) entered blocking state
[ 17.454311] br-lan: port 1(eth0.1) entered disabled state
[ 17.460354] device eth0.1 entered promiscuous mode
[ 17.465252] device eth0 entered promiscuous mode
[ 17.472213] br-lan: port 1(eth0.1) entered blocking state
[ 17.477818] br-lan: port 1(eth0.1) entered forwarding state
[ 24.028113] mtk_soc_eth 10100000.ethernet eth0: port 4 link up (100Mbps/Full duplex)
[ 28.580983] mtk_soc_eth 10100000.ethernet eth0: port 4 link down
[ 28.588845] br-lan: port 1(eth0.1) entered disabled state
[ 30.122128] mtk_soc_eth 10100000.ethernet eth0: port 1 link up (100Mbps/Full duplex)
[ 30.130652] br-lan: port 1(eth0.1) entered blocking state
[ 30.136173] br-lan: port 1(eth0.1) entered forwarding state[/details]

DjiPi please write why he can not get ip adress when you find cause =)
Thx a lot =)

The problem is that I don't own such device and searching why this occurs is really hard... I was trying to port a patch initially but it looks like more than that is required to have this device in working condition on LEDE. Combine that with the fact that I'm learning along the way, we then get an extremely slow pace :wink:

If some expert/core developper could chime in to give me some advice on how to tackle that beast, that would really be appreciated.

Is a SDK from tplink original FW http://static.tp-link.com/resources/gpl/GPL_ArcherC20.tar.gz

tplink using linux version 2.6.36
lede using 4.X.XX

maybe using tplink drivers? , and port to lede ? is it possible ?