[SOLVED] Help needed to recover a router after sysupgrade QHora-301W

Currently I write this message form a recovered router.
Thanks for the help.
There is still one glitch though. The router doesn't keep settings after a reboot.

Before going into the details and starting debugging, make sure to sysupgrade -n /tmp/<your sysupgrade image> again, chances are good that it will fix your issues.

1 Like

I've just done this but this time it didn't help. Previously this helped me.

Then check if the overlay gets mounted (on flash), if there's enough free space and what dmesg/ logread have to say about the overlay.


root@OpenWrt:~# dmesg/ logread
-ash: dmesg/: not found

Those are two different/ individual commands.

Sorry

root@QNAP:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.114 (runner@fv-az622-784) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r0-2731da5) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP PREEMPT Mon Jun 12 14:06:11 2023
[    0.000000] Machine model: QNAP 301w
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000040ffffff]
[    0.000000]   node   0: [mem 0x0000000041000000-0x000000004a3fffff]
[    0.000000]   node   0: [mem 0x000000004a400000-0x00000000510fffff]
[    0.000000]   node   0: [mem 0x0000000051100000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 17 pages/cpu s31960 r8192 d29480 u69632
[    0.000000] pcpu-alloc: s31960 r8192 d29480 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Kernel command line: console=ttyMSM0,115200n8 root=PARTUUID=2a213133-47f8-80a1-5d66-1d565a2ec756 rootwait
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 887852K/1048576K available (7744K kernel code, 908K rwdata, 2144K rodata, 1152K init, 305K bss, 160724K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv2m: range[mem 0x0b00a000-0x0b00affc], SPI[448:479]
[    0.000000] arch_timer: cp15 and mmio timer(s) running at 19.20MHz (virt/virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000000] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000116] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=19200)
[    0.000133] pid_max: default: 32768 minimum: 301
[    0.000625] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.000642] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.002881] rcu: Hierarchical SRCU implementation.
[    0.003706] smp: Bringing up secondary CPUs ...
[    0.004432] Detected VIPT I-cache on CPU1
[    0.004499] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.005177] Detected VIPT I-cache on CPU2
[    0.005221] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.005885] Detected VIPT I-cache on CPU3
[    0.005925] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.005996] smp: Brought up 1 node, 4 CPUs
[    0.006025] SMP: Total of 4 processors activated.
[    0.006033] CPU features: detected: 32-bit EL0 Support
[    0.006040] CPU features: detected: CRC32 instructions
[    0.006099] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.006110] CPU: All CPU(s) started at EL1
[    0.006133] alternatives: patching kernel code
[    0.017220] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.017257] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.017495] pinctrl core: initialized pinctrl subsystem
[    0.018706] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.019259] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.019306] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.019344] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.019754] thermal_sys: Registered thermal governor 'step_wise'
[    0.021463] cpuidle: using governor menu
[    0.021719] ASID allocator initialised with 65536 entries
[    0.084895] qcom,cpr4-apss-regulator b018000.cpr4-ctrl: CPR valid fuse count: 4
[    0.097454] cryptd: max_cpu_qlen set to 1000
[    0.101988] SCSI subsystem initialized
[    0.102203] usbcore: registered new interface driver usbfs
[    0.102249] usbcore: registered new interface driver hub
[    0.102309] usbcore: registered new device driver usb
[    0.102749] qcom_scm: convention: smc arm 64
[    0.104144] clocksource: Switched to clocksource arch_sys_counter
[    0.105183] NET: Registered PF_INET protocol family
[    0.105326] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.106402] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.106436] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.106452] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.106540] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.106691] TCP: Hash tables configured (established 8192 bind 8192)
[    0.106795] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.106837] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.107049] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.107085] PCI: CLS 0 bytes, default 64
[    0.114594] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    0.119482] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.119505] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.174275] Key type asymmetric registered
[    0.175659] qcom-qmp-phy 58000.phy: supply vdda-phy not found, using dummy regulator
[    0.175813] qcom-qmp-phy 58000.phy: supply vdda-pll not found, using dummy regulator
[    0.176954] qcom-qmp-phy 58000.phy: Registered Qcom-QMP phy
[    0.177312] qcom-qmp-phy 78000.phy: supply vdda-phy not found, using dummy regulator
[    0.177459] qcom-qmp-phy 78000.phy: supply vdda-pll not found, using dummy regulator
[    0.178477] qcom-qmp-phy 78000.phy: Registered Qcom-QMP phy
[    0.179431] qcom-qusb2-phy 59000.phy: supply vdda-pll not found, using dummy regulator
[    0.179595] qcom-qusb2-phy 59000.phy: supply vdda-phy-dpdm not found, using dummy regulator
[    0.179750] qcom-qusb2-phy 59000.phy: Registered Qcom-QUSB2 phy
[    0.180006] qcom-qusb2-phy 79000.phy: supply vdda-pll not found, using dummy regulator
[    0.180157] qcom-qusb2-phy 79000.phy: supply vdda-phy-dpdm not found, using dummy regulator
[    0.180332] qcom-qusb2-phy 79000.phy: Registered Qcom-QUSB2 phy
[    0.184961] bam-dma-engine 704000.dma-controller: num-channels unspecified in dt
[    0.184986] bam-dma-engine 704000.dma-controller: num-ees unspecified in dt
[    0.190316] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.191016] msm_serial 78b3000.serial: msm_serial: detected port #0
[    0.191061] msm_serial 78b3000.serial: uartclk = 3686400
[    0.191125] 78b3000.serial: ttyMSM0 at MMIO 0x78b3000 (irq = 24, base_baud = 230400) is a MSM
[    0.191190] msm_serial: console setup on port #0
[    0.869748] printk: console [ttyMSM0] enabled
[    0.874950] msm_serial: driver initialized
[    0.883526] loop: module loaded
[    0.884741] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    0.886642] spi-nor spi0.0: w25q64dw (8192 Kbytes)
[    0.893815] spmi spmi-0: PMIC arbiter version v2 (0x20010000)
[    0.901054] s1: supplied by regulator-dummy
[    0.903668] s2: supplied by regulator-dummy
[    0.907575] vdd_s3: supplied by regulator-dummy
[    0.911881] vdd_s4: supplied by regulator-dummy
[    0.916461] s5: supplied by regulator-dummy
[    0.920808] l1: supplied by regulator-dummy
[    0.924945] l2: supplied by regulator-dummy
[    0.929170] l3: supplied by regulator-dummy
[    0.933289] l4: supplied by regulator-dummy
[    0.937460] l5: supplied by regulator-dummy
[    0.941638] l6: supplied by regulator-dummy
[    0.945797] l7: supplied by regulator-dummy
[    0.949977] l8: supplied by regulator-dummy
[    0.954180] l9: supplied by regulator-dummy
[    0.958414] l11: supplied by regulator-dummy
[    0.962470] l12: supplied by regulator-dummy
[    0.966996] l13: supplied by regulator-dummy
[    0.989752] i2c_dev: i2c /dev entries driver
[    0.994464] sdhci: Secure Digital Host Controller Interface driver
[    0.994508] sdhci: Copyright(c) Pierre Ossman
[    0.999560] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.008808] remoteproc remoteproc0: releasing cd00000.q6v5_wcss
[    1.012959] NET: Registered PF_INET6 protocol family
[    1.016309] Segment Routing with IPv6
[    1.020607] In-situ OAM (IOAM) with IPv6
[    1.024202] NET: Registered PF_PACKET protocol family
[    1.028230] Bridge firewalling registered
[    1.033196] l2tp_core: L2TP core driver, V2.0
[    1.036156] mmc0: SDHCI controller on 7824900.mmc [7824900.mmc] using ADMA 64-bit
[    1.037072] l2tp_netlink: L2TP netlink interface
[    1.048905] 8021q: 802.1Q VLAN Support v1.8
[    1.073941] qcom,cpr4-apss-regulator b018000.cpr4-ctrl: CPR valid fuse count: 4
[    1.074284] cpr4_ipq807x_apss_read_fuse_data: apc_corner: speed bin = 0
[    1.080108] cpr4_ipq807x_apss_read_fuse_data: apc_corner: CPR fusing revision = 1
[    1.086709] cpr4_ipq807x_apss_read_fuse_data: apc_corner: CPR misc fuse value = 0
[    1.094366] cpr4_ipq807x_apss_read_fuse_data: apc_corner: Voltage boost fuse config = 0 boost = disable
[    1.101846] cpr3_mem_acc_init: apc: not using memory accelerator regulator
[    1.110989] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused      SVS: open-loop= 712000 uV
[    1.114058] mmc0: new HS200 MMC card at address 0001
[    1.117927] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused      NOM: open-loop= 848000 uV
[    1.117935] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused    TURBO: open-loop= 920000 uV
[    1.128600] mmcblk0: mmc0:0001 Q2J54A 3.64 GiB
[    1.132857] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused   STURBO: open-loop=1008000 uV
[    1.132918] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused      SVS: quot[ 7]= 696, quot_offset[ 7]=   0
[    1.144720]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9
[    1.152472] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused      NOM: quot[ 7]= 936, quot_offset[ 7]= 240
[    1.158076] mmcblk0boot0: mmc0:0001 Q2J54A 2.00 MiB
[    1.166801] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused    TURBO: quot[ 7]=1050, quot_offset[ 7]= 110
[    1.166812] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused   STURBO: quot[ 7]=1195, quot_offset[ 7]= 145
[    1.178406] mmcblk0boot1: mmc0:0001 Q2J54A 2.00 MiB
[    1.182497] cpr3_regulator_init_ctrl: apc: Default CPR mode = closed-loop
[    1.193649] mmcblk0rpmb: mmc0:0001 Q2J54A 512 KiB, chardev (247:0)
[    1.200317] spi-nor spi0.0: w25q64dw (8192 Kbytes)
[    1.238026] 12 qcomsmem partitions found on MTD device spi0.0
[    1.242692] Creating 12 MTD partitions on "spi0.0":
[    1.248392] 0x000000000000-0x000000050000 : "0:sbl1"
[    1.253641] 0x000000050000-0x000000060000 : "0:mibib"
[    1.258728] 0x000000060000-0x0000001e0000 : "0:qsee"
[    1.263703] 0x0000001e0000-0x0000001f0000 : "0:devcfg"
[    1.268728] 0x0000001f0000-0x000000200000 : "0:apdp"
[    1.273698] 0x000000200000-0x000000240000 : "0:rpm"
[    1.278764] 0x000000240000-0x000000250000 : "0:cdt"
[    1.283418] 0x000000250000-0x000000270000 : "0:appsblenv"
[    1.288265] 0x000000270000-0x000000370000 : "0:appsbl"
[    1.293788] 0x000000370000-0x0000003b0000 : "0:art"
[    1.298833] 0x0000003b0000-0x000000430000 : "0:ethphyfw"
[    1.303652] 0x000000430000-0x000000800000 : "reserved"
[    1.314881] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 19200 KHz, changing to: 1017600 KHz
[    1.315996] remoteproc remoteproc0: cd00000.q6v5_wcss is available
[    1.328223] VFS: Mounted root (squashfs filesystem) readonly on device 179:4.
[    1.328612] Freeing unused kernel memory: 1152K
[    1.343188] Run /sbin/init as init process
[    1.343206]   with arguments:
[    1.343207]     /sbin/init
[    1.343209]   with environment:
[    1.343210]     HOME=/
[    1.343212]     TERM=linux
[    1.429080] init: Console is alive
[    1.429236] init: - watchdog -
[    1.811680] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.820923] hwmon hwmon0: temp1_input not attached to any thermal zone
[    1.821494] hwmon hwmon1: temp1_input not attached to any thermal zone
[    1.873680] ssdk_switch_device_num_init[1240]:INFO:ess-switch dts node number: 1
[    1.873787] ssdk_dt_get_switch_node[1085]:INFO:ess-switch DT exist!
[    1.880167] ssdk_dt_parse_access_mode[960]:INFO:switch_access_mode: local bus
[    1.886146] ssdk_dt_parse_access_mode[973]:INFO:switchreg_base_addr: 0x3a000000
[    1.893436] ssdk_dt_parse_access_mode[974]:INFO:switchreg_size: 0x1000000
[    1.900554] ssdk_dt_parse_mac_mode[275]:INFO:mac mode = 0xb
[    1.907496] ssdk_dt_parse_mac_mode[284]:INFO:mac mode1 = 0xd
[    1.912879] ssdk_dt_parse_mac_mode[293]:INFO:mac mode2 = 0xd
[    1.918826] ssdk_dt_parse_uniphy[312]:INFO:ess-uniphy DT exist!
[    1.924517] ssdk_dt_parse_intf_mac[903]:INFO:dp1 MAC xxxxxx
[    1.930096] ssdk_dt_parse_intf_mac[903]:INFO:dp2 MAC xxxxxx
[    1.936699] ssdk_dt_parse_intf_mac[903]:INFO:dp3 MAC xxxxxx
[    1.943203] ssdk_dt_parse_intf_mac[903]:INFO:dp4 MAC xxxxxx
[    1.949713] ssdk_dt_parse_intf_mac[903]:INFO:dp5 MAC xxxxxx
[    1.956288] ssdk_plat_init[1707]:INFO:ssdk_plat_init start
[    1.969144] ssdk_gcc_clock_init[1279]:INFO:SSDK gcc clock init successfully!
[    1.970315] ssdk_phy_driver_init[369]:INFO:dev_id = 0, phy_adress = 6, phy_id = 0xffffffff phytype doesn't match
[    1.975397] malibu_phy_api_ops_init[2854]:INFO:qca probe malibu phy driver succeeded!
[    1.989419] aquantia_phy_api_ops_init[2244]:INFO:qca probe aquantia phy driver succeeded!
[    1.994536] regi_init[4003]:INFO:Initializing HPPE!!
[    2.208143] ssdk_ppe_reset_init[1550]:INFO:ppe reset successfully!
[    2.211460] qca_hppe_portctrl_hw_init[166]:INFO:Hawkeye PPE port initializing
[    3.984210] ssdk_switch_register[2065]:INFO:Chip version 0x1500
[    3.984240] qca_link_polling_select[1495]:INFO:link-polling-required node does not exist
[    3.988935] ssdk_switch_register[2091]:INFO:polling is selected
[    3.997265] regi_init[4007]:INFO:Initializing HPPE Done!!
[    4.002977] ssdk_genl_init[211]:INFO:ssdk genl family register success.
[    4.008468] regi_init[4070]:INFO:qca-ssdk module init succeeded!
[    4.016638] EDMA ver 1 hw init
[    4.021362] EDMA HW Reset completed succesfully
[    4.024028] Num rings - TxDesc:1 (23-23) TxCmpl:1 (7-7)
[    4.028423] RxDesc:1 (15-15) RxFill:1 (7-7)
[    4.034196] Generic PHY 90000.mdio-1:10: attached PHY driver (mii_bus:phy_addr=90000.mdio-1:10, irq=POLL)
[    4.038474] nss-dp 3a001000.dp1 lan4: Registered netdev lan4(qcom-id:1)
[    4.047782] Generic PHY 90000.mdio-1:11: attached PHY driver (mii_bus:phy_addr=90000.mdio-1:11, irq=POLL)
[    4.054498] nss-dp 3a001200.dp2 lan3: Registered netdev lan3(qcom-id:2)
[    4.063931] Generic PHY 90000.mdio-1:12: attached PHY driver (mii_bus:phy_addr=90000.mdio-1:12, irq=POLL)
[    4.070640] nss-dp 3a001400.dp3 lan2: Registered netdev lan2(qcom-id:3)
[    4.080079] Generic PHY 90000.mdio-1:13: attached PHY driver (mii_bus:phy_addr=90000.mdio-1:13, irq=POLL)
[    4.086775] nss-dp 3a001600.dp4 lan1: Registered netdev lan1(qcom-id:4)
[    4.096232] Aquantia AQR113C 90000.mdio-1:08: FW 5.4, Build 4, Provisioning 1
[    4.107797] Aquantia AQR113C 90000.mdio-1:08: attached PHY driver (mii_bus:phy_addr=90000.mdio-1:08, irq=POLL)
[    4.110284] nss-dp 3a001800.dp5 10g-1: Registered netdev 10g-1(qcom-id:5)
[    4.119850] Aquantia AQR113C 90000.mdio-1:00: FW 5.4, Build 4, Provisioning 1
[    4.131841] Aquantia AQR113C 90000.mdio-1:00: attached PHY driver (mii_bus:phy_addr=90000.mdio-1:00, irq=POLL)
[    4.134112] nss-dp 3a007000.dp6-syn 10g-2: Registered netdev 10g-2(qcom-id:6)
[    4.143558] **********************************************************
[    4.150650] * NSS Data Plane driver
[    4.157065] **********************************************************
[    4.170497] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    4.170543] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[    4.175063] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe65 hci version 0x110 quirks 0x0000000002010010
[    4.182478] xhci-hcd xhci-hcd.1.auto: irq 111, io mem 0x08a00000
[    4.191918] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    4.198066] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[    4.203360] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    4.211189] hub 1-0:1.0: USB hub found
[    4.217562] hub 1-0:1.0: 1 port detected
[    4.221425] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.225532] hub 2-0:1.0: USB hub found
[    4.233401] hub 2-0:1.0: 1 port detected
[    4.237236] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    4.241036] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 3
[    4.246456] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220fe65 hci version 0x110 quirks 0x0000000002010010
[    4.253921] xhci-hcd xhci-hcd.2.auto: irq 112, io mem 0x08c00000
[    4.263353] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    4.269507] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 4
[    4.274801] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
[    4.282585] hub 3-0:1.0: USB hub found
[    4.288956] hub 3-0:1.0: 1 port detected
[    4.292864] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.296969] hub 4-0:1.0: USB hub found
[    4.304837] hub 4-0:1.0: 1 port detected
[    4.310802] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.319241] init: - preinit -
[    4.502105] random: jshn: uninitialized urandom read (4 bytes read)
[    4.522245] random: jshn: uninitialized urandom read (4 bytes read)
[    4.534445] random: jshn: uninitialized urandom read (4 bytes read)
[    4.594704] nss-dp 3a001600.dp4 lan1: PHY Link up speed: 1000
[    4.595042] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[    6.649326] loop0: detected capacity change from 0 to 1048576
[    6.658145] loop0: detected capacity change from 1048576 to 1024256
[    6.659351] mount_root: overlay filesystem in /dev/loop0 has not been formatted yet
[    6.665985] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    6.672688] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    6.684819] urandom-seed: Seed file not found (/etc/urandom.seed)
[    6.710838] nss-dp 3a001600.dp4 lan1: PHY Link is down
[    6.713455] procd: - early -
[    6.714924] procd: - watchdog -
[    7.241403] procd: - watchdog -
[    7.247977] procd: - ubus -
[    7.267767] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.299869] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.300031] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.307026] procd: - init -
[    7.431590] urngd: v1.0.2 started.
[    7.444837] random: crng init done
[    7.444871] random: 27 urandom warning(s) missed due to ratelimiting
[    7.456356] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.466423] tun: Universal TUN/TAP device driver, 1.6
[    7.477569] qca-nss 39000000.nss: Direct firmware load for qca-nss0.bin failed with error -2
[    7.477622] qca-nss 39000000.nss: Falling back to sysfs fallback for: qca-nss0.bin
[    7.595796] nss_driver - fw of size 827584  bytes copied to load addr: 40000000, nss_id : 0
[    7.597754] Supported Frequencies -
[    7.597768] 187.2 MHz
[    7.602977] 748.8 MHz
[    7.606779] 1.6896 GHz
[    7.608942]
[    7.613713] ffffffc000a22300: set sdma ffffff8003372c00
[    7.615469] ffffffc000a22300: meminfo init succeed
[    7.623513] ffffffc000a22300: All resources initialized and nss core0 has been brought out of reset
[    7.624371] qca-nss 39400000.nss: Direct firmware load for qca-nss1.bin failed with error -2
[    7.634131] qca-nss 39400000.nss: Falling back to sysfs fallback for: qca-nss1.bin
[    7.652538] node size 2 # items 4
[    7.652577] memory: 40000000 1073741824 (avl 924647424) items 4 active_cores 2
[    7.655012] NSS DDR size is 0x1000000
[    7.661972] ffffffc000a22300: nss core 0 booted successfully
[    7.686774] nss_driver - fw of size 295196  bytes copied to load addr: 40800000, nss_id : 1
[    7.687613] Supported Frequencies -
[    7.687626] 187.2 MHz
[    7.693992] 748.8 MHz
[    7.697781] 1.6896 GHz
[    7.699933]
[    7.704710] ffffffc000a29c00: set sdma ffffff8004435e00
[    7.706424] ffffffc000a29c00: meminfo init succeed
[    7.711538] ffffffc000a29c00: All resources initialized and nss core1 has been brought out of reset
[    7.715411] node size 2 # items 4
[    7.725104] memory: 40000000 1073741824 (avl 925138944) items 4 active_cores 2
[    7.725277] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    7.728746] NSS DDR size is 0x1000000
[    7.741539] ffffffc000a29c00: nss core 1 booted successfully
[    7.745611] nat46: module (version 1182f30785e4274913f01a8c3d7e1b5437ae3819) loaded.
[    7.752958] gre: GRE over IPv4 demultiplexor driver
[    7.759657] ip_gre: GRE over IPv4 tunneling driver
[    7.765776] ip6_gre: GRE over IPv6 tunneling driver
[    7.771910] QCA multicast snooping installed successfully
[    7.774250] nss_vlan_mgr_init_module[1926]:Module (Build Build Id: 06/12/23, 23:48:38) loaded
[    7.783091] PPP generic driver version 2.4.2
[    7.796615] NET: Registered PF_PPPOX protocol family
[    7.800013] PPTP driver version 0.8.5
[    7.811742] <NSS-CRYPTO>:module loaded Build_ID - 06/12/23, 23:43:28 SoC=ipq807x
[    7.816855] GACT probability on
[    7.818980] Mirror/redirect action on
[    7.826856] u32 classifier
[    7.826893]     input device check on
[    7.828524]     Actions configured
[    7.838107] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
[    7.838160] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
[    7.853396] NET: Registered PF_QIPCRTR protocol family
[    7.856617] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    7.857500] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    7.870558] xt_time: kernel timezone is -0000
[    7.893663] nf_conntrack_rtsp v0.7 loading
[    7.896507] nf_nat_rtsp v0.7 loading
[    7.916160] ath11k c000000.wifi: ipq8074 hw2.0
[    7.916193] ath11k c000000.wifi: FW memory mode: 0
[    7.919753] remoteproc remoteproc0: powering up cd00000.q6v5_wcss
[    7.925213] remoteproc remoteproc0: Booting fw image IPQ8074/q6_fw.mdt, size 668
[    8.661898] remoteproc remoteproc0: remote processor cd00000.q6v5_wcss is now up
[    8.666772] kmodloader: done loading kernel modules from /etc/modules.d/*
[    8.706584] ath11k c000000.wifi: qmi ignore invalid mem req type 3
[    8.713025] ath11k c000000.wifi: chip_id 0x0 chip_family 0x0 board_id 0xff soc_id 0xffffffff
[    8.713052] ath11k c000000.wifi: fw_version 0x290c84a5 fw_build_timestamp 2023-03-25 07:34 fw_build_id WLAN.HK.2.9.0.1-01385-QCAHKSWPL_SILICONZ-1
[    9.083676] ath11k c000000.wifi: htt event 48 not handled
[   12.532428] ECM init
[   12.532501] ECM database jhash random seed: 0x706cb9bc
[   12.551241] ECM init complete
[   13.200035] br-lan: port 1(lan1) entered blocking state
[   13.200078] br-lan: port 1(lan1) entered disabled state
[   13.205240] device lan1 entered promiscuous mode
[   13.216688] nss-dp 3a001400.dp3 lan2: PHY Link up speed: 1000
[   13.217452] br-lan: port 2(lan2) entered blocking state
[   13.221497] br-lan: port 2(lan2) entered disabled state
[   13.226988] device lan2 entered promiscuous mode
[   13.235282] br-lan: port 3(lan3) entered blocking state
[   13.236575] br-lan: port 3(lan3) entered disabled state
[   13.242053] device lan3 entered promiscuous mode
[   13.250256] br-lan: port 4(lan4) entered blocking state
[   13.251581] br-lan: port 4(lan4) entered disabled state
[   13.257012] device lan4 entered promiscuous mode
[   13.270126] br-lan: port 5(10g-2) entered blocking state
[   13.270195] br-lan: port 5(10g-2) entered disabled state
[   13.275189] device 10g-2 entered promiscuous mode
[   13.601518] br-lan: port 6(phy1-ap0) entered blocking state
[   13.601569] br-lan: port 6(phy1-ap0) entered disabled state
[   13.606784] device phy1-ap0 entered promiscuous mode
[   13.612517] br-lan: port 6(phy1-ap0) entered blocking state
[   13.616722] br-lan: port 6(phy1-ap0) entered forwarding state
[   13.623119] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   13.742183] loop0: detected capacity change from 0 to 1048576
[   13.756167] loop0: detected capacity change from 1048576 to 1024256
[   13.758311] MTD: Attempt to mount non-MTD device "/dev/loop0"
[   13.785761] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap0: link becomes ready
[   14.223596] br-lan: port 2(lan2) entered blocking state
[   14.223648] br-lan: port 2(lan2) entered forwarding state
[   16.288406] nss-dp 3a001600.dp4 lan1: PHY Link up speed: 1000
[   16.288550] br-lan: port 1(lan1) entered blocking state
[   16.293156] br-lan: port 1(lan1) entered forwarding state
[   17.376713] nss-dp 3a001800.dp5 10g-1: PHY Link up speed: 1000
[   17.376808] IPv6: ADDRCONF(NETDEV_CHANGE): 10g-1: link becomes ready
[  336.282821] device phy1-ap0 left promiscuous mode
[  336.283015] br-lan: port 6(phy1-ap0) entered disabled state
[  336.625769] br-lan: port 6(phy1-ap0) entered blocking state
[  336.625815] br-lan: port 6(phy1-ap0) entered disabled state
[  336.630554] device phy1-ap0 entered promiscuous mode
[  336.635995] br-lan: port 6(phy1-ap0) entered blocking state
[  336.640931] br-lan: port 6(phy1-ap0) entered forwarding state
[  336.685454] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap0: link becomes ready
[  394.422438] device phy1-ap0 left promiscuous mode
[  394.422587] br-lan: port 6(phy1-ap0) entered disabled state
[  394.715379] br-lan: port 6(phy1-ap0) entered blocking state
[  394.715423] br-lan: port 6(phy1-ap0) entered disabled state
[  394.720063] device phy1-ap0 entered promiscuous mode
[  394.725549] br-lan: port 6(phy1-ap0) entered blocking state
[  394.730542] br-lan: port 6(phy1-ap0) entered forwarding state
[  394.912724] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap0: link becomes ready
[  712.596773] br-lan: port 7(phy0-ap0) entered blocking state
[  712.596814] br-lan: port 7(phy0-ap0) entered disabled state
[  712.601434] device phy0-ap0 entered promiscuous mode
[  712.606911] br-lan: port 7(phy0-ap0) entered blocking state
[  712.611937] br-lan: port 7(phy0-ap0) entered forwarding state
[  712.617506] br-lan: port 7(phy0-ap0) entered disabled state
[  713.017570] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready
[  713.017833] br-lan: port 7(phy0-ap0) entered blocking state
[  713.023023] br-lan: port 7(phy0-ap0) entered forwarding state
[  759.541104] device phy0-ap0 left promiscuous mode
[  759.541271] br-lan: port 7(phy0-ap0) entered disabled state
[  759.890686] br-lan: port 7(phy0-ap0) entered blocking state
[  759.890729] br-lan: port 7(phy0-ap0) entered disabled state
[  759.895328] device phy0-ap0 entered promiscuous mode
[  759.900830] br-lan: port 7(phy0-ap0) entered blocking state
[  759.905845] br-lan: port 7(phy0-ap0) entered forwarding state
[  759.959344] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready

You may just be a bit too impatient, I'd suggest to sysupgrade -n … again, letting it reboot and then allowing it to settle (format & mount the overlay) a bit (let's say 5 minutes), before trying to access (or in particular reboot-) the router.

1 Like

No success for now
I get this

on Jun 12 14:06:19 2023 daemon.err mount_root: failed - mount -t jffs2 /dev/loop0 /rom/overlay: Invalid argument
Mon Jun 12 14:06:19 2023 kern.err kernel: [   15.687907] MTD: Attempt to mount non-MTD device "/dev/loop0"

Did you follow this section exactly ?

• make sure that current_entry is set to "0":
              "fw_printenv -n current_entry" should be print "0". If not,
       do "fw_setenv current_entry 0"
            • copy openwrt-ipq807x-generic-qnap_301w-squashfs-sysupgrade.bin
          to the device to /tmp folder
            • sysupgrade -n /tmp/openwrt-ipq807x-generic-qnap_301w-squashfs-sysupgrade.bin
              this flashes openwrt to the first kernel and rootfs partition (mmcblk0p1 / mmcblk0p4)
            • reboot

I've first flashed OpenWrt following the procedure that allows to do it without opening the router. And yes I did everything exactly and all was OK and I ran the robimarko's build with settings saved. But later I decided to try AgustinLorenzo's NSS build in order to compare them. I simply did sysupgrade without keeping the settings but after that the router became inaccessible.

The QNAP uses emmc flash as storage, therefore the overlay is stored on a loop device. That loop device is ext4 formated.
So the error message is quite clear, an ext4 formated loop device cannot be mounted with jiffs.

I assume the reason is the used .full_config of your unsupported build:

The required kmod-fs-ext4 is only build as a module, but there is no autoload for that module defined.

CONFIG_PACKAGE_kmod-fs-ext4=m

That means, the kernel module isn't even loaded at boot and consequently OpenWrt is trying to mount a jiffs partition as overlay.

It' not even required to add that entry to the .full_config as kmod-fs-ext4 is already defined as a DEFAULT_PACKAGE.

1 Like

Can I do anything to correct this.
Maybe to compile a version form that repo without the option?

CONFIG_PACKAGE_kmod-fs-ext4=m

I just want to compile my own customized NSS build only for QHora 301W as I do for R7800.
But before I am able to set up the build environment and eventually have a successful compile I want to try already compiled build by more experienced users.

I wouldn't be so quick to conclude that. I've seen the commit count reset to 0 myself on vanilla OpenWrt, when messing with branches and whatnot. I found that, to match the official commit count in my downstream branch stable, I needed to patch scripts/getver.sh, otherwise it would get very creative about the commit count.

2 Likes

Before doing any of the follwing, I had to connect to the serial port of the router first and issue firstboot command in order to be able to connect to the router using the LAN ports.

Then after several retries of sysupgrade -n /tmp/openwrt-ipq807x-generic-qnap_301w-squashfs-sysupgrade.bin nothing changed. Settings cannot be saved. Running @AgustinLorenzo latest NSS QHora-301W build. It's obviously somehow incompatible.

The second method I tried was to flash back the @robimarko image. This was the first OpenWrt image that was installed on the router following @MusikJunk guide. It was working fine.
I've tried to flash it back without keeping settings using force option to do it. No success - after the reboot the router was still running AgustinLorenzo latest NSS QHora-301W build without possibility to save the settings.
Then I've tried the same using sysupgrade -n /tmp/openwrt-ipq807x-generic-qnap_301w-squashfs-sysupgrade.bin using robimarko sysyupgrade.bin. Once again No success - after the reboot the router was still running AgustinLorenzo latest NSS QHora-301W build without possibility to save the settings.

Thanks a lot @frollic for your two really helpful suggestions. I've taken slightly different approach without using the UART.
Thinking of what I can do next, I've first set the boot partition to 1 and rebooted.

fw_setenv current_entry 1
reboot

The router rebooted to the original QNAP firmware.
It was obviously started from partition 1 (As I have OpenWrt NSS build on partition 0).
At this time I had to switch the LAN cables from LAN1 and 10G-1 ports (QNAP firmware uses LAN1 as WAN by default but OpenWrt uses 10G-1 as WAN) from/to my PC/ISP ONU and vice versa. This was needed in order to access the router (QNAP firmware).

After that I've simply repeated certain steps from MusikJunk's guide.

Then I was back to OpenWrt running robimarko's build but still unable to save settings after a reboot.
I've copied openwrt-ipq807x-generic-qnap_301w-squashfs-sysupgrade.bin to /tmp.
I've done sysupgrade -n /tmp/openwrt-ipq807x-generic-qnap_301w-squashfs-sysupgrade.bin
and finally this time I can save the settings, install packages, save config. They survive a reboot.

It wasn't necessary to install the firmware for 10G phys as I've already done so on my first flash.

Any comments about this obvious incompatibility between the different sysupgrade images?

This should be a warning to the users that may possibly want to do the same and switch between NSS and Non-NSS builds.

Why are you using robimarko's image instead of the snapshots ? Maybe that is the culprit ?

1 Like

I've just followed the guide (it pointed to robimarko's repository) and other users reported successful flash with it. Maybe the info is outdated and should be updated.
Personally it seemed reasonable to me because I thought that there were important commits in robimarko's repository not even committed to the master snapshot build.
I expect comments from developers on this.

1 Like

Now I remember something. Robimarko's image uses old ethernet port naming scheme. If you want to use recent snapshots you need to rename the ethernet ports. Info is in the original thread written by kirdes. If you do the initial setup with current images the naming is ok in the first place.

1 Like

I've tried to compile a build from several repos (AgustinLorenzo's, bitthief, rmandrad) but all failed with errors.
So I've built a custom image with Image Builder from Qualcommax snapshot branch last night (kernel 6.1). Then I've made sysupgrade -n. Before sysupgrade -n I stopped wpad because there were reports it interfered with sysupgrade. Everything is OK now.
Additionally I've tried to upload the NSS image that caused all this mess and this time the updated OpenWrt system accepted it without any warnings. So I suppose that if normal sysupgrade is done it shouldn't cause again the same mess. I didn't actually do sysupgrade because I had no spare time to risk leaving the home without Internet even just for a while.

Still my case can be informative for those that want to switch to other (including NSS) builds. At least not to do it without the warning of possible router inaccessibility and very likely the need to use UART/Serial in order to recover.
Reading other threads about ipq807x on the forum I saw other people complaining from the same unsuccessful sysupgrade (using the same NSS build) most probably caused by incompatibility between earlier and newer builds.
So be careful! Your only solution will be UART/Serial access.

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