OpenWrt support for Linksys MX4200

Any specific option should be used with ethtool? --register-dump option doesn't work.

1 Like

No, you cannot dump them via ethtool, that was not my point.

I can just tell you that PHY sees a link.

Can you post the output of ip link on the board where you think its not working?

It's a little complicated if you do not have a device :slight_smile:

I have that output:

root@OpenWrt:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: miireg: <> mtu 0 qdisc noop state DOWN qlen 1000
    link/generic
3: wan: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether *:28 brd ff:ff:ff:ff:ff:ff
4: lan3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether *:29 brd ff:ff:ff:ff:ff:ff
5: lan2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether *:29 brd ff:ff:ff:ff:ff:ff
6: lan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether *:29 brd ff:ff:ff:ff:ff:ff

@flyingdida Can you post an output?

I know you dont have it, but without a board its kind of impossible to help you out.

Did you add the HomeWRK board to 02_network, because all of these should be UP

1 Like

Somehow I missed it and didn't add it :slight_smile:
Thanks!

1 Like

Then that is your problem

What is the 0xe registry?

That is MMD acess data, it along 0xD is used to indirectly access MMD-s since the PHY is C22 only

I'm asking because it's different for MX4300 and HomeWRK. But as we have C22 PHY here it's probably not important.

No, you can ignore it as its just the last data that was read or written to it

I do not know the port #. hope this will help

Lan port connected next to the Wan "L1"

      0x01   0x02   0x03   0x04
0x0 0x1040 0x1040 0x1040 0x1040
0x1 0x7949 0x7969 0x7949 0x7949
0x2 0x004d 0x004d 0x004d 0x004d
0x3 0xd0b1 0xd0b1 0xd0b1 0xd0b1
0x4 0x1de1 0x1de1 0x1de1 0x1de1
0x5 0x0000 0xcde1 0x0000 0x0000
0x6 0x0004 0x000f 0x0004 0x0004
0x7 0x2801 0x2801 0x2801 0x2801
0x8 0x0000 0x0000 0x0000 0x0000
0x9 0x0600 0x0600 0x0600 0x0600
0xa 0x0000 0x7800 0x0000 0x0000
0xb 0x0000 0x0000 0x0000 0x0000
0xc 0x0000 0x0000 0x0000 0x0000
0xd 0x4007 0x4007 0x4007 0x4007
0xe 0x03af 0x03af 0x03af 0x03af
0xf 0x2000 0x2000 0x2000 0xa000
0x10 0x6862 0x6862 0x6862 0x6862
0x11 0x0010 0xbc5c 0x0010 0x0010
0x12 0x0000 0x0000 0x0000 0x0000
0x13 0x0000 0xfc40 0x0000 0x0000
0x14 0x082c 0x082c 0x082c 0x082c
0x15 0x0000 0x0000 0x0000 0x0000
0x16 0x2400 0x2400 0x2400 0x2400
0x17 0x0000 0x0000 0x0000 0x0000
0x18 0x0000 0x0000 0x0000 0x0000
0x19 0x0000 0x0000 0x0000 0x0000
0x1a 0x0000 0x0000 0x0000 0x0000
0x1b 0x0000 0x0000 0x0000 0x0600
0x1c 0x0000 0x0000 0x0000 0x0000
0x1d 0x0000 0x0000 0x0000 0x0000
0x1e 0x82a0 0x82a0 0x82a0 0x82a0
0x1f 0x0000 0x0000 0x0000 0x8500

L2 connected


      0x01   0x02   0x03   0x04
0x0 0x1040 0x1040 0x1040 0x1040
0x1 0x7949 0x7949 0x796d 0x7949
0x2 0x004d 0x004d 0x004d 0x004d
0x3 0xd0b1 0xd0b1 0xd0b1 0xd0b1
0x4 0x1de1 0x1de1 0x1de1 0x1de1
0x5 0x0000 0xcde1 0xcde1 0x0000
0x6 0x0004 0x000c 0x000f 0x0004
0x7 0x2801 0x2801 0x2801 0x2801
0x8 0x0000 0x0000 0x0000 0x0000
0x9 0x0600 0x0600 0x0600 0x0600
0xa 0x0000 0x0000 0x7800 0x0000
0xb 0x0000 0x0000 0x0000 0x0000
0xc 0x0000 0x0000 0x0000 0x0000
0xd 0x4007 0x4007 0x4007 0x4007
0xe 0x03af 0x03af 0x03af 0x03af
0xf 0x2000 0x2000 0x2000 0xa000
0x10 0x6862 0x6862 0x6862 0x6862
0x11 0x0010 0x0050 0xbc1c 0x0010
0x12 0x0000 0x0000 0x0000 0x0000
0x13 0x0000 0x8a40 0x7400 0x0000
0x14 0x082c 0x082c 0x082c 0x082c
0x15 0x0000 0x0000 0x0000 0x0000
0x16 0x2400 0x2400 0x2400 0x2400
0x17 0x0000 0x0000 0x0000 0x0000
0x18 0x0000 0x0000 0x0000 0x0000
0x19 0x0000 0x0000 0x0000 0x0000
0x1a 0x0000 0x0000 0x0000 0x0000
0x1b 0x0000 0x0000 0x0000 0x0600
0x1c 0x0000 0x0000 0x0000 0x0000
0x1d 0x0000 0x0000 0x0000 0x0000
0x1e 0x82a0 0x82a0 0x82a0 0x82a0
0x1f 0x0000 0x0000 0x0000 0x8500

