WRTnode2P starting guide

来自WRTnode Wiki
跳转至: 导航搜索
本页是页面WRTnode2P开箱指南翻译版本,翻译工作已完成100%。

其他语言:

First tip:
WRTnode2P default WiFi ssid: WRTnode2P_xxxx
Defual password for the Wi-Fi ssid: 12345678

What's in the WRTnode2P retail package

WRTnode2P retail package including the WRTnode2P and it's base board.
WRTnode2P.jpg
There's two FPC antenna, in order to better packaging, when you get they are looking like this
2PPACK.jpg

Antenna can rotate 360 degrees, the first thing we recommend to do is to rotate the antenna like the following figure, so not to block the antennas with board, also two antennas do not overlap, thus ensuring that wifi signal is strongest. As shown below:
2PSHLD-1.jpg

Light up WRTnode2P

  • The board is powered by micro-USB connector, find an ordinary micro-USB power cable( which is not included in the retail package)
  • Plug into the baseboard's micro-USB connector, and the other side you could use any USB port which could offer more than 500mA and 5V power, such as a computer or a laptop's USB interface or a mobile phone charger or something like this.
  • The blue LED lights on and the OpenWrt starts to run in the board.
  • 20 seconds later, you will find a Wi-Fi with the SSID like WRTnode2P_xxxx( xxxx means the last four byte of the MAC address of your WRTnode2P), you could connecting the Wi-Fi with computer or phone with the password 12345678.

Play with WRTnode2P

Login to WRTnode2P using telnet or ssh

Use any PC with Windows, Linux or MacOS operating system, install PuTTY on Windows PC, use any Linux / MacOS terminal software on Linux / MacOS.

  • First ping the WRTnode to see if connection is available. The default IP of WRTnode2P is set to 192.168.8.1, but WRTnode2P is able to resolve openwrt.lan to 192.168.8.1 as well:
ping openwrt.lan
  • Connect to WRTnode2P using telnet or ssh

If you connect first time to WRTnode2P or you didn't set password for root user of OpenWrt, use telnet to connect:

telnet 192.168.8.1 

or

telnet openwrt.lan

If you a password for root user was set, use SSH to connect:

ssh root@192.168.8.1

or

ssh root@openwrt.lan

Input your root password and a screen should appear like, ok, that's it. you could play your Linux CLI interacting here now:
Busybox.jpg

No internet no happiness

Now we will connect WRTnode2P to the internet. of course, you must have a 2.4G Wi-Fi ap or router with has connected on the internet.

root@OpenWrt:~# aps

'aps' is the command of WRTnode2P to scan the Wi-Fi available, the output of 'aps' looks like this:

WRTnode AP scaner.
Begin scaning APs, pls wait...
Finished.
APs available are...
ra0       get_site_survey:
Ch  SSID                             BSSID               Security               Siganl(%)W-Mode  ExtCH  NT WPS DPID
1   Tenda                            xx:xx:xx:xx:xx:xx   NONE                   70       11b/g/n ABOVE  In YES
1   hshn                             xx:xx:xx:xx:xx:xx   WPA2PSK/AES            96       11b/g/n NONE   In YES
6   TP-LINK                          xx:xx:xx:xx:xx:xx   NONE                   55       11b/g   NONE   In  NO
6   BY01                             xx:xx:xx:xx:xx:xx   NONE                   100      11b/g/n NONE   In YES
6   Tenda_xxxxxx                     xx:xx:xx:xx:xx:xx   WPAPSK/AES             50       11b/g/n ABOVE  In  NO
11  CU_wpFS                          xx:xx:xx:xx:xx:xx   WPAPSK/TKIPAES         70       11b/g/n NONE   In YES

ok,we will connect one:

root@OpenWrt:~# setwifi SSID_you_connetctin the_password

be careful, there's a space between the SSID and the password
Such as:

root@OpenWrt:~# setwifi TP_linkAB33CD my_password

Press Enter and wait 5 seconds, or sometimes we need to reconnect our computer to the WRTnode2P's SSID, so let's see if we have got the IP address from uppter router:

root@OpenWrt:~# ia

we'll see

root@OpenWrt:~# ia
apcli0    Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:192.168.1.103  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: xxxx::xxxx:xxxx:xxxx:xxxx/xx Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

sometimes getting the IP address will lasts more than 5 seconds, so be patient. Once we got the IP address, let's see if the board have access the internet:

root@OpenWrt:~# ping baidu.com
PING baidu.com (220.181.111.85): 56 data bytes
64 bytes from 220.181.111.85: seq=0 ttl=54 time=6.071 ms

See, thus we connected our computer to the WRTnode2P, and we connected the WRTnode2P to the internet.

WRTnode2P software repository

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ramips/mt7628/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ramips/mt7628/packages/telephony/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_telephony.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ramips/mt7628/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_packages.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ramips/mt7628/packages/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_routing.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ramips/mt7628/packages/luci/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_luci.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ramips/mt7628/packages/management/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_management.

root@OpenWrt:~# opkg install xxxx

Restore Factory Settings

Then you could do whatever you want in WRTnode2P via ssh, just like an ordinary Linux PC, and when you done something you dislike and want to restore the board as you first getting it, here's how:

root@OpenWrt:~# firstboot
This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
/dev/mtdblock5 is mounted as /overlay, only erasing files
root@OpenWrt:~# reboot

Update firmware to support micor-SD card in baseboard

As the micor-SD card driver is not included in the factory firmware, if you are using a micor-SD card in baseboard, please update:
Here's a easy method:

  • download the new firmware in your computer: http://d.wrtnode.com/WRTnode2P/openwrt-ramips-mt7628-wrtnode2p-squashfs-sysupgrade.bin
  • Connecting your computer to WRTnode2P via Wi-Fi (SSID: WRTnode2P_xxxx password: 12345678)
  • In browser go: 192.168.8.1, the page will jump to http://192.168.8.1/cgi-bin/luci automatically,the login password for root is empty by default, or what you have changed for the root account in the Linux CLI of WRTnode2P.
  • Go: System->Backup/Flash Firmware finding "Flash new firmware image", and choose the firmware downloaded before, click the "Flash image" button, when uploading finished, click "proceed" to refresh the system.

2Pflashimage.png

OpenWrt SDK

https://github.com/WRTnode/openwrt
This SDK is an universal one for all WRTnode hardwares, and for WRTnode2P, choosing [ WRTnode 2 series ] in [ Subtarget ] when make menuconfig.

more resources

WRTnode2P Specifications
WRTnode2P pinmap
WRTnode2P baseboard pinmap
Apply WRTnode2P in mass manufacturing products

keep on rock, man!