一、 OpenWrt 下载地址
https://codeload.github.com/openwrt/openwrt/tar.gz/v15.05.1
二、配置
编译环境: ubuntu 14.04.2 LTS + VMware 12 Pro, ubuntu需要安装一些lib或命令工具,如g++、gawk、libncurses5-dev等。
配置:
1. 更新安装软件包
./scripts/feeds update -a
./scripts/feeds install -a
2. 选择Raspberry Pi 2
make menuconfig
Target System (Broadcom BCM2708/BCM2709) --->
Subtarget (BCM2709 based boards) --->
Target Profile (Raspberry Pi 2) --->
LuCI --->
1. Collections --->
<*> luci
三、编译
make V=s
V=s 可以显示出编译过程中的log,如果有错误就能知道错误原因。
PS:可以去泡怀荼了,I7 build了近2个小时!
编译出来的binary在 bin/brcm2708/openwrt-brcm2708-bcm2709-sdcard-vfat-ext4.img,用win32diskimager工具将其写到SD卡就行了。