Hardware Mod and Burning Flash - matianfu/wrtnode-doc GitHub Wiki

UART0 Console

Solder Pin Header on JP6

Reset

Populate R33 with jumer resistor or short it with tin ball directly.

Solder Pin Header on JP1. 2x2 is enough, on pin 9, 10, 11, 12. Pin 11 is MT7620N reset and Pin 10 is Ground. Using Dupont cable short Pin 10 and 11 for holding reset signal low, preventing MT7620N from booting.

Flash Programming

If you have no need to modify Firmware through external tool or chip, you don't need these tools and procedures. Stay happy with OpenWRT system upgrade framework. It's safe and much easier.

DreamPro 3 (Flash Programming Tool)

https://item.taobao.com/item.htm?id=35786849222

Fixure (for clamping flash chip soldered on board)

https://item.taobao.com/item.htm?id=19345119855

DreamPro 3 Software Download

Official web page: http://www.dream-e.com/Pshow.asp?Pid=43

Software download link for DreamPro 3 is listed at the page bottom.

http://pan.baidu.com/s/1hqzVJjI

The software requires windows operating system. I use a 32-bit Windows 7 Virtualbox guest on Ubuntu host, it works flawlessly.

Flashing setup

There are two problems for flashing.

First, Dream Pro 3 does NOT provide enough power to flash the chip on board. If you connect Dreaming Pro 3 to flash chip, leaving WRTNode unpowered. You can read the chip successfully, but erasing, flashing, and verification will fail.

Second, if the wrtnode is powered through USB when flashing, wrtnode will boot up and start running. The Dream Pro 3 won't work. Also, both wrtnode and DP3 are in danger of damage, since some SPI output signals are connected directly.

The solution to the second problem is holding MT7620N RESET signal low to prevent the chip from running. That is why we populate or short R33.

Keep in mind:

Keep JP1 pin 10 and 11 short before connecting DP3 to flash chip.

Disconnect DP3 before unshort JP1 pin 10 and 11 when you want to run the newly flashed firmware.

The full steps are described as below:

  1. Connect clamper cable to DP3, making sure the brown line located as pin 1
  2. Plug DP3 to computer
  3. Short JP1 pin 10 and 11 on wrtnode
  4. Connect microUSB cable to power up wrtnode
  5. Optionally, connect USB-Serial cable to wrtnode and computer
  6. Clamp the clamper on flash chip, making sure the brown line side with the pin 1 (dot mark)

Then, in DP3 software

  • Detect the chip (F5, 芯片检测), you should get the following information:

Type: 25 SPI Flash Manufacturer: MXIC (KH) Device: MX25L12805D

The real chip on wrtnode is MX25L12835F. You can select the right part number in the drop-down list located in the upper-left corner in the software window. But there is no difference whether you do it or not. They are fully compatible for DP3.

  • Read the chip (F7, 读出芯片)

You can save a copy of firmware after read it out the chip. The command is listed in file menu (文件).

  • Erase the chip (F4, 擦除芯片)

It takes around 50 seconds.

  • Load firmware file

Click the 浏览 buton located at the bottom-right corner in the interface. Select the proper firmware file.

  • Flash the chip (F6, 手动烧录)

It takes around 1 minute and 10 seconds.

  • Verification (F8, 数据校验)

DP3 software will read back all data and compare them with the firmware file. The dialog will tell you if it's successful.

  • Remove the clamp on chip. Disconnect the Dupont cable that shorts JP1 pin 10 and 11.

If the USB-Serial has been connected, you should see the output in minicom window on your host pc, indicating the wrtnode is booting up from the new firmware.