TP-Link Archer C20 v1 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 because you will get an lzma kernel decompression error and you'll have to use serial console to recover from soft-brick (more details here).

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

Additional information about the TFTP flash (credit goes to @NeonClub from this source):
You need to add the UBoot partition to the squashfs-factory.bin image or else you will brick the router; here is how to create it:

  • Extract the Uboot partition:
    i. Use bin image from http://static.tp-link.com/res/down/soft/Archer_C20(EU)_V1_160427.zip
    ii. Perform command dd if=archer_original.bin of=uboot.bin bs=512 count=256 skip=1 to extract the UBoot partition from the downloaded firmware.
  • Rearrange the firmware image
    i. Merge back the Uboot + myBuild together using the command cat uboot.bin squashfs-factory.bin > ArcherC20V1_tp_recovery.bin
    ii. Flash that new Frankenstein version using TFTP.

Known issues:

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

Special thanks goes to @Linaro for taking the lead and everyone who helped along the way.

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-638f3ca109) ) #0 Tue Jul 18 04:14:12 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=0001c7c0
[    0.000000] Readback ErrCtl register=0001c7c0
[    0.000000] Memory: 60428K/65536K available (3134K kernel code, 155K rwdata, 752K rodata, 176K init, 216K bss, 5108K 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.007576] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.070078] pid_max: default: 32768 minimum: 301
[    0.074688] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.081058] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094688] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.104230] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.110196] pinctrl core: initialized pinctrl subsystem
[    0.115898] NET: Registered protocol family 16
[    0.453871] mt7620-pci 10140000.pcie: MT7620 PPLL unlock
[    0.459015] mt7620-pci: probe of 10140000.pcie failed with error -1
[    0.478357] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.483804] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.490121] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.495532] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.501770] rt2880_gpio 10000688.gpio: registering 1 gpios
[    0.507086] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[    0.516733] clocksource: Switched to clocksource systick
[    0.523188] NET: Registered protocol family 2
[    0.528314] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.535040] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.541263] TCP: Hash tables configured (established 1024 bind 1024)
[    0.547501] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.553125] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.559498] NET: Registered protocol family 1
[    0.565979] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.572637] Crashlog allocated RAM at address 0x3f00000
[    0.578854] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.593250] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.598896] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.616925] io scheduler noop registered
[    0.620670] io scheduler deadline registered (default)
[    0.625881] ralink-usb-phy usbphy: invalid resource
[    0.631192] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.638475] console [ttyS0] disabled
[    0.641924] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.651604] console [ttyS0] enabled
[    0.651604] console [ttyS0] enabled
[    0.658634] bootconsole [early0] disabled
[    0.658634] bootconsole [early0] disabled
[    0.671034] spi spi0.0: force spi mode3
[    0.677598] m25p80 spi0.0: gd25q64 (8192 Kbytes)
[    0.682364] 6 ofpart partitions found on MTD device spi0.0
[    0.687983] Creating 6 MTD partitions on "spi0.0":
[    0.692881] 0x000000000000-0x000000020000 : "u-boot"
[    0.699641] 0x000000020000-0x0000007c0000 : "firmware"
[    1.725077] 2 tplink-fw partitions found on MTD device firmware
[    1.731164] 0x000000020000-0x000000169834 : "kernel"
[    1.737929] 0x000000169834-0x0000007c0000 : "rootfs"
[    1.744793] mtd: device 3 (rootfs) set to be root filesystem
[    1.751193] 1 squashfs-split partitions found on MTD device rootfs
[    1.757583] 0x0000003b9000-0x0000007c0000 : "rootfs_data"
[    1.764768] 0x0000007c0000-0x0000007d0000 : "config"
[    1.771773] 0x0000007d0000-0x0000007e0000 : "rom"
[    1.778473] 0x0000007e0000-0x0000007f0000 : "romfile"
[    1.785427] 0x0000007f0000-0x000000800000 : "radio"
[    1.792980] libphy: Fixed MDIO Bus: probed
[    1.800814] gsw: setting port4 to ephy mode
[    1.805358] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    1.812294] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.821287] rt2880_wdt 10000120.watchdog: Initialized
[    1.827643] NET: Registered protocol family 10
[    1.835528] NET: Registered protocol family 17
[    1.840206] 8021q: 802.1Q VLAN Support v1.8
[    1.859068] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    1.867282] Freeing unused kernel memory: 176K (803f4000 - 80420000)
[    1.873765] This architecture does not have kernel memory protection.
[    2.656677] random: fast init done
[    3.483197] init: Console is alive
[    3.486993] init: - watchdog -
[    4.737049] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.997326] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.006524] init: - preinit -
[    6.980424] 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.509073] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    7.542831] urandom-seed: Seed file not found (/etc/urandom.seed)
[    7.671842] procd: - early -
[    7.674887] procd: - watchdog -
[    7.872549] procd: - watchdog -
[    7.876035] procd: - ubus -
[    7.897339] procd: - init -
Please press Enter to activate this console.
[    8.249035] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.261715] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.277390] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[    8.285641] Backport generated by backports.git backports-20160324-13-g24da7d3c
[    8.350155] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.365216] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    8.441093] xt_time: kernel timezone is -0000
[    8.456539] PPP generic driver version 2.4.2
[    8.463832] NET: Registered protocol family 24
[    8.486362] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "radio"
[    8.493638] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[    8.501567] ieee80211 phy0: rt2800_init_eeprom: Error - Invalid RF chipset 0x7643 detected
[    8.510026] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to allocate device
[    8.517785] ------------[ cut here ]------------
[    8.522532] WARNING: CPU: 0 PID: 409 at mm/vmalloc.c:1500 release_firmware+0x64/0x148
[    8.530532] Trying to vfree() nonexistent vm area (830f1000)
[    8.536313] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_conntrack_ipv6 iptable_nat 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_conntrack_ipv4 nf_nat_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.602654] CPU: 0 PID: 409 Comm: kmodloader Not tainted 4.9.37 #0
[    8.608956] Stack : 8042751a 00000036 00000000 00000001 839bf0ec 803d3207 80387660 00000199
[    8.617523]         80423660 000005dc 00000016 024000c0 8006b648 8004d510 8038ce2c 803d0000
[    8.626087]         00000003 000005dc 8038b01c 83befadc 8006b648 8007abfc 00000000 00000003
[    8.634650]         00000006 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.643210]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.651756]         ...
[    8.654268] Call Trace:
[    8.656786] [<8000e3e8>] show_stack+0x54/0x88
[    8.661250] [<80023f30>] __warn+0xe4/0x118
[    8.665450] [<80023f94>] warn_slowpath_fmt+0x30/0x3c
[    8.670530] [<801d573c>] release_firmware+0x64/0x148
[    8.675653] [<831f673c>] rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[    8.682601] [<831f1b84>] rt2x00lib_probe_dev+0x7ac/0x84c [rt2x00lib]
[    8.689112] [<831ea1e4>] rt2x00soc_probe+0x160/0x1bc [rt2x00soc]
[    8.695260] [<801cfa5c>] platform_drv_probe+0x28/0x70
[    8.700435] [<801ce074>] driver_probe_device+0x140/0x290
[    8.705875] [<801ce250>] __driver_attach+0x8c/0xc4
[    8.710769] [<801cc480>] bus_for_each_dev+0x9c/0xac
[    8.715764] [<801cd6bc>] bus_add_driver+0xec/0x20c
[    8.720662] [<801ce988>] driver_register+0xa8/0xf8
[    8.725566] [<80004658>] do_one_initcall+0xdc/0x1a4
[    8.730548] [<8007ad18>] do_init_module+0x74/0x1dc
[    8.735458] [<8006dfe4>] load_module+0x184c/0x1cd4
[    8.740352] [<8006e584>] SyS_init_module+0x118/0x168
[    8.745441] [<80012c6c>] syscall_common+0x34/0x58
[    8.750242] ---[ end trace 249c7c6217784ec8 ]---
[    8.754968] Kernel bug detected[#1]:
[    8.758623] CPU: 0 PID: 409 Comm: kmodloader Tainted: G        W       4.9.37 #0
[    8.766166] task: 839bee68 task.stack: 83bee000
[    8.770780] $ 0   : 00000000 00000000 81063f00 00000001
[    8.776128] $ 4   : 00000000 000000ff 000000a5 831f7a20
[    8.781469] $ 8   : 0000002d 37313236 65343837 5d203863
[    8.786812] $12   : a083b0b8 020ab803 00000000 03bd0000
[    8.792154] $16   : 83bb3420 ffffffed 83bb2b20 838a1e10
[    8.797498] $20   : 83bb36e8 00000003 00000016 024000c0
[    8.802840] $24   : 00000003 801c2d40
[    8.808183] $28   : 83bee000 83befbb0 8006b648 831f673c
[    8.813529] Hi    : 00000000
[    8.816462] Lo    : ec4e4000
[    8.819415] epc   : 800b41b4 kfree+0x78/0x154
[    8.823879] ra    : 831f673c rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[    8.831152] Status: 1100a403 KERNEL EXL IE
[    8.835434] Cause : 10800034 (ExcCode 0d)
[    8.839521] PrId  : 00019650 (MIPS 24KEc)
[    8.843604] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_conntrack_ipv6 iptable_nat 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_conntrack_ipv4 nf_nat_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.909840] Process kmodloader (pid: 409, threadinfo=83bee000, task=839bee68, tls=7700cd48)
[    8.918352] Stack : 83bb3420 83befbd0 831f6c7c 83bb3420 83bb3420 831f1b84 83bb2b20 838a1e10
[    8.926901]         831f68f4 00000000 00000000 830f2680 00000000 00000000 83bb3420 02400000
[    8.935448]         83bb2b20 838a1e10 830ed514 00000003 00000016 024000c0 8006b648 831ea1e4
[    8.943996]         80450000 8003da68 803e0000 801d1794 838a1e10 830ed7c4 830ed7c4 80450000
[    8.952545]         80450000 801cfa5c 830f2480 00000001 830ed7c4 830ed7c4 838a1e10 838a1e10
[    8.961094]         ...
[    8.963590] Call Trace:
[    8.966090] [<800b41b4>] kfree+0x78/0x154
[    8.970197] [<831f673c>] rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[    8.977144] [<831f1b84>] rt2x00lib_probe_dev+0x7ac/0x84c [rt2x00lib]
[    8.983641] [<831ea1e4>] rt2x00soc_probe+0x160/0x1bc [rt2x00soc]
[    8.989773] [<801cfa5c>] platform_drv_probe+0x28/0x70
[    8.994940] [<801ce074>] driver_probe_device+0x140/0x290
[    9.000363] [<801ce250>] __driver_attach+0x8c/0xc4
[    9.005255] [<801cc480>] bus_for_each_dev+0x9c/0xac
[    9.010234] [<801cd6bc>] bus_add_driver+0xec/0x20c
[    9.015127] [<801ce988>] driver_register+0xa8/0xf8
[    9.020016] [<80004658>] do_one_initcall+0xdc/0x1a4
[    9.024997] [<8007ad18>] do_init_module+0x74/0x1dc
[    9.029892] [<8006dfe4>] load_module+0x184c/0x1cd4
[    9.034783] [<8006e584>] SyS_init_module+0x118/0x168
[    9.039854] [<80012c6c>] syscall_common+0x34/0x58
[    9.044648] Code: 30630001  24030001  38630001 <00030336> 8c430000  7c630380  10600003  00000000  10000002
[    9.054630]
[    9.056183] ---[ end trace 249c7c6217784ec9 ]---
[    9.063190] Kernel panic - not syncing: Fatal exception
[    9.069549] Rebooting in 1 seconds..
1 Like