L3 connected

      0x01   0x02   0x03   0x04
0x0 0x1040 0x1040 0x1040 0x1040
0x1 0x7949 0x7949 0x7949 0x796d
0x2 0x004d 0x004d 0x004d 0x004d
0x3 0xd0b1 0xd0b1 0xd0b1 0xd0b1
0x4 0x1de1 0x1de1 0x1de1 0x1de1
0x5 0x0000 0xcde1 0xcde1 0xcde1
0x6 0x0004 0x000c 0x000c 0x000d
0x7 0x2801 0x2801 0x2801 0x2801
0x8 0x0000 0x0000 0x0000 0x0000
0x9 0x0600 0x0600 0x0600 0x0600
0xa 0x0000 0x0000 0x0000 0x7800
0xb 0x0000 0x0000 0x0000 0x0000
0xc 0x0000 0x0000 0x0000 0x0000
0xd 0x4007 0x4007 0x4007 0x4007
0xe 0x03af 0x03af 0x03af 0x03af
0xf 0x2000 0x2000 0x2000 0xa000
0x10 0x6862 0x6862 0x6862 0x6862
0x11 0x0010 0x0050 0x0010 0xbc5c
0x12 0x0000 0x0000 0x0000 0x0000
0x13 0x0000 0x0000 0x0000 0x0000
0x14 0x082c 0x082c 0x082c 0x082c
0x15 0x0000 0x0000 0x0000 0x0000
0x16 0x2400 0x2400 0x2400 0x2400
0x17 0x0000 0x0000 0x0000 0x0000
0x18 0x0000 0x0000 0x0000 0x0000
0x19 0x0000 0x0000 0x0000 0x0000
0x1a 0x0000 0x0000 0x0000 0x0000
0x1b 0x0000 0x0000 0x0000 0x063e
0x1c 0x0000 0x0000 0x0000 0x0000
0x1d 0x0000 0x0000 0x0000 0x0000
0x1e 0x82a0 0x82a0 0x82a0 0x82a0
0x1f 0x0000 0x0000 0x0000 0x8500

Wan


      0x01   0x02   0x03   0x04
0x0 0x1040 0x1040 0x1040 0x1040
0x1 0x796d 0x7949 0x7949 0x7949
0x2 0x004d 0x004d 0x004d 0x004d
0x3 0xd0b1 0xd0b1 0xd0b1 0xd0b1
0x4 0x1de1 0x1de1 0x1de1 0x1de1
0x5 0xcde1 0xcde1 0xcde1 0xcde1
0x6 0x000f 0x000c 0x000c 0x000c
0x7 0x2801 0x2801 0x2801 0x2801
0x8 0x0000 0x0000 0x0000 0x0000
0x9 0x0600 0x0600 0x0600 0x0600
0xa 0x7800 0x0000 0x0000 0x0000
0xb 0x0000 0x0000 0x0000 0x0000
0xc 0x0000 0x0000 0x0000 0x0000
0xd 0x4007 0x4007 0x4007 0x4007
0xe 0x03af 0x03af 0x03af 0x03af
0xf 0x2000 0x2000 0x2000 0xa000
0x10 0x6862 0x6862 0x6862 0x6862
0x11 0xbc1c 0x0050 0x0010 0x0050
0x12 0x0000 0x0000 0x0000 0x0000
0x13 0x7400 0x0000 0x0000 0x0a40
0x14 0x082c 0x082c 0x082c 0x082c
0x15 0x0000 0x0000 0x0000 0x0000
0x16 0x2400 0x2400 0x2400 0x2400
0x17 0x0000 0x0000 0x0000 0x0000
0x18 0x0000 0x0000 0x0000 0x0000
0x19 0x0000 0x0000 0x0000 0x0000
0x1a 0x0000 0x0000 0x0000 0x0000
0x1b 0x0000 0x0000 0x0000 0x0600
0x1c 0x0000 0x0000 0x0000 0x0000
0x1d 0x0000 0x0000 0x0000 0x0000
0x1e 0x82a0 0x82a0 0x82a0 0x82a0
0x1f 0x0000 0x0000 0x0000 0x8500

Did you figure out the cause of this issue? I see tons of messages in system log as well.

Mon Sep 16 12:24:43 2024 daemon.info dnsmasq-dhcp[1]: DHCPDISCOVER(br-lan) xxx
Mon Sep 16 12:24:43 2024 daemon.info dnsmasq-dhcp[1]: DHCPOFFER(br-lan) xxx

A fix was suggested upthread. I haven't had a chance to test it yet, as I've been trying some stuff out on the regular non-NSS build.

1 Like

New FOSS build

Compatible with current kmods.

2 Likes

What is this FOSS build? Different from your other regular build and NSS?

free open source software=non-nss=from lytr

1 Like

I get merge errors when I tried to "git pull".

CONFLICT (add/add): Merge conflict in target/linux/qualcommax/patches-6.6/0603-7-qca-nss-clients-iptunnel-lock-this-cpu.patch
Auto-merging target/linux/qualcommax/patches-6.6/0603-7-qca-nss-clients-iptunnel-lock-this-cpu.patch
CONFLICT (add/add): Merge conflict in target/linux/qualcommax/patches-6.6/0603-4-qca-nss-clients-add-iptunnel-support.patch
Auto-merging target/linux/qualcommax/patches-6.6/0603-4-qca-nss-clients-add-iptunnel-support.patch
CONFLICT (add/add): Merge conflict in target/linux/qualcommax/patches-6.6/0603-2-qca-nss-clients-add-l2tp-support.patch
Auto-merging target/linux/qualcommax/patches-6.6/0603-2-qca-nss-clients-add-l2tp-support.patch
CONFLICT (add/add): Merge conflict in target/linux/qualcommax/patches-6.6/0603-1-qca-nss-clients-add-qdisc-support.patch
Auto-merging target/linux/qualcommax/patches-6.6/0603-1-qca-nss-clients-add-qdisc-support.patch
CONFLICT (add/add): Merge conflict in target/linux/qualcommax/patches-6.6/0600-4-qca-nss-ecm-support-net-bonding-over-LAG-interface.patch
Auto-merging target/linux/qualcommax/patches-6.6/0600-4-qca-nss-ecm-support-net-bonding-over-LAG-interface.patch
CONFLICT (add/add): Merge conflict in target/linux/qualcommax/patches-6.6/0600-3-qca-nss-ecm-support-net-bonding.patch
Auto-merging target/linux/qualcommax/patches-6.6/0600-3-qca-nss-ecm-support-net-bonding.patch
CONFLICT (add/add): Merge conflict in target/linux/qualcommax/patches-6.6/0600-1-qca-nss-ecm-support-CORE.patch
Auto-merging target/linux/qualcommax/patches-6.6/0600-1-qca-nss-ecm-support-CORE.patch
Removing target/linux/generic/backport-6.6/200-regmap-maple-work-around-false-positive-warning.patch
Removing target/linux/bcm27xx/patches-6.6/950-1018-drivers-mmc-apply-SD-quirks-earlier-during-probe.patch
Removing target/linux/apm821xx/base-files/lib/preinit/05_set_iface_mac_apm821xx
Automatic merge failed; fix conflicts and then commit the result.

git stash gives this error:

~/mx4300$ git stash
nss-setup/example/03-uci-defaults: needs merge
target/linux/qualcommax/patches-6.6/0600-1-qca-nss-ecm-support-CORE.patch: needs merge
target/linux/qualcommax/patches-6.6/0600-3-qca-nss-ecm-support-net-bonding.patch: needs merge
target/linux/qualcommax/patches-6.6/0600-4-qca-nss-ecm-support-net-bonding-over-LAG-interface.patch: needs merge
target/linux/qualcommax/patches-6.6/0603-1-qca-nss-clients-add-qdisc-support.patch: needs merge
target/linux/qualcommax/patches-6.6/0603-2-qca-nss-clients-add-l2tp-support.patch: needs merge
target/linux/qualcommax/patches-6.6/0603-4-qca-nss-clients-add-iptunnel-support.patch: needs merge
target/linux/qualcommax/patches-6.6/0603-7-qca-nss-clients-iptunnel-lock-this-cpu.patch: needs merge

It looks like I'm having trouble with step 2. When I attempt to run opkg update && opkg install luci, I encounter an "operation not permitted" error. It seems the router might not have internet access, as I'm unable to ping any sites. Any assistance would be greatly appreciated. For context, the router is set up with LAN-to-internet on port 4, and my laptop is connected to port 1. Additionally, while I can SSH into the router with this setup, my laptop loses its internet connection.

turn off power and turn back on (button underneath). step 2 should work if you just did a flash from stock.

I’ve already tried turning it on and off a dozen times, but unfortunately, it hasn’t resolved the issue.