OpenWrt (1) - environment construction and source code download


install virtual machine

Skip it here, you can search Virtualboxand 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! .

insert image description here

then the next step

insert image description here

Select the mirror image where you store the mirror image, and then the next step

insert image description here

Set basic information

insert image description here

Set the local storage path (the space must be enough, 40G)

insert image description here

Next step

insert image description here

Finish

Virtual machine basic configuration

insert image description here

set processor

insert image description here

OK to save, start the virtual machine

Wait patiently…

遇到问题可以参考网上的手把手安装教程

reference

update software sources

insert image description here

Install the development environment

set static ip
insert image description here

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目录结构

Guess you like

Origin blog.csdn.net/m0_56145255/article/details/128364020