Wifi gone after debricking AC58U

Hello everyone,
I stupidly tried the new snapshot builds, moving from the stable 18.06.1. At first everything was all right, the interface was newer and it had more features. But after a while things started going wrong and opkg was saying partition is read only (sign of corruption?). Okay then, I'll do a factory reset. That didn't work. Then I tried to systemupgrade back to 18.06.1. Result - router bricked with blinking power light.

Okay then, I'll do firmware restoration tool. So I ran it and successfully restored to stock firmware!

When in the stick firmware I noticed that the unique wifi network name has changed. Before it was ASUS_38_5G now it's ASUS_03_5G.

I thought hmm the restoration tool might have reset something, no problems, let's install openwrt.

Back in 18.06.1... Wifi tab in luci is gone, and in ssh, iw list, iwinfo, wifi detect, all show nothing.

Did the debricking process screw up the router's unique wifi files? Those config "factory x" partitions probably were touched by firmware recovery.... and I did not have any backup of them.... :frowning: Is the wireless forever gone on my poor ac58u?

Edit: After restoring again to stock, wifi works in the stock firmware.

Edit2: The wifi speeds are now bad in the stock firmware, download is capped to 50mbps. So yeah, wifi's forever screwed. I'll probably sell the router while I still can...

dmesg output:

