< All posts

Dec. 21, 2020, 8:35 p.m.

Flashing OpenWRT to Newifi 3 D2 WiFi Router

Newifi3-d2 Firmware OpenWRT

Introduction

The D-Team Newifi D2 (Newifi3) is an afforable WiFi router ideal for OpenWRT, and mostly used for Bridging ISP CPE Routers.

0a.jpg

0b.jpg

Hardware Specifications:

Name Content
Model Newifi D2 (Newifi3)
Target ramips
Subtarget mt7621
CPU MediaTek MT7621AT
CPU Cores 2
CPU Freq 880 MHz
Flash 32 MB
RAM 512 MB
WAN 1 Gigabit
LAN 4 Gigabit
VLAN yes
WiFi Antennas 4
WiFi Hardware MediaTek MT7603EN, MediaTek MT7612EN
WiFi 2.4 GHz (b/g/n) and 5 GHz (802.11 a/n/ac)
USB port 1x USB 3.0
Serial yes
LED count 5
Power supply 12V dc 2.0 A
Buttons WPS and Reset
Bootloader Breed
Default IP address 192.168.99.1
Wiki https://wikidevi.wi-cat.ru/Lenovo_Newifi_3
Country of Manufacture PRC

Breed

  1. Turning on ssh access and accessing Breed
    Connect to the newifi via LAN or wi-fi, then on your browser visit this URL:
http://192.168.99.1/newifi/ifiwen_hss.html

It should display an output of Success, this means you can now login via SSH.

  1. Download the file newifi-d2-jail-break.ko on this repo, this is the binary bootloader module of breed, we now need to copy it to the router using scp.
    If you are not using non-UNIX operating system, such as Windows. You may need to install WinSCP or other similar software. For those who use GNU/Linux just execute the command below to copy the bootloader to the router:
scp ./newifi-d2-jail-break.ko root@192.168.99.1: / tmp

Note: The root password is also the web administration password that you set on your router. Usually you can set this to 12345678.

  1. SSH login to the router, then load the Breed Module to the Kernel the router will reboot after you execute the last command:
ssh root@192.168.99.1
cd /tmp
insmod ./newifi-d2-jail-break.ko 

Sample output:

$ scp ./newifi-d2-jail-break.ko  root@192.168.99.1:/tmp 

The authenticity of host '192.168.99.1 (192.168.99.1)' can't be established.
RSA key fingerprint is SHA256:XXX.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.99.1' (RSA) to the list of known hosts.

root@192.168.99.1's password: 
newifi-d2-jail-break.ko                    100%  189KB 974.5KB/s   00:00    

$ ssh root@192.168.99.1
root@192.168.99.1's password: 


BusyBox v1.24.1 (2017-12-14 13:33:05 CST) built-in shell (ash)


  _______________________________________________________________ 
 |    ____                 _                 ____               |
 |   |  _ \ __ _ _ __   __| | ___  _ __ __ _| __ )  _____  __   |
 |   | |_) / _` | '_ \ / _` |/ _ \| '__/ _` |  _ \ / _ \ \/ /   |
 |   |  __/ (_| | | | | (_| | (_) | | | (_| | |_) | (_) >  <    |
 |   |_|   \__,_|_| |_|\__,_|\___/|_|  \__,_|____/ \___/_/\_\   |
 |                                                              |
 |                  PandoraBox SDK Platform                     |
 |                  The Core of SmartRouter                     |
 |       Copyright 2013-2016 D-Team Technology Co.,Ltd.SZ       |
 |                http://www.pandorabox.org.cn                  |
 |______________________________________________________________|
  Base on OpenWrt BARRIER BREAKER (3.2.1.7400, 2017-11-28-git-3e46f52)
[root@newifi_R1BN:/root]#cd /tmp
[root@newifi_R1BN:/tmp]#insmod ./newifi-d2-jail-break.ko 
[root@newifi_R1BN:/tmp]#packet_write_wait: Connection to 192.168.99.1 port 22: Broken pipe

  1. The router should restart by itself, but for us to be able to access the Breed Web interface we need to power off the router by removing power. Press and hold the RESET button before plugging in the power. To determine whether it is successful, you will notice all LEDs to flash 4 times quickly. Visit the URL http://192.168.1.1 to access the Breed Web.

  2. Downloading and Flashing OpenWRT
    Download only OpenWRT release for this router at: https://openwrt.org/toh/hwdata/d-team/d-team_newifi_d2
    The current firmware available now can be downloaded here: http://downloads.openwrt.org/releases/19.07.5/targets/ramips/mt7621/openwrt-19.07.5-ramips-mt7621-d-team_newifi-d2-squashfs-sysupgrade.bin
    Save that file and now go to the Breed Web, choose the Second option from the left, then click the button between Bootloader and EEPROM to browse for the OpenWRT binary file. Confirm the upload and the router should restart by itself. Visit the http://192.168.1.1 to visit the OpenWRT LuCi page.

Images for reference:

1.png

2.png

3.png

4.png

5.png

Credits

https://github.com/sawaYch/newifi3-d2-firmware

License

License for the photos and this text, this does not include the OpenWRT binary and breed bootloader file.

Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)