[Solved] Asus RT-AC58U and OpenWrt 18.06 problem

I installed OpenWrt 18.06, OpenWrt good working before power off, but router not working after power off and power on after 5 minutes.

Not working after power on:

  • ssh not avaliable
  • http not avaliable
  • wifi working, but internet on connected devices not working
  • internet on connected devices via cable not working

My actions:

  • I installed OpenWrt 18.06 release (OpenWrt 18.06.0, r7188-b0b5c64c22)
  • I installed packages: nano dnscrypt-proxy
  • I connected via ssh and configured:
    configure /etc/config/dhcp (static IP some hosts and set dnscrypt-proxy parameters)
    configure /etc/config/dnscrypt-proxy
    configure /etc/config/network (change only mac adress)
    configure /etc/config/wireless
  • router good workiking before restart
  • power off router
  • waiting 5 minutes and power on rourer
  • router not working

I connected to router via com port and I see that some configuration files are not readable: dropbear firewall rpcd ucitrack uhttpd. The less command displays the contents of the files as '@@@@@@@@@@@', the cat/head commands displays the content of the file as empty.

root@OpenWrt:~# ls -l /etc/config/
-rw-r--r-- 1 root root 1688 Aug 3 11:12 dhcp
-rw------- 1 root root 1719 Aug 3 11:11 dnscrypt-proxy
-rw-r--r-- 1 root root 134 Jul 30 16:25 dropbear
-rw-r--r-- 1 root root 4205 Jul 30 16:25 firewall
-rw-r--r-- 1 root root 836 Jul 30 16:25 luci
-rw-r--r-- 1 root root 837 Jul 30 16:28 network
-rw------- 1 root root 97 Jul 30 16:25 rpcd
-rw-r--r-- 1 root root 1045 Jul 30 16:25 system
-rw-r--r-- 1 root root 807 Jul 30 16:25 ucitrack
-rw------- 1 root root 3780 Jul 30 16:25 uhttpd
-rw-r--r-- 1 root root 851 Aug 3 11:09 wireless


root@OpenWrt:/etc/config# head -n 5 dhcp

config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
root@OpenWrt:/etc/config# head -n 5 dnscrypt-proxy
config global
# start dnscrypt-proxy from procd interface trigger rather than immediately in init
# if needed you can restrict trigger to certain interface(s)
# list procd_trigger 'wan'
# list procd_trigger 'wan6'
root@OpenWrt:/etc/config# head -n 5 dropbear
root@OpenWrt:/etc/config# head -n 5 firewall
root@OpenWrt:/etc/config# head -n 5 luci

config core 'main'
option lang 'auto'
option mediaurlbase '/luci-static/bootstrap'
option resourcebase '/luci-static/resources'
root@OpenWrt:/etc/config# head -n 5 network

config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
root@OpenWrt:/etc/config# head -n 5 rpcd
root@OpenWrt:/etc/config# head -n 5 system

config system
option hostname 'OpenWrt'
option timezone 'UTC'
option ttylogin '0'
root@OpenWrt:/etc/config# head -n 5 ucitrack
root@OpenWrt:/etc/config# head -n 5 uhttpd
root@OpenWrt:/etc/config# head -n 5 wireless

config wifi-device 'radio2'
option type 'mac80211'
option path 'platform/soc/a000000.wifi'
option hwmode '11g'

Load the router, output from the com port

Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00110
S - IMAGE_VARIANT_STRING=DAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000021
S - Reset status Config, 0x00000000
S - Core 0 Frequency, 0 MHz
B - 261 - PBL, Start
B - 1339 - bootable_media_detect_entry, Start
B - 1679 - bootable_media_detect_success, Start
B - 1693 - elf_loader_entry, Start
B - 5075 - auth_hash_seg_entry, Start
B - 7223 - auth_hash_seg_exit, Start
B - 579741 - elf_segs_hash_verify_entry, Start
B - 696011 - PBL, End
B - 696035 - SBL1, Start
B - 786342 - pm_device_init, Start
D - 7 - pm_device_init, Delta
B - 787870 - boot_flash_init, Start
D - 54267 - boot_flash_init, Delta
B - 846283 - boot_config_data_table_init, Start
D - 3841 - boot_config_data_table_init, Delta - (419 Bytes)
B - 853762 - clock_init, Start
D - 7561 - clock_init, Delta
B - 865498 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:1,Subtype:0
B - 868911 - sbl1_ddr_set_params, Start
B - 874007 - cpr_init, Start
D - 2 - cpr_init, Delta
B - 878389 - Pre_DDR_clock_init, Start
D - 5 - Pre_DDR_clock_init, Delta
D - 13174 - sbl1_ddr_set_params, Delta
B - 892119 - pm_driver_init, Start
D - 2 - pm_driver_init, Delta
B - 961847 - sbl1_wait_for_ddr_training, Start
D - 27 - sbl1_wait_for_ddr_training, Delta
B - 976965 - Image Load, Start
D - 138198 - QSEE Image Loaded, Delta - (268920 Bytes)
B - 1115589 - Image Load, Start
D - 1439 - SEC Image Loaded, Delta - (2048 Bytes)
B - 1125991 - Image Load, Start
D - 228943 - APPSBL Image Loaded, Delta - (468675 Bytes)
B - 1355330 - QSEE Execution, Start
D - 60 - QSEE Execution, Delta
B - 1361566 - SBL1, End
D - 667611 - SBL1, Delta
S - Flash Throughput, 2008 KB/s (740062 Bytes, 368399 us)
S - DDR Frequency, 537 MHz


