WRT3200ACM: Can't install standard firmware after flashing custom-built firmware

I've got a big pickle that I can't seem to solve.

I built a custom version of OpenWRT with the nDPI netfilter module and a few customized config files in order to try a more advanced firewall configuration. Well, I ended up solving my problem without it and I've kept running this version for a while. However, I went to install the IPv6 NAT module and realized that for some reason I'm unable to install it -- even from my custom-built repo. So, I opted to revert my OpenWRT version to the standard build yesterday. However, when I flash the standard build I get stuck at the Luci login. It tells me that I need to set a password, but when I set the password via Serial or SSH I can't log into Luci. Additionally, when I click the "Go to password configuration" button in Luci, I kicks me back to the login screen which doesn't allow me to set the password or get to any other Luci page other than the login page.

I've attempted to update_both_images with the stock firmware and then factory resetting from there (even on both partitions just to be safe) then flashing the stardard version but, I get stuck with the same issue. I've even attempted to flash the version this router originally started on (LEDE 17.01.5), and upgrading to current (without keeping settings) to no avail.

Everything seems to work fine on the custom build, however.

Here is a boot log of standard 18.06.1:

[    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 r7101-a63e38b)) #0 SMP Wed Aug 15 20:42:39 2018
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Linksys WRT3200ACM
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: get_random_bytes called from 0xc08008d0 with crng_init=0
[    0.000000] percpu: Embedded 12 pages/cpu @dfbd0000 s18892 r8192 d22068 u49152
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock8 ro rootdelay=1 rootfstype=jffs2 earlyprintk mtdparts=armada-nand:2048K(uboot)ro,128K(u_env),256K(s_env),256K@8064K(devinfo),1920K@8320K(sysdiag),80m@10m(kernel),74m@16m(rootfs),80m@90m(alt_kernel),74m@96m(alt_rootfs),160m@10m(ubifs),-@170m(syscfg)
[    0.000000] Bootloader command line (ignored): console=ttyS0,115200 root=/dev/mtdblock8 ro rootdelay=1 rootfstype=jffs2 earlyprintk mtdparts=armada-nand:2048K(uboot)ro,128K(u_env),256K(s_env),256K@8064K(devinfo),1920K@8320K(sysdiag),80m@10m(kernel),74m@16m(rootfs),80m@90m(alt_kernel),74m@96m(alt_rootfs),160m@10m(ubifs),-@170m(syscfg)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 510920K/524288K available (6144K kernel code, 197K rwdata, 804K rodata, 1024K init, 248K bss, 13368K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0800000 - 0xc0900000   (1024 kB)
[    0.000000]       .data : 0xc0900000 - 0xc0931680   ( 198 kB)
[    0.000000]        .bss : 0xc0931680 - 0xc096f774   ( 249 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000006] sched_clock: 64 bits at 933MHz, resolution 1ns, wraps every 4398046511103ns
[    0.000014] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x1ae5b571769, max_idle_ns: 881590513431 ns
[    0.000025] Switching to timer-based delay loop, resolution 1ns
[    0.000123] Ignoring duplicate/late registration of read_current_timer delay
[    0.000129] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000243] Calibrating delay loop (skipped), value calculated using timer frequency.. 1866.00 BogoMIPS (lpj=9330000)
[    0.000249] pid_max: default: 32768 minimum: 301
[    0.000294] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000299] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000484] CPU: Testing write buffer coherency: ok
[    0.000579] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.000672] Setting up static identity map for 0x100000 - 0x100060
[    0.000731] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.000791] mvebu-pmsu: Initializing Power Management Service Unit
[    0.000827] Hierarchical SRCU implementation.
[    0.000974] smp: Bringing up secondary CPUs ...
[    0.001071] Booting CPU 1
[    0.001209] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.001242] smp: Brought up 1 node, 2 CPUs
[    0.001247] SMP: Total of 2 processors activated (3732.00 BogoMIPS).
[    0.001249] CPU: All CPU(s) started in SVC mode.
[    0.002539] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.002580] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.002586] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.002630] pinctrl core: initialized pinctrl subsystem
[    0.002910] NET: Registered protocol family 16
[    0.003352] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.003900] cpuidle: using governor ladder
[    0.004038] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.004044] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.009017] reg-fixed-voltage usb3_1-vbus: could not find pctldev for node /soc/internal-regs/pinctrl@18000/usb3_1-vbus-pins, deferring probe
[    0.009161] SCSI subsystem initialized
[    0.009318] usbcore: registered new interface driver usbfs
[    0.009335] usbcore: registered new interface driver hub
[    0.009353] usbcore: registered new device driver usb
[    0.009944] clocksource: Switched to clocksource arm_global_timer
[    0.010280] NET: Registered protocol family 2
[    0.010496] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.010515] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.010543] TCP: Hash tables configured (established 4096 bind 4096)
[    0.010580] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.010593] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.010651] NET: Registered protocol family 1
[    0.011559] Crashlog allocated RAM at address 0x3f00000
[    0.011717] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.012939] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.012944] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.014583] io scheduler noop registered
[    0.014589] io scheduler deadline registered (default)
[    0.014969] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.015780] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.015786] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.015791] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.015796] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.015948] PCI: bus0: Fast back to back transfers disabled
[    0.015953] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.015959] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.016140] PCI: bus1: Fast back to back transfers disabled
[    0.016356] PCI: bus2: Fast back to back transfers disabled
[    0.016376] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe02fffff]
[    0.016381] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0400000-0xe06fffff]
[    0.016387] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe01fffff 64bit pref]
[    0.016395] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0200000-0xe02fffff 64bit pref]
[    0.016403] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.016409] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe02fffff]
[    0.016415] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0400000-0xe05fffff 64bit pref]
[    0.016424] pci 0000:02:00.0: BAR 2: assigned [mem 0xe0600000-0xe06fffff 64bit pref]
[    0.016433] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.016437] pci 0000:00:02.0:   bridge window [mem 0xe0400000-0xe06fffff]
[    0.016620] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.080326] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.080422] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.140291] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.140417] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.140953] console [ttyS0] disabled
[    0.161020] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    0.930476] console [ttyS0] enabled
[    0.935282] loop: module loaded
[    0.938685] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.947794] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.956916] scsi host0: ahci-mvebu
[    0.960465] scsi host1: ahci-mvebu
[    0.963933] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 41
[    0.971893] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 41
[    0.980204] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.987962] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xda
[    0.994353] nand: Winbond W29N02GV
[    0.997768] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.005390] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.012566] Bad block table found at page 131008, version 0x01
[    1.018742] Bad block table found at page 130944, version 0x01
[    1.024863] 11 fixed-partitions partitions found on MTD device pxa3xx_nand-0
[    1.031947] Creating 11 MTD partitions on "pxa3xx_nand-0":
[    1.037456] 0x000000000000-0x000000200000 : "u-boot"
[    1.042656] 0x000000200000-0x000000220000 : "u_env"
[    1.047706] 0x000000220000-0x000000260000 : "s_env"
[    1.052768] 0x0000007e0000-0x000000820000 : "devinfo"
[    1.057991] 0x000000820000-0x000000a00000 : "sysdiag"
[    1.063232] 0x000000a00000-0x000005a00000 : "kernel1"
[    1.068601] 0x000001000000-0x000005a00000 : "rootfs1"
[    1.073967] 0x000005a00000-0x00000aa00000 : "kernel2"
[    1.079356] 0x000006000000-0x00000aa00000 : "ubi"
[    1.084380] 0x00000aa00000-0x000010000000 : "syscfg"
[    1.089677] 0x000000260000-0x000000820000 : "unused_area"
[    1.095548] libphy: Fixed MDIO Bus: probed
[    1.099949] libphy: orion_mdio_bus: probed
[    1.104212] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.112828] mvneta f1070000.ethernet eth0: Using hardware mac address 60:38:e0:cd:52:e0
[    1.122023] mvneta f1034000.ethernet eth1: Using hardware mac address 60:38:e0:cd:52:e0
[    1.130208] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.136765] ehci-pci: EHCI PCI platform driver
[    1.141256] ehci-platform: EHCI generic platform driver
[    1.146559] ehci-orion: EHCI orion driver
[    1.150668] orion-ehci f1058000.usb: EHCI Host Controller
[    1.156103] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.163750] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.189926] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.196053] hub 1-0:1.0: USB hub found
[    1.199829] hub 1-0:1.0: 1 port detected
[    1.204157] usbcore: registered new interface driver usb-storage
[    1.210342] i2c /dev entries driver
[    1.225080] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.237481] orion_wdt: Initial timeout 171 sec
[    1.242159] sdhci: Secure Digital Host Controller Interface driver
[    1.248365] sdhci: Copyright(c) Pierre Ossman
[    1.309951] mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using ADMA
[    1.311046] ata1: SATA link down (SStatus 0 SControl 300)
[    1.311071] ata2: SATA link down (SStatus 0 SControl 300)
[    1.328306] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.340041] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.347603] NET: Registered protocol family 10
[    1.352490] Segment Routing with IPv6
[    1.356200] NET: Registered protocol family 17
[    1.360685] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.373834] 8021q: 802.1Q VLAN Support v1.8
[    1.378090] Registering SWP/SWPB emulation handler
[    1.384210] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.389557] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 2
[    1.397144] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.405732] xhci-hcd f10f8000.usb3: irq 44, io mem 0xf10f8000
[    1.411712] hub 2-0:1.0: USB hub found
[    1.415502] hub 2-0:1.0: 1 port detected
[    1.419540] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.424895] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.432429] xhci-hcd f10f8000.usb3: Host supports USB 3.0  SuperSpeed
[    1.438964] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.447247] hub 3-0:1.0: USB hub found
[    1.451042] hub 3-0:1.0: 1 port detected
[    1.455316] UBI: auto-attach mtd8
[    1.458651] ubi0: attaching mtd8
[    1.467474] random: fast init done
[    1.484591] mmc0: new high speed SDIO card at address 0001
[    1.662964] ubi0: scanning is finished
[    1.670963] ubi0: attached mtd8 (name "ubi", size 74 MiB)
[    1.676387] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.683298] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.690118] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.697109] ubi0: good PEBs: 592, bad PEBs: 0, corrupted PEBs: 0
[    1.703142] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    1.710398] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 495503963
[    1.719482] ubi0: available PEBs: 0, total reserved PEBs: 592, PEBs reserved for bad PEB handling: 40
[    1.728748] ubi0: background thread "ubi_bgt0d" started, PID 711
[    1.735146] block ubiblock0_0: created from ubi0:0(rootfs)
[    1.740665] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    1.747840] mvsw61xx 10.mvsw61xx: Found MV88E6352 at f1072004.mdio-mii:10
[    1.754664] mvsw61xx 10.mvsw61xx: Using direct addressing
[    1.768055] hctosys: unable to open rtc device (rtc0)
[    1.773353] Waiting 1 sec before mounting root device...
[    2.821308] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    2.828943] Freeing unused kernel memory: 1024K
[    2.990686] init: Console is alive
[    2.994166] init: - watchdog -
[    3.231981] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.262266] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.279059] init: - preinit -
[    3.413890] mvneta f1070000.ethernet tmp0: renamed from eth0
[    3.420157] random: procd: uninitialized urandom read (4 bytes read)
[    3.461191] mvneta f1034000.ethernet eth0: renamed from eth1
[    3.511125] mvneta f1070000.ethernet eth1: renamed from tmp0
[    3.738362] random: jshn: uninitialized urandom read (4 bytes read)
[    3.753494] random: jshn: uninitialized urandom read (4 bytes read)
[    3.915261] mvneta f1034000.ethernet eth0: configuring for fixed/sgmii link mode
[    3.923062] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    3.929079] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    3.937309] 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
[    6.988407] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 822
[    7.015999] UBIFS (ubi0:1): recovery needed
[    7.098363] UBIFS (ubi0:1): recovery completed
[    7.102854] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    7.110724] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.120686] UBIFS (ubi0:1): FS size: 65138688 bytes (62 MiB, 513 LEBs), journal size 3301376 bytes (3 MiB, 26 LEBs)
[    7.131173] UBIFS (ubi0:1): reserved for root: 3076660 bytes (3004 KiB)
[    7.137817] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID AA33C8C2-6FCD-4986-9204-C119518EA9C9, small LPT model
[    7.149536] mount_root: overlay filesystem has not been fully initialized yet
[    7.157956] mount_root: switching to ubifs overlay
[    7.199782] ubi1: attaching mtd9
[    7.278286] random: crng init done
[    7.281703] random: 3 urandom warning(s) missed due to ratelimiting
[    7.433056] ubi1: scanning is finished
[    7.441064] ubi1: attached mtd9 (name "syscfg", size 86 MiB)
[    7.446750] ubi1: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    7.453660] ubi1: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    7.460480] ubi1: VID header offset: 2048 (aligned 2048), data offset: 4096
[    7.467471] ubi1: good PEBs: 680, bad PEBs: 8, corrupted PEBs: 0
[    7.473505] ubi1: user volume: 1, internal volumes: 1, max. volumes count: 128
[    7.480762] ubi1: max/mean erase counter: 26/16, WL threshold: 4096, image sequence number: 1421946238
[    7.490111] ubi1: available PEBs: 0, total reserved PEBs: 680, PEBs reserved for bad PEB handling: 32
[    7.499376] ubi1: background thread "ubi_bgt1d" started, PID 832
UBI device number 1, total 680 LEBs (86343680 bytes, 82.3 MiB), [    7.510725] UBIFS (ubi1:0): background thread "ubifs_bgt1_0" started, PID 836
available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
[    7.538491] UBIFS (ubi1:0): recovery needed
[    7.609335] UBIFS (ubi1:0): recovery completed
[    7.613836] UBIFS (ubi1:0): UBIFS: mounted UBI device 1, volume 0, name "syscfg"
[    7.621278] UBIFS (ubi1:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.631265] UBIFS (ubi1:0): FS size: 80375808 bytes (76 MiB, 633 LEBs), journal size 4063232 bytes (3 MiB, 32 LEBs)
[    7.641749] UBIFS (ubi1:0): reserved for root: 3796347 bytes (3707 KiB)
[    7.648393] UBIFS (ubi1:0): media format: w4/r0 (latest is w5/r0), UUID 2463FD5F-8F21-407F-9F2D-5876AD0C909C, small LPT model
[    7.660811] urandom-seed: Seed file not found (/etc/urandom.seed)
[    7.690944] mvneta f1034000.ethernet eth0: Link is Down
[    7.761843] procd: - early -
[    7.764757] procd: - watchdog -
[    8.373148] procd: - watchdog -
[    8.376381] procd: - ubus -
[    8.429962] procd: - init -
Please press Enter to activate this console.
[    8.503932] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.512252] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.840815] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[    8.848855] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[    8.862080] <<Marvell Mac80211 Wireless PCIE Network Driver version 10.3.8.0-20180615>>
[    8.870150] pci 0000:00:01.0: enabling device (0140 -> 0142)
[   11.935959] ieee80211 phy0: device node: /soc/pcie/pcie@1,0
[   11.968939] ieee80211 phy0: firmware version: 0x9030206
[   12.328927] ieee80211 phy0: firmware region code: 10
[   12.358547] ieee80211 phy0: 2G disabled, 5G enabled
[   12.363459] ieee80211 phy0: 4 TX antennas, 4 RX antennas
[   12.368920] pci 0000:00:02.0: enabling device (0140 -> 0142)
[   13.715958] ieee80211 phy1: device node: /soc/pcie/pcie@2,0
[   13.748943] ieee80211 phy1: firmware version: 0x9030206
[   14.108929] ieee80211 phy1: firmware region code: 10
[   14.132540] ieee80211 phy1: 2G enabled, 5G disabled
[   14.137441] ieee80211 phy1: 4 TX antennas, 4 RX antennas
[   14.145893] hidraw: raw HID events driver (C) Jiri Kosina
[   14.154256] Bluetooth: Core ver 2.22
[   14.157898] NET: Registered protocol family 31
[   14.162384] Bluetooth: HCI device and connection manager initialized
[   14.168776] Bluetooth: HCI socket layer initialized
[   14.173703] Bluetooth: L2CAP socket layer initialized
[   14.178803] Bluetooth: SCO socket layer initialized
[   14.184205] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   14.189548] Bluetooth: BNEP filters: protocol multicast
[   14.194839] Bluetooth: BNEP socket layer initialized
[   14.201069] Bluetooth: vendor=0x2df, device=0x9136, class=255, fn=2
[   14.983876] Bluetooth: FW download over, size 695532 bytes
[   15.599951] sdio platform data not available
[   15.600688] usbcore: registered new interface driver btusb
[   15.611041] Bluetooth: HCI UART driver ver 2.3
[   15.615505] Bluetooth: HCI UART protocol H4 registered
[   15.620674] Bluetooth: HCI UART protocol BCSP registered
[   15.626008] Bluetooth: HCI UART protocol ATH3K registered
[   15.631811] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[   15.637761] Bluetooth: HIDP socket layer initialized
[   15.643168] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.993998] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[   16.001101] mwifiex_sdio mmc0:0001:1: WLAN FW already running! Skip FW dnld
[   16.008098] mwifiex_sdio mmc0:0001:1: WLAN FW is active
[   16.037576] mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd 0x242 error, result=0x2
[   16.044583] mwifiex_sdio mmc0:0001:1: mwifiex_process_cmdresp: cmd 0x242 failed during       initialization
[   16.063233] mwifiex_sdio mmc0:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (15.68.7.p71) 
[   16.071300] mwifiex_sdio mmc0:0001:1: driver_version = mwifiex 1.0 (15.68.7.p71) 
[   16.187887] Bluetooth: RFCOMM TTY layer initialized
[   16.192863] Bluetooth: RFCOMM socket layer initialized
[   16.198030] Bluetooth: RFCOMM ver 1.11
[   16.205416] xt_time: kernel timezone is -0000
[   16.351002] PPP generic driver version 2.4.2
[   16.355592] NET: Registered protocol family 24
[   16.360637] kmodloader: done loading kernel modules from /etc/modules.d/*
[   18.493689] mvneta f1034000.ethernet eth0: configuring for fixed/sgmii link mode
[   18.501195] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   18.507560] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   18.519263] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   18.528767] br-lan: port 1(eth0.1) entered blocking state
[   18.534214] br-lan: port 1(eth0.1) entered disabled state
[   18.539730] device eth0.1 entered promiscuous mode
[   18.544556] device eth0 entered promiscuous mode
[   18.553060] br-lan: port 1(eth0.1) entered blocking state
[   18.558493] br-lan: port 1(eth0.1) entered forwarding state
[   18.564157] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   18.575612] mvneta f1070000.ethernet eth1: configuring for fixed/rgmii-id link mode
[   18.583835] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   18.589758] mvneta f1070000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   18.601456] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   19.529981] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

At one point, it was flagging J2FFS erase block errors, but that seems to have resolved itself? I also notice that on the standard image, when I issue a firstboot command, I get this error (after unmounting /overlay):

This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
/dev/ubi0_1 is n[  208.260372] ubi0 error: 0xc044da70: cannot open device 0, volume 1, error -16
ot mounted
/dev/ubi0_1 will be erased on next mount
writing /dev/ubi0_1 failed: Bad file descriptor

Nothing I do seems to have any effect on getting this working and I think it may have to do with the "bad file descriptor" error. Can anybody guide me though how to possibly fix this error?

Here is a diffconfig of my custom build:

CONFIG_TARGET_mvebu=y
CONFIG_TARGET_mvebu_cortexa9=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_globalscale-mirabox=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_globalscale-mirabox=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_linksys-wrt1200ac=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_linksys-wrt1200ac=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_linksys-wrt1900ac=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_linksys-wrt1900ac=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_linksys-wrt1900acs=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_linksys-wrt1900acs=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_linksys-wrt1900acv2=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_linksys-wrt1900acv2=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_linksys-wrt3200acm=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_linksys-wrt3200acm=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_linksys-wrt32x=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_linksys-wrt32x=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_armada-370-db=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_armada-370-db=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_armada-370-rd=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_armada-370-rd=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_armada-385-db-ap=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_armada-385-db-ap=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_armada-388-rd=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_armada-388-rd=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_armada-xp-db=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_armada-xp-db=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_armada-xp-gp=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_armada-xp-gp=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_openblocks-ax3-4=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_openblocks-ax3-4=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_armada-388-clearfog-base=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_armada-388-clearfog-base=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_armada-388-clearfog-pro=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_armada-388-clearfog-pro=""
CONFIG_TARGET_DEVICE_mvebu_cortexa9_DEVICE_turris-omnia=y
CONFIG_TARGET_DEVICE_PACKAGES_mvebu_cortexa9_DEVICE_turris-omnia=""
CONFIG_ALL_KMODS=y
CONFIG_ALL_NONSHARED=y
CONFIG_DEVEL=y
CONFIG_TARGET_PER_DEVICE_ROOTFS=y
CONFIG_AUTOREMOVE=y
CONFIG_BUILDBOT=y
CONFIG_IB=y
CONFIG_IMAGEOPT=y
CONFIG_IPTABLES_CONNLABEL=y
# CONFIG_KERNEL_KALLSYMS is not set
CONFIG_PACKAGE_avahi-dbus-daemon=y
CONFIG_PACKAGE_dbus=y
CONFIG_PACKAGE_igmpproxy=y
CONFIG_PACKAGE_iptables-mod-conntrack-extra=y
CONFIG_PACKAGE_iptables-mod-conntrack-label=y
CONFIG_PACKAGE_iptables-mod-ndpi=y
CONFIG_PACKAGE_iptables-mod-u32=y
CONFIG_PACKAGE_kmod-ipt-compat-xtables=y
CONFIG_PACKAGE_kmod-ipt-conntrack-extra=y
CONFIG_PACKAGE_kmod-ipt-conntrack-label=y
CONFIG_PACKAGE_kmod-ipt-ndpi=y
CONFIG_PACKAGE_kmod-ipt-u32=y
CONFIG_PACKAGE_kmod-nf-conntrack-netlink=y
CONFIG_PACKAGE_kmod-nfnetlink=y
CONFIG_PACKAGE_libavahi-dbus-support=y
CONFIG_PACKAGE_libdaemon=y
CONFIG_PACKAGE_libdbus=y
CONFIG_PACKAGE_libexpat=y
CONFIG_PACKAGE_libiwinfo=y
CONFIG_PACKAGE_libiwinfo-lua=y
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_liblucihttp=y
CONFIG_PACKAGE_liblucihttp-lua=y
CONFIG_PACKAGE_libmbedtls=y
CONFIG_PACKAGE_libmnl=y
CONFIG_PACKAGE_libncurses=y
CONFIG_PACKAGE_libnetfilter-conntrack=y
CONFIG_PACKAGE_libnfnetlink=y
CONFIG_PACKAGE_librt=y
CONFIG_PACKAGE_libubus-lua=y
CONFIG_PACKAGE_libustream-mbedtls=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_luci=y
CONFIG_PACKAGE_luci-app-firewall=y
CONFIG_PACKAGE_luci-base=y
CONFIG_PACKAGE_luci-lib-ip=y
CONFIG_PACKAGE_luci-lib-jsonc=y
CONFIG_PACKAGE_luci-lib-nixio=y
CONFIG_PACKAGE_luci-mod-admin-full=y
CONFIG_PACKAGE_luci-proto-ipv6=y
CONFIG_PACKAGE_luci-proto-ppp=y
CONFIG_PACKAGE_luci-ssl=y
CONFIG_PACKAGE_luci-theme-bootstrap=y
CONFIG_PACKAGE_luci-theme-material=y
CONFIG_PACKAGE_nano=y
CONFIG_PACKAGE_px5g-mbedtls=y
CONFIG_PACKAGE_rpcd=y
CONFIG_PACKAGE_rpcd-mod-rrdns=y
CONFIG_PACKAGE_terminfo=y
CONFIG_PACKAGE_uhttpd=y
CONFIG_TARGET_ALL_PROFILES=y
CONFIG_VERSIONOPT=y
CONFIG_VERSION_BUG_URL=""
CONFIG_VERSION_CODE=""
CONFIG_VERSION_DIST="OpenWrt"
CONFIG_VERSION_FILENAMES=y
CONFIG_VERSION_HWREV=""
CONFIG_VERSION_MANUFACTURER=""
CONFIG_VERSION_MANUFACTURER_URL=""
CONFIG_VERSION_NUMBER=""
CONFIG_VERSION_PRODUCT=""
CONFIG_VERSION_REPO="http://downloads.openwrt.org/releases/18.06.1"
CONFIG_VERSION_SUPPORT_URL=""
# CONFIG_COLLECT_KERNEL_DEBUG is not set
# CONFIG_SDK is not set

Wow, and don't I feel silly?

So, when I flashed the standard image, Luci would not let me advance past the login screen at all.

So, the issue (I think) is that I was using the Luci material theme in my custom build. When I flashed to the bootstrap-themed regular version, some data was kept in my browser (though I did try two of them!) that prevented Luci from loading correctly -- probably some reference to the Material theme in the browser. After I told Firefox to clear site data it worked as expected.

So, now I'm up and running!

The default theme ("bootstrap") and the old "openwrt" theme are actively maintained and tested against changes in luci, other themes like material are not (depending on bugreports and patches instead).

Likely due to dependencies, but without the error output, there's no way to know for sure. Core functionality, like IPv6 support, really should be built into the image via menuconfig and not installed later as separate packages.

Delete your cookies for both the LuCI IP, as well as it's local DNS (if accessing via <hostname>.<localdomain>, such as https://openwrt.lan)

Sounds like a dirty cookie environment or it's either a corrupted /etc/passwd and/or /etc/shadow, else permissions or EOLs could be wrong.

  • Permissions should be 644 for /etc/passwd and 600 for /etc/shadow, and if you ever edited the files on Windows, ensure the EOLs are LF (Atom editor, dos2unix/unix2dos, etc.).
    • Are you simply issuing passwd, and did you compile as your user (i.e. not using sudo, su, or root's account)?

On the WRT AC Series, flashing stock in between builds hasn't been necessary for some time (my memory could be wrong, but I believe this became no longer necessary either right before or right after LEDE originally forked).

You may want to branch this into it's own thread, as you're bundling a lot of disparate issues into a single thread.

Are you building for all those devices, or just the WRT3200ACM? If the latter, remove the multi-profile and only select the WRT3200ACM.

Not likely, unless there's been recent changes committed to the Material js files.

  • Your login issues are likely cookie related (which will occur when switching themes).
    • Remove the cookies and completely kill all browser instances via Task Manager; once re-opened to LuCI, login should occur without issue.

I had to build the family of images because, for some reason, building for the router alone causes Ethernet and wifi not to work. Not sure if the drivers aren't getting built, or what. Luckily, the first time I found this out I just so happened to have a USB-TTL cable that I was able to fix it with -- I was only able to access it via the serial console. The way I fixed this problem was building for the whole family of routers instead (I spent days trying to figure out what was causing it).

I know the modules should be built-in, but at the time of my build I didn't need IPv6 NAT. So I figured I could probably install the package and try it out before building it in. But, since me whole reason for building the custom image to begin with (nDPI) was no longer useful for me I was trying to revert to a standard install.

That being said, is there a particular advantage to building the modules into the kernal rather than as separate modules?

You were correct, however. It was a cookie/cache issue all along. I must admit, I feel silly that I spent about 8 hours trying to rectify this only for it to be such a simple issue. It wasn't even related to the router itself! That's OK though, I learned a lot about uboot in the process of trying to figure it out!

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