Comfast E380AC lede-17.01.2 - No Wifi

Hi,
I have just upgraded my Comfast E380AC AP with LEDE: no problem with firmware install, login, setting to DHCP... but /etc/config/wireless was not there.

From SSH i tried to set it up with "# wifi config"

but it only creates an empty /etc/config/wireless

is there another UCI command to setup ?

Or should I create completly the wireless file from vi ?

Thanks
Jean-Claude

Is that V1 or V2?

I got V2, which is generating the config, however, the 10k drivers are crashing after a while.

i have a V2

From Kernel log seem that drivers are not making it

[ 16.477224] ath: invalid regulatory domain/country code 0x26f9
[ 16.477231] ath: Invalid EEPROM contents
[ 16.481234] ath9k qca955x_wmac: failed to initialize device
[ 16.486948] ath9k: probe of qca955x_wmac failed with error -22

same for Ath10k

Can you share your wireless file structure (without secret / SSID) ?
thx

Are you sure it's V2, not V1?
Difference is in mtd layout and based on your logs it looks like data in your art partition is wrong. That could happen with a wrong image applied (v2 vs. v1).

Pepe2K,
I might have started on wrong basis ... I update AP with the V1 image
But it doesn't look much better
Honestly i'm bit lost
thx

[ 0.000000] Linux version 4.4.71 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3101-bce140e) ) #0 Wed Jun 7 19:24:41 2017
[ 0.000000] MyLoader: sysp=7b8d9fc7, boardp=b9a83824, parts=a04d8e39
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA9558 ver 1 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 10000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] No valid device tree found, continuing without
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] free_area_init_node: node 0, pgdat 803d04d0, node_mem_map 81000000
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65536 pages, LIFO batch:15
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=132768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: board=CF-E380AC-V1 mtdparts=spi0.0:128k(u-boot)ro,64k(art)ro,16128k(firmware),64k(art-backup)ro console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 255276K/262144K available (3073K kernel code, 163K rwdata, 412K rodata, 312K init, 205K bss, 6868K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:200.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5309056796 ns
[ 0.000007] sched_clock: 32 bits at 360MHz, resolution 2ns, wraps every 5965232126ns
[ 0.008280] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[ 0.071186] pid_max: default: 32768 minimum: 301
[ 0.076193] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.083239] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.092563] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.103057] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.110410] NET: Registered protocol family 16
[ 0.116165] MIPS: machine is COMFAST CF-E380AC v1
[ 0.338219] registering PCI controller with io_map_base unset
[ 0.344433] ar724x-pci ar724x-pci.1: PCIe link is down
[ 0.349920] registering PCI controller with io_map_base unset
[ 0.356160] Can't analyze schedule() prologue at 800670bc
[ 0.369030] PCI host bridge to bus 0000:00
[ 0.373433] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[ 0.380747] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.386678] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.393894] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.402358] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000
[ 0.402385] pci 0000:00:00.0: invalid calibration data
[ 0.407869] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 0.407923] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.407981] pci 0000:00:00.0: supports D1
[ 0.407994] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.408174] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.408202] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
[ 0.416022] pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref]
[ 0.423808] PCI host bridge to bus 0000:01
[ 0.428191] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]
[ 0.435498] pci_bus 0000:01: root bus resource [io 0x0001]
[ 0.441429] pci_bus 0000:01: root bus resource [??? 0x00000000 flags 0x0]
[ 0.448645] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[ 0.457087] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.457105] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.462954] clocksource: Switched to clocksource MIPS
[ 0.469195] NET: Registered protocol family 2
[ 0.474549] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.481989] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.488809] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.495654] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.501876] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.508764] NET: Registered protocol family 1
[ 0.513458] PCI: CLS 0 bytes, default 32
[ 0.516961] Crashlog allocated RAM at address 0x3f00000
[ 0.533768] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.539974] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.552334] io scheduler noop registered
[ 0.556541] io scheduler deadline registered (default)
[ 0.562167] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.571143] console [ttyS0] disabled
[ 0.595025] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.604205] console [ttyS0] enabled
[ 0.611611] bootconsole [early0] disabled
[ 0.623935] m25p80 spi0.0: found mx25l12805d, expected m25p80
[ 0.629786] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.634965] 4 cmdlinepart partitions found on MTD device spi0.0
[ 0.640969] Creating 4 MTD partitions on "spi0.0":
[ 0.645844] 0x000000000000-0x000000020000 : "u-boot"
[ 0.652573] 0x000000020000-0x000000030000 : "art"
[ 0.658640] 0x000000030000-0x000000ff0000 : "firmware"
[ 0.698463] 2 uimage-fw partitions found on MTD device firmware
[ 0.704499] 0x000000030000-0x000000190000 : "kernel"
[ 0.710602] 0x000000190000-0x000000ff0000 : "rootfs"
[ 0.716930] mtd: device 4 (rootfs) set to be root filesystem
[ 0.722703] 1 squashfs-split partitions found on MTD device rootfs
[ 0.729016] 0x000000410000-0x000000ff0000 : "rootfs_data"
[ 0.735801] 0x000000ff0000-0x000001000000 : "art-backup"
[ 0.757149] libphy: ag71xx_mdio: probed
[ 1.424176] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd072, driver=Atheros 8035 ethernet]
[ 1.434856] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 1.442494] NET: Registered protocol family 10
[ 1.449985] NET: Registered protocol family 17
[ 1.454588] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.467471] 8021q: 802.1Q VLAN Support v1.8
[ 1.477613] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 1.485920] Freeing unused kernel memory: 312K (803f2000 - 80440000)
[ 2.442507] init: Console is alive
[ 2.446175] init: - watchdog -
[ 3.479299] kmodloader: loading kernel modules from /etc/modules-boot.d/

