Skip to content

Instantly share code, notes, and snippets.

@nickleefly
Last active May 28, 2022 12:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save nickleefly/943004539664fa491b0e62aed478e0e0 to your computer and use it in GitHub Desktop.
Save nickleefly/943004539664fa491b0e62aed478e0e0 to your computer and use it in GitHub Desktop.
openwrt on newwifi Y1

Resources:

newwifi is MTK board(MediaTek MT7620A), find the builds for ramips

How to install

Pre-request

Step 1:

  • download openwrt firmware from here
  • Restore the route to factory default unless it's a brand-new opened box.
  • 路由设置-> 高级功能 -> 局域网设置 -> 网关ip地址(set router ip from 192.168.99.1 to 192.168.1.1)
  • Disconnect the power cable.
  • Connect the route to a laptop/desktop with a ethernet cable on LAN port.
  • Set IP address on the laptop /desktop to 192.168.1.11 with Netmask as 255.255.255.0, Gateway as 192.168.1.1
  • Insert the power cable and QUICKLY press the RESET button in rear panel.
  • If previous step was done properly, two LEDs on the routing will be blinking. That's a sign for recovery mode.
  • Type 192.168.1.1 in the Web browser address bar.
  • On recovery Web page, select the downloaded openwrt bin file.
  • Click flash and wait.
  • now you can change router ip to 192.168.2.1 to differentiate from your moderm(optional)
  • Meanwhile, you may want to restore the IP settings on laptop/desktop to Automatic(DHCP)
  • connect your wifi to your internet
  • login to ssh root@192.168.1.1 or ssh root@192.168.2.1
  • update the router with opkg update just be patient here, it takes a while
  • you can change your openwrt router to chinese version now in admin/system/system

Step 2:

  • scp *.ipk root@192.168.1.1:/tmp/ or scp *.ipk root@192.168.2.1:/tmp/
  • ssh root@192.168.1.1 or ssh root@192.168.2.1
  • cd /tmp then opkg install these ipks

also the following packages

opkg update
opkg install samba36-server
opkg install luci-app-samba
opkg install libmount
opkg install iptables-mod-tproxy
opkg install ddns-scripts
opkg install luci-app-ddns
opkg install luci-i18n-base-zh-cn
opkg install kmod-mt76

Step 3:

  • go to your router admin page, Use transparent proxy to config your shadowsocks server ip and port number
  • go to services/shadowsocks/access-control save and apply
  • go to service/chinadns save and apply
  • go to network/dhcp and dns, change local server to 127.0.0.1#5353
  • try google.com now

step 4:

Check ip address

uboot

不死uboot(breed)使用方法: PC用网线连路由器LAN,设置为自动获取IP。 路由器断电,按住reset 加电(不松开reset)。 保持按住reset 5秒左右,路由器灯闪。 PC网卡获取到192.168.1.x的地址 (如未获取到手工设置) 浏览器访问 192.168.1.1 接着你就会看到一个uboot控制台的界面。 以后就想刷什么固件刷什么固件了

upload file from different port other than default 22

scp -P port-number file root@192.168.1.1:/tmp/

AP

  • ssid name doesn't matter
  • LAN static ip, disable dhcp
  • or LAN static ip 不同网段 enable dhcp

hiwifi

https://www.hiwifi.com/rom

http://rssn.cn/roms/

https://github.com/rssnsj/openwrt-hc5x61

http://breed.hackpascal.net/

http://www.binss.me/blog/install-openwrt-on-hiwifi-router/

https://wiki.openwrt.org/toh/hwdata/netgear/netgear_wndr4300_v1 https://wiki.openwrt.org/toh/hiwifi/gee/hiwifi_gee_hc5661#installation

ChinaDNS

223.5.5.5,223.6.6.6,208.67.220.220:5353,8.8.4.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment