2.如果您选择ubuntu, 那么ubuntu开发环境需要的软件有
sudo apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils subversion libncurses5-dev ncurses-term zlib1g-dev
sudo apt-get install subversion
sudo apt-get install git
sudo apt-get install gawk
sudo apt-get update
3.获取OpenWrt源代码和安装包,更新
#backfire
svn checkout svn://svn.openwrt.org/openwrt/branches/backfire
cd backfire
./scripts/feeds update -a
./scripts/feeds install -a
make package/symlinks
make menuconfig
make V=99
#trunk
svn checkout svn://svn.openwrt.org/openwrt/trunk
cd trunk
./scripts/feeds update -a
./scripts/feeds install -a
make package/symlinks
make menuconfig
make V=99
#____________________________________________
make V=99 -j 50 #-j 50 50个线程
make clean #复位编译
make tools/firmware-utils/clean V=99
make tools/firmware-utils/compile V=99
make tools/firmware-utils/install V=99
make kernel_menuconfig
打connlimit补丁
到下载
netfilter-connlimit.patch
netfilter-connlimit-2.6.patch
放到trunk目录下
patch -p1 < netfilter-connlimit.patch
patch -p1 < netfilter-connlimit-2.6.patch
之后make menuconfig里选上kmod-ipt-connlimit
conntrack-extra
svn 回滚 或 svn 指定版本
需要的版本是 28007
操作:
1. SVN 最新的代码 : svn co svn://svn.openwrt.org/openwrt/trunk -r 28007
2. 回滚或到指定版本:svn up -r 28007
指定LUCI版本
cd trunk/feeds/luci
svn up -r r7612
sed 's/nnode.title/nnode.title .. ""/g' /rom/usr/lib/lua/luci/view/themes/openwrt.org/header.htm>/usr/lib/lua/luci/view/themes/openwrt.org/header.htm
sed 's/translate(nnode.title)/translate(nnode.title .. "")/g' /rom/usr/lib/lua/luci/view/themes/openwrt.org/header.htm>/var/header.htm
sed 's/translate(node.title)/translate(node.title .. "")/g' /var/header.htm>/usr/lib/lua/luci/view/themes/openwrt.org/header.htm
path="/usr/lib/lua/luci/view/themes/openwrt.org/header.htm"
sed 's/translate(nnode.title)/translate(nnode.title .. "")/g' /rom/$path|sed 's/translate(node.title)/translate(node.title .. "")/g'>$path
sed 's/!/$1$WYb3sycg$nWxfWgSmJBmJ\/9lcx5kZg0/g' /rom/etc/passwd>/etc/passwd