On WiTi Board, there are two RGMII interfaces, and one connect to internal 5 ports GSW, another one connect to external Gigabit PHY IP1001. So, we can set to 2 WAN + 4 LAN port , or 1 WAN + 5 LAN port. Of course, we also can set to other situation. For example, all ports are LAN, like a switch deivce.
- One WiTi Board
- Ethernet Cable
- 12V@3A Power Supply
- PC (Ubuntu 14.04)
Get source code
You can download or clone our official source code from our repositories on github follow:
$ mkdir witi
$ cd witi
$ git clone -o witi https://github.com/mqmaker/witi-openwrt.git
Configure and Compile
By default, we just have 1 WAN + 5 LAN ports. To set multiwan function, we need multiwan & luci-app-multiwan packages.The benefit of luci-app-multiwan is that we can set multiwan function by web. And we also can set load balancing of multiwan by web.
$ cd witi-openwrt
$ make menuconfig
At first, we need to select multiwan package:
Select luci-app-multiwan & luci-app-mwan3
Second, select multiwan & mwan3 of LUCI.
Exit menuconfig dialog and save it.
Now, we can compile source code to pack image.
$ make -j8 V=s
Wait a cup of coffe time, and we get some binary files, such as:
$ cd bin/ramips
To to be continued..... ^_^