1.获取openwrt源码
git clone https://github.com/openwrt/openwrt.git
2.安装一些库及必备程序:
sudo apt-get install libncurses5-dev gawk gcc g++ (gcc和g++的版本需要大于或等于4.8)