Welcome! Log In Create A New Profile

Advanced

Debian on Action Tech SG200 and MI424WR-rev-I

Posted by veriqster 
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 02, 2021 06:39PM
8086k,

Does this box have Wifi chip?

Quote

I think it is becase of the GPON/EPON support. Maybe F660 is more similar to google GFRG110.

No, I don't think GPON/EPON has anything to do with thisinterrupt. I meant that confirms the device is eth1 in the avanta.dtsi.

eth1: ethernet@70000 {
                        compatible = "marvell,armada-370-neta";
                        reg = <0x70000 0x4000>;
                        interrupts = <7>;
                        clocks = <&gate_clk 0>;
                        status = "disabled";
                };

That's mdio address f1070000.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 02, 2021 08:54PM
bodhi,

Yes this box do have a wifi chip. The wifi chip is RealTek RTL8192CE. I haven't worked on the wifi module yet. But I believe it won't be so hard as ETH device.

I believe the order of two eth device in avanta.dtsi is upside down. So I swapped the two eth nodes in avanta.dtsi. (According to the stock log of mi424wr rev i, It uses eth1)
However, that's same as just using eth1 in the dts.

8086k
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 03, 2021 02:59AM
bodhi,

I have tested it. Ethernet is completely working. I can connect to the terminal with telnet. The next thing is WIFI chip.

8086k
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 03, 2021 05:12AM
8086k,

Please post the DTS, DTSI and DTB.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 05/03/2021 05:14AM by bodhi.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 03, 2021 05:28AM
bodhi,

Can linux 5.11 kernel drive the eth device of 88f6560 now? I am trying to update openwrt version.

8086k



Edited 1 time(s). Last edit at 05/03/2021 05:37AM by 8086k.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 03, 2021 05:36AM
bodhi,

This is the DTS file of F660. It's for linux 3.14 kernel. It is not very perfect but works well.

8086k
Attachments:
open | download - ZTE_F660_DTS.7z (5.1 KB)
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 03, 2021 05:01PM
8086k,

I did not see where your changes are in these files.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 03, 2021 06:55PM
bodhi,

There are some details changed.
First, I commented out these codes
	phy0: ethernet-phy@9 {
		reg = <9>;
	};
&eth1 {
	status = "okay";
	phy = <&phy0>;
	phy-mode = "rgmii-id";
};

Next, I changed
		cpu-port-0 = <5>;
		cpu-port-1 = <6>;
into
		cpu-port-0 = <4>;
		cpu-port-1 = <5>;

I also changed the eth nodes in avanta.dtsi into this.
		eth0: ethernet@70000 {
			compatible = "marvell,armada-370-neta";
			reg = <0x70000 0x4000>;
			interrupts = <7>;
			clocks = <&gate_clk 0>;
			status = "disabled";
		};

		eth1: ethernet@74000 {
			compatible = "marvell,armada-370-neta";
			reg = <0x74000 0x4000>;
			interrupts = <11>;
			clocks = <&gate_clk 19>;
			status = "disabled";
		};
I believe you can see the differences.

8086k



Edited 2 time(s). Last edit at 05/03/2021 07:01PM by 8086k.
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 05, 2021 04:14AM
bodhi,

There is a very annoying problem on the uboot of F660. It doesn't run bootcmd directly. Instead, It will read the kernel into ram and check the image. If it doesn't pass, U-boot won't continue to run bootcmd. So everytime I must enter the uboot console to boot the openwrt kernel manually. Can you crack the uboot a little?

8086k
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 05, 2021 04:09PM
8086k,

> cpu-port-0 = <4>;
> cpu-port-1 = <5>;

Thanks. It confirmed the similarity with the MI424WR-rev-I. I've looked at the GPL source and discovered that the CPU is port 4.

> I also changed the eth nodes in avanta.dtsi into
> this.

I have some doubt whether mvneta can be used in the latest kernel (eg. kernel 5.11.4) for these boxes. mvneta has been significantly evloved during 3.x.x to 5.x.x kernels. I will try going back to the Kirkwood driver to see it is a better fit.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Action Tech SG200 and MI424WR-rev-I
May 05, 2021 04:24PM
8086k,

> There is a very annoying problem on the uboot of
> F660. It doesn't run bootcmd directly. Instead, It
> will read the kernel into ram and check the image.
> If it doesn't pass, U-boot won't continue to run
> bootcmd. So everytime I must enter the uboot
> console to boot the openwrt kernel manually. Can
> you crack the uboot a little?

Sure, post the serial bootlog with printenvs.

The bootcmd must be changed permanently to boot Openwrt and fallback to boot stock (if it is possible).

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: