Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mtkhnat loaded but no ppe was found #21

Open
system1357 opened this issue Nov 24, 2022 · 0 comments
Open

mtkhnat loaded but no ppe was found #21

system1357 opened this issue Nov 24, 2022 · 0 comments

Comments

@system1357
Copy link

Device is Arcadyan WG630223, nearly identical with MTK MT7621+MT7915 DBDC reference design.
I've tried to patch the dts and uci defaults as you've suggested
But after boot the module doesn't detect PPE, and no hwnat acceleration at all (CPU goes to 100% at 400Mbps), please help

WAN is at port4, LAN at port 2 and 3

dmesg:

[ 542.782005] mediatek_soc_hnat 1e100000.hnat: wan = eth1
[ 542.787547] mediatek_soc_hnat 1e100000.hnat: lan = eth0
[ 542.792758] mediatek_soc_hnat 1e100000.hnat: ppd = eth0
[ 542.798341] mediatek_soc_hnat 1e100000.hnat: gmac num = 2
[ 542.809524] mediatek_soc_hnat 1e100000.hnat: ext devices = wlan0
[ 542.815335] mediatek_soc_hnat 1e100000.hnat: ext devices = wlan1
[ 542.851014] mediatek_soc_hnat 1e100000.hnat: FOE entry number = 16384
[ 542.870583] mediatek_soc_hnat 1e100000.hnat: hwnat start

Original dts looks like this:

&gmac0 {
	nvmem-cells = <&macaddr_factory_fff0>;
	nvmem-cell-names = "mac-address";
};

&gmac1 {
	status = "okay";
	label = "wan";
	phy-handle = <&ethphy4>;

	nvmem-cells = <&macaddr_factory_fff0>;
	nvmem-cell-names = "mac-address";
};

&mdio {
	ethphy4: ethernet-phy@4 {
		reg = <4>;
	};
};

&switch0 {
	ports {
		port@2 {
			status = "okay";
			label = "lan2";
		};

		port@3 {
			status = "okay";
			label = "lan1";
		};
[hwnat_dts.txt](https://github.com/padavanonly/immortalwrt/files/10083579/hwnat_dts.txt)

	};
};
[orig_openwrt_dts.txt](https://github.com/padavanonly/immortalwrt/files/10083575/orig_openwrt_dts.txt)
[stockfw_dts.txt](https://github.com/padavanonly/immortalwrt/files/10083576/stockfw_dts.txt)

After patching:

&gmac0 {
	nvmem-cells = <&macaddr_factory_fff0>;
	nvmem-cell-names = "mac-address";
};

&gmac1 {
	nvmem-cells = <&macaddr_factory_fff0>;
	nvmem-cell-names = "mac-address";
};

&hnat {
        mtketh-wan = "eth1";
        mtketh-ppd = "eth0";
        mtketh-lan = "eth0";
	ext-devices = "wlan0","wlan1";
        mtketh-max-gmac = <2>;
        status = "okay";
};

&gsw {
	mediatek,mdio = <&mdio>;
	mediatek,portmap = "llllw";
	mediatek,mcm;
	mt7530,direct-phy-access;

	resets = <&rstctrl 2>;
	reset-names = "mcm";

	port5: port@5 {
		compatible = "mediatek,mt753x-port";
		reg = <5>;
		phy-mode = "rgmii";
		fixed-link {
			speed = <1000>;
			full-duplex;
		};
	};

	port6: port@6 {
		compatible = "mediatek,mt753x-port";
		reg = <6>;
		phy-mode = "trgmii";
		fixed-link {
			speed = <1000>;
			full-duplex;
		};
	};

	mdio-bus {
		#address-cells = <1>;
		#size-cells = <0>;
	};
};

&switch0 {
	/* must delete compatible property */
	/delete-property/ compatible;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant