Adding OpenWrt support for QNAP QHora-301W

[    1.834317] Aquantia AQR113C 90000.mdio-1:00: loading firmware version 'v5.4.C CIG WF-1945_0x0 060120 02:47:48' from 'NVMEM'
[   13.256601] Aquantia AQR113C 90000.mdio-1:08: loading firmware version 'v5.4.C CIG WF-1945_0x8 060120 02:47:48' from 'NVMEM'
[   24.861019] Aquantia AQR113C 90000.mdio-1:08: attached PHY driver (mii_bus:phy_addr=90000.mdio-1:08, irq=POLL)
[   24.886040] Aquantia AQR113C 90000.mdio-1:00: attached PHY driver (mii_bus:phy_addr=90000.mdio-1:00, irq=POLL)

guess I have to update the wiki as I'm in debt for now :slight_smile:

4 Likes
root@OpenWrt:~# mtd erase 0:ethphyfw1
Could not open mtd device: 0
Could not open mtd device: 0

root@OpenWrt:/tmp# mtd -n write AQR-G4_v5.4.C-AQR_CIG_WF-1945_0x0_ID44778_VER1630.cld 0:ethphyfw1
Could not open mtd device: 0
Can't open device for writing!

@sppmaster
I end up with the above, would you know why?

had the same issue, instead wrote directly to both mtd devices

1 Like

Nope, sorry I can't tell why? I've followed @robimarko's advice.

And seeing below looked scary.

I've proposed it for safety because if someone doesn't notice the mistake that was eventually made they would be really unpleasantly surprised with no bootable router.
Maybe this 0: is somehow the culprit. Just my speculation, though.

I think that ':' in the partition name is not being parsed as a string, maybe quoting the whole name would work

2 Likes

We can also obtain the mtd from name, will add a parse pipe

1 Like

yep agree it does avoid any fat fingers mistakes...

1 Like

Also, the front leds are not working, I saw a commit related to leds, the config needs to be changed? Didn't do a reset when I uploaded the latest build.

Which LED-s?

The ones in front, I have only the power led lighted up

See this first. You may have to reconfigure them if your settings are older.

The front LEDs work in my case but I've discovered a new issue:

Ports 1 -4 become unusable if the router is started up without hooking up a LAN cable to any of the ports. Clients connected to these ports after the router is fully started up do not get IPs assigned. The ports become fully functional again after a reboot. 10g-1 and 10g-2 ports are not affected, clients connected to these ports get IPs assigned without any issues.

Could your issue be related to the above?

I had them defined, redefined them again with exact the same settings and added the wlan and status. Now they are working

Some fixes were merged to main OpenWrt branch.
Thanks @Lanchon and @robimarko .

Could you briefly highlight what you did to "defined, redefined" them again?

go to led interface, print screen or train your memory, erase all entries and add them again like they were before

1 Like

Sadly this doesn't work in my case.

With the LAN cable disconnected and router rebooted, Lan ports 1 - 4 still unusable in my case. A LAN cable must be plugged into LAN ports 1-4 at startup in order to get these ports working after startup.

@robimarko updated to today OpenWrt SNAPSHOT, r28669-17dc0797d0

but seem that changes are not persistent, tried second sysupgrade without keeping the changes and also firstboot but seems that changes are not persistent anymore

[   27.899646] loop0: detected capacity change from 0 to 1048576
[   27.945833] loop0: detected capacity change from 1048576 to 1017600
[   27.947246] mount_root: overlay filesystem in /dev/loop0 has not been formatted yet
[   27.953912] mount_root: no usable overlay filesystem found, using tmpfs overlay
[   27.959198] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.

saw some changes about sysupgrade but this shouldn't affect saving changes, no ?


[    1.088498] mmc0: SDHCI controller on 7824900.mmc [7824900.mmc] using ADMA 64-bit
[    1.162333] mmc0: new HS200 MMC card at address 0001
[    1.180217] mmcblk0: mmc0:0001 Q2J54A 3.64 GiB
[    1.196117]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9
[    1.209714] mmcblk0boot0: mmc0:0001 Q2J54A 2.00 MiB
[    1.225052] mmcblk0boot1: mmc0:0001 Q2J54A 2.00 MiB
[    1.240194] mmcblk0rpmb: mmc0:0001 Q2J54A 512 KiB, chardev (247:0)

Thanks!

[edit]

