按照lede仓库在Ubuntu编译适用于小米路由器4A千兆版的OpenWrt固件

安装依赖

sudo apt-get update
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync

git源码

git clone https://github.com/coolsnowwolf/lede

准备及编译

cd lede

./scripts/feeds update -a

./scripts/feeds install -a

make menuconfig

make -j4 download V=s

make -j4 V=s

其他

可自定义在线构建固件或下载历史镜像