全程挂非中国线路,原因懂的。
编译步骤(内核编译,新手请在老鸟指导下进行,基准系统为CentOS8):
yum groupinstall "Development Tools" -y yum install epel-release -y yum install autoconf binutils bison bzip2 flex gawk gcc gcc-c++ gettext make ncurses-devel patch unzip wget zlib-devel libiptcdata qemu-img python2 python3 perl rsync svn pcre* git upx ncurses-compat-libs mkisofs -y git clone https://git.openwrt.org/openwrt/openwrt.git 或者 git clone https://github.com/coolsnowwolf/lede.git ./scripts/feeds update -a ./scripts/feeds install -a make defconfig make menuconfig #添加你需要的功能模块,然后保存.config make clean make download make check make V=s #等待编译完成,并解决遇到的错误 #如果想编译更快,则添加-jx参数(x为编译线程数,建议<=4),不建议第一次编译使用,因为多线程编译将会失去错误提示。 #menuconfig菜单中,无比关注选项冲突以及image大小,如:--> "Target Images" -->"Root filesystem partition size (in MB)" #开启efi支持:CONFIG_EFI_IMAGES=y,CONFIG_PACKAGE_grub2-efi=y或者make menuconfig---Target Images---Build EFI GRUB images #coolsnowwolf的lede如需开启科学上网,取消feeds.conf.default内src-git helloworld https://github.com/fw876/helloworld的注释