[WITI] Compile & Build OpenWRT 17.01.4

Quote

Because of the Great Wall Firewall, the openwrt source code from github/openwrt or git.openwrt.org will not compile at all in china. We forked the source to github.com/witiboard and made some modification for WiTi board. Here are some instruction to build firmware for WiTi.

Get the source

git clone https://github.com/witiboard/openwrt.git
git checkout -b witi-17.01 origin/witi-17.01

Install feeds

We need to install luci.git, packages.git, routing.git and telephoney.git on our
openwrt build directory.
./scripts/feeds update -y

Download packages

We suggest to install the following packages

./scripts/feeds install luci-base luci-i18n-base-zh-cn luci-i18n-base-en
./scripts/feeds install luci-mod-freifunk luci-mod-freifunk-community
./scripts/feeds install luci-theme-freifunk-generic
./scripts/feeds install luci-i18n-freifunk-zh-cn luci-i18n-freifunk-en
./scripts/feeds install ntfsprogs_ntfs-3g dosfstools btrfs-progs
./scripts/feeds install sysstat
./scripts/feeds install luci-app-commands luci-app-firewall luci-app-hd-idle luci-app-minidlna
./scripts/feeds install luci-app-openvpn luci-app-samba luci-app-ushare luci-app-upnp
./scripts/feeds install luci-i18n-vnstat-zh-cn luci-i18n-ushare-zh-cn
./scripts/feeds install luci-i18n-upnp-zh-cn luci-i18n-statistics-zh-cn
./scripts/feeds install luci-i18n-samba-zh-cn luci-i18n-openvpn-zh-cn
./scripts/feeds install luci-i18n-minidlna-zh-cn luci-i18n-hd-idle-zh-cn
./scripts/feeds install luci-i18n-freifunk-zh-cn luci-i18n-firewall-zh-cn
./scripts/feeds install luci-i18n-commands-zh-cn

cp witi_default_config .config
make V=s download -j8

Compile

make V=s FORCE_UNSAFE_CONFIGURE=1 -j8 (When using root)
make V=s -j8 (When not using root)

 

Quote

Finally result

tree bin/targets/ramips/
 bin/targets/ramips/
 └── mt7621
 ├── config.seed
 ├── lede-17.01.4-ramips-mt7621-device-witi.manifest
 ├── lede-17.01.4-ramips-mt7621-witi-initramfs-kernel.bin
 ├── lede-17.01.4-ramips-mt7621-witi-squashfs-sysupgrade.bin
 ├── packages
 │   ├── base-files_173.1-r3560-79f57e422d_mipsel_24kc.ipk
 │   ├── fstools_2017-06-30-bdcb075f-1_mipsel_24kc.ipk
 │   ├── libiwinfo_2016-09-21-fd9e17be-1_mipsel_24kc.ipk
 │   ├── libpthread_1.1.16-1_mipsel_24kc.ipk
 │   ├── librt_1.1.16-1_mipsel_24kc.ipk
 │   ├── ... ...
 │   ├── Packages
 │   ├── Packages.gz
 │   ├── Packages.manifest
 │   ├── Packages.sig
 │   ├── procd_2017-08-08-66be6a23-1_mipsel_24kc.ipk
 │   ├── procd-nand_2017-08-08-66be6a23-1_mipsel_24kc.ipk
 │   └── ubi-utils_1.5.2-1_mipsel_24kc.ipk
 └── sha256sums
Quote

The new firmware:

lede-17.01.4-ramips-mt7621-witi-squashfs-sysupgrade.bin

We can upgrade it to WiTi by tftp or luci

 

Quote

how to use the WAN2 port??  openwrt firmware is not support WAN2 port.

Quote

WAN2 only work with MTK OpenWRT