Quick reminder for those who already know how to do it. Who is not in the theme, read below in detail
Fast downloads and all the steps to begin compiling
Download the desired branch
from here and inserted before the first && then everything will be executed automatically
&& cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
Cook faster team
19.07.4
git clone git: //github.com/openwrt/openwrt.git -b v19.07.4 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
19.07.3
git clone git: //github.com/openwrt/openwrt.git -b v19.07.3 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
19.07.2
git clone git: //github.com/openwrt/openwrt.git -b v19.07.2 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
19.07.1
git clone git: //github.com/openwrt/openwrt.git -b v19.07.1 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
19.07.0
git clone git: //github.com/openwrt/openwrt.git -b v19.07.0 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
18.06.7
git clone git: //github.com/openwrt/openwrt.git -b v18.06.7 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
18.06.6
git clone git: //github.com/openwrt/openwrt.git -b v18.06.6 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
18.06.5
git clone git: //github.com/openwrt/openwrt.git -b v18.06.5 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
18.06.4
git clone git: //github.com/openwrt/openwrt.git -b v18.06.4 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
18.06.3
git clone git: //github.com/openwrt/openwrt.git -b v18.06.3 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
18.06.2
git clone git: //github.com/openwrt/openwrt.git -b v18.06.2 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
18.06.1
git clone git: //github.com/openwrt/openwrt.git -b v18.06.1 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
18.06.0
git clone git: //github.com/openwrt/openwrt.git -b v18.06.0 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
17.01.6
git clone git: //github.com/openwrt/openwrt.git -b v17.01.6 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
17.01.5
git clone git: //github.com/openwrt/openwrt.git -b v17.01.5 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
17.01.4
git clone git: //github.com/openwrt/openwrt.git -b v17.01.4 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
17.01.3
git clone git: //github.com/openwrt/openwrt.git -b v17.01.3 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
17.01.2
git clone git: //github.com/openwrt/openwrt.git -b v17.01.2 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
17.01.1
git clone git: //github.com/openwrt/openwrt.git -b v17.01.1 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
17.01.0
git clone git: //github.com/openwrt/openwrt.git -b v17.01.0 && cd ~ / openwrt && ./scripts/feeds update -a && ./scripts/feeds install -a && make prereq
All manipulations are done on a computer with linux (in our example it will be for Debian / Ubuntu)
First, install everything you need.
Open the console and copy the commands there.
sudo apt-get install subversion git
Further
sudo apt-get install g ++ libncurses5-dev zlib1g-dev gawk libssl-dev unzip make
Is done.
Next you need to download the source of the firmware (see spoiler
Git-repositories of OpenWrt and LEDE projects )
Download the branch we need (in this example, it is OpenWrt v17.01.4)
git clone git: //github.com/openwrt/openwrt.git -b v17.01.4
Next, go to the directory so that we download. ~ / (Ie home, he's home directory) we created openwrt directory, you need to go into it to continue
In Ubuntu, you can:
Now you need to run
./scripts/feeds update -a
After the update process is completed, we perform
./scripts/feeds install -a
Almost everything is ready, then we perform
If everything is ok, then there will be this message: Collecting package info: done
Starting the interface for selecting the firmware components (in the latest versions it appears automatically after the previous step)
Moving through the points is done with the keyboard keys: up-down, space and esc.
Target system
Target Profile can be selected for the desired model, if you leave the default profile then a lot of compiled firmware will be created for all devices at once from the Target System profile
Now a few simple explanations:
We put the web-interface
and Russian language to him
To support L2TP, you need to select the xl2tpd package.
Also the necessary protocols pptp and so on are selected here:
Network --->
<*>ppp
<*>ppp-mod-pppoe
<*>ppp-mod-pppol2tp
<*>ppp-mod-pptp
Add busybox components:
Well, then be guided by your needs, remember that the place in the router is not rubber and you often need to keep within 4 mb., So do not overdo it.
When everything is finished, save our configuration with the button<Save>
We proceed to the assembly:
And for 4-core processor, to enable all cores, the team will be: (number of cores 1, and here it turns out -j5)
Waiting over half an hour find its firmware in the directory ~ / openwrt /
bin If the correct target is selected before the build, but the firmware is obtained in a size larger than the size allowed for the flash of your router - the files * sysupgrade.bin and * factory.bin will not be created.
Cleaning Removes the contents of the bin and build_dir directories.
Removes the contents of the / bin and / build_dir directories, as well as the addition of / staging_dir and / toolchain (cross-compilation tools). 'Dirclean' is the main command for a thorough cleanup.
Removes everything that you have collected or configured, and also removes everything downloaded from the repository and the source codes of the packages.
ATTENTION: Among other things, your build configuration (.config), your toolchain, and all other source codes will be erased. Use with caution!
Addresses of the repositories used are in the file feeds.conf.default