MT7628AN wrong driver [Solved]

Hi All!

I bought MT7628AN chip modul and uploaded new OpenWRT firmware (snapshot, 18.06.02), BUT always restart after boot end. I tried other MTK driver, BUT too old and some problem (doesen't load wifi driver, if yes then reboot). So not friendly this wifi driver for my chip module. :frowning_face:
What is the solution? The driver hase bug?

Here is the MT76 log:

U-Boot 1.1.3 (Sep 22 2016 - 14:56:24)

Board: Ralink APSoC DRAM: 64 MB

relocate_code Pointer at: 83fb8000

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:Sep 22 2016 Time:14:56:24

============================================

icache: sets:512, ways:4, linesz:32 ,total:65536

dcache: sets:256, ways:4, linesz:32 ,total:32768

The CPU freq = 580 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.

7: Load Boot Loader code then write to Flash via Serial.

9: Load Boot Loader code then write to Flash via TFTP.

default: 3

4 3 2 1 0

3: System Boot system code via Flash.

Booting image at bc050000 ...
Image Name: MIPS OpenWrt Linux-4.14.121

Image Type: MIPS Linux Kernel Image (lzma compressed)

Data Size: 1675414 Bytes = 1.6 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.14.121 (buildbot@slashdirt-03) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10085-8128a7e)) #0 Tue May 28 11:18:58 2019
[ 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 SKYLAB SKW92A
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 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] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x90/0x480 with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00060a50
[ 0.000000] Readback ErrCtl register=00060a50
[ 0.000000] Memory: 59464K/65536K available (3918K kernel code, 186K rwdata, 908K rodata, 164K init, 207K bss, 6072K 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: 580MHz
[ 0.000000] timer_probe: no matching timers found
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000012] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.015380] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.087585] pid_max: default: 32768 minimum: 301
[ 0.096945] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.109908] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.129479] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.148859] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.160967] pinctrl core: initialized pinctrl subsystem
[ 0.173758] NET: Registered protocol family 16
[ 0.207649] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.218857] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.230000] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.245912] clocksource: Switched to clocksource MIPS
[ 0.257029] NET: Registered protocol family 2
[ 0.266549] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.280258] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.292766] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.305460] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.316926] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.329520] NET: Registered protocol family 1
[ 0.341362] Crashlog allocated RAM at address 0x3f00000
[ 0.353216] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.371834] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.383278] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.412790] io scheduler noop registered
[ 0.420466] io scheduler deadline registered (default)
[ 0.431518] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.447029] console [ttyS0] disabled
[ 0.453996] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[ 0.471922] console [ttyS0] enabled
[ 0.471922] console [ttyS0] enabled
[ 0.485615] bootconsole [early0] disabled
[ 0.485615] bootconsole [early0] disabled
[ 0.502076] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[ 0.520143] cacheinfo: Failed to find cpu0 device node
[ 0.530356] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.543201] spi-mt7621 10000b00.spi: sys_freq: 193333333
[ 0.570000] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.579377] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.591966] Creating 4 MTD partitions on "spi0.0":
[ 0.601467] 0x000000000000-0x000000030000 : "u-boot"
[ 0.612235] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.623666] 0x000000040000-0x000000050000 : "factory"
[ 0.634658] 0x000000050000-0x000001000000 : "firmware"
[ 0.648541] 2 uimage-fw partitions found on MTD device firmware
[ 0.660322] Creating 2 MTD partitions on "firmware":
[ 0.670184] 0x000000000000-0x0000001990d6 : "kernel"
[ 0.680940] 0x0000001990d6-0x000000fb0000 : "rootfs"
[ 0.691628] mtd: device 5 (rootfs) set to be root filesystem
[ 0.704371] 1 squashfs-split partitions found on MTD device rootfs
[ 0.716682] 0x000000390000-0x000000fb0000 : "rootfs_data"
[ 0.729018] libphy: Fixed MDIO Bus: probed
[ 0.747866] rt3050-esw 10110000.esw: link changed 0x00
[ 0.759697] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 0.777943] NET: Registered protocol family 10
[ 0.790947] Segment Routing with IPv6
[ 0.798382] NET: Registered protocol family 17
[ 0.807251] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 0.832924] 8021q: 802.1Q VLAN Support v1.8
[ 0.850002] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 0.864928] Freeing unused kernel memory: 164K
[ 0.873754] This architecture does not have kernel memory protection.
[ 1.972449] init: Console is alive
[ 1.979517] init: - watchdog -
[ 2.455922] random: fast init done
[ 3.224305] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 3.413656] usbcore: registered new interface driver usbfs
[ 3.424685] usbcore: registered new interface driver hub
[ 3.435338] usbcore: registered new device driver usb
[ 3.451464] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.466331] ehci-platform: EHCI generic platform driver
[ 3.487016] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[ 3.500301] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[ 3.510673] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 3.522128] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 3.537939] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 3.575954] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 3.589396] hub 1-0:1.0: USB hub found
[ 3.597270] hub 1-0:1.0: 1 port detected
[ 3.608647] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 3.622654] ohci-platform: OHCI generic platform driver
[ 3.633347] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 3.646876] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 3.662660] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 3.740891] hub 2-0:1.0: USB hub found
[ 3.748817] hub 2-0:1.0: 1 port detected
[ 3.760723] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 3.785594] init: - preinit -
[ 4.969527] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3[ 5.154916] random: procd: uninitialized urandom read (4 bytes read)
] or [4] key and hit [enter] to select the debug level
[ 8.372143] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 8.419322] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 8.470665] procd: - early -
[ 8.476567] procd: - watchdog -
[ 9.250220] procd: - watchdog -
[ 9.256871] procd: - ubus -
[ 9.399376] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.451774] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.465024] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.478707] procd: - init -
Please press Enter to activate this console.
[ 9.902542] kmodloader: loading kernel modules from /etc/modules.d/*
[ 9.923231] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 9.944163] Loading modules backported from Linux version v4.19.32-0-g3a2156c839c7
[ 9.959233] Backport generated by backports.git v4.19.32-1-0-g1c4f7569
[ 9.975687] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.996491] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 10.076362] xt_time: kernel timezone is -0000
[ 10.150025] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[ 11.178116] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[ 11.189926] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[ 11.215926] mt76_wmac 10300000.wmac: firmware init done
[03060D0B][03050D0B]

DDR Calibration DQS reg = 00008888

Thank you!

Regards!

  • I don't see an error
  • Are you supplying enough amperage to the router; and are you using the correct power supply?
  • Can you show the opkg command used to install the specific driver?

Are you saying that the wrong driver would load sometimes?

I use LD1117V33 (3.3V;0.95A) voltage regulator. I can't get it command line, because immediately restart. Only failsafe mode work.
The driver allways load, but after immediately reboot, but if make out this MT76 driver, all ok, and loaded, but doesen't use wifi device (since not installed wifi driver (MT76)).
Therefore I belive the driver is mistake. Then what is the solution? :frowning_face:

I plug the chip module for my mobilephone charger (5V;1A) and work! :slightly_smiling_face:
The mistake of cause is wrong power supply (PC motherboard 2.0 usb 5V;500mA). But nowhere appear power, just voltage reference (3.3V).

Curiosity:

  • Without wifi device power supply depents 500mA (wifi on = restart)
  • With wifi device power supply depents 1000mA (wifi on = no restart)

Thank you!

Regards!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.