Article directory
install virtual machine
Skip it here, you can search Virtualbox
and install it anywhere on the Internet VMware
.
I am using hereVMware
Install the Ubuntu system
Recommended installation 16.04/18.04
. (relatively stable), I installed 18.04 here.
The mirror image is downloaded through the domestic site, because the server of the official website is very slow abroad! .
then the next step
Select the mirror image where you store the mirror image, and then the next step
Set basic information
Set the local storage path (the space must be enough, 40G
)
Next step
Finish
Virtual machine basic configuration
set processor
OK to save, start the virtual machine
Wait patiently…
遇到问题可以参考网上的手把手安装教程
update software sources
Install the development environment
set static ip
Install SSH service
sudo apt install openssh-server
Then check whether port 22 is enabled to listen:
netstate -tan
Install related dependencies and tools
sudo apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils libncurses5-dev ncurses-term zlib1g-dev gawk asciidoc libz-dev git-core uuid-dev libacl1-dev liblzo2-dev pkg-config libc6-dev curl libxml-parser-perl ocaml-nox
download source code
git clone https://git.lede-project.org/source.git lede
If the download fails, you may need to set a proxy or change the protocol
git clone git://git.lede-project.org/source.git lede
Summarize
下一节分析编译个OpenWrt目录结构