使用git下载openwrt:
git clone git://github.com/openwrt/openwrt.git
更新安装配置:
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
openwrt配置(按照自身的情况选择):
make menuconfig
好了编译安装:
make V=s
V=s 表示跟踪编译的详细过程
最后编译出错(Nice):
错误1:configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
意思是说设置环境变量:
export FORCE_UNSAFE_CONFIGURE = 1
错误2:openwrt-ramips-mt7620-ex2700-squashfs-sysupgrade.bin is too big
出现这种情况是因为生成了太多的.bin文件,可以通过修改 target/linux/ramips/image/目录下的对应芯片的.mk文件,将不需要的
TARGET_DEVICES 注释掉就可以解决!!!!