进入正题,编译环境准备完毕后,下载源码
- 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目录中有烧录镜像