Mediatek MT7628AN (+ MT7612E) eval board

Hi everyone,

I'm working on a chinese dual radio (2.4 and 5 Ghz) router that is based on the Mediatek MT7628AN

evaluation board. The 5Ghz chip is MT7612E.

I was able to install lede-17.01.4-ramips-mt7628 on it and everything works, except the 5Ghz radio (which

is not even detected by LEDE).

I'm sending below information about the hardware in hopes you guys have any suggestions to make the 5Ghz

radio work.

Thanks in advance.

Complete boot log:


U-Boot 1.1.3 (Feb 15 2017 - 09:49:45)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fc0000
******************************
Software System Reset Occurred
******************************
flash manufacture id: ef, device id 40 18
find flash: W25Q128BV
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Feb 15 2017  Time:09:49:45
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 575 MHZ ####
 estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   9: Load Boot Loader code then write to Flash via TFTP.
default: 3                                                                                                 

                                                                                0

3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   MIPS LEDE Linux-4.4.92
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1213637 Bytes =  1.2 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 4.4.92 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE 

GCC 5.4.0 r3101-bce140e) ) #0 Mon Oct 16 11:22:18 2017
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Mediatek MT7628AN evaluation board
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00015e90
[    0.000000] Readback ErrCtl register=00015e90
[    0.000000] Memory: 28476K/32768K available (3017K kernel code, 147K rwdata, 384K rodata, 156K init, 

200K bss, 4292K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 575MHz
[    0.000000] clocksource_probe: no matching clocksources found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6647862422 ns
[    0.000011] sched_clock: 32 bits at 287MHz, resolution 3ns, wraps every 7469508094ns
[    0.015358] Calibrating delay loop... 380.92 BogoMIPS (lpj=1904640)
[    0.080480] pid_max: default: 32768 minimum: 301
[    0.089741] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.102688] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.122482] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 

19112604462750000 ns
[    0.141865] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.153935] pinctrl core: initialized pinctrl subsystem
[    0.165507] NET: Registered protocol family 16
[    0.176987] rt2880-pinmux pinctrl: invalid group "jtag" for function "gpio"
[    0.192115] Can't analyze schedule() prologue at 8000acdc
[    0.215370] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.226463] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.237472] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.249845] clocksource: Switched to clocksource MIPS
[    0.261027] NET: Registered protocol family 2
[    0.270617] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.284325] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.296838] TCP: Hash tables configured (established 1024 bind 1024)
[    0.309485] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.320944] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.333564] NET: Registered protocol family 1
[    0.347228] Crashlog allocated RAM at address 0x1f00000
[    0.374359] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.385814] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, 

Inc.
[    0.407753] io scheduler noop registered
[    0.415424] io scheduler deadline registered (default)
[    0.426344] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.442450] console [ttyS0] disabled
[    0.449412] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.467342] console [ttyS0] enabled
[    0.467342] console [ttyS0] enabled
[    0.481033] bootconsole [early0] disabled
[    0.481033] bootconsole [early0] disabled
[    0.498304] spi-mt7621 10000b00.spi: sys_freq: 191666666
[    0.514739] m25p80 spi32766.0: using chunked io (size=32)
[    0.525503] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[    0.535541] 4 ofpart partitions found on MTD device spi32766.0
[    0.547091] Creating 4 MTD partitions on "spi32766.0":
[    0.557273] 0x000000000000-0x000000030000 : "u-boot"
[    0.568896] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.581411] 0x000000040000-0x000000050000 : "factory"
[    0.593362] 0x000000050000-0x000000800000 : "firmware"
[    0.630493] 2 uimage-fw partitions found on MTD device firmware
[    0.642256] 0x000000050000-0x000000178505 : "kernel"
[    0.653718] 0x000000178505-0x000000800000 : "rootfs"
[    0.665419] mtd: device 5 (rootfs) set to be root filesystem
[    0.676792] 1 squashfs-split partitions found on MTD device rootfs
[    0.689045] 0x0000003a0000-0x000000800000 : "rootfs_data"
[    0.711209] rt3050-esw 10110000.esw: link changed 0x00
[    0.722957] mtk_soc_eth 10100000.ethernet: generated random MAC address 7a:bc:c4:6d:9b:93
[    0.740077] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.756965] mt7621_wdt 10000120.watchdog: Initialized
[    0.768414] NET: Registered protocol family 10
[    0.780713] NET: Registered protocol family 17
[    0.789586] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts 

to load br_netfilter if you need this.
[    0.814603] 8021q: 802.1Q VLAN Support v1.8
[    0.835512] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.850417] Freeing unused kernel memory: 156K
[    2.459207] init: Console is alive
[    2.466304] init: - watchdog -
[    3.376924] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.474503] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.499317] init: - preinit -
[    4.558682] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    7.899821] jffs2: notice: (324) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of 

xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    7.932538] mount_root: switching to jffs2 overlay
[    7.951507] urandom-seed: Seeding with /etc/urandom.seed
[    8.095483] procd: - early -
[    8.101374] procd: - watchdog -
[    8.334560] rt3050-esw 10110000.esw: link changed 0x04
[    8.755122] procd: - watchdog -
[    8.761666] procd: - ubus -
[    8.930231] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    8.955219] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    8.973579] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    8.991474] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    9.010254] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    9.028122] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    9.046087] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    9.065071] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[    9.083286] procd: - init -
Please press Enter to activate this console.
[    9.518563] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.535446] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.556540] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[    9.572465] Backport generated by backports.git backports-20160324-13-g24da7d3c
[    9.632430] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[    9.648440] mt76_wmac 10300000.wmac: Firmware Version: _e2_mp
[    9.659896] mt76_wmac 10300000.wmac: Build Time: 20150211175503
[    9.689842] firmware init done
[    9.887792] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.914658] nf_conntrack version 0.5.0 (447 buckets, 1788 max)
[   10.053717] xt_time: kernel timezone is -0000
[   10.074490] PPP generic driver version 2.4.2
[   10.085760] NET: Registered protocol family 24
[   10.100276] kmodloader: done loading kernel modules from /etc/modules.d/*
[   11.152039] random: jshn: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[   11.260012] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[   12.959074] rt3050-esw 10110000.esw: link changed 0x00
[   16.912465] rt3050-esw 10110000.esw: link changed 0x04
[   17.363362] device eth0 entered promiscuous mode
[   17.374352] device eth0.1 entered promiscuous mode
[   17.395423] br-lan: port 1(eth0.1) entered forwarding state
[   17.406570] br-lan: port 1(eth0.1) entered forwarding state
[   19.399852] br-lan: port 1(eth0.1) entered forwarding state


root@LEDE:~# cat /proc/cpuinfo
system type             : MediaTek MT7628AN ver:1 eco:2
machine                 : Mediatek MT7628AN evaluation board
processor               : 0
cpu model               : MIPS 24KEc V5.5
BogoMIPS                : 380.92
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
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available


root@LEDE:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 007b0000 00010000 "firmware"
mtd4: 00128505 00010000 "kernel"
mtd5: 00687afb 00010000 "rootfs"
mtd6: 00460000 00010000 "rootfs_data"


root@LEDE:~# lsmod
cfg80211              223712  4 mt76x2e,mt7603e,mt76,mac80211
compat                 10192  2 mac80211,cfg80211
crc_ccitt                992  1 ppp_async
gpio_button_hotplug     6240  0
ip_tables               9232  3 iptable_nat,iptable_mangle,iptable_filter
ip6_tables              8992  2 ip6table_mangle,ip6table_filter
ip6t_REJECT              928  2
ip6table_filter          608  1
ip6table_mangle         1056  1
ipt_MASQUERADE           640  1
ipt_REJECT               896  2
iptable_filter           672  1
iptable_mangle           864  1
iptable_nat              736  1
leds_gpio               2656  0
mac80211              393088  3 mt76x2e,mt7603e,mt76
mt76                   15424  2 mt76x2e,mt7603e
mt7603e                27744  0
mt76x2e                38464  0
nf_conntrack           51264  9 

nf_nat_ipv4,nf_conntrack_ipv6,nf_conntrack_ipv4,xt_state,xt_conntrack,xt_CT,nf_nat_masquerade_ipv4,nf_nat,

nf_conntrack_rtcache
nf_conntrack_ipv4       5344 10
nf_conntrack_ipv6       5888  5
nf_conntrack_rtcache    2464  0
nf_defrag_ipv4           896  1 nf_conntrack_ipv4
nf_defrag_ipv6          9040  1 nf_conntrack_ipv6
nf_log_common           2432  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4             3264  0
nf_log_ipv6             3424  0
nf_nat                  9760  4 nf_nat_ipv4,xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4
nf_nat_ipv4             4208  1 iptable_nat
nf_nat_masquerade_ipv4    1264  1 ipt_MASQUERADE
nf_nat_redirect          896  1 xt_REDIRECT
nf_reject_ipv4          2080  1 ipt_REJECT
nf_reject_ipv6          2432  1 ip6t_REJECT
ppp_async               6336  0
ppp_generic            19984  3 pppoe,ppp_async,pppox
pppoe                   7936  0
pppox                   1200  1 pppoe
slhc                    4256  1 ppp_generic
x_tables               10576 23 

ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntr

ack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_CT,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6t

able_mangle,ip6table_filter,ip6_tables
xt_CT                   2464  0
xt_LOG                   736  0
xt_REDIRECT              640  0
xt_TCPMSS               2752  2
xt_comment               480125
xt_conntrack            2176 14
xt_limit                 992 20
xt_mac                   608  0
xt_mark                  640  0
xt_multiport            1216  0
xt_nat                  1120  0
xt_state                 672  0
xt_tcpudp               1760 10
xt_time                 1600  0



root@LEDE:~# cat /etc/config/wireless (only 2.4 Ghz detected)

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '11'
        option hwmode '11g'
        option path 'platform/10300000.wmac'
        option htmode 'HT20'
        option disabled '1'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'LEDE'
        option encryption 'none'

you're missing pci driver, at least according to dmesg output