openwrt原始碼下載與編譯
阿新 • • 發佈:2019-01-23
第一步,安裝依賴軟體包
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/
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