参考openwrt官方的方法:
https://github.com/openwrt/openwrt
Quickstart
Run ./scripts/feeds update -a to obtain all the latest package definitions defined in feeds.conf / feeds.conf.default
Run ./scripts/feeds install -a to install symlinks for all obtained packages into package/feeds/
Run make menuconfig to select your preferred configuration for the toolchain, target system & firmware packages.
Run make to build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen applications for your target system.
git clone https://github.com/openwrt/openwrt.git
cd openwrt
在执行 ./scripts/feeds update -a
出现如下错误,下载软件包一直出错
Updating feed ‘packages’ from ‘https://git.openwrt.org/feed/packages.git’ …
Cloning into ‘./feeds/packages’…
fatal: unable to access ‘https://git.openwrt.org/feed/packages.git