OpenWrt编译说明
1.在gitee上同步代码,主要包含五个仓库:
https://gitee.com/masterdxy/openwrt
https://gitee.com/masterdxy/luci
https://gitee.com/masterdxy/routing-packages
https://gitee.com/masterdxy/packages
https://gitee.com/masterdxy/telephony
以上五个仓库最后更新时间2020年03月09日15:38,19.01版本验证通过,如果不需要新版本可以不用更新
- useradd compile; su compile; cd ~; mkdir openwrt; cd openwrt;
- git clone https://gitee.com/masterdxy/openwrt
- yum install subversion binutils bzip2 gcc gcc-c++ gawk gettext flex ncurses-devel zlib-devel make patch unzip perl-ExtUtils-MakeMaker glibc glibc-devel glibc-static quilt ncurses-lib sed sdcc intltool sharutils bison wget git-core openssl-devel xz
5.替换feed.conf.default中的仓库地址为上面的4个 - ./scripts/feeds update -a
- ./scripts/feeds install -a
- make menuconfig (*是会被编译进固件、M是仅编译、留空是不编译)
- make -j4 V=99
- 固件:bin/target目录,ipk:bin/pakegets