also added f2fs tools and at that moment I could not recover anymore, the tmpfs could not be mounted anymore and was forced to recover via serial tftpboot, loaded the latest nss build that seems to work as it should.
not sure if I'm missing something in the oficial image

Hm, its been months since the changes were merged and I tested it repeatedly on the device.

Will retest over the weekend to see if something broke

I've updated yesterday and today using latest snapshots keeping the config settings. No issues keeping the settings.
This is my log.

[   26.869364] loop0: detected capacity change from 0 to 1048576
[   26.924421] loop0: detected capacity change from 1048576 to 1007616
[   26.937152] mount_root: overlay filesystem in /dev/loop0 has not been formatted yet
[   27.394328] F2FS-fs (loop0): Found nat_bits in checkpoint
[   27.399849] F2FS-fs (loop0): Mounted with checkpoint version = 50006c37
[   27.454507] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[   27.500450] scsi host0: uas
[   27.721050] block: attempting to load /tmp/overlay/upper/etc/config/fstab
[   27.721206] block: unable to load configuration (fstab: Entry not found)
[   27.726920] block: attempting to load /tmp/overlay/etc/config/fstab
[   27.733710] block: unable to load configuration (fstab: Entry not found)
[   27.739833] block: attempting to load /etc/config/fstab
[   27.746729] block: unable to load configuration (fstab: Entry not found)
[   27.751518] block: no usable configuration
[   27.758645] block: attempting to load /etc/config/fstab
[   27.762395] block: unable to load configuration (fstab: Entry not found)
[   27.767509] block: no usable configuration
[   27.775174] mount_root: overlay filesystem has not been fully initialized yet
[   27.778641] mount_root: switching to f2fs overlay
[   27.790275] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.

I used my own compiled builds.

[    1.127813] Bridge firewalling registered
[    1.132806] mmc0: SDHCI controller on 7824900.mmc [7824900.mmc] using ADMA 64-bit
[    1.132873] 8021q: 802.1Q VLAN Support v1.8
[    1.177374] qcom,cpr4-apss-regulator b018000.cpr4-ctrl: CPR valid fuse count: 4
[    1.177768] cpr4_ipq807x_apss_read_fuse_data: apc_corner: speed bin = 0
[    1.183503] cpr4_ipq807x_apss_read_fuse_data: apc_corner: CPR fusing revision = 1
[    1.190139] cpr4_ipq807x_apss_read_fuse_data: apc_corner: CPR misc fuse value = 0
[    1.197788] cpr4_ipq807x_apss_read_fuse_data: apc_corner: Voltage boost fuse config = 0 boost = disable
[    1.205292] cpr3_mem_acc_init: apc: not using memory accelerator regulator
[    1.214423] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused      SVS: open-loop= 712000 uV
[    1.218212] mmc0: new HS200 MMC card at address 0001
[    1.221354] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused      NOM: open-loop= 848000 uV
[    1.232093] mmcblk0: mmc0:0001 Q2J54A 3.64 GiB
[    1.236309] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused    TURBO: open-loop= 920000 uV
[    1.248027]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9
[    1.250348] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused   STURBO: open-loop=1008000 uV
[    1.261813] mmcblk0boot0: mmc0:0001 Q2J54A 2.00 MiB
[    1.265007] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused      SVS: quot[ 7]= 696, quot_offset[ 7]=   0
[    1.275580] mmcblk0boot1: mmc0:0001 Q2J54A 2.00 MiB
[    1.279342] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused      NOM: quot[ 7]= 936, quot_offset[ 7]= 240
[    1.290998] mmcblk0rpmb: mmc0:0001 Q2J54A 512 KiB, chardev (247:0)
[    1.295157] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused    TURBO: quot[ 7]=1050, quot_offset[ 7]= 110
[    1.312329] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused   STURBO: quot[ 7]=1195, quot_offset[ 7]= 145
[    1.323618] cpr3_regulator_init_ctrl: apc: Default CPR mode = closed-loop
[    1.326906] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 800000 KHz, changing to: 1017600 KHz
[    1.342738] remoteproc remoteproc0: cd00000.q6v5_wcss is available
[    1.352153] clk: Disabling unused clocks
[    1.361005] VFS: Mounted root (squashfs filesystem) readonly on device 179:4.
[    1.361329] Freeing unused kernel memory: 896K
[    1.367249] Run /sbin/init as init process

@lucize Have you read this open issue? by @Lanchon

1 Like