Gl-inet firmware for 360T7


I brought a glinet mt3000 router,and I fount it's ui are much more user friendly / app to monitor some main figure) /support per devices monitor,and it provided an opensource image builder(some package provide binary)

https://github.com/gl-inet/gl-infra-builder

But it's too expensive for me ($199),but I found a router(qihoo 360T7) that sell to carriers that use similar hardware as mt3000.And it cost less than $30.
360T7's original system provided little function,this repo add support for qihoo 360T7
https://github.com/hanwckf/immortalwrt-mt798x
this repo add uboot support for 360T7
https://github.com/hanwckf/bl-mt798x

It's occurred to me that if i can add gl-inet support for 360T7,so that i can use user friendly interface in cheap wifi6 router.

1 Like

splendid idea, and a great little project, have fun doing it !

I add some patch to origin project,and successfully compile a bootable firmware.

Wireless works well.But has something wrong in soc_eth.

this is my project(I will sync my local change later)
http://www.github.com/fujr/gl-infra-builder

Actually I am here to ask for help,I got trouble with configuring soc_eth.Here is some related config and help output

root@GL-360T7:~# ethtool -i eth0(eth1同)
version: 
firmware-version: 
expansion-rom-version: 
bus-info: 15100000.ethernet
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

###################################################

root@GL-360T7:~# ethtool  eth1 (ETH0)同
Settings for eth1:
        Supported ports: [ MII ]
        Supported link modes:   2500baseT/Full 
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  2500baseT/Full 
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 10Mb/s
        Duplex: Half
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: no

###################################################

ifconfig 
eth0      Link encap:Ethernet  HWaddr E0:EF:02:56:98:1C  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:75 

eth1      Link encap:Ethernet  HWaddr E0:EF:02:56:98:1D  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:75 

###################################################

/etc/config/network
config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '0 1 2 6'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '3 5'

###################################################

DTS:
&eth {
	status = "okay";

	gmac0: mac@0 {
		compatible = "mediatek,eth-mac";
		reg = <0>;
		phy-mode = "  

		fixed-link {
			speed = <2500>;
			full-duplex;
			pause;
		};
	};

	gmac1: mac@1 {
		compatible = "mediatek,eth-mac";
		reg = <1>;
		phy-mode = "2500base-x";

		fixed-link {
			speed = <2500>;
			full-duplex;
			pause;
		};
	};

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

&gsw {
	mediatek,mdio = <&mdio>;
	mediatek,mdio_master_pinmux = <0>;
	reset-gpios = <&pio 39 0>;
	interrupt-parent = <&pio>;
	interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
	status = "okay";

	port5: port@5 {
		compatible = "mediatek,mt753x-port";
		reg = <5>;
		phy-mode = "sgmii";

		fixed-link {
			speed = <2500>;
			full-duplex;
		};
	};

	port6: port@6 {
		compatible = "mediatek,mt753x-port";
		mediatek,ssc-on;
		reg = <6>;
		phy-mode = "sgmii";

		fixed-link {
			speed = <2500>;
			full-duplex;
		};
	};
};

this is what i patch to original gl imagebuilder repo
if there are any information could br helpful for solving problem ,I will try my best to post

I found there is a vendor patch make sgmii work unnormal,everything work well after remove the patch.

you can try to custom a firmware like what i have done.

1 Like

Hi,
How you fix the partition size and the wlan, ethernet port config?