Wavlink WN579X3 MDIO timeout

Hello,

i have flashed the WN579X3 with thhe snapshot but it have a Bootloop.



U-Boot 1.1.3 (Jan 13 2018 - 15:43:35)


Board: Ralink APSoC DRAM:  64 MB

relocate_code Pointer at: 83fa0000

enable ephy clock...done. rf reg 29 = 5

SSC disabled.

******************************

Software System Reset Occurred

******************************

spi_wait_nsec: 29 

spi device id: c8 40 17 c8 40 (4017c840)

find flash: GD25Q64B

raspi_read: from:30000 len:1000 

*** Warning - bad CRC, using default environment


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

Ralink UBoot Version: 5.0.0.0

-------------------------------------------- 

ASIC 7620_MP (Port5<->Phy)

DRAM component: 512 Mbits DDR, width 16

DRAM bus: 16 bit

Total memory: 64 MBytes

Flash component: SPI Flash

Date:Jan 13 2018  Time:15:43:35

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

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


 Read PhyID ID0:1C ID1:1C!!

RLT Phy1


 Read PhyID ID0:1C ID1:1C!!

RLT Phy2


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: Enter 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 ...

raspi_read: from:50000 len:40 

   Image Name:   MIPS OpenWrt Linux-4.14.241

   Image Type:   MIPS Linux Kernel Image (lzma compressed)

   Data Size:    1572392 Bytes =  1.5 MB

   Load Address: 80000000

   Entry Point:  80000000

raspi_read: from:50040 len:17fe28 

   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.241 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11364-ef56c85848)) #0 Thu Jul 29 19:50:28 2021
[    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 MT7620A ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is Wavlink WL-WN570HA1
[    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 0x80487740 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=00063020
[    0.000000] Readback ErrCtl register=00063020
[    0.000000] Memory: 58816K/65536K available (3937K kernel code, 183K rwdata, 504K rodata, 1188K init, 208K bss, 6720K 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.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015498] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087774] pid_max: default: 32768 minimum: 301
[    0.097176] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110205] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.129957] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.149439] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.161610] pinctrl core: initialized pinctrl subsystem
[    0.174454] NET: Registered protocol family 16
[    0.185674] rt2880-pinmux pinctrl: invalid group "wled_an" for function "gpio"
[    0.199961] rt2880-pinmux pinctrl: invalid group "p0led_an" for function "gpio"
[    0.214456] rt2880-pinmux pinctrl: invalid group "refclk" for function "gpio"
[    0.228651] rt2880-pinmux pinctrl: error claiming hogs: -22
[    0.239720] rt2880-pinmux pinctrl: could not claim hogs: -22
[    0.251058] rt2880-pinmux: probe of pinctrl failed with error -22
[    0.517732] PCI host bridge /pcie@10140000 ranges:
[    0.527139]  MEM 0x0000000020000000..0x000000002fffffff
[    0.537511]   IO 0x0000000010160000..0x000000001016ffff
[    0.564297] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.575566] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.586742] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.598715] PCI host bridge to bus 0000:00
[    0.606717] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.620437] pci_bus 0000:00: root bus resource [io  0x10160000-0x1016ffff]
[    0.634078] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.647569] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.664470] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.677528] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.691344] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.704845] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.719208] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.732719] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.747267] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.761611] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.771459] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.784975] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.804062] clocksource: Switched to clocksource MIPS
[    0.815236] NET: Registered protocol family 2
[    0.823938] IP idents hash table entries: 2048 (order: 2, 16384 bytes)
[    0.837601] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.851384] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.863975] TCP: Hash tables configured (established 1024 bind 1024)
[    0.876741] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.888268] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.900962] NET: Registered protocol family 1
[    0.912839] Crashlog allocated RAM at address 0x3f00000
[    0.924941] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.943497] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.955001] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.984672] io scheduler noop registered
[    0.992317] io scheduler deadline registered (default)
[    1.003503] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.018542] of_serial 10000c00.uartlite: could not find pctldev for node /pinctrl/uartlite, deferring probe
[    1.038928] spi-mt7621 10000b00.spi: could not find pctldev for node /pinctrl/spi_pins, deferring probe
[    1.058127] libphy: Fixed MDIO Bus: probed
[    2.784056] random: fast init done
[    6.074062] rt3050-esw 10110000.esw: ramips_eth: MDIO timeout
[   11.094058] rt3050-esw 10110000.esw: ramips_eth: MDIO timeout
[   16.114057] rt3050-esw 10110000.esw: ramips_eth: MDIO timeout

i can flash only the snapshot from today but it ended with the bootloop.

has everyone a original bin file from wavlink?

Got ARP REQUEST, return our IP

TFTP from server 192.168.10.100; our IP address is 192.168.10.101

Filename 'firmware.bin'.


 TIMEOUT_COUNT=10,Load address: 0x82000000

Loading: *Got ARP REPLY, set server/gtwy eth addr (20:1a:06:37:90:13)

Got it

T T T T T T Got ARP REQUEST, return our IP

T T T Got ARP REQUEST, return our IP

T 

Retry count exceeded; starting again

TFTP from server 192.168.10.100; our IP address is 192.168.10.101

Filename 'firmware.bin'.


 TIMEOUT_COUNT=10,Load address: 0x82000000

Loading: *Got ARP REPLY, set server/gtwy eth addr (20:1a:06:37:90:13)

Got it

T T T T T Got ARP REQUEST, return our IP

T #################################################################

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

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

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

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

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

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

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

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

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

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

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

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

done

Bytes transferred = 4194590 (40011e hex)

LoadAddr=82000000 NetBootFileXferSize= 0040011e

raspi_erase_write: offs:50000, count:40011e

raspi_erase: offs:50000 len:400000

................................................................

raspi_write: to:50000 len:400000 

................................................................

raspi_read: from:50000 len:10000 

and for the wiki the flash can run with hold reset power off with the switch an then turn on. with TFTP server on LAN

https://www.wavlink.com/en_us/firmware/details/e89bec8688.html?

no extension at download and when i flashed this it stay on openwrt

@thhestealth - I am trying to flash the snapshot and the reset/power-off/power-on is not working for me. Actually i might have bricked the device by updating a different firmware while trying to get telnet access back (which was disabled with the latest firmware from Wavlink).

How did you connect to UART serial ? I tried with 57600, 8, 1 stop, no parity and nothing showed up on the console. Any help is greatly appreciated.

Power Off hold the reset in the hole power on with tftp server running works great.

Serial works not for me.

My wn579x3 runs great with snapshot

my problem was my brain lol

i have flashed the bin from wrong folder.

Thanks! I finally got UART working (had forgotten to connect Tx to Rx and Rx to Tx !) and flashed the snapshot successfully. So far it is looking good.