Thank you very much your your tests @NeonClub !

Here is another version (source) using a different method by copying most settings from C50:
beta-2: https://github.com/jpstyves/lede/releases/tag/beta-2

If you test it, can you tell me if it flashes successfully from the TP-Link original firmware's interface or you have to TFTP it?

Thanks!

yes i using uboot from original tplink firmware Archer_C20v1_0.9.1_4.0_up_boot(160427)_2016-04-27_13.53.59.bin
and on TFTP flash .. sory bad english )
on original interface not alowed flashing !

look logs , Rebooting

[details=Serial_LoGS]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.


Software System Reset Occurred



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=00078780
[ 0.000000] Readback ErrCtl register=00078780
[ 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.070066] pid_max: default: 32768 minimum: 301
[ 0.074676] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.081046] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094834] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.104375] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.110341] pinctrl core: initialized pinctrl subsystem
[ 0.116047] NET: Registered protocol family 16
[ 0.454259] mt7620-pci 10140000.pcie: MT7620 PPLL unlock
[ 0.459405] mt7620-pci: probe of 10140000.pcie failed with error -1
[ 0.478897] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.484344] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.490671] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.496080] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.502309] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.507706] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.513941] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.519256] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.529192] clocksource: Switched to clocksource systick
[ 0.535631] NET: Registered protocol family 2
[ 0.540766] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.547493] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.553715] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.559942] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.565565] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.571937] NET: Registered protocol family 1
[ 0.578425] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.585122] Crashlog allocated RAM at address 0x3f00000
[ 0.591643] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.606017] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.611662] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.629719] io scheduler noop registered
[ 0.633465] io scheduler deadline registered (default)
[ 0.638675] ralink-usb-phy usbphy: invalid resource
[ 0.643998] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.651297] console [ttyS0] disabled
[ 0.654748] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.664427] console [ttyS0] enabled
[ 0.664427] console [ttyS0] enabled
[ 0.671457] bootconsole [early0] disabled
[ 0.671457] bootconsole [early0] disabled
[ 0.683880] spi spi0.0: force spi mode3
[ 0.690427] m25p80 spi0.0: gd25q64 (8192 Kbytes)
[ 0.695194] 6 ofpart partitions found on MTD device spi0.0
[ 0.700810] Creating 6 MTD partitions on "spi0.0":
[ 0.705709] 0x000000000000-0x000000020000 : "u-boot"
[ 0.712502] 0x000000020000-0x0000007c0000 : "firmware"
[ 1.737924] 2 tplink-fw partitions found on MTD device firmware
[ 1.744010] 0x000000020000-0x0000001698f4 : "kernel"
[ 1.750751] 0x0000001698f4-0x0000007c0000 : "rootfs"
[ 1.757616] mtd: device 3 (rootfs) set to be root filesystem
[ 1.764043] 1 squashfs-split partitions found on MTD device rootfs
[ 1.770421] 0x0000003b9000-0x0000007c0000 : "rootfs_data"
[ 1.777603] 0x0000007c0000-0x0000007d0000 : "config"
[ 1.784593] 0x0000007d0000-0x0000007e0000 : "rom"
[ 1.791287] 0x0000007e0000-0x0000007f0000 : "romfile"
[ 1.798261] 0x0000007f0000-0x000000800000 : "radio"
[ 1.805823] libphy: Fixed MDIO Bus: probed
[ 1.813639] gsw: setting port4 to ephy mode
[ 1.818172] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 1.825112] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 1.834119] rt2880_wdt 10000120.watchdog: Initialized
[ 1.840468] NET: Registered protocol family 10
[ 1.848342] NET: Registered protocol family 17
[ 1.853020] 8021q: 802.1Q VLAN Support v1.8
[ 1.871919] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 1.880129] Freeing unused kernel memory: 176K (803f4000 - 80420000)
[ 1.886611] This architecture does not have kernel memory protection.
[ 2.659123] random: fast init done
[ 3.497477] init: Console is alive
[ 3.501272] init: - watchdog -
[ 4.750595] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.011687] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.020945] init: - preinit -
[ 6.993031] 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.521969] mount_root: no usable overlay filesystem found, using tmpfs overlay
[ 7.556350] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 7.685554] procd: - early -
[ 7.688600] procd: - watchdog -
[ 7.887569] procd: - watchdog -
[ 7.891057] procd: - ubus -
[ 7.912414] procd: - init -
Please press Enter to activate this console.
[ 8.264430] kmodloader: loading kernel modules from /etc/modules.d/*
[ 8.277025] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 8.292768] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[ 8.300944] Backport generated by backports.git backports-20160324-13-g24da7d3c
[ 8.365656] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 8.380239] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 8.455863] xt_time: kernel timezone is -0000
[ 8.471225] PPP generic driver version 2.4.2
[ 8.478546] NET: Registered protocol family 24
[ 8.501050] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "radio"
[ 8.508335] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[ 8.516282] ieee80211 phy0: rt2800_init_eeprom: Error - Invalid RF chipset 0x7643 detected
[ 8.524735] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to allocate device
[ 8.532487] ------------[ cut here ]------------
[ 8.537233] WARNING: CPU: 0 PID: 416 at mm/vmalloc.c:1494 release_firmware+0x64/0x148
[ 8.545232] Trying to vfree() bad address (83052600)
[ 8.550293] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_conntrack_ipv6 iptable_nat 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_conntrack_ipv4 nf_nat_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.616635] CPU: 0 PID: 416 Comm: kmodloader Not tainted 4.9.37 #0
[ 8.622949] Stack : 8042751a 00000036 00000000 00000001 839d1724 803d3207 80387660 000001a0
[ 8.631501] 80423660 000005d6 00000016 024000c0 8006b648 8004d510 8038ce2c 803d0000
[ 8.640065] 00000003 000005d6 8038b01c 83be5adc 8006b648 8007abfc 00000000 00000004
[ 8.648628] 00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 8.657189] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 8.665750] ...
[ 8.668248] Call Trace:
[ 8.670765] [<8000e3e8>] show_stack+0x54/0x88
[ 8.675246] [<80023f30>] __warn+0xe4/0x118
[ 8.679431] [<80023f94>] warn_slowpath_fmt+0x30/0x3c
[ 8.684520] [<801d573c>] release_firmware+0x64/0x148
[ 8.689633] [<831f673c>] rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[ 8.696593] [<831f1b84>] rt2x00lib_probe_dev+0x7ac/0x84c [rt2x00lib]
[ 8.703108] [<83bda1e4>] rt2x00soc_probe+0x160/0x1bc [rt2x00soc]
[ 8.709244] [<801cfa5c>] platform_drv_probe+0x28/0x70
[ 8.714430] [<801ce074>] driver_probe_device+0x140/0x290
[ 8.719857] [<801ce250>] __driver_attach+0x8c/0xc4
[ 8.724763] [<801cc480>] bus_for_each_dev+0x9c/0xac
[ 8.729745] [<801cd6bc>] bus_add_driver+0xec/0x20c
[ 8.734651] [<801ce988>] driver_register+0xa8/0xf8
[ 8.739544] [<80004658>] do_one_initcall+0xdc/0x1a4
[ 8.744537] [<8007ad18>] do_init_module+0x74/0x1dc
[ 8.749437] [<8006dfe4>] load_module+0x184c/0x1cd4
[ 8.754343] [<8006e584>] SyS_init_module+0x118/0x168
[ 8.759421] [<80012c6c>] syscall_common+0x34/0x58
[ 8.764236] ---[ end trace ff60a1da1889e427 ]---
[ 8.768952] Kernel bug detected[#1]:
[ 8.772603] CPU: 0 PID: 416 Comm: kmodloader Tainted: G W 4.9.37 #0
[ 8.780146] task: 839d14a0 task.stack: 83be4000
[ 8.784761] $ 0 : 00000000 00000000 81063f00 00000001
[ 8.790109] $ 4 : 00000000 000000ff 000000a7 831f7a20
[ 8.795450] $ 8 : 0000002d 38316164 34653938 5d203732
[ 8.800793] $12 : 54d45169 023858bb 00000000 03bd0000
[ 8.806136] $16 : 83bbb420 ffffffed 83bbab20 8389ae10
[ 8.811479] $20 : 83bbb6e8 00000003 00000016 024000c0
[ 8.816821] $24 : 00000003 801c2d40
[ 8.822164] $28 : 83be4000 83be5bb0 8006b648 831f673c
[ 8.827510] Hi : 00000000
[ 8.830443] Lo : ec4e4000
[ 8.833396] epc : 800b41b4 kfree+0x78/0x154
[ 8.837861] ra : 831f673c rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[ 8.845135] Status: 1100a403 KERNEL EXL IE
[ 8.849416] Cause : 10800034 (ExcCode 0d)
[ 8.853504] PrId : 00019650 (MIPS 24KEc)
[ 8.857587] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_conntrack_ipv6 iptable_nat 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_conntrack_ipv4 nf_nat_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.923826] Process kmodloader (pid: 416, threadinfo=83be4000, task=839d14a0, tls=77f4cd48)
[ 8.932338] Stack : 83bbb420 83be5bd0 831f6c7c 83bbb420 83bbb420 831f1b84 00000000 00000000
[ 8.940886] 831f68f4 00000000 00000000 83106400 00000000 00000000 83bbb420 02400000
[ 8.949432] 83bbab20 8389ae10 83107514 00000003 00000016 024000c0 8006b648 83bda1e4
[ 8.957980] 80450000 8003da68 803e0000 801d1794 8389ae10 831077c4 831077c4 80450000
[ 8.966529] 80450000 801cfa5c 83100d00 00000001 831077c4 831077c4 8389ae10 8389ae10
[ 8.975076] ...
[ 8.977570] Call Trace:
[ 8.980069] [<800b41b4>] kfree+0x78/0x154
[ 8.984176] [<831f673c>] rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[ 8.991121] [<831f1b84>] rt2x00lib_probe_dev+0x7ac/0x84c [rt2x00lib]
[ 8.997617] [<83bda1e4>] rt2x00soc_probe+0x160/0x1bc [rt2x00soc]
[ 9.003748] [<801cfa5c>] platform_drv_probe+0x28/0x70
[ 9.008916] [<801ce074>] driver_probe_device+0x140/0x290
[ 9.014341] [<801ce250>] __driver_attach+0x8c/0xc4
[ 9.019232] [<801cc480>] bus_for_each_dev+0x9c/0xac
[ 9.024211] [<801cd6bc>] bus_add_driver+0xec/0x20c
[ 9.029104] [<801ce988>] driver_register+0xa8/0xf8
[ 9.033994] [<80004658>] do_one_initcall+0xdc/0x1a4
[ 9.038973] [<8007ad18>] do_init_module+0x74/0x1dc
[ 9.043867] [<8006dfe4>] load_module+0x184c/0x1cd4
[ 9.048758] [<8006e584>] SyS_init_module+0x118/0x168
[ 9.053828] [<80012c6c>] syscall_common+0x34/0x58
[ 9.058623] Code: 30630001 24030001 38630001 <00030336> 8c430000 7c630380 10600003 00000000 10000002
[ 9.068605]
[ 9.070159] ---[ end trace ff60a1da1889e428 ]---
[ 9.077178] Kernel panic - not syncing: Fatal exception
[ 9.083532] Rebooting in 1 seconds..[/details]

this openwrt work https://wiki.openwrt.org/toh/tp-link/tp-link_archer_c20_1 but very bad work , no 5ghz, no luci , no opkg update ... and more problems .. other openwrt not boot , all time rebooting have on C20 v1..

ohh i testing this , instal this https://wiki.openwrt.org/toh/tp-link/tp-link_archer_c20_1 , and sysupgrade to https://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7620/openwrt-15.05.1-ramips-mt7620-ArcherC20i-squashfs-sysupgrade.bin , on this work , but no wifi and no detect wifi :smiley:
LEDE SYSupgrade testing from C20i , and from C50 , not work on C20v1 !

give me a new firmware for test . we have 2 days for free time !

[ 8.537233] WARNING: CPU: 0 PID: 416 at mm/vmalloc.c:1494 release_firmware+0x64/0x148
[ 8.545232] Trying to vfree() bad address (83052600)

I'm kinda stuck here... Anybody have an idea what I could do to make this vfree() error go away?

And

[ 8.508335] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[ 8.516282] ieee80211 phy0: rt2800_init_eeprom: Error - Invalid RF chipset 0x7643 detected
[ 8.524735] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to allocate device

look suspicious.

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: