I've got myself a problem

My production main router is caught in a boot loop. I was modifying some firewall rules from the GUI when all of a sudden the router would stop responding and I lost internet access. The rooter boots and immediately shuts down again, the uptime is too short to enter the GUI. Disconnected USB (it's also doing duty as a small NAS) and WAN, problem persists.
I was able to enter failsafe mode and ssh into the router, but somehow all configuration seems to be gone. SSH would not accept my password but the default "password", all folder dates are from 2017. It looks like mount_root does nothing. My latest backup seems to be from December, 2017, so many later settings (mainly DHCP and firewall) would have to be repaired manually after firstboot. I'd like to rescue those, but need advice as to if that's at all possible in the current state of the router.
I did not issue any firstboot or other reset command yet, only pressing the reset button some.
Code: Select all
Using username "root".
root@192.168.1.1's password:
BusyBox v1.23.2 (2017-10-25 11:54:23 EDT) built-in shell (ash)
------------------------------------------------------------------
| _____ _ |
| | __ \ | | |
| | | \/ __ _ _ __ __ _ ___ _ _| | ___ |
| | | __ / _` | '__/ _` |/ _ \| | | | |/ _ \ |
| | |_\ \ (_| | | | (_| | (_) | |_| | | __/ |
| \____/\__,_|_| \__, |\___/ \__, |_|\___| |
| __/ | __/ | |
| |___/ |___/ |
| |
|----------------------------------------------------------------|
| Gargoyle version 1.10.0 | OpenWrt Chaos Calmer branch |
| Gargoyle revision ab16f958| OpenWrt commit 216adcf |
| Built October 25, 2017 | Target ar71xx/ath10k-large |
------------------------------------------------------------------
root@(none):~# cd ..
root@(none):/# ls -l
drwxr-xr-x 2 root root 697 Oct 25 2017 bin
drwxr-xr-x 3 root root 780 Jan 1 00:00 dev
drwxr-xr-x 22 root root 1127 Oct 25 2017 etc
drwxr-xr-x 11 root root 873 Oct 25 2017 lib
drwxr-xr-x 2 root root 3 Oct 25 2017 mnt
drwxr-xr-x 2 root root 3 Oct 25 2017 overlay
dr-xr-xr-x 33 root root 0 Jan 1 00:00 proc
drwxr-xr-x 2 root root 27 Oct 25 2017 rom
drwxr-xr-x 2 root root 3 Oct 25 2017 root
drwxr-xr-x 2 root root 850 Oct 25 2017 sbin
dr-xr-xr-x 11 root root 0 Jan 1 00:00 sys
drwxrwxrwt 7 root root 220 Jan 1 00:00 tmp
drwxr-xr-x 6 root root 74 Oct 25 2017 usr
lrwxrwxrwx 1 root root 4 Oct 25 2017 var -> /tmp
drwxr-xr-x 9 root root 1511 Oct 25 2017 www
root@(none):/# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 8960 8960 0 100% /
/dev/root 8960 8960 0 100% /
tmpfs 512 0 512 0% /dev
tmpfs 63040 24 63016 0% /tmp
root@(none):/# mount_root
root@(none):/# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 8960 8960 0 100% /
/dev/root 8960 8960 0 100% /
tmpfs 512 0 512 0% /dev
tmpfs 63040 24 63016 0% /tmp
root@(none):/# dmesg
[ 0.000000] Linux version 3.18.75 (eric@Osiris) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49389) ) #4 Wed Oct 25 12:20:37 EDT 2017
[ 0.000000] MyLoader: sysp=af6df1bf, boardp=a981e5a7, parts=7fedede0
[ 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: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x07ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x07ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat 80369df0, node_mem_map 81000000
[ 0.000000] Normal zone: 256 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 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=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: board=ARCHER-C7 console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 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] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 125856K/131072K available (2540K kernel code, 141K rwdata, 540K rodata, 224K init, 188K bss, 5216K 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] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[ 0.060000] pid_max: default: 32768 minimum: 301
[ 0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070000] NET: Registered protocol family 16
[ 0.080000] MIPS: machine is TP-LINK Archer C7
[ 0.080000] ar724x-pci ar724x-pci.0: PCIe link is down
[ 0.090000] registering PCI controller with io_map_base unset
[ 0.090000] registering PCI controller with io_map_base unset
[ 0.540000] PCI host bridge to bus 0000:00
[ 0.550000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[ 0.550000] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.560000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.560000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.560000] PCI host bridge to bus 0000:01
[ 0.570000] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]
[ 0.570000] pci_bus 0000:01: root bus resource [io 0x0001]
[ 0.580000] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[ 0.580000] pci 0000:01:00.0: [168c:003c] type 00 class 0x028000
[ 0.580000] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 0.580000] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.580000] pci 0000:01:00.0: supports D1 D2
[ 0.580000] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.580000] pci 0000:01:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[ 0.590000] pci 0000:01:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[ 0.590000] pci 0000:01:00.0: using irq 41 for pin 1
[ 0.600000] Switched to clocksource MIPS
[ 0.600000] NET: Registered protocol family 2
[ 0.610000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.610000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.620000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.630000] TCP: reno registered
[ 0.630000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.640000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.640000] NET: Registered protocol family 1
[ 0.650000] PCI: CLS 0 bytes, default 32
[ 0.650000] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.660000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.670000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.680000] msgmni has been set to 245
[ 0.680000] io scheduler noop registered
[ 0.690000] io scheduler deadline registered (default)
[ 0.690000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.700000] console [ttyS0] disabled
[ 0.720000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.730000] console [ttyS0] enabled
[ 0.740000] bootconsole [early0] disabled
[ 0.750000] m25p80 spi0.0: found w25q128, expected m25p80
[ 0.760000] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.760000] 5 tp-link partitions found on MTD device spi0.0
[ 0.770000] Creating 5 MTD partitions on "spi0.0":
[ 0.770000] 0x000000000000-0x000000020000 : "u-boot"
[ 0.780000] 0x000000020000-0x00000013c1f8 : "kernel"
[ 0.780000] 0x00000013c1f8-0x000000ff0000 : "rootfs"
[ 0.790000] mtd: device 2 (rootfs) set to be root filesystem
[ 0.790000] 1 squashfs-split partitions found on MTD device rootfs
[ 0.800000] 0x0000009e0000-0x000000ff0000 : "rootfs_data"
[ 0.810000] 0x000000ff0000-0x000001000000 : "art"
[ 0.810000] 0x000000020000-0x000000ff0000 : "firmware"
[ 0.840000] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[ 0.930000] libphy: ag71xx_mdio: probed
[ 1.530000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[ 1.540000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 2.130000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:SGMII
[ 2.130000] TCP: cubic registered
[ 2.140000] NET: Registered protocol family 17
[ 2.140000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 2.150000] Bridge firewalling registered
[ 2.160000] 8021q: 802.1Q VLAN Support v1.8
[ 2.170000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 2.180000] Freeing unused kernel memory: 224K
[ 3.440000] init: Console is alive
[ 3.440000] init: - watchdog -
[ 6.210000] usbcore: registered new interface driver usbfs
[ 6.220000] usbcore: registered new interface driver hub
[ 6.220000] usbcore: registered new device driver usb
[ 6.260000] SCSI subsystem initialized
[ 6.270000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.280000] ehci-platform: EHCI generic platform driver
[ 6.280000] ehci-platform ehci-platform.0: EHCI Host Controller
[ 6.290000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[ 6.300000] ehci-platform ehci-platform.0: TX-TX IDP fix enabled
[ 6.300000] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[ 6.330000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[ 6.330000] hub 1-0:1.0: USB hub found
[ 6.340000] hub 1-0:1.0: 1 port detected
[ 6.340000] ehci-platform ehci-platform.1: EHCI Host Controller
[ 6.350000] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[ 6.360000] ehci-platform ehci-platform.1: TX-TX IDP fix enabled
[ 6.360000] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[ 6.390000] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[ 6.390000] hub 2-0:1.0: USB hub found
[ 6.400000] hub 2-0:1.0: 1 port detected
[ 6.400000] usbcore: registered new interface driver usb-storage
[ 6.540000] init: - preinit -
[ 7.480000] eth1: link up (1000Mbps/Full duplex)
[ 7.500000] random: procd urandom read with 11 bits of entropy available
[ 75.190000] random: nonblocking pool is initialized