root@OpenWrt:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.63 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9)) #0 SMP Thu Aug 16 07:51:15 2018
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: ASUS RT-AC58U
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 32256
[    0.000000] free_area_init_node: node 0, pgdat c0a24000, node_mem_map c7cf9000
[    0.000000]   Normal zone: 252 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32256 pages, LIFO batch:7
[    0.000000] random: get_random_bytes called from 0xc09008e4 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu @c7ca1000 s29324 r8192 d23924 u61440
[    0.000000] pcpu-alloc: s29324 r8192 d23924 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32004
[    0.000000] Kernel command line: root_rfs=0x00000000 flash_type=norplusnand
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 119888K/129024K available (4360K kernel code, 146K rwdata, 692K rodata, 1024K init, 252K bss, 9136K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8000000 - 0xff800000   ( 888 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc7e00000   ( 126 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0208000 - 0xc07422c0   (5353 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a24900   ( 147 kB)
[    0.000000]        .bss : 0xc0a26000 - 0xc0a652f4   ( 253 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 48.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns
[    0.000008] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[    0.000023] Switching to timer-based delay loop, resolution 20ns
[    0.000433] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[    0.000452] pid_max: default: 32768 minimum: 301
[    0.000603] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000620] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001226] CPU: Testing write buffer coherency: ok
[    0.001909] Setting up static identity map for 0x80300000 - 0x80300060
[    0.002051] Hierarchical SRCU implementation.
[    0.002705] smp: Bringing up secondary CPUs ...
[    0.005449] smp: Brought up 1 node, 4 CPUs
[    0.005468] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[    0.005477] CPU: All CPU(s) started in SVC mode.
[    0.014199] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.014365] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.014390] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.014599] pinctrl core: initialized pinctrl subsystem
[    0.015467] NET: Registered protocol family 16
[    0.015753] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.016806] cpuidle: using governor ladder
[    0.016852] cpuidle: using governor menu
[    0.033433] msm_bus_fabric_init_driver
[    0.033697] msm_bus_device 580000.ad-hoc-bus: Util-fact is missing, default to 100
[    0.033715] msm_bus_device 580000.ad-hoc-bus: Vrail-comp is missing, default to 100
[    0.033733] msm_bus_device 580000.ad-hoc-bus: Failed to get bus clk for bus4096 ctx1
[    0.033772] msm_bus_device 580000.ad-hoc-bus: Util-fact is missing, default to 100
[    0.033784] msm_bus_device 580000.ad-hoc-bus: Vrail-comp is missing, default to 100
[    0.033800] msm_bus_device 580000.ad-hoc-bus: Failed to get bus clk for bus1024 ctx1
[    0.088420] usbcore: registered new interface driver usbfs
[    0.088483] usbcore: registered new interface driver hub
[    0.088580] usbcore: registered new device driver usb
[    0.088625] pps_core: LinuxPPS API ver. 1 registered
[    0.088636] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.088660] PTP clock support registered
[    0.089661] clocksource: Switched to clocksource arch_sys_counter
[    0.090566] NET: Registered protocol family 2
[    0.091262] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091292] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.091322] TCP: Hash tables configured (established 1024 bind 1024)
[    0.091433] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.091468] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.091663] NET: Registered protocol family 1
[    0.091704] PCI: CLS 0 bytes, default 64
[    0.092670] No memory allocated for crashlog
[    0.092823] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.096080] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.096097] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.101317] io scheduler noop registered
[    0.101335] io scheduler deadline registered (default)
[    0.103412] bam-dma-engine 8e04000.dma: num-channels unspecified in dt
[    0.103432] bam-dma-engine 8e04000.dma: num-ees unspecified in dt
[    0.104137] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[    0.104217] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[    0.104288] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[    0.104375] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[    0.104605] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.106359] msm_serial 78af000.serial: msm_serial: detected port #0
[    0.106405] msm_serial 78af000.serial: uartclk = 1843200
[    0.106459] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 25, base_baud = 115200) is a MSM
[    0.106487] msm_serial: console setup on port #0
[    0.665624] console [ttyMSM0] enabled
[    0.670529] msm_serial: driver initialized
[    0.678004] loop: module loaded
[    0.679138] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    0.681771] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    0.688208] 8 fixed-partitions partitions found on MTD device spi0.0
[    0.692798] Creating 8 MTD partitions on "spi0.0":
[    0.699376] 0x000000000000-0x000000040000 : "SBL1"
[    0.704637] 0x000000040000-0x000000060000 : "MIBIB"
[    0.709269] 0x000000060000-0x0000000c0000 : "QSEE"
[    0.714108] 0x0000000c0000-0x0000000d0000 : "CDT"
[    0.718923] 0x0000000d0000-0x0000000e0000 : "DDRPARAMS"
[    0.723746] 0x0000000e0000-0x0000000f0000 : "APPSBLENV"
[    0.728720] 0x0000000f0000-0x000000170000 : "APPSBL"
[    0.733972] 0x000000170000-0x000000180000 : "ART"
[    0.740026] libphy: ipq40xx_mdio: probed
[    0.773965] ESS reset ok!
[    0.806937] ESS reset ok!
[    1.240069] libphy: Fixed MDIO Bus: probed
[    1.240967] EDMA using MAC@ - using
[    1.240982] 5e:1f:e0:6d:77:e3
[    1.247186] EDMA using MAC@ - using
[    1.247198] 8a:f4:ec:54:94:ae
[    1.351223] i2c /dev entries driver
[    1.399870] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xaa
[    1.399905] nand: Winbond W25N01GV 1G 3.3V 8-bit
[    1.405422] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.410353] Scanning device for bad blocks
[    1.426527] random: fast init done
[    1.688802] random: crng init done
[    1.786218] 1 fixed-partitions partitions found on MTD device spi0.1
[    1.786245] Creating 1 MTD partitions on "spi0.1":
[    1.791672] 0x000000000000-0x000008000000 : "UBI_DEV"
[    1.798610] NET: Registered protocol family 10
[    1.803608] Segment Routing with IPv6
[    1.805768] NET: Registered protocol family 17
[    1.809469] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.814133] 8021q: 802.1Q VLAN Support v1.8
[    1.826976] Registering SWP/SWPB emulation handler
[    1.836947] UBI: auto-attach mtd8
[    1.836984] ubi0: attaching mtd8
[    6.758616] ubi0: scanning is finished
[    6.814992] ubi0: attached mtd8 (name "UBI_DEV", size 128 MiB)
[    6.815025] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    6.819772] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    6.826578] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    6.833454] ubi0: good PEBs: 1024, bad PEBs: 0, corrupted PEBs: 0
[    6.840221] ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
[    6.846461] ubi0: max/mean erase counter: 148/11, WL threshold: 4096, image sequence number: 711589923
[    6.853595] ubi0: available PEBs: 0, total reserved PEBs: 1024, PEBs reserved for bad PEB handling: 20
[    6.862904] ubi0: background thread "ubi_bgt0d" started, PID 86
[    6.866502] block ubiblock0_5: created from ubi0:5(rootfs)
[    6.866510] ubiblock: device ubiblock0_5 (rootfs) set to be root filesystem
[    6.866521] hctosys: unable to open rtc device (rtc0)
[    6.910056] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    6.911794] Freeing unused kernel memory: 1024K
[    8.276408] init: Console is alive
[    8.276644] init: - watchdog -
[   10.524467] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[   11.180163] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[   11.180831] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[   11.186559] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f665 hci version 0x100 quirks 0x02010010
[   11.193343] xhci-hcd xhci-hcd.0.auto: irq 94, io mem 0x08a00000
[   11.201785] hub 1-0:1.0: USB hub found
[   11.206868] hub 1-0:1.0: 1 port detected
[   11.211059] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[   11.214730] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[   11.220056] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0  SuperSpeed
[   11.227705] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[   11.234885] hub 2-0:1.0: USB hub found
[   11.242644] hub 2-0:1.0: 1 port detected
[   11.360214] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[   11.360777] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[   11.366670] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x02010010
[   11.373382] xhci-hcd xhci-hcd.1.auto: irq 95, io mem 0x06000000
[   11.388548] hub 3-0:1.0: USB hub found
[   11.389328] hub 3-0:1.0: 1 port detected
[   11.392541] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[   11.395384] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[   11.400695] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0  SuperSpeed
[   11.408321] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[   11.415395] hub 4-0:1.0: USB hub found
[   11.423207] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
[   11.428609] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[   11.439952] init: - preinit -
[   15.294833] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.294926] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   18.507183] UBIFS (ubi0:6): background thread "ubifs_bgt0_6" started, PID 209
[   18.810328] UBIFS (ubi0:6): recovery needed
[   20.473402] UBIFS (ubi0:6): recovery completed
[   20.473554] UBIFS (ubi0:6): UBIFS: mounted UBI device 0, volume 6, name "rootfs_data"
[   20.476761] UBIFS (ubi0:6): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   20.484689] UBIFS (ubi0:6): FS size: 69709824 bytes (66 MiB, 549 LEBs), journal size 3428352 bytes (3 MiB, 27 LEBs)
[   20.494573] UBIFS (ubi0:6): reserved for root: 3292567 bytes (3215 KiB)
[   20.504812] UBIFS (ubi0:6): media format: w4/r0 (latest is w5/r0), UUID 5EA3FA30-E46B-4161-AD1E-B78378405276, small LPT model
[   20.571813] mount_root: switching to ubifs overlay
[   20.631999] urandom-seed: Seeding with /etc/urandom.seed
[   21.875683] procd: - early -
[   21.875819] procd: - watchdog -
[   22.550751] procd: - watchdog -
[   22.553529] procd: - ubus -
[   22.948259] procd: - init -
[   24.039573] kmodloader: loading kernel modules from /etc/modules.d/*
[   24.043257] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   24.404751] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   24.404790] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   24.413021] ip_tables: (C) 2000-2006 Netfilter Core Team
[   24.856610] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   25.075576] xt_time: kernel timezone is -0000
[   25.312222] PPP generic driver version 2.4.2
[   25.313667] NET: Registered protocol family 24
[   25.627437] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/firmware-6.bin failed with error -2
[   25.627771] ath10k_ahb a000000.wifi: Falling back to user helper
[   25.686852] firmware ath10k!QCA4019!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[   27.327991] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[   27.328049] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   27.341149] ath10k_ahb a000000.wifi: firmware ver 10.4-3.5.3-00057 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps crc32 6a15d64d
[   27.635178] ath10k_ahb a000000.wifi: failed to fetch board data for bus=ahb,bmi-chip-id=0,bmi-board-id=31,variant=RT-AC58U from ath10k/QCA4019/hw1.0/board-2.bin
[   27.635522] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/board.bin failed with error -2
[   27.648658] ath10k_ahb a000000.wifi: Falling back to user helper
[   27.701829] firmware ath10k!QCA4019!hw1.0!board.bin: firmware_loading_store: map pages failed
[   27.702093] ath10k_ahb a000000.wifi: failed to fetch board-2.bin or board.bin from ath10k/QCA4019/hw1.0
[   27.709378] ath10k_ahb a000000.wifi: failed to fetch board file: -11
[   27.718818] ath10k_ahb a000000.wifi: could not probe fw (-11)
[   27.914795] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/firmware-6.bin failed with error -2
[   27.914848] ath10k_ahb a800000.wifi: Falling back to user helper
[   27.963641] firmware ath10k!QCA4019!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[   27.965443] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[   27.971610] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   27.993025] ath10k_ahb a800000.wifi: firmware ver 10.4-3.5.3-00057 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps crc32 6a15d64d
[   28.034938] ath10k_ahb a800000.wifi: failed to fetch board data for bus=ahb,bmi-chip-id=0,bmi-board-id=31,variant=RT-AC58U from ath10k/QCA4019/hw1.0/board-2.bin
[   28.035136] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/board.bin failed with error -2
[   28.048417] ath10k_ahb a800000.wifi: Falling back to user helper
[   28.094119] firmware ath10k!QCA4019!hw1.0!board.bin: firmware_loading_store: map pages failed
[   28.094389] ath10k_ahb a800000.wifi: failed to fetch board-2.bin or board.bin from ath10k/QCA4019/hw1.0
[   28.101715] ath10k_ahb a800000.wifi: failed to fetch board file: -11
[   28.111090] ath10k_ahb a800000.wifi: could not probe fw (-11)
[   28.120354] kmodloader: done loading kernel modules from /etc/modules.d/*
[   33.811363] br-lan: port 1(eth0) entered blocking state
[   33.811404] br-lan: port 1(eth0) entered disabled state
[   33.815855] device eth0 entered promiscuous mode
[   33.822924] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   33.843385] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   33.846518] ess_edma c080000.edma: eth1: GMAC Link is up with phy_speed=1000
[   33.848229] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   34.809833] br-lan: port 1(eth0) entered blocking state
[   34.809914] br-lan: port 1(eth0) entered forwarding state
[   34.814831] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   34.868476] pppoe-wan: renamed from ppp0