Ubuntu version: 20.04
openwrt version: v22.03.3
1. Download the source code
git clone https://git.openwrt.org/openwrt/openwrt.git
If you encounter the following error
Execute the following command
git config --global http.sslVerify false
then redownload
The download is complete, as shown above, then checkout v22.03.3
git checkout v22.03.3 -b v22.03.3
2. Compile openwrt
install dependencies
apt install libncurses-dev gawk
install feeds
./scripts/feeds update –a
./scripts/feeds install –a
There will be several warnings, you can ignore it
configuration
make menuconfig
x86 platform
Select VMDK (subsequent use of VM to run), modify the partition size as needed
open luci
Support Chinese
compile
make -j8 V=s
Dependencies will be downloaded when compiling, which takes a long time
Check out the generated package