U-Boot 2012.07-06802-ge44cc30 [local,local] (Apr 12 2017 - 17:24:25)
RT-AC58U bootloader version: 1.0.0.5

smem ram ptable found: ver: 1 len: 3
ASUS RT-AC58U gpio init : wps / reset pin
DRAM: 128 MiB
machid : 0x8010100
Maximum malloc length: 4096 KBytes
mem_malloc_start/brk/end: 0x86ee0000/86ee0000/872f0000
Relocation offset: 0
NAND: spi_nand: spi_nand_flash_probe SF NAND ID 0:ef:aa:21
SF: Detected W25N01GV with page size 2 KiB, total 128 MiB
SF: Detected MX25L1605D with page size 4 KiB, total 2 MiB
ipq_spi: page_size: 0x100, sector_size: 0x1000, size: 0x200000
130 MiB
In: serial
Out: serial
Err: serial
name : offset size
0:SBL1 : 00000000 00040000
0:MIBIB : 00040000 00020000
0:QSEE : 00060000 00060000
0:CDT : 000c0000 00010000
0:DDRPARAMS : 000d0000 00010000
0:APPSBLENV : 000e0000 00010000
0:APPSBL : 000f0000 00080000
0:ART : 00170000 00010000
machid: 8010100
flash_type: 0
Creating 1 MTD partitions on "nand1":
0x00000000-0x08000000 : "mtd=0"
UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI: max. sequence number: 3264
UBI: attached mtd2 to ubi0
UBI: MTD device name: "mtd=0"
UBI: MTD device size: 128 MiB
UBI: number of good PEBs: 1024
UBI: number of bad PEBs: 0
UBI: number of corrupted PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 7
UBI: available PEBs: 10
UBI: total number of reserved PEBs: 1014
UBI: number of PEBs reserved for bad PEB handling: 10
UBI: max/mean erase counter: 72/4
UBI: image sequence number: 1426352458
UBI: vol_id reserved_pebs alignment data_pad vol_type usable_leb_size used_ebs used_bytes last_eb_bytes corrupted upd_marker name_len name
UBI: 0 3 1 0 dynamic 1f000 3 5d000 1f000 0 0 5 nvram
UBI: 1 1 1 0 dynamic 1f000 1 1f000 1f000 0 0 7 Factory
UBI: 2 1 1 0 dynamic 1f000 1 1f000 1f000 0 0 8 Factory2
UBI: 3 11 1 0 dynamic 1f000 11 20f000 1f000 0 0 5 linux
UBI: 4 18d 1 0 dynamic 1f000 18d 3013000 1f000 0 0 6 linux2
UBI: 5 16 1 0 dynamic 1f000 16 2aa000 1f000 0 0 6 rootfs
UBI: 6 22f 1 0 dynamic 1f000 22f 43b1000 1f000 0 0 b rootfs_data
UBI: 7fffefff 2 1 0 dynamic 1f000 2 3e000 2 0 0 d layout volume
UBI volume [linux] size 20f000 smaller than 3013000!
UBI error: do_ubi: available_pebs 10 < MIN_AVAILABLE_PEB 30

Latest UBI volumes layout.
UBI: vol_id reserved_pebs alignment data_pad vol_type usable_leb_size used_ebs used_bytes last_eb_bytes corrupted upd_marker name_len name
UBI: 0 3 1 0 dynamic 1f000 3 5d000 1f000 0 0 5 nvram
UBI: 1 1 1 0 dynamic 1f000 1 1f000 1f000 0 0 7 Factory
UBI: 2 1 1 0 dynamic 1f000 1 1f000 1f000 0 0 8 Factory2
UBI: 3 11 1 0 dynamic 1f000 11 20f000 1f000 0 0 5 linux
UBI: 4 18d 1 0 dynamic 1f000 18d 3013000 1f000 0 0 6 linux2
UBI: 5 16 1 0 dynamic 1f000 16 2aa000 1f000 0 0 6 rootfs
UBI: 6 22f 1 0 dynamic 1f000 22f 43b1000 1f000 0 0 b rootfs_data
UBI: 7fffefff 2 1 0 dynamic 1f000 2 3e000 2 0 0 d layout volume
Read 0x1f000 bytes from volume [Factory] offset 0x0 to 86ec0ce0
EEPROM set 0: OK (version 15)
Read 0x1f000 bytes from volume [Factory2] offset 0x0 to 86ec0ce0
EEPROM set 1: OK (version 15)
Read 0x1f000 bytes from volume [Factory] offset 0x0 to 86ef4338
Select EEPROM set 0 at offset 0x0.

Please choose the operation:
1: Load System code to SDRAM via TFTP.
2: Load System code then write to Flash via TFTP.
3: Boot System code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP. 0
3: Boot System code via Flash (default).

