第一步,安装依赖软件包
sudo apt-get install subversion g++ zlib1g-dev build-essential git python rsync man-db
sudo apt-get install libncurses5-dev gawk gettext unzip file libssl-dev wget zip time
第二步,获取openwrt源代码和更新必要的feeds文件
git clone https://git.openwrt.org/openwrt/openwrt.git/
git clone https://github.com/openwrt/openwrt.git
cp feeds.conf.default feeds.conf
echo src-git linkit https://github.com/MediaTek-Labs/linkit-smart-7688-feed.git >> feeds.conf
./scripts/feeds update -a
./scripts/feeds install -a
第三步,校验
make prereq
make defconfig
第四步,设置环境变量
unset SED
export FORCE_UNSAFE_CONFIGURE=1
第五步,配置
make menuconfig
make download
第六步,编译
make V=99