The problem: At the moment the ethernet interface needs to be brought up in uboot before booting OpenWrt to be functional. A boot with "cold" NIC results in high packet loss (more or less unusable). I think it is because some Registers of the PHY/SoC don't get set up correctly...
from target/linux/ath79/dts/ar9342_zyxel_nwa1123-ni.dts:
&mdio0 {
status = "okay";
phy-mask = <0>;
phy0: ethernet-phy@0 {
reg = <0>;
};
};
ð0 {
status = "okay";
/* default for ar934x, except for 1000M an 10M */
pll-data = <0x06000000 0x00000101 0x00001313>;
mtd-mac-address = <&art 0x1002>;
phy-mode = "rgmii-id";
phy-handle = <&phy0>;
};
What i have:
Source code of stock firmware
Based on Attitude Adjustment and the SDK from Qualcomm/Atheros (linuxsrc-qualcomm)
The SourceCode of the very similiar device (NWA1123-AC) is available online: https://github.com/kodolok/nwa1123-ac/
root access via telnet on stock firmware (/sys and /proc available)
And of course shell-access access to the device running OpenWrt SNAPSHOT, r11192-c3ffb0e7d5
=> How can i find out the correct settings for ethernet?
Hey guys,
I was able to resolve the issue with the GbE, it is working now.
Tested with flood-ping and iperf at 10, 100 and 1000Mbit FD. (iperf for 1Gbit was tested with briding two vlans on the device) => No packetloss and network speed seems to be normal
sorry for late reply, I just returned from vacation
In general I don't think it is a good idea to flash the firmware of a different device, but luckily you didn't brick yours.
You will have to compile the firmware yourself, i would take a closer look at the pcie-section of the device dts, i think at least the pci-id will need to be changed as the AC has a different PCIe-Wifi-Module (maybe AR9580?; that seems to be the main difference between AC and NI).