Hi, I have a ZBT WG108, it is sold on the internet as an openwrt router with various names.
You can add it among the supported devices?
The hardware specifications are below:
Product number ZBT-WG108 (
but it is renamed by each seller)
Hardware
Cpu MT7621A 880Mhz
Flash:SPI 16MB
Ram:DDR3 256MB
Wifi 2.4Gz mediatek 7603
Wifi 5 Ghz mediatek 7612
Ethernet port provide 5*10/100/1000Mbps Auto-MDI/MDIX
USB 2.0 1 port
SD interface 1
LED PWR,2G,5G,WAN,LAN1,LAN2,LAN3,LAN4
1 RESET button
Power Adapter DC 12V 1A ( if you have a problem of wifi stability change in 2A!! )
I have made the file dts
/dts-v1/;
#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "zbtlink,zbt-wg108", "mediatek,mt7621-soc";
model = "Zbtlink ZBT-WG108";
aliases {
label-mac-device = &wifi1;
};
memory@0 { device_type = "memory";
reg = <0x0 0x10000000>;
};
chosen {
bootargs = "console=ttyS0,115200";
};
palmbus: palmbus@1E000000 {
i2c@900 {
status = "okay";
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
};
&spi0 {
status = "okay";
m25p80@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "u-boot-env";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0xfb0000>;
};
};
};
};
ðernet {
mtd-mac-address = <&factory 0xe000>;
mtd-mac-address-increment = <(-2)>;
};
&pcie {
status = "okay";
};
&pcie0 {
wifi0: mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
mtd-mac-address = <&factory 0x8004>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&pcie1 {
wifi1: mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
mtd-mac-address-increment = <(1)>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
&sdhci {
status = "okay";
};
&pinctrl {
state_default: pinctrl0 {
gpio {
ralink,group = "wdt", "rgmii2", "jtag", "mdio";
ralink,function = "gpio";
};
};
};
NB. if remove memory0, in boot time the kernel go to panic and restart
/proc# cat cpuinfo
system type : MediaTek MT7621 ver:1 eco:3
machine : Zbtlink ZBT-WG108
processor : 0
cpu model : MIPS 1004Kc V2.15
BogoMIPS : 665.19
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp mt
Options implemented : tlb 4kex 4k_cache prefetch mcheck ejtag llsc pindexed_dcache userlocal vint perf_cntr_intr_bit cdmm nan_legacy nan_2008 perf
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VPE : 0
VCED exceptions : not available
VCEI exceptions : not available
processor : 1
cpu model : MIPS 1004Kc V2.15
BogoMIPS : 665.19
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp mt
Options implemented : tlb 4kex 4k_cache prefetch mcheck ejtag llsc pindexed_dcache userlocal vint perf_cntr_intr_bit cdmm nan_legacy nan_2008 perf
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VPE : 1
VCED exceptions : not available
VCEI exceptions : not available
processor : 2
cpu model : MIPS 1004Kc V2.15
BogoMIPS : 665.19
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp mt
Options implemented : tlb 4kex 4k_cache prefetch mcheck ejtag llsc pindexed_dcache userlocal vint perf_cntr_intr_bit cdmm nan_legacy nan_2008 perf
shadow register sets : 1
kscratch registers : 0
package : 0
core : 1
VPE : 0
VCED exceptions : not available
VCEI exceptions : not available
processor : 3
cpu model : MIPS 1004Kc V2.15
BogoMIPS : 665.19
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp mt
Options implemented : tlb 4kex 4k_cache prefetch mcheck ejtag llsc pindexed_dcache userlocal vint perf_cntr_intr_bit cdmm nan_legacy nan_2008 perf
shadow register sets : 1
kscratch registers : 0
package : 0
core : 1
VPE : 1
VCED exceptions : not available
VCEI exceptions : not available
cat iomem
00000000-0fffffff : System RAM
00001000-004f14a7 : Kernel code
004f14a8-005cafff : Kernel data
1e000000-1e0000ff : /palmbus@1E000000/sysc@0
1e000100-1e0001ff : /palmbus@1E000000/wdt@100
1e000600-1e0006ff : /palmbus@1E000000/gpio@600
1e000b00-1e000bff : /palmbus@1E000000/spi@b00
1e000c00-1e000cff : serial
1e005000-1e005fff : /palmbus@1E000000/memc@5000
1e100000-1e10ffff : /ethernet@1e100000
1e110000-1e117fff : /gsw@1e110000
1e130000-1e133fff : /sdhci@1E130000
1e1c0000-1e1c0fff : mac
1e1d0700-1e1d07ff : ippc
60000000-6fffffff : /pcie@1e140000
60000000-600fffff : PCI Bus 0000:01
60000000-600fffff : 0000:01:00.0
60000000-600fffff : 0000:01:00.0
60100000-601fffff : PCI Bus 0000:01
60100000-6010ffff : 0000:01:00.0
60200000-602fffff : PCI Bus 0000:02
60200000-602fffff : 0000:02:00.0
60200000-602fffff : 0000:02:00.0
60300000-6030ffff : 0000:00:00.0
60310000-6031ffff : 0000:00:01.0
cat mtd
dev: size erasesize name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 00fb0000 00010000 "firmware"
mtd4: 001e3424 00010000 "kernel"
mtd5: 00dccbdc 00010000 "rootfs"
mtd6: 00ad0000 00010000 "rootfs_data"
Thank you so much !!
Kindly regards