说明:生成固件必须使用64位操作系统,或者一个能运行64位操作系统的虚拟机
环境:
操作系统:ubuntu:18.04
镜像版本:openwrt-21.02.0
我的设备:Newifi-Mini(Lenovo Y1)
操作:
- 为ubuntu安装生成镜像所需的依赖包
sudo apt-get install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-dev xsltproc wget unzip python python3 rsync
2.下载一个 预编译 好的镜像文件,他是一个已经编译好的 OpenWrt 编译环境,你要做的只是通过他生成你的(他支持的)设备的固件
wget https://mirrors.ustc.edu.cn/openwrt/releases/21.02.0/targets/ramips/mt7620/openwr