sudo apt-get install ssh vim samba tftp nfs git
git clone https://github.com/WRTnode/openwrt.git
./scripts/feeds update -a
./scripts/feeds install -a
sudo apt-get install libncurses5-dev ncurses-dev unzip zlib1g-dev gawk flex patch git-core g++ subversion libssl-dev
注意、git-core,subversion一定要安装、、有时候会出现Connection timed out while accessing http://git.openwrt.org/project/rpcd.git/info/refs,Failed to connect to git.openwrt.org port 80这个问题。。。
$make menuconfig
Target System ---> (X) Ralink RT288x/RT3xxx
Subtarget ---> (X) WRTnode 1 series
( ) WRTnode 2 series
如果你的设备是WRTnode1,Subtarget选择WRTnode 1 series
Subtarget ---> (X) WRTnode 1 series
如果你的设备是WRTnode2系列(包括WRTnode2R,WRTnode2P),Subtarget选择WRTnode 2 series
Subtarget ---> (X) WRTnode 2 series
WRTnode2Q的配置
$make menuconfig
Target System ---> (X) Atheros AR7xxx/AR9xxx
Subtarget ---> (X) WRTnode2Q board
建议选上luci:
LuCI ---> 1. Collections ---> <*> luci
其他的部分可以按照你自己的需求来选择配置,例如suond驱动,video驱动,U盘驱动等。
TF卡驱动
若需要用到tf卡,选择驱动:
make menuconfig
-*- kmod-mmc
Kernel modules ---> Other modules ---> -*- kmod-sdhci
<*> kmod-sdhci-mt7620
如果你手里的WRTnode2P底板版本号是V1.2,点击下载 http://d.wrtnode.com/WRTnode2P/sd.c,覆盖drivers/mmc/host/mtk-mmc/sd.c
如果你手里的WRTnode2R底板没有版本号,点击下载 http://d.wrtnode.com/WRTnode2R/sd.c,覆盖drivers/mmc/host/mtk-mmc/sd.c
后面的版本已修复了这些问题。
编译
$make V=s
经过一段漫长的编译之后生成的固件在 $(TOPDIR)/bin/ramips/openwrt-ramips-mt76xx-wrtnode-squashfs-sysupgrade.bin 。祝您的编译一路畅通!!!
WRTnode1出厂固件:
http://d.wrtnode.com/old-firmware/openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin
WRTnode2R出厂固件:
http://d.wrtnode.com/WRTnode2R/openwrt-ramips-mt7628-wrtnode2r-squashfs-sysupgrade.bin 对应toolchain:
http://pan.baidu.com/s/1dDgpUFn