Wavlink WL-WN579X3 no Gbit only with openwrt

Hi,

this time I checked everything and compared it with other devices and also flashed the stock image.

My Wavlink WL-WN579X3 cannot link with 1000mbit on OpenWRT
On Wavlink Stock image all fine an on this cable with raspberrypi also

Can this come from the fact that there are two different models?


1 Gbit

and

after I flashed a new snapshot with the online image builder I noticed something else.

under interface devices it say 1000mbit full duplex

under switch it says 100mbit

and in my router it says 100mbit

try forcing the link speed using ethtool, make sure you disable auto neg.

post your dmesg, doesn't hurt.

when I execute ethtool -s eth0 speed 1000 duplex full autoneg off the interface goes down and does not start anymore

dmesg

root@OpenWrt:~# dmesg
[    0.000000] Linux version 5.4.143 (builder@buildhost) (gcc version 10.3.0 (Op                enWrt GCC 10.3.0 r17495-66db87fc78)) #0 Thu Sep 9 21:40:32 2021
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is Wavlink WL-WN579X3
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                es
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000]   Normal zone: 144 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs                2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, lin                ear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, line                ar)
[    0.000000] Writing ErrCtl register=0006300a
[    0.000000] Readback ErrCtl register=0006300a
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 56916K/65536K available (5143K kernel code, 205K rwdata,                 1096K rodata, 1228K init, 213K bss, 8620K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] random: get_random_bytes called from start_kernel+0x358/0x54c wit                h crng_init=0
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_n                s: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_i                dle_ns: 6590553264 ns
[    0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 74051                15902ns
[    0.015499] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087705] pid_max: default: 32768 minimum: 301
[    0.097076] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linea                r)
[    0.111479] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes,                 linear)
[    0.133991] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma                x_idle_ns: 19112604462750000 ns
[    0.153479] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.167054] pinctrl core: initialized pinctrl subsystem
[    0.178906] NET: Registered protocol family 16
[    0.450986] PCI host bridge /pcie@10140000 ranges:
[    0.460384]  MEM 0x0000000020000000..0x000000002fffffff
[    0.470752]   IO 0x0000000010160000..0x000000001016ffff
[    0.503505] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.514555] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.527131] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.538140] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.550729] rt2880_gpio 10000688.gpio: registering 1 gpios
[    0.561557] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[    0.574559] PCI host bridge to bus 0000:00
[    0.582557] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.596273] pci_bus 0000:00: root bus resource [io  0x10160000-0x1016ffff]
[    0.609901] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.623400] pci_bus 0000:00: No busn resource found for root bus, will use [b                us 00-ff]
[    0.639191] pci 0000:00:00.0: [1814:0801] type 01 class 0x060400
[    0.651125] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    0.663557] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    0.676090] pci 0000:00:00.0: supports D1
[    0.683967] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.697657] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), rec                onfiguring
[    0.713682] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    0.725569] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    0.739031] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.752419] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.766630] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.779683] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.792831] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.805952] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.819802] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.833300] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref                ]
[    0.847665] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.861175] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bi                t]
[    0.875716] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref                ]
[    0.890065] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.899926] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.913432] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref                ]
[    0.927906] workqueue: max_active 576 requested for napi_workq is out of rang                e, clamping between 1 and 512
[    0.953227] clocksource: Switched to clocksource systick
[    0.964855] thermal_sys: Registered thermal governor 'step_wise'
[    0.965269] NET: Registered protocol family 2
[    0.985925] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear                )
[    1.001035] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096                 bytes, linear)
[    1.017597] TCP established hash table entries: 1024 (order: 0, 4096 bytes, l                inear)
[    1.032763] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.046781] TCP: Hash tables configured (established 1024 bind 1024)
[    1.059556] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.072461] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.086602] NET: Registered protocol family 1
[    1.095225] PCI: CLS 0 bytes, default 32
[    1.106100] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    1.120088] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    1.141105] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.152609] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT                Y) (c) 2001-2006 Red Hat, Inc.
[    1.187589] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2                52)
[    1.205368] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.220902] printk: console [ttyS0] disabled
[    1.229370] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud                 = 2500000) is a Palmchip BK-3103
[    1.249010] printk: console [ttyS0] enabled
[    1.265592] printk: bootconsole [early0] disabled
[    1.293466] spi spi0.0: force spi mode3
[    1.303740] spi-nor spi0.0: gd25q64 (8192 Kbytes)
[    1.313168] 6 fixed-partitions partitions found on MTD device spi0.0
[    1.325852] Creating 6 MTD partitions on "spi0.0":
[    1.335410] 0x000000000000-0x000000030000 : "u-boot"
[    1.346449] 0x000000030000-0x000000040000 : "config"
[    1.357501] 0x000000040000-0x000000050000 : "factory"
[    1.368771] 0x000000050000-0x0000007e0000 : "firmware"
[    1.384002] 2 uimage-fw partitions found on MTD device firmware
[    1.395860] Creating 2 MTD partitions on "firmware":
[    1.405780] 0x000000000000-0x00000020ad43 : "kernel"
[    1.416822] 0x00000020ad43-0x000000790000 : "rootfs"
[    1.427780] mtd: device 5 (rootfs) set to be root filesystem
[    1.441190] 1 squashfs-split partitions found on MTD device rootfs
[    1.453592] 0x000000523000-0x000000790000 : "rootfs_data"
[    1.465483] 0x0000007e0000-0x0000007f0000 : "board_data"
[    1.477224] 0x0000007f0000-0x000000800000 : "nvram"
[    1.488968] libphy: Fixed MDIO Bus: probed
[    1.507606] gsw: ephy base address: 8
[    1.516740] libphy: mdio: probed
[    1.525165] mtk_soc_eth 10100000.ethernet: connected port 4 to PHY at mdio-bu                s:04 [uid=001cc916, driver=Generic PHY]
[    1.546462] mtk_soc_eth 10100000.ethernet: connected port 5 to PHY at mdio-bu                s:05 [uid=001cc916, driver=Generic PHY]
[    1.567686] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    1.580200] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0                100000, irq 5
[    1.597234] rt2880_wdt 10000120.watchdog: Initialized
[    1.608977] NET: Registered protocol family 10
[    1.622918] Segment Routing with IPv6
[    1.630434] NET: Registered protocol family 17
[    1.639385] bridge: filtering via arp/ip/ip6tables is no longer available by                 default. Update your scripts to load br_netfilter if you need this.
[    1.665220] 8021q: 802.1Q VLAN Support v1.8
[    1.680152] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.701156] Freeing unused kernel memory: 1228K
[    1.710221] This architecture does not have kernel memory protection.
[    1.723052] Run /sbin/init as init process
[    2.640458] init: Console is alive
[    2.647633] init: - watchdog -
[    2.803108] random: fast init done
[    3.869962] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.115504] kmodloader: done loading kernel modules from /etc/modules-boot.d/                *
[    4.135064] init: - preinit -
[    5.426588] random: jshn: uninitialized urandom read (4 bytes read)
[    5.531014] random: jshn: uninitialized urandom read (4 bytes read)
[    5.689433] random: jshn: uninitialized urandom read (4 bytes read)
[    6.494635] 8021q: adding VLAN 0 to HW filter on device eth0
[    6.562258] urandom_read: 4 callbacks suppressed
[    6.562266] random: procd: uninitialized urandom read (4 bytes read)
[    8.312851] jffs2: notice: (511) jffs2_build_xattr_subsystem: complete buildi                ng xattr subsystem, 27 of xdatum (8 unchecked, 19 orphan) and 32 of xref (7 dead                , 14 orphan) found.
[    8.345928] mount_root: switching to jffs2 overlay
[    8.360339] overlayfs: upper fs does not support tmpfile.
[    8.377637] urandom-seed: Seeding with /etc/urandom.seed
[    8.515473] procd: - early -
[    8.522823] procd: - watchdog -
[    8.883799] procd: - watchdog -
[    8.891833] procd: - ubus -
[    8.978261] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.993679] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.010948] procd: - init -
[   10.090210] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.600166] Loading modules backported from Linux version v5.10.42-0-g65859ec                a4dff
[   10.615337] Backport generated by backports.git v5.10.42-1-0-gbee5c545
[   10.704289] xt_time: kernel timezone is -0000
[   10.958719] mt76x2e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[   10.971363] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   10.987075] urngd: jent-rng init failed, err: 2
[   11.217106] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   11.235072] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   11.246033] mt76x2e 0000:01:00.0: Build: 1
[   11.254186] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   11.274496] mt76x2e 0000:01:00.0: Firmware running!
[   11.286512] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   11.388403] PPP generic driver version 2.4.2
[   11.400062] NET: Registered protocol family 24
[   11.474586] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory                "
[   11.489024] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 d                etected
[   11.504507] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 7620 detected
[   11.518348] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   11.609411] kmodloader: done loading kernel modules from /etc/modules.d/*
[   20.598366] random: crng init done
[   30.968840] 8021q: adding VLAN 0 to HW filter on device eth0
[   31.003456] br-lan: port 1(eth0.1) entered blocking state
[   31.014293] br-lan: port 1(eth0.1) entered disabled state
[   31.025487] device eth0.1 entered promiscuous mode
[   31.035085] device eth0 entered promiscuous mode
[   34.544986] br-lan: port 2(wlan0) entered blocking state
[   34.555673] br-lan: port 2(wlan0) entered disabled state
[   34.566675] device wlan0 entered promiscuous mode
[   35.923561] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   35.936629] br-lan: port 2(wlan0) entered blocking state
[   35.947276] br-lan: port 2(wlan0) entered forwarding state
[   35.993478] ieee80211 phy1: rt2800_rf_self_txdc_cal: Info - RF Tx self calibr                ation start
[   36.010220] ieee80211 phy1: rt2800_rf_self_txdc_cal: Info - RF Tx self calibr                ation end
[   37.899960] ieee80211 phy1: rt2800_loft_iq_calibration: Info - LOFT Calibrati                on Done!
[   37.919564] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Start!
[   37.947494] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Done! CH =                 0, (gain= f, phase=3d)
[   37.966606] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Start!
[   37.994526] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Done! CH =                 1, (gain= 0, phase=3e)
[   38.012766] ieee80211 phy1: rt2800_loft_iq_calibration: Info - TX IQ Calibrat                ion Done!
[   38.042308] ieee80211 phy1: rt2800_rxiq_calibration: Info - RXIQ G_imb=2, Ph_                rx=-5
[   38.067661] ieee80211 phy1: rt2800_rxiq_calibration: Info - RXIQ G_imb=2, Ph_                rx=-3
[   38.092700] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   38.117838] br-lan: port 3(wlan1) entered blocking state
[   38.128518] br-lan: port 3(wlan1) entered disabled state
[   38.139771] device wlan1 entered promiscuous mode
[   38.261005] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   38.274026] br-lan: port 3(wlan1) entered blocking state
[   38.284670] br-lan: port 3(wlan1) entered forwarding state
[   40.384301] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   40.399076] br-lan: port 1(eth0.1) entered blocking state
[   40.409925] br-lan: port 1(eth0.1) entered forwarding state
[   40.421544] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   40.952933] mtk_soc_eth 10100000.ethernet eth0: port 5 link up (1000Mbps/Full                 duplex)
[   74.325638] br-lan: port 3(wlan1) entered disabled state
[   74.336425] br-lan: port 2(wlan0) entered disabled state
[   74.347085] br-lan: port 1(eth0.1) entered disabled state
[   74.393561] device eth0.1 left promiscuous mode
[   74.402687] device eth0 left promiscuous mode
[   74.411675] br-lan: port 1(eth0.1) entered disabled state
[   74.429667] device wlan0 left promiscuous mode
[   74.438763] br-lan: port 2(wlan0) entered disabled state
[   74.471038] device wlan1 left promiscuous mode
[   74.480228] br-lan: port 3(wlan1) entered disabled state
[   74.527479] br-lan: port 1(eth0.1) entered blocking state
[   74.538317] br-lan: port 1(eth0.1) entered disabled state
[   74.549633] device eth0.1 entered promiscuous mode
[   74.559345] device eth0 entered promiscuous mode
[   74.618290] br-lan: port 2(wlan0) entered blocking state
[   74.628953] br-lan: port 2(wlan0) entered disabled state
[   74.706513] device wlan0 entered promiscuous mode
[   74.763481] br-lan: port 3(wlan1) entered blocking state
[   74.774146] br-lan: port 3(wlan1) entered disabled state
[   74.833495] device wlan1 entered promiscuous mode
[   74.879846] br-lan: port 3(wlan1) entered blocking state
[   74.890508] br-lan: port 3(wlan1) entered forwarding state
[   74.901601] br-lan: port 2(wlan0) entered blocking state
[   74.912220] br-lan: port 2(wlan0) entered forwarding state
[   74.923220] br-lan: port 1(eth0.1) entered blocking state
[   74.933998] br-lan: port 1(eth0.1) entered forwarding state