FUjr
February 27, 2023, 11:17am
1
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
frollic
February 27, 2023, 11:18am
2
splendid idea, and a great little project, have fun doing it !
FUjr
February 27, 2023, 11:35am
3
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
FUjr
February 27, 2023, 11:40am
4
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:
ð {
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;
};
};
};
FUjr
February 27, 2023, 12:21pm
5
From 88dde81e304c3bd316d96b306892f8578f47737e Mon Sep 17 00:00:00 2001
From: fujr <fjrcn@outlook.com>
Date: Mon, 27 Feb 2023 20:08:06 +0800
Subject: [PATCH] add support for 360t7
---
.../boot/dts/mediatek/mt7981-360-t7-108M.dts | 61 +++++
.../boot/dts/mediatek/mt7981-360-t7-base.dtsi | 248 ++++++++++++++++++
.../arm64/boot/dts/mediatek/mt7981-360-t7.dts | 71 +++++
target/linux/mediatek/image/mt7981.mk | 35 +++
.../mt7981/base-files/etc/board.d/01_leds | 6 +
.../mt7981/base-files/etc/board.d/02_network | 59 +++++
6 files changed, 480 insertions(+)
create mode 100644 target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-360-t7-108M.dts
create mode 100644 target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-360-t7-base.dtsi
create mode 100644 target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-360-t7.dts
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-360-t7-108M.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-360-t7-108M.dts
new file mode 100644
index 0000000000..c1749442e3
This file has been truncated. show original
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
FUjr
February 27, 2023, 3:44pm
6
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?