進入正題,編譯環境準備完畢後,下載原始碼
- git clone git://git.coding.net/leop/openwrt.git
複製dl包(可以加快初次編譯速度,但非必須)
連結:pan.baidu.com/s/1ntqziwL 密碼:g3dv
- mv ./dl ./openwrt
下載freeds
- cd openwrt
- ./scripts/feeds update -a
- ./scripts/feeds install -a
配置
- make menuconfig
進入核心配置介面,選擇
- Target System -> Ralink RT288x/RT3xxx
- Subtarget -> MT7620 based boards
Exit,並儲存配置
然後開始編譯
- make V=s -j2
編譯成功後,在bin目錄中有燒錄映象