第一步–启用linux
https://jingyan.baidu.com/article/aa6a2c14e347010d4c19c48f.html
第二步—运行环境
https://www.jianshu.com/p/cf42df18af5c https://blog.csdn.net/lhorse003/article/details/77152596 https://www.right.com.cn/forum/thread-339985-1-1.html?tdsourcetag=s_pcqq_aiomsg
第三步—汉化
https://github.com/gorden5566/padavan
番外步—安装(mips-linux-gcc)
https://blog.csdn.net/xingjiarong/article/details/49862159 注意番外步中会提示 gcc-4.4-mips-linux-gnu,g+±4.4-mips-linux-gnu找不到,去掉里面的版本改为gcc-mips-linux-gnu,g+±mips-linux-gnu忽略版本即可
整理后步骤
sudo apt-get update sudo apt-get install git sudo apt-get install autoconf sudo apt-get install automake sudo apt-get install autopoint sudo apt-get install bison sudo apt-get install build-essential sudo apt-get install flex sudo apt-get install gawk sudo apt-get install gettext sudo apt-get install gperf sudo apt-get install libtool sudo apt-get install pkg-config sudo apt-get install zlib1g-dev sudo apt-get install libgmp3-dev sudo apt-get install libmpc-dev sudo apt-get install libmpfr-dev sudo apt-get install texinfo sudo apt-get install python-docutils sudo apt-get install build-essential sudo apt-get install ettext sudo apt-get mc ##安装交叉编译环境参考 https://blog.csdn.net/u012746763/article/details/52032332 #gcc g++降级 sudo apt-get install -y gcc-4.8 sudo apt-get install -y g++-4.8 cd /usr/bin sudo rm gcc sudo ln -s gcc-4.8 gcc sudo rm g++ sudo ln -s g++-4.8 g++ #下载源码 cd /opt sudo git clone https://bitbucket.org/padavan/rt-n56u.git #汉化 cd ~/ git clone https://github.com/gorden5566/padavan.git cd ~/padavan sudo sh ./install.sh 依次输入 1 和 2 复制文件到项目目录 cd /opt/rt-n56u/trunk/ #拷贝对应的配置 sudo cp configs/templates/newifi_d1_full.config .config 编译 cd /opt/rt-n56u/toolchain-mipsel sudo ./clean_sources sudo ./build_toolchain cd /opt/rt-n56u/trunk sudo ./clear_tree sudo ./build_firmware
后话:编译过程中主要时碰到了g++和gcc版本过高的问题,sudo apt-get install * 要一个一个来比较稳,还有不要su下编译。自己的笔记本是五年前的老爷机,编译真的非常久。比较推荐在真实的liunx系统里编译,wind10商店下载的ubuntu是1.8的,属性比较新的系统,默认的各种编译环境要么最新要么没有。。。