RT-AC58U bootloader version: 1.0.0.5
MAC Address: 18:31:BF:56:90:A8
Read 0x40 bytes from volume [linux] offset 0x0 to 84000000
FIT/FDT format image found at 0x84000000, size 0x0020abb0
Read 0x20abf0 bytes from volume [linux] offset 0x0 to 84000000
## Booting kernel from FIT Image at 84000000 ...
Using 'config@1' configuration
Trying 'kernel@1' kernel subimage
Description: ARM OpenWrt Linux-4.14.54
Type: Kernel Image
Compression: lzma compressed
Data Start: 0x840000e4
Data Size: 2104899 Bytes = 2 MiB
Architecture: ARM
OS: Linux
Load Address: 0x80208000
Entry Point: 0x80208000
Hash algo: crc32
Hash value: ef9c3261
Hash algo: sha1
Hash value: ea532f3d27657c1022aae315d1e29c197945ecf6
## Flattened Device Tree from FIT Image at 84000000
Using 'config@1' configuration
Trying 'fdt@1' FDT blob subimage
Description: ARM OpenWrt asus_rt-ac58u device tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x84202060
Data Size: 34400 Bytes = 33.6 KiB
Architecture: ARM
Hash algo: crc32
Hash value: be0a71f7
Hash algo: sha1
Hash value: 438cd4e9a4c201d7d20d0e0a44b150d24992e1b8
Booting using the fdt blob at 0x84202060
Read 0x28 bytes from volume [linux2] offset 0x0 to 86edfc38
Uncompressing Kernel Image ... OK
Loading Device Tree to 86ed4000, end 86edf65f ... OK
ipq: fdt fixup unable to find compatible node
Using machid 0x8010100 from environment

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.54 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9)) #0 SMP Sat Jul 14 13:48:14 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] 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] 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 (4358K 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 - 0xc0741920 (5351 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.000007] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[ 0.000021] Switching to timer-based delay loop, resolution 20ns
[ 0.000427] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[ 0.000447] pid_max: default: 32768 minimum: 301
[ 0.000596] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000612] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001212] CPU: Testing write buffer coherency: ok
[ 0.001843] Setting up static identity map for 0x80300000 - 0x80300060
[ 0.001977] Hierarchical SRCU implementation.
[ 0.002567] smp: Bringing up secondary CPUs ...
[ 0.005089] smp: Brought up 1 node, 4 CPUs
[ 0.005107] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[ 0.005115] CPU: All CPU(s) started in SVC mode.
[ 0.013743] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.013912] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.013938] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.014140] pinctrl core: initialized pinctrl subsystem
[ 0.015012] NET: Registered protocol family 16
[ 0.015294] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.016339] cpuidle: using governor ladder
[ 0.016382] cpuidle: using governor menu
[ 0.032971] msm_bus_fabric_init_driver
[ 0.033231] msm_bus_device 580000.ad-hoc-bus: Util-fact is missing, default to 100
[ 0.033248] msm_bus_device 580000.ad-hoc-bus: Vrail-comp is missing, default to 100
[ 0.033266] msm_bus_device 580000.ad-hoc-bus: Failed to get bus clk for bus4096 ctx1
[ 0.033307] msm_bus_device 580000.ad-hoc-bus: Util-fact is missing, default to 100
[ 0.033320] msm_bus_device 580000.ad-hoc-bus: Vrail-comp is missing, default to 100
[ 0.033334] msm_bus_device 580000.ad-hoc-bus: Failed to get bus clk for bus1024 ctx1
[ 0.087967] usbcore: registered new interface driver usbfs
[ 0.088032] usbcore: registered new interface driver hub
[ 0.088130] usbcore: registered new device driver usb
[ 0.088176] pps_core: LinuxPPS API ver. 1 registered
[ 0.088187] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.088212] PTP clock support registered
[ 0.089196] clocksource: Switched to clocksource arch_sys_counter
[ 0.090034] NET: Registered protocol family 2
[ 0.090793] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.090825] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.090856] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.090966] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.091002] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.091198] NET: Registered protocol family 1
[ 0.092201] No memory allocated for crashlog
[ 0.092346] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.095603] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.095618] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.100578] io scheduler noop registered
[ 0.100596] io scheduler deadline registered (default)
[ 0.102689] bam-dma-engine 8e04000.dma: num-channels unspecified in dt
[ 0.102706] bam-dma-engine 8e04000.dma: num-ees unspecified in dt
[ 0.103410] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[ 0.103493] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[ 0.103581] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[ 0.103658] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[ 0.103893] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.105631] msm_serial 78af000.serial: msm_serial: detected port #0
[ 0.105678] msm_serial 78af000.serial: uartclk = 1843200
[ 0.105730] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 25, base_baud = 115200) is a MSM
[ 0.105760] msm_serial: console setup on port #0
[ 0.664898] console [ttyMSM0] enabled
[ 0.669797] msm_serial: driver initialized
[ 0.677271] loop: module loaded
[ 0.678415] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[ 0.681041] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[ 0.687479] 8 fixed-partitions partitions found on MTD device spi0.0
[ 0.692070] Creating 8 MTD partitions on "spi0.0":
[ 0.698648] 0x000000000000-0x000000040000 : "SBL1"
[ 0.704010] 0x000000040000-0x000000060000 : "MIBIB"
[ 0.708537] 0x000000060000-0x0000000c0000 : "QSEE"
[ 0.713375] 0x0000000c0000-0x0000000d0000 : "CDT"
[ 0.718207] 0x0000000d0000-0x0000000e0000 : "DDRPARAMS"
[ 0.723014] 0x0000000e0000-0x0000000f0000 : "APPSBLENV"
[ 0.727994] 0x0000000f0000-0x000000170000 : "APPSBL"
[ 0.733242] 0x000000170000-0x000000180000 : "ART"
[ 0.739290] libphy: ipq40xx_mdio: probed
[ 0.773152] ESS reset ok!
[ 0.806130] ESS reset ok!
[ 1.239623] libphy: Fixed MDIO Bus: probed
[ 1.240507] EDMA using MAC@ - using
[ 1.240524] be:0c:58:b1:06:78
[ 1.246729] EDMA using MAC@ - using
[ 1.246741] da:95:9f:eb:29:44
[ 1.350768] i2c /dev entries driver
[ 1.399402] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xaa
[ 1.399436] nand: Winbond W25N01GV 1G 3.3V 8-bit
[ 1.404827] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.409481] Scanning device for bad blocks
[ 1.426693] random: fast init done
[ 1.684336] random: crng init done
[ 1.779452] 1 fixed-partitions partitions found on MTD device spi0.1
[ 1.779479] Creating 1 MTD partitions on "spi0.1":
[ 1.784875] 0x000000000000-0x000008000000 : "UBI_DEV"
[ 1.791866] NET: Registered protocol family 10
[ 1.796022] Segment Routing with IPv6
[ 1.799004] NET: Registered protocol family 17
[ 1.802742] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 1.807311] 8021q: 802.1Q VLAN Support v1.8
[ 1.820388] Registering SWP/SWPB emulation handler
[ 1.839886] UBI: auto-attach mtd8
[ 1.839971] ubi0: attaching mtd8
[ 6.752539] ubi0: scanning is finished
[ 6.808539] ubi0: attached mtd8 (name "UBI_DEV", size 128 MiB)
[ 6.808572] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 6.813314] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 6.820144] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 6.826984] ubi0: good PEBs: 1024, bad PEBs: 0, corrupted PEBs: 0
[ 6.833767] ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
[ 6.840022] ubi0: max/mean erase counter: 72/4, WL threshold: 4096, image sequence number: 1426352458
[ 6.847126] ubi0: available PEBs: 0, total reserved PEBs: 1024, PEBs reserved for bad PEB handling: 20
[ 6.856447] ubi0: background thread "ubi_bgt0d" started, PID 85
[ 6.859589] block ubiblock0_5: created from ubi0:5(rootfs)
[ 6.859597] ubiblock: device ubiblock0_5 (rootfs) set to be root fi▒[ 6.900074] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 6.901679] Freeing unused kernel memory: 1024K
[ 8.348835] init: Console is alive
[ 8.349065] init: - watchdog -
[ 10.635142] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 11.349698] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 11.350298] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 11.356158] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f665 hci version 0x100 quirks 0x02010010
[ 11.362963] xhci-hcd xhci-hcd.0.auto: irq 94, io mem 0x08a00000
[ 11.372161] hub 1-0:1.0: USB hub found
[ 11.376405] hub 1-0:1.0: 1 port detected
[ 11.380623] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 11.384265] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 11.389587] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 11.397231] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 11.404425] hub 2-0:1.0: USB hub found
[ 11.412082] hub 2-0:1.0: 1 port detected
[ 11.529779] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 11.530347] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 11.536084] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x02010010
[ 11.542883] xhci-hcd xhci-hcd.1.auto: irq 95, io mem 0x06000000
[ 11.551355] hub 3-0:1.0: USB hub found
[ 11.556473] hub 3-0:1.0: 1 port detected
[ 11.560685] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 11.564333] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 11.569659] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 11.577313] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 11.584481] hub 4-0:1.0: USB hub found
[ 11.592248] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
[ 11.597560] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 11.609435] init: - preinit -
[ 14.012967] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 14.013062] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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
[ 17.264826] UBIFS (ubi0:6): background thread "ubifs_bgt0_6" started, PID 208
[ 17.564661] UBIFS (ubi0:6): recovery needed
[ 18.462317] UBIFS (ubi0:6): recovery completed
[ 18.462464] UBIFS (ubi0:6): UBIFS: mounted UBI device 0, volume 6, name "rootfs_data"
[ 18.465671] UBIFS (ubi0:6): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 18.473603] UBIFS (ubi0:6): FS size: 69709824 bytes (66 MiB, 549 LEBs), journal size 3428352 bytes (3 MiB, 27 LEBs)
[ 18.483488] UBIFS (ubi0:6): reserved for root: 3292567 bytes (3215 KiB)
[ 18.493726] UBIFS (ubi0:6): media format: w4/r0 (latest is w5/r0), UUID 094AD791-1105-48B0-8247-17AA9692424B, small LPT model
[ 18.537932] mount_root: switching to ubifs overlay
[ 18.636305] urandom-seed: Seeding with /etc/urandom.seed
[ 18.862804] procd: - early -
[ 18.862939] procd: - watchdog -
[ 19.510295] procd: - watchdog -
[ 19.513030] procd: - ubus -
[ 19.758674] procd: - init -
Please press Enter to activate this console.
[ 20.214187] kmodloader: loading kernel modules from /etc/modules.d/*
[ 20.217942] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 20.603556] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 20.603595] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 20.611799] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 20.985984] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 21.211824] xt_time: kernel timezone is -0000
[ 21.435995] PPP generic driver version 2.4.2
[ 21.437151] NET: Registered protocol family 24
[ 21.647966] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/firmware-6.bin failed with error -2
[ 21.648011] ath10k_ahb a000000.wifi: Falling back to user helper
[ 21.701233] firmware ath10k!QCA4019!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[ 24.266653] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[ 24.266699] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[ 24.285965] ath10k_ahb a000000.wifi: firmware ver 10.4-3.4-00104 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps crc32 6c332c67
[ 24.357300] ath10k_ahb a000000.wifi: board_file api 2 bmi_id 0:16 crc32 83549421
[ 25.704490] ath10k_ahb a000000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 512 raw 0 hwcrypto 1
[ 25.961260] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/firmware-6.bin failed with error -2
[ 25.961304] ath10k_ahb a800000.wifi: Falling back to user helper
[ 26.216223] firmware ath10k!QCA4019!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[ 26.216537] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[ 26.224211] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[ 26.236985] ath10k_ahb a800000.wifi: firmware ver 10.4-3.4-00104 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps crc32 6c332c67
[ 26.284531] ath10k_ahb a800000.wifi: board_file api 2 bmi_id 0:17 crc32 83549421
[ 27.632801] ath10k_ahb a800000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 512 raw 0 hwcrypto 1
[ 27.655045] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 31.931677] br-lan: port 1(eth0) entered blocking state
[ 31.931723] br-lan: port 1(eth0) entered disabled state
[ 31.936103] device eth0 entered promiscuous mode
[ 31.943357] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 31.961914] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 32.971240] br-lan: port 1(eth0) entered blocking state
[ 32.971290] br-lan: port 1(eth0) entered forwarding state
[ 32.977256] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 35.994520] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 37.607904] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 37.616084] br-lan: port 2(wlan1) entered blocking state
[ 37.616372] br-lan: port 2(wlan1) entered disabled state
[ 37.621016] device wlan1 entered promiscuous mode
[ 37.626860] br-lan: port 3(wlan0) entered blocking state
[ 37.630561] br-lan: port 3(wlan0) entered disabled state
[ 37.636279] device wlan0 entered promiscuous mode
[ 38.050585] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 38.050908] br-lan: port 3(wlan0) entered blocking state
[ 38.056064] br-lan: port 3(wlan0) entered forwarding state
[ 38.460696] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 38.460997] br-lan: port 2(wlan1) entered blocking state
[ 38.466150] br-lan: port 2(wlan1) entered forwarding state

I already tried several times:

  • I pressed the reset button 10 sec.
  • executed the firsboot command (soft reset) in Failsafe Mode.
  • re-installed the firmware image.

Can I have more ideas on how to restore the router.
PS: Sorry for my bad english.

dmesg

root@OpenWrt:/# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.54 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9)) #0 SMP Sat Jul 14 13:48:14 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 (4358K 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 - 0xc0741920 (5351 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.000007] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[ 0.000021] Switching to timer-based delay loop, resolution 20ns
[ 0.000427] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[ 0.000447] pid_max: default: 32768 minimum: 301
[ 0.000596] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000612] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001212] CPU: Testing write buffer coherency: ok
[ 0.001843] Setting up static identity map for 0x80300000 - 0x80300060
[ 0.001977] Hierarchical SRCU implementation.
[ 0.002567] smp: Bringing up secondary CPUs ...
[ 0.005089] smp: Brought up 1 node, 4 CPUs
[ 0.005107] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[ 0.005115] CPU: All CPU(s) started in SVC mode.
[ 0.013743] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.013912] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.013938] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.014140] pinctrl core: initialized pinctrl subsystem
[ 0.015012] NET: Registered protocol family 16
[ 0.015294] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.016339] cpuidle: using governor ladder
[ 0.016382] cpuidle: using governor menu
[ 0.032971] msm_bus_fabric_init_driver
[ 0.033231] msm_bus_device 580000.ad-hoc-bus: Util-fact is missing, default to 100
[ 0.033248] msm_bus_device 580000.ad-hoc-bus: Vrail-comp is missing, default to 100
[ 0.033266] msm_bus_device 580000.ad-hoc-bus: Failed to get bus clk for bus4096 ctx1
[ 0.033307] msm_bus_device 580000.ad-hoc-bus: Util-fact is missing, default to 100
[ 0.033320] msm_bus_device 580000.ad-hoc-bus: Vrail-comp is missing, default to 100
[ 0.033334] msm_bus_device 580000.ad-hoc-bus: Failed to get bus clk for bus1024 ctx1
[ 0.087967] usbcore: registered new interface driver usbfs
[ 0.088032] usbcore: registered new interface driver hub
[ 0.088130] usbcore: registered new device driver usb
[ 0.088176] pps_core: LinuxPPS API ver. 1 registered
[ 0.088187] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.088212] PTP clock support registered
[ 0.089196] clocksource: Switched to clocksource arch_sys_counter
[ 0.090034] NET: Registered protocol family 2
[ 0.090793] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.090825] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.090856] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.090966] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.091002] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.091198] NET: Registered protocol family 1
[ 0.091239] PCI: CLS 0 bytes, default 64
[ 0.092201] No memory allocated for crashlog
[ 0.092346] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.095603] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.095618] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.100578] io scheduler noop registered
[ 0.100596] io scheduler deadline registered (default)
[ 0.102689] bam-dma-engine 8e04000.dma: num-channels unspecified in dt
[ 0.102706] bam-dma-engine 8e04000.dma: num-ees unspecified in dt
[ 0.103410] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[ 0.103493] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[ 0.103581] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[ 0.103658] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[ 0.103893] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.105631] msm_serial 78af000.serial: msm_serial: detected port #0
[ 0.105678] msm_serial 78af000.serial: uartclk = 1843200
[ 0.105730] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 25, base_baud = 115200) is a MSM
[ 0.105760] msm_serial: console setup on port #0
[ 0.664898] console [ttyMSM0] enabled
[ 0.669797] msm_serial: driver initialized
[ 0.677271] loop: module loaded
[ 0.678415] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[ 0.681041] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[ 0.687479] 8 fixed-partitions partitions found on MTD device spi0.0
[ 0.692070] Creating 8 MTD partitions on "spi0.0":
[ 0.698648] 0x000000000000-0x000000040000 : "SBL1"
[ 0.704010] 0x000000040000-0x000000060000 : "MIBIB"
[ 0.708537] 0x000000060000-0x0000000c0000 : "QSEE"
[ 0.713375] 0x0000000c0000-0x0000000d0000 : "CDT"
[ 0.718207] 0x0000000d0000-0x0000000e0000 : "DDRPARAMS"
[ 0.723014] 0x0000000e0000-0x0000000f0000 : "APPSBLENV"
[ 0.727994] 0x0000000f0000-0x000000170000 : "APPSBL"
[ 0.733242] 0x000000170000-0x000000180000 : "ART"
[ 0.739290] libphy: ipq40xx_mdio: probed
[ 0.773152] ESS reset ok!
[ 0.806130] ESS reset ok!
[ 1.239623] libphy: Fixed MDIO Bus: probed
[ 1.240507] EDMA using MAC@ - using
[ 1.240524] be:0c:58:b1:06:78
[ 1.246729] EDMA using MAC@ - using
[ 1.246741] da:95:9f:eb:29:44
[ 1.350768] i2c /dev entries driver
[ 1.399402] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xaa
[ 1.399436] nand: Winbond W25N01GV 1G 3.3V 8-bit
[ 1.404827] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.409481] Scanning device for bad blocks
[ 1.426693] random: fast init done
[ 1.684336] random: crng init done
[ 1.779452] 1 fixed-partitions partitions found on MTD device spi0.1
[ 1.779479] Creating 1 MTD partitions on "spi0.1":
[ 1.784875] 0x000000000000-0x000008000000 : "UBI_DEV"
[ 1.791866] NET: Registered protocol family 10
[ 1.796022] Segment Routing with IPv6
[ 1.799004] NET: Registered protocol family 17
[ 1.802742] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 1.807311] 8021q: 802.1Q VLAN Support v1.8
[ 1.820388] Registering SWP/SWPB emulation handler
[ 1.839886] UBI: auto-attach mtd8
[ 1.839971] ubi0: attaching mtd8
[ 6.752539] ubi0: scanning is finished
[ 6.808539] ubi0: attached mtd8 (name "UBI_DEV", size 128 MiB)
[ 6.808572] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 6.813314] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 6.820144] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 6.826984] ubi0: good PEBs: 1024, bad PEBs: 0, corrupted PEBs: 0
[ 6.833767] ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
[ 6.840022] ubi0: max/mean erase counter: 72/4, WL threshold: 4096, image sequence number: 1426352458
[ 6.847126] ubi0: available PEBs: 0, total reserved PEBs: 1024, PEBs reserved for bad PEB handling: 20
[ 6.856447] ubi0: background thread "ubi_bgt0d" started, PID 85
[ 6.859589] block ubiblock0_5: created from ubi0:5(rootfs)
[ 6.859597] ubiblock: device ubiblock0_5 (rootfs) set to be root filesystem
[ 6.859610] hctosys: unable to open rtc device (rtc0)
[ 6.900074] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 6.901679] Freeing unused kernel memory: 1024K
[ 8.348835] init: Console is alive
[ 8.349065] init: - watchdog -
[ 10.635142] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 11.349698] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 11.350298] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 11.356158] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f665 hci version 0x100 quirks 0x02010010
[ 11.362963] xhci-hcd xhci-hcd.0.auto: irq 94, io mem 0x08a00000
[ 11.372161] hub 1-0:1.0: USB hub found
[ 11.376405] hub 1-0:1.0: 1 port detected
[ 11.380623] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 11.384265] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 11.389587] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 11.397231] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 11.404425] hub 2-0:1.0: USB hub found
[ 11.412082] hub 2-0:1.0: 1 port detected
[ 11.529779] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 11.530347] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 11.536084] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x02010010
[ 11.542883] xhci-hcd xhci-hcd.1.auto: irq 95, io mem 0x06000000
[ 11.551355] hub 3-0:1.0: USB hub found
[ 11.556473] hub 3-0:1.0: 1 port detected
[ 11.560685] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 11.564333] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 11.569659] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 11.577313] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 11.584481] hub 4-0:1.0: USB hub found
[ 11.592248] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
[ 11.597560] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 11.609435] init: - preinit -
[ 14.012967] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 14.013062] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 17.264826] UBIFS (ubi0:6): background thread "ubifs_bgt0_6" started, PID 208
[ 17.564661] UBIFS (ubi0:6): recovery needed
[ 18.462317] UBIFS (ubi0:6): recovery completed
[ 18.462464] UBIFS (ubi0:6): UBIFS: mounted UBI device 0, volume 6, name "rootfs_data"
[ 18.465671] UBIFS (ubi0:6): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 18.473603] UBIFS (ubi0:6): FS size: 69709824 bytes (66 MiB, 549 LEBs), journal size 3428352 bytes (3 MiB, 27 LEBs)
[ 18.483488] UBIFS (ubi0:6): reserved for root: 3292567 bytes (3215 KiB)
[ 18.493726] UBIFS (ubi0:6): media format: w4/r0 (latest is w5/r0), UUID 094AD791-1105-48B0-8247-17AA9692424B, small LPT model
[ 18.537932] mount_root: switching to ubifs overlay
[ 18.636305] urandom-seed: Seeding with /etc/urandom.seed
[ 18.862804] procd: - early -
[ 18.862939] procd: - watchdog -
[ 19.510295] procd: - watchdog -
[ 19.513030] procd: - ubus -
[ 19.758674] procd: - init -
[ 20.214187] kmodloader: loading kernel modules from /etc/modules.d/*
[ 20.217942] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 20.603556] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 20.603595] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 20.611799] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 20.985984] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 21.211824] xt_time: kernel timezone is -0000
[ 21.435995] PPP generic driver version 2.4.2
[ 21.437151] NET: Registered protocol family 24
[ 21.647966] ath10k_ahb a000000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/firmware-6.bin failed with error -2
[ 21.648011] ath10k_ahb a000000.wifi: Falling back to user helper
[ 21.701233] firmware ath10k!QCA4019!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[ 24.266653] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[ 24.266699] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[ 24.285965] ath10k_ahb a000000.wifi: firmware ver 10.4-3.4-00104 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps crc32 6c332c67
[ 24.357300] ath10k_ahb a000000.wifi: board_file api 2 bmi_id 0:16 crc32 83549421
[ 25.704490] ath10k_ahb a000000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 512 raw 0 hwcrypto 1
[ 25.734265] ath: EEPROM regdomain: 0x0
[ 25.734342] ath: EEPROM indicates default country code should be used
[ 25.734392] ath: doing EEPROM country->regdmn map search
[ 25.734484] ath: country maps to regdmn code: 0x3a
[ 25.734550] ath: Country alpha2 being used: US
[ 25.734604] ath: Regpair used: 0x3a
[ 25.961260] ath10k_ahb a800000.wifi: Direct firmware load for ath10k/QCA4019/hw1.0/firmware-6.bin failed with error -2
[ 25.961304] ath10k_ahb a800000.wifi: Falling back to user helper
[ 26.216223] firmware ath10k!QCA4019!hw1.0!firmware-6.bin: firmware_loading_store: map pages failed
[ 26.216537] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[ 26.224211] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[ 26.236985] ath10k_ahb a800000.wifi: firmware ver 10.4-3.4-00104 api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast,no-ps crc32 6c332c67
[ 26.284531] ath10k_ahb a800000.wifi: board_file api 2 bmi_id 0:17 crc32 83549421
[ 27.632801] ath10k_ahb a800000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 512 raw 0 hwcrypto 1
[ 27.647910] ath: EEPROM regdomain: 0x0
[ 27.647920] ath: EEPROM indicates default country code should be used
[ 27.647925] ath: doing EEPROM country->regdmn map search
[ 27.647936] ath: country maps to regdmn code: 0x3a
[ 27.647944] ath: Country alpha2 being used: US
[ 27.647949] ath: Regpair used: 0x3a
[ 27.655045] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 31.931677] br-lan: port 1(eth0) entered blocking state
[ 31.931723] br-lan: port 1(eth0) entered disabled state
[ 31.936103] device eth0 entered promiscuous mode
[ 31.943357] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 31.961914] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 32.971240] br-lan: port 1(eth0) entered blocking state
[ 32.971290] br-lan: port 1(eth0) entered forwarding state
[ 32.977256] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 35.994520] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 37.607904] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 37.616084] br-lan: port 2(wlan1) entered blocking state
[ 37.616372] br-lan: port 2(wlan1) entered disabled state
[ 37.621016] device wlan1 entered promiscuous mode
[ 37.626860] br-lan: port 3(wlan0) entered blocking state
[ 37.630561] br-lan: port 3(wlan0) entered disabled state
[ 37.636279] device wlan0 entered promiscuous mode
[ 38.050585] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 38.050908] br-lan: port 3(wlan0) entered blocking state
[ 38.056064] br-lan: port 3(wlan0) entered forwarding state
[ 38.460696] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 38.460997] br-lan: port 2(wlan1) entered blocking state
[ 38.466150] br-lan: port 2(wlan1) entered forwarding state

The same thing happens here on R7800, I don't even install any packages, set setup pppoe and wireless and reboot, then I lost connection to my router though the browser. Some config files become unreadable. I am luckier than you since dropbear is readable so I can connect to the router with ssh.

Yes, you can not install packages, just turn off and on the power of the router, and some files will not be readable.
In unreadable files, I restored the original content and added the first line "# FIX" to make the content different from the original one. The router is still loading successfully, ssh and http are available. But if you do reset the router, then again there are broken files.
Example of a broken file /etc/config/ucitrack.
Is this the firmware bug?

I've duplicated this problem on using KVM and the x86-64 image from 17.01.5. At least in my case, it appears to be a problem with uninitialized itables on the root ext4 partition, similar to Read-only File System after a Fresh Installation of LEDE 17.01.5

You'll know you're running into this problem if you see ext4 errors like this on boot:

[    0.700769] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
[    2.803919] EXT4-fs error (device sda2): ext4_has_uninit_itable:2883: comm mount_root: Inode table for bg 0 marked as needing zeroing
[    2.816869] EXT4-fs (sda2): Remounting filesystem read-only
[    2.821827] EXT4-fs (sda2): re-mounted. Opts: (null)
[    2.843009] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)

If you write any files, you'll see this flash by on a restart:

[  295.876810] EXT4-fs error (device sda2): ext4_remount:4797: Abort forced by user

Any files that get written to in this state will be trashed after a restart.

A workaround is to mount the ext4 partition on a Linux system, wait a bit, then umount it. Something like (you'll need to get the offset of the root partition using parted or something similar):

$ losetup -o 17301504 -f lede-17.01.5-x86-64-combined-ext4.img
$ mount /dev/loop0 /mnt/lede
$ sync
$ umount /dev/loop0
$ losetup -d /dev/loop0

This appears to be hit or miss on different images, possibly due to specifics on how the ext4 partitions are created (or possibly how long they were mounted during the image build process).

This is the root cause. The filesystems created by make_ext4fs do not set the EXT4_BG_INODE_ZEROED bit, even though, by the very nature of how they created (using sparse files and called'ed inode tables) they are actually zeroed.

Recent ext4 kernel changes pushed by Ted T'so have severely tightened checks on filesystems, and one of the checks is that this bit MUST be set on Block Group 0.

I think it's as simple as having make_ext4fs set this bit on all newly allocated block groups blindly. I'll test and send a patch to the openwrt-devel mailing list if this theory pans out.

Actually from your log messages it looks like you're using JFFS2/UBI so the ext4 problem is probably not relevant. Odd that it fails in the exact same way, though.

Yes, the router uses JFFS2/UBI.
There is a logread, maybe help diagnose the problem.

I got same problem before. I had to go back to Asus firmware then I flashed 18.06. No problem so far

Well, the ASUS Stock firmware calls the partition JFFS2... And while it's technically possible to put a jffs2 formatted partition in a UBI-Volume, it's a poor choice... first, jffs2 was designed around NOR-Flash and second there's already ubifs, so there's no need to include jffs2 support there. No idea what ASUS was thinking there :confused: .

Ok, can you tell how you did power off the router? Did you remove the power cord or pressed the power-off button while it was running? I'm asking because based on the "@@@@@@/0xff garbage in the files" symptoms, the RT-AC58U experienced a sudden-power loss while writing back the changes (the SPINAND is slooow). What you could do to prevent that is to perform a proper software reboot (either via the serial-console/ssh "reboot" or the Luci's "system reboot" option)... and wait until the device did it's initial LED test before disconnecting the power.

This is the Log OpenWrt 18.06, no log ASUS Stock firmware

I pressed the power-off button while it was running.

I know, I added support for the RT-AC58U in OpenWrt I can tell the difference between the ASUS firmware log and OpenWrt. This was about JFFS2/UBI and why OpenWrt does not use JFFS2.

ok, this might be the cause for the corruption. NAND flash is not as durable or easily programmable as NOR, so changes to files is not directly written in order to preserve the longevity of the flash cells. So this can be mitigated by doing issuing a software reboot of the OS, before turning it off.

If you don't care about longevity, you can of course (re-)mount the /overlay with the sync option: http://www.linux-mtd.infradead.org/doc/ubifs.html#L_sync_semantics

I executed the reboot command in ssh after installing the OpenWrt firmware.
Yes, this method works! No broken files.
Thank you very much!!!

PS: I recovered the router via serial cable after an unsuccessful attempt to flash from snapshot to release, so the router was on the table next to me. So it was convenient for me to press the power button. Now I will know that I do not have to press the power button after installing the firmware.

/sbin/poweroff would be another alternative, this doesn't necessarily work on all targets (it does work on ar71xx and ipq806x), but it's worth a try.

I reflashed it and reboot from the Luci interface, yeah, it works. thanks. (R7800)

very true. Most embedded platforms don't have a real poweroff feature like the big x86s. if poweroff is issued the devices will simply reboot instead. A we had this problem with My Book Live NAS (apm821xx) too and to solve it there I wrote a "softoff" script that utilizes sysupgrade to get in an idle state, where the device could be disconnected without any fear of corruption.

(The softoff.sh will work on all OpenWrt devices from 18.06+, but this version requires hdparm. so # opkg update ; opkg install hdparm )

I saw a JFFS2 init message in the boot log but missed that it wasn't being used by any partition. My bad, apologies for derailing the conversation.

Out of curiosity, would a manual sync(8) after editing files on a NAND flash partition avoid the file corruption, or are there too many levels of indirection/caching and you still need to use the softoff script?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.