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.
For convenience, create a directory, for example, with the name 1 and go into it
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 have downloaded. Our initial path was ~ / 1 and we ran the command above along this path, we created the openwrt directory, we need to go to 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 a 4-core processor, to include all cores, the command will be as follows:
We are waiting, in half an hour or an hour we find our firmware in the directory ~ / 1 / 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