[ 3.507341] usbcore: registered new interface driver usbfs
[ 3.513042] usbcore: registered new interface driver hub
[ 3.518497] usbcore: registered new device driver usb
[ 3.527528] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.535310] ehci-platform: EHCI generic platform driver
[ 3.540680] ehci-platform ehci-platform.0: EHCI Host Controller
[ 3.546748] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[ 3.557019] ehci-platform ehci-platform.0: TX-TX IDP fix enabled
[ 3.563136] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[ 3.582989] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[ 3.590252] hub 1-0:1.0: USB hub found
[ 3.594357] hub 1-0:1.0: 1 port detected
[ 3.598624] ehci-platform ehci-platform.1: EHCI Host Controller
[ 3.604695] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[ 3.614994] ehci-platform ehci-platform.1: TX-TX IDP fix enabled
[ 3.621096] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[ 3.642977] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[ 3.650225] hub 2-0:1.0: USB hub found
[ 3.654329] hub 2-0:1.0: 1 port detected
[ 3.658945] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 3.676629] init: - preinit -
[ 4.583736] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 4.607808] random: procd: uninitialized urandom read (4 bytes read, 7 bits of entropy available)
[ 6.963534] jffs2: notice: (366) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 6.981114] mount_root: switching to jffs2 overlay
[ 6.993085] urandom-seed: Seeding with /etc/urandom.seed
[ 7.116511] procd: - early -
[ 7.119510] procd: - watchdog -
[ 7.734824] procd: - ubus -
[ 7.846047] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 7.868440] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 7.877932] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 7.887141] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 7.896754] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 7.905948] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 7.915223] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 7.924518] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 7.933949] procd: - init -
[ 8.252162] kmodloader: loading kernel modules from /etc/modules.d/*
[ 8.274633] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 8.287530] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[ 8.295693] Backport generated by backports.git backports-20160324-13-g24da7d3c
[ 8.351391] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 8.357332] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[ 8.576805] **ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -*2
[ 8.587684] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 8.777682] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[ 9.059692] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[ 9.069098] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[ 9.082180] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-1.0-00016 api 5 features no-p2p,raw-mode,mfp crc32 0c5668f8
[ 9.092987] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[ 9.103586] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 9.183393] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[ 9.205047] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[ 10.295529] ath10k_pci 0000:00:00.0: firmware crashed! (uuid 6f599703-e1ac-4ebf-a1f0-f40651e55ae7)
[ 10.304658] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[ 10.314014] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[ 10.327102] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-1.0-00016 api 5 features no-p2p,raw-mode,mfp crc32 0c5668f8
[ 10.337830] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[ 10.345256] ath10k_pci 0000:00:00.0: htt-ver 0.0 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
[ 10.356908] ath10k_pci 0000:00:00.0: firmware register dump:
[ 10.362654] ath10k_pci 0000:00:00.0: [00]: 0x4100016C 0x00000000 0x009BBD06 0x00096B62
[ 10.370698] ath10k_pci 0000:00:00.0: [04]: 0x009BBD06 0x00060530 0x00000003 0x00000000
[ 10.378735] ath10k_pci 0000:00:00.0: [08]: 0x00000002 0x00000000 0x0000000D 0x6F66736E
[ 10.386772] ath10k_pci 0000:00:00.0: [12]: 0x00000009 0x00000000 0x00958360 0x0095836B
[ 10.394806] ath10k_pci 0000:00:00.0: [16]: 0x00958080 0x0094E9AD 0x00000000 0x00000000
[ 10.402834] ath10k_pci 0000:00:00.0: [20]: 0x409BBD06 0x0040AAF4 0x00000009 0x00000006
[ 10.410875] ath10k_pci 0000:00:00.0: [24]: 0x809877EA 0x0040AB54 0x0000145A 0xC09BBD06
[ 10.418905] ath10k_pci 0000:00:00.0: [28]: 0x80984A40 0x0040AB84 0x00000001 0x00000000
[ 10.426944] ath10k_pci 0000:00:00.0: [32]: 0x8098FBA5 0x0040ABE4 0x0040E270 0x004062DC
[ 10.434979] ath10k_pci 0000:00:00.0: [36]: 0x8098A79E 0x0040AC34 0x0040AC94 0x004062DC
[ 10.443013] ath10k_pci 0000:00:00.0: [40]: 0x80988785 0x0040AC94 0x00410670 0x00400000
[ 10.451039] ath10k_pci 0000:00:00.0: [44]: 0x8098AE78 0x0040AD44 0x00410670 0x00000001
[ 10.459073] ath10k_pci 0000:00:00.0: [48]: 0x809B66F0 0x0040AD84 0x00410670 0x00411254
[ 10.467107] ath10k_pci 0000:00:00.0: [52]: 0x809B2868 0x0040ADA4 0x00400000 0x00416EB4
[ 10.475142] ath10k_pci 0000:00:00.0: [56]: 0x809C07FD 0x0040ADE4 0x0040AE08 0x00412028
[ 10.483173] ath10k_pci 0000:00:00.0: Copy Engine register dump:
[ 10.489184] ath10k_pci 0000:00:00.0: [00]: 0x00057400 7 7 3 3
[ 10.495729] ath10k_pci 0000:00:00.0: [01]: 0x00057800 3 3 6 7
[ 10.502269] ath10k_pci 0000:00:00.0: [02]: 0x00057c00 1 1 0 1
[ 10.508815] ath10k_pci 0000:00:00.0: [03]: 0x00058000 1 1 2 1
[ 10.515362] ath10k_pci 0000:00:00.0: [04]: 0x00058400 0 0 40 0
[ 10.521902] ath10k_pci 0000:00:00.0: [05]: 0x00058800 0 0 0 0
[ 10.528447] ath10k_pci 0000:00:00.0: [06]: 0x00058c00 0 0 0 0
[ 10.534994] ath10k_pci 0000:00:00.0: [07]: 0x00059000 0 0 0 0
[ 15.292972] ath10k_pci 0000:00:00.0: wmi unified ready event not received
[ 15.396096] ath10k_pci 0000:00:00.0: could not init core (-145)
[ 15.402230] ath10k_pci 0000:00:00.0: could not probe fw (-145)
[ 15.413712] ath10k_pci 0000:00:00.0: cannot restart a device that hasn't been started
[ 15.432481] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 15.444571] nf_conntrack version 0.5.0 (3993 buckets, 15972 max)
[ 15.476798] xt_time: kernel timezone is -0000
[ 15.492746] PPP generic driver version 2.4.2
[ 15.499021] NET: Registered protocol family 24
[ 15.517802] ath: phy1: eeprom contains invalid mac address: ff:f8:ac:83:00:04
[ 15.525075] ath: phy1: random mac address will be used: 4e:f2:06:9f:e3:6d
[ 15.532967] ath: EEPROM regdomain: 0x9c27
[ 15.532976] ath: EEPROM indicates we should expect a country code
[ 15.532993] ath: invalid regulatory domain/country code 0x9c27
[ 15.533000] ath: Invalid EEPROM contents
[ 15.537002] ath9k qca955x_wmac: failed to initialize device
[ 15.542685] ath9k: probe of qca955x_wmac failed with error -22
[ 15.553194] kmodloader: done loading kernel modules from /etc/modules.d/

[ 16.032626] random: jshn: uninitialized urandom read (4 bytes read, 26 bits of entropy available)
[ 21.237796] device eth0 entered promiscuous mode
[ 21.254441] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 21.574893] eth0: link up (1000Mbps/Full duplex)
[ 21.579619] br-lan: port 1(eth0) entered forwarding state
[ 21.585154] br-lan: port 1(eth0) entered forwarding state
[ 21.643052] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 23.582962] br-lan: port 1(eth0) entered forwarding state
[ 77.843063] random: nonblocking pool is initialized

I have here v1, just did upgrade to LEDE 17.01.2 and then to snapshot: both radios are working fine (or, lets just say they are working, I didn't run deeper tests), ath10k firmware doesn't crash, MAC addresses are correct.

You have definitely problem with your art partition - both radios calibration data and all MAC addresses are stored there and as you can see from your logs, nothing is correct there - you have random MAC addresses and calibration data seem missing which result in ath10k firmware crash and no 2.4GHz radio. I wouldn't be surprise if your CF-E380AC is some kind of new revision with just another mtd layout (and/or other changes) or you art partition is corrupted.

Can you make and send me (use private message please) full flash dump? At least on all Comfast devices I have here, there is another art partition at the end of flash (I called it "art-backup" in mtd layout in LEDE). Maybe Comfast made some changes and stopped using first art partition and we should switch to that at the end.

You can dump easily mtd partition to a bin file in /tmp with below command (dump u-boot, art, firmware and art-backup please):

cat /dev/mtdX > /tmp/mtdX.bin

h i,
that's very kind to help me on this
When you say "mtdX" you mean X for 1 to 6 ?
:/dev# ls
bus mtd6 ttyS1
console mtd6ro ttyS10
cpu_dma_latency mtdblock0 ttyS11
full mtdblock1 ttyS12
hwrng mtdblock2 ttyS13
kmsg mtdblock3 ttyS14
log mtdblock4 ttyS15
memory_bandwidth mtdblock5 ttyS2
mtd0 mtdblock6 ttyS3
mtd0ro network_latency ttyS4
mtd1 network_throughput ttyS5
mtd1ro null ttyS6
mtd2 port ttyS7
mtd2ro ppp ttyS8
mtd3 ptmx ttyS9
mtd3ro pts urandom
mtd4 random watchdog
mtd4ro shm zero
mtd5 tty
mtd5ro ttyS0

You can see list of your mtd partitions with:

cat /proc/mtd

It will give you mtd number and partition names.

it took me some time to figure out that openssh-sftp needs to be added to retrieve files
you should have private message with link
rgds

Next time use SCP :slight_smile:

So, based on the dumps, your device looks definitely like a v2 and image for v1 has damaged (overwritten) the first art partition. Happily, it didn't overwrite U-Boot (that could end up with a total brick...) and the art backup from end of the flash looks fine - you should be able to fix all that mess...

BTW. I suppose you have a serial console access there (if not, how did you change kernel load address in U-Boot?), just in case?

Anyway, step by step:

  1. Go back into LEDE image for v2 version.

  2. Install kmod-mtd-rw with below commands (you will need Internet access on device or download the package manually):

    opkg update
    opkg install kmod-mtd-rw

  3. Insert mtd-rw module with command (look in dmesg if it succeed):

    insmod mtd-rw.ko i_want_a_brick=1

  4. Dump art-backup partition content with command (first make sure it's mtd6 in cat /proc/mtd list):

    cat /dev/mtd6 > /tmp/art.bin

  5. Write backup of the art to the first art partition with below command and reboot router

    mtd write /tmp/art.bin art

And let us know about results :smirk:

Whaooo impressive tips.

I have 2.4G band working on reboot (radio0) (wlan1)

but 5G is not there

need now to see how to activate 11ac

Thanks so much :relaxed:

That's weird... does the ac radio work without any problems in vendor firmware?
Can you show dmesg output after switch back to v2 image and art restore?

the ac was working out of box, didn't try to reload Comfast fw from web.

Seems that pci device still have an issue

[    8.173950] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.198349] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.211409] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[    8.219575] Backport generated by backports.git backports-20160324-13-g24da7d3c
[    8.274507] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    8.280407] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[    8.497059] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[    8.507947] ath10k_pci 0000:00:00.0: Falling back to user helper
[    8.704277] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[    8.915159] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[    8.924563] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[    8.937639] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-1.0-00016 api 5 features no-p2p,raw-mode,mfp crc32 0c5668f8
[    8.948422] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[    8.959026] ath10k_pci 0000:00:00.0: Falling back to user helper
[    9.039239] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[    9.060932] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   10.150951] ath10k_pci 0000:00:00.0: firmware crashed! (uuid 452316a2-4654-4f59-90ef-a38b2a0ae2a1)
[   10.160085] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   10.169449] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   10.182537] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-1.0-00016 api 5 features no-p2p,raw-mode,mfp crc32 0c5668f8
[   10.193264] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   10.200683] ath10k_pci 0000:00:00.0: htt-ver 0.0 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
[   10.212331] ath10k_pci 0000:00:00.0: firmware register dump:
[   10.218088] ath10k_pci 0000:00:00.0: [00]: 0x4100016C 0x000015B3 0x009BA6A2 0x00955B31
[   10.226124] ath10k_pci 0000:00:00.0: [04]: 0x009BA6A2 0x00060330 0x0000001D 0xB4B4D8AC
[   10.234162] ath10k_pci 0000:00:00.0: [08]: 0xFFFFFFFF 0x00401F68 0x0000096C 0xFFFFFFFF
[   10.242189] ath10k_pci 0000:00:00.0: [12]: 0x00000009 0x00000000 0x009BAD8C 0x009BAD97
[   10.250222] ath10k_pci 0000:00:00.0: [16]: 0x00958080 0x0094E9B1 0x00000000 0x00000000
[   10.258260] ath10k_pci 0000:00:00.0: [20]: 0x409BA6A2 0x0040AA24 0x0040AAE6 0x00000001
[   10.266296] ath10k_pci 0000:00:00.0: [24]: 0x809BB189 0x0040AA84 0x25B07F59 0xC09BA6A2
[   10.274334] ath10k_pci 0000:00:00.0: [28]: 0x809BB612 0x0040AAB4 0x000000E1 0x00000001
[   10.282362] ath10k_pci 0000:00:00.0: [32]: 0x80984880 0x0040ABA4 0x0040EE3C 0x0000003F
[   10.290403] ath10k_pci 0000:00:00.0: [36]: 0x8098FBA5 0x0040ABE4 0x0040E270 0x004062DC
[   10.298438] ath10k_pci 0000:00:00.0: [40]: 0x8098A79E 0x0040AC34 0x0040AC94 0x004062DC
[   10.306469] ath10k_pci 0000:00:00.0: [44]: 0x80988785 0x0040AC94 0x00410670 0x00400000
[   10.314506] ath10k_pci 0000:00:00.0: [48]: 0x8098AE78 0x0040AD44 0x00410670 0x00000001
[   10.322534] ath10k_pci 0000:00:00.0: [52]: 0x809B66F0 0x0040AD84 0x00410670 0x00411254
[   10.330575] ath10k_pci 0000:00:00.0: [56]: 0x809B2868 0x0040ADA4 0x00400000 0x00416EB4
[   10.338606] ath10k_pci 0000:00:00.0: Copy Engine register dump:
[   10.344622] ath10k_pci 0000:00:00.0: [00]: 0x00057400   7   7   3   3
[   10.351164] ath10k_pci 0000:00:00.0: [01]: 0x00057800   3   3   6   7
[   10.357710] ath10k_pci 0000:00:00.0: [02]: 0x00057c00   1   1   0   1
[   10.364254] ath10k_pci 0000:00:00.0: [03]: 0x00058000   1   1   2   1
[   10.370788] ath10k_pci 0000:00:00.0: [04]: 0x00058400   0   0  40   0
[   10.377333] ath10k_pci 0000:00:00.0: [05]: 0x00058800   0   0   0   0
[   10.383877] ath10k_pci 0000:00:00.0: [06]: 0x00058c00   0   0   0   0
[   10.390411] ath10k_pci 0000:00:00.0: [07]: 0x00059000   0   0   0   0
[   15.142978] ath10k_pci 0000:00:00.0: wmi unified ready event not received
[   15.246092] ath10k_pci 0000:00:00.0: could not init core (-145)
[   15.252222] ath10k_pci 0000:00:00.0: could not probe fw (-145)
[   15.263328] ath10k_pci 0000:00:00.0: cannot restart a device that hasn't been started
[   15.283166] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.295280] nf_conntrack version 0.5.0 (3993 buckets, 15972 max)
[   15.327646] xt_time: kernel timezone is -0000
[   15.343544] PPP generic driver version 2.4.2
[   15.349841] NET: Registered protocol family 24
[   15.369580] ath: EEPROM regdomain: 0x0
[   15.369597] ath: EEPROM indicates default country code should be used
[   15.369605] ath: doing EEPROM country->regdmn map search
[   15.369622] ath: country maps to regdmn code: 0x3a
[   15.369631] ath: Country alpha2 being used: US
[   15.369639] ath: Regpair used: 0x3a
[   15.385576] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   15.389523] ieee80211 phy1: Atheros AR9550 Rev:0 mem=0xb8100000, irq=47
[   15.511639] kmodloader: done loading kernel modules from /etc/modules.d/*
[   16.337165] random: jshn: uninitialized urandom read (4 bytes read, 26 bits of entropy available)
[   21.476797] device eth0 entered promiscuous mode

another thing i've noticed after the restore of art.bin:

ETH0 is now having the right MAC (ie. the one on back sticker)

ath10k firmware is crashing... I would go back to vendor firmware and check if ath10k radio works there.
ath10k in my CF-E380AC v1 works with both, snapshot:

[   64.546676] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   64.554714] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   64.770407] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[   64.781288] ath10k_pci 0000:00:00.0: Falling back to user helper
[   64.924503] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[   64.933833] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/cal-pci-0000:00:00.0.bin failed with error -2
[   64.944360] ath10k_pci 0000:00:00.0: Falling back to user helper
[   71.618968] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   71.628363] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   71.641365] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-1.0-00029 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 88595bb8
[   71.686285] ath10k_pci 0000:00:00.0: board id is not exist in otp, ignore it
[   71.693547] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[   71.704151] ath10k_pci 0000:00:00.0: Falling back to user helper
[   71.794603] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[   71.818389] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   72.925048] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1

and release images (different firmware versions):

[    8.754062] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    8.760002] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[    8.979551] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[    8.990434] ath10k_pci 0000:00:00.0: Falling back to user helper
[    9.069702] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[    9.332622] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[    9.342027] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[    9.355061] ath10k_pci 0000:00:00.0: firmware ver 10.2.4.70.54 api 5 features no-p2p,raw-mode,mfp crc32 9d340dd9
[    9.365493] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[    9.376099] ath10k_pci 0000:00:00.0: Falling back to user helper
[    9.455659] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[    9.472387] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   10.581080] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1

Getting something much better after

Reload : CF-E380AC-V2.0.0.bin => 11n & 11ac working but poor interface

Go back to LEDE with recory boot: lede-17.01.2-ar71xx-generic-cf-e380ac-v2-squashfs-sysupgrade.bin

And the magic works

now can start to work on LEDE. Thanks so much

I'm glad you fixed it! :slight_smile:

hey. I got a corrupt art partition and what ever I try it's not working.
@pepe2k I did what you suggested but bricked one ap. I got another one with same symptom.
@jice78 do you think you can send me a dumped art and art.backup?

You should then probably contact with the vendor and finally find out what the model you have and what mtd layout it uses. Comfast is really bad in terms of versions and naming consistency...