Installing on Wavlink WN-529R2P

Hello,

I've been trying to install openWRT to the wavlink WN-529R2P router. From what I've seen, it utilizes the MediaTek MT7628NN chip. In the TOH there is an image for another WAVLINK router that utilizes a similar chip (MT7628AN) when trying to use that image the loading fails. The same happens when I tried to utilize a TP-Link image that utilizes the MT7628NN chip.

I hooked up an FTDI bridge to see the log, and it appears that the router already has a WAVLINK openwrt version, however, this version is extremely limited. Is there a way to change the firmware?

ok so to start

  1. open the case and record all chip models

  2. Identify the UART pins (you did already) :+1:

  3. study a similar commit to make a similar DTS and profile

  4. build an initramfs-kernel.bin and load that over TFTP to boot (NOT flash)

here is a commit for a mostly similar board for example

https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=dbaf0d20bb6afec4a592456af6b1238b46fa1acb

generic building guide

to build initramfs-kernel.bin in ramips

in make menuconfig
after selecting Target Profile
select Target Images
enable ramdisk

edit: before going through the build process see if there is a command or key for loading TFTP in the bootloader

you can paste your serial logs here

1 Like

The chip is a: MediaTek MT7628NN.
SDRAM is Zentel A3s56D40GTP (256M)
Couldn't find the flash chip on the internet (25Q32CS1G3).

I tried to load the initramfs.bin that you gave just in case, using tftp and got this on the port

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 BARRIER BREAKER (14.07, unknown)
 -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -----------------------------------------------------
[root@OpenWrt]main[114]:reset start
wps_init[15]:wps init
resetd_init[29]:flag:38
main[137]:reset_time: 40
br-lan: port 2(ra0) entered forwarding state
-------->fdb_create, 470!!!
nl socket is null !
procd: Instance log::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
-------->fdb_create, 470!!!
nl socket is null !
host_ugrp_update[1344]port id err 8, need fix


U-Boot 1.1.3 (May 30 2016 - 17:36:32)

Board: Ralink APSoC DRAM:  32 MB
relocate_code Pointer at: 81fb8000
flash manufacture id: c8, device id 40 16
find flash: GD25Q32B
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 256 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 32 MBytes
Flash component: SPI Flash
Date:May 30 2016  Time:17:36:32
============================================
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 =32 Mbytes
RESET MT7628 PHY!!!!!!RST has be pushed!RST has be pushed!Auto Update: tftp 192.168.9.2 update.bin!


 netboot_common, argc= 3

 NetTxPacket = 0x81FE6380

 KSEG1ADDR(NetTxPacket) = 0xA1FE6380

 NetLoop,call eth_halt !

 NetLoop,call eth_init !
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!!
TFTP from server 192.168.9.2; our IP address is 192.168.9.233
Filename 'update.bin'.

 TIMEOUT_COUNT=10,Load address: 0x80100000
Loading: Got ARP REPLY, set server/gtwy eth addr (e0:d5:5e:0c:d6:76)
Got it
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #######################################################
done
Bytes transferred = 4606571 (464a6b hex)
NetBootFileXferSize= 00464a6b


U-Boot 1.1.3 (May 30 2016 - 17:36:32)

Board: Ralink APSoC DRAM:  32 MB
relocate_code Pointer at: 81fb8000
******************************
Software System Reset Occurred
******************************
flash manufacture id: c8, device id 40 16
find flash: GD25Q32B
*** Warning - bad CRC, using default environment

So weird update, I have started to create the dtb profile for this CPU, however there is no /sys/class/gpio folder to check them.

you should not have used the reset button...

you try to get into serial console and use the command for tftp