编译advancedtomato固件笔记
2016-10-11 作者:哎丫丫 来源:哎丫丫电脑
环境ubuntu16.04 64位
首先克隆源码
cd ~
git clone https://github.com/Jackysi/advancedtomato.git
安装编译支持包:
sudo apt-get install build-essential autoconf m4 bison flex g++ libtool sqlite gcc g++ binutils patch bzip2 make gettext unzip zlib1g-dev libc6 gperf sudo automake groff lib32stdc++6 libncurses5 libncurses5-dev gawk gitk zlib1g-dev autopoint shtool autogen mtd-utils gcc-multilib gconf-editor lib32z1-dev pkg-config libssl-dev automake1.11 libxml2-dev intltool libglib2.0-dev libstdc++5 texinfo dos2unix xsltproc libnfnetlink0 libcurl4-openssl-dev libxml2-dev libgtk2.0-dev libnotify-dev libevent-dev mc git texlive nettle-dev
Packages to remove if installed (breaks PHP compilation)
sudo apt-get remove libicu-dev
Install i386 elf1 packages (x86 bit)
sudo dpkg --add-architecture i386 sudo apt-get install libelf1 libelf-dev:i386 libelf1:i386
Install required automake packages (version 1.13.2 and 1.14.1)
wget https://advancedtomato.com/data/tools/automake_1.13.2-1ubuntu1_all.deb wget https://advancedtomato.com/data/tools/automake_1.14.1-2ubuntu1_all.deb sudo dpkg -i automake_1.13.2-1ubuntu1_all.deb sudo dpkg -i automake_1.14.1-2ubuntu1_all.deb
If bison version is above 3.0 downgrade to 2.7.1
sudo apt-get remove bison libbison-dev wget https://advancedtomato.com/data/tools/libbison-dev_2.7.1.dfsg-1_amd64.deb wget https://advancedtomato.com/data/tools/bison_2.7.1.dfsg-1_amd64.deb sudo dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb sudo dpkg -i bison_2.7.1.dfsg-1_amd64.deb
环境安装完毕后。
切换到源码目录,设置交叉编译环境路径。。
[email protected]:~/advancedtomato/release/src-rt$
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/bin
PATH=$PATH:/home/hcg/advancedtomato/tools/brcm/hndtools-mipsel-linux/bin
PATH=$PATH:/home/hcg/advancedtomato/tools/brcm/hndtools-mipsel-uclibc/bin
export PATH
然后就可以编译固件咯
make
当然 也可以用make help找到你需要编译的固件在使用例如:
make r2j
电脑维护,系统安装,软 、硬件维修,电脑配件,零售业务,网站建设,路由器安装设置、 服务器维护,电脑、网络维护,智能手机刷机,安装WIFI 调试!郴州网站建设 小程序搭建 郴州电脑维修
咨询电话:18175576644 ![]() 扫描二维码。关注公众号,小程序 享受星级服务 |
![]() 手机点击二维码关注 |
![]() 手机点击打开小程序 |
上一篇: 智能路由器chroot跑debian8玩
下一篇: 二级padavan路由访问SMB服务教程