Build OpenWrt / LEDE from source codes | [firmware] OpenWrt / LEDE compilation from source codes



Rep: (573)
OpenWrt / LEDE (General theme) | DD-WRT FIRMWARE | Collect bin (dump) for the programmer | Upgraded UBOOT loaders


Build OpenWrt / LEDE from source


Attached Image
This topic should be placed under the image and logs spoilerPicture


Description / What is discussed in the topic, and what is not
OpenWrt is an embedded Linux kernel-based operating system designed primarily for home routers. Core components include the Linux kernel, util-linux, uClibc or musl, and BusyBox. The source code is open. Distributed under licenseGNU GPL

The LEDE project is developed on the basis of Linux, an embedded meta-distribution based on OpenWRT, focused on a wide range of SOHO wireless routers and non-network devices. “Linux Embedded Development Environment”.
LEDE turned away from the parent project in May 2016, with the goal of continuing to develop better software in an open management model and encouraging new developers to contribute and development efforts.


  • This topic is intended to discuss the build process, discuss the components of the firmware for inclusion in the finished file for the firmware of your router and everything that is not related to the compilation of the firmware.
  • In this topicdon't discuss OpenWrt / LEDE settings, installation process of ready-made assemblies on your router. Questions like: "I installed OpenWrt and now I don’t know what to do, how to set up the Internet" is offtopic and will be deleted without any warnings. There is a general theme for such questions. OpenWrt / LEDE - alternative firmware

Initial instruction with pictures. Buildroot Build Method
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 branchfrom 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 spoilerGit-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
cd ~ / openwrt /

In Ubuntu, you can:
Attached Image

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
make prereq

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)
make menuconfig

Moving through the points is done with the keyboard keys: up-down, space and esc.
Target system
Attached Image

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
Attached Image

Now a few simple explanations:
We put the web-interface
Attached Image

Attached Image

Attached Image

and Russian language to him
Attached Image

Attached Image

Attached Image

To support L2TP, you need to select the xl2tpd package.
Attached Image

Attached Image

Attached Image

Also the necessary protocols pptp and so on are selected here:
Network --->
<*>ppp
<*>ppp-mod-pppoe
<*>ppp-mod-pppol2tp
<*>ppp-mod-pptp
Attached Image

Add busybox components:
Attached Image

Attached Image

Attached Image

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:
make

And for 4-core processor, to enable all cores, the team will be: (number of cores 1, and here it turns out -j5)
make -j5 V = -1

Attached Image

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
make clean

Removes the contents of the bin and build_dir directories.

make dirclean

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.

make distclean

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

Git-repositories of OpenWrt and LEDE projects
19.07.4
git clone git: //github.com/openwrt/openwrt.git -b v19.07.4

19.07.3
git clone git: //github.com/openwrt/openwrt.git -b v19.07.3

19.07.2
git clone git: //github.com/openwrt/openwrt.git -b v19.07.2

19.07.1
git clone git: //github.com/openwrt/openwrt.git -b v19.07.1

19.07.0
git clone git: //github.com/openwrt/openwrt.git -b v19.07.0

18.06.7
git clone git: //github.com/openwrt/openwrt.git -b v18.06.7

18.06.6
git clone git: //github.com/openwrt/openwrt.git -b v18.06.6

18.06.5
git clone git: //github.com/openwrt/openwrt.git -b v18.06.5

18.06.4
git clone git: //github.com/openwrt/openwrt.git -b v18.06.4

18.06.3
git clone git: //github.com/openwrt/openwrt.git -b v18.06.3

18.06.2
git clone git: //github.com/openwrt/openwrt.git -b v18.06.2

18.06.1
git clone git: //github.com/openwrt/openwrt.git -b v18.06.1

18.06.0
git clone git: //github.com/openwrt/openwrt.git -b v18.06.0

17.01.6
git clone git: //github.com/openwrt/openwrt.git -b v17.01.6

17.01.5
git clone git: //github.com/openwrt/openwrt.git -b v17.01.5

17.01.4
git clone git: //github.com/openwrt/openwrt.git -b v17.01.4

17.01.3
git clone git: //github.com/openwrt/openwrt.git -b v17.01.3

17.01.2
git clone git: //github.com/openwrt/openwrt.git -b v17.01.2

17.01.1
git clone git: //github.com/openwrt/openwrt.git -b v17.01.1

17.01.0
git clone git: //github.com/openwrt/openwrt.git -b v17.01.0

15.05.1
git clone git: //github.com/openwrt/archive.git -b v15.05.1

15.05
git clone git: //github.com/openwrt/archive.git -b v15.05

14.07
git clone git: //github.com/openwrt/archive.git -b v14.07

12.09
git clone git: //github.com/openwrt/archive.git -b v12.09





Useful programs
WinSCPgraphical client SFTP and SCP
Settings for connecting to a router with LEDE (dropbear must be enabled)
Attached Image

Tftpd32
TFTP for Linux using Ubuntu as an example
Configure tftpd-hpa TFTP server

Install the tftpd-hpa package:
sudo apt-get install tftpd-hpa

After installation, edit the file
sudo nano / etc / default / tftpd-hpa
containing server settings. Let's bring it to the following form:

TFTP_USERNAME = "tftp"
TFTP_DIRECTORY = "/ var / tftp"
TFTP_ADDRESS = "0.0.0.0:69"
TFTP_OPTIONS = "- ipv4 --secure --create --umask 027 --permissive"


In the settings are additional options:
create allows the server to create new files,
ipv4 instructs it to wait for connections only on IPv4 addresses,
umask instructs to reset the write bit for the group and all access bits for other users,
permissive instructs not to carry out any file permissions checks in excess of the operating system.

Create a directory for the tftp server, give the server access to the directory:

sudo mkdir / var / tftp

sudo chown tftp: tftp / var / tftp


You can also change the home directory of the tftp user in the / etc / passwd file to / var / tftp.

Now we just write the ip addresses we need through the gnome network manager and that's it.

It remains to restart the daemon to start working with the new directory:
sudo /etc/init.d/tftpd-hpa restart


Instructions
Useful topics
OpenWrt project news


Post has been editedstp101 - 18.09.20, 23:04
Reason for editing: Issue OpenWrt 19.07.4



Rep: (0)
made
sudo git clonehttps://github.com/lede-project/source.git-b v17.01.4 Lede
cd Lede
sudo ./scripts/feeds update -a
All checks passed with OK
after
sudo ./scripts/feeds install -a
issued several varningov example of such:
WARNING: No feed for package 'libpolarssl' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'smap' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'mac-to-devinfo' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'httping' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'smap-to-devinfo' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'netdiscover-to-devinfo' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-app-authenticate' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-app-disa' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-app-setcallerid' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-app-system' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-chan-gtalk' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-codec-a-mu' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-codec-alaw' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-func-cut' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-res-clioriginate' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-func-channel' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-chan-local' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-app-record' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-app-senddtmf' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'asterisk18-res-crypto' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'libsqlite2' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'flite' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'libyuv' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'libilbc' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'libmemcached' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'libsilk' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'libg7221' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'freeradius-client' found, maybe it's already part of the standard packages?


after the command:
sudo make prereq

issued:
Collecting package info: done
make [1]: Entering directory `/ home / parallelno / Lede '
make [2]: Entering directory `/ home / parallelno / Lede / scripts / config '
make [2]: Leaving directory `/ home / parallelno / Lede / scripts / config '
configuration written to .config

after sudo make defconfig
issued:
#
# configuration written to .config
#

after sudo make -j5 V = -1
issued:
make [1] world
make [2] tools / install
make [2] package / cleanup
make [3] -C tools / flock compile
make [3] -C tools / flock install
make [3] -C tools / sed compile
make [3] -C tools / sed install
make [3] -C tools / patch compile
make [3] -C tools / xz compile
make [3] -C tools / tar compile
make [3] -C tools / xz install
make [3] -C tools / patch install
make -r world: build failed. Please re-run make with -j1 V = s to see what's going on
make: *** [world] Error 1

as last time. = (

I'll try in stages.
sudo make tools / install -j5
It resulted in an error:
make [1] tools / install
make [2] -C tools / flock compile
make [2] -C tools / flock install
make [2] -C tools / sed compile
make [2] -C tools / sed install
make [2] -C tools / xz compile
make [2] -C tools / patch compile
make [2] -C tools / tar compile
make [2] -C tools / xz install
make [2] -C tools / patch install
make -r tools / install: build failed. Please re-run make with -j1 V = s to see what's going on
make: *** [tools / install] Error 1

Tell me what's wrong. You are welcome.

Posted on 14/01/2018, 16:11:

I tried to write
sudo make tools / install -j3 V = s 2>& 1 | sudo tee build.log | sudo grep -i error
to get more error of information
I received the following

checking whether ferror_unlocked is declared ... yes
checking whether strerror_r is declared ... yes
checking for strerror_r ... yes
checking whether strerror_r returns char * ... yes
checking whether strerror (0) succeeds ... yes
checking whether strerror_r is declared without a macro ... yes
checking for error_at_line ... yes
checking whether mknod can create fifo without root privileges ... configure: error: in `/home/parallelno/Lede/build_dir/host/tar-1.29 ':
configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE = 1 in environment to bypass this check)
make [2]: *** [/home/parallelno/Lede/build_dir/host/tar-1.29/.configured] Error 1
make [1]: *** [tools / tar / compile] Error 2
Build failed - please re-run with -j1 to see the real error message
make: *** [tools / install] Error 1



Rep: (90)
parallelno @ 14.01.18, 16:08*
after sudo make -j5 V = -1

Why sudo?



Rep: (0)
serguwok @ 14.01.18, 16:42*
Why sudo?


To have the right to execute the command correctly.

But Point your understand. I too embarrassed line:
"You should not run configure as root"

Therefore Lede deleted folder. I took the knitted thread. Made
sudo ./scripts/feeds update -a
sudo ./scripts/feeds install -a

make prereq without sudo
and I got the message:

rm: can not remove '/home/parallelno/Lede/tmp/info/.overrides-packageinfo-6449': Permission denied
make [2]: *** No rule to make target `/home/parallelno/Lede/tmp/info/.files-packageinfo-8834 '. Stop.
cat: /home/parallelno/Lede/tmp/info/.files-packageinfo-8834: No such file or directory
cat: /home/parallelno/Lede/tmp/info/.overrides-packageinfo-8834: No such file or directory
rm: can not remove '/home/parallelno/Lede/tmp/info/.files-packageinfo.stamp.fd60b34ad54852c09e6899ff047a69b7': Permission denied
touch: can not touch '/home/parallelno/Lede/tmp/info/.files-packageinfo.stamp.d41d8cd98f00b204e9800998ecf8427e': Permission denied
touch: can not touch '/home/parallelno/Lede/tmp/info/.files-packageinfo.stamp': Permission denied
make [1]: *** [/home/parallelno/Lede/tmp/info/.files-packageinfo.stamp] Error 1
make: *** [prepare-tmpinfo] Error 2


From the error message it can be seen that there are no rights. I did sudo make prereq. Successfully.
Then I tried to run without sudo make defconfig. Exact same error as above. I made with sudo. Successfully.
Then I tried without sudo to run the first phase of assembly tulcheyna team:
make tools / install -j1 V = s

mistake:
rm: can not remove '/home/parallelno/Lede/tmp/info/.overrides-packageinfo-16003': Permission denied
ln: can not remove 'lib64': Permission denied
ln: can not remove 'lib32': Permission denied
touch: can not touch '/home/parallelno/Lede/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/info.mk': Permission denied
make [3]: *** No rule to make target `/home/parallelno/Lede/tmp/info/.files-packageinfo-16112 '. Stop.
cat: /home/parallelno/Lede/tmp/info/.files-packageinfo-16112: No such file or directory
cat: /home/parallelno/Lede/tmp/info/.overrides-packageinfo-16112: No such file or directory
rm: can not remove '/home/parallelno/Lede/tmp/info/.files-packageinfo.stamp.c2261e9d364d847f1e013a2313d7d286': Permission denied
touch: can not touch '/home/parallelno/Lede/tmp/info/.files-packageinfo.stamp.d41d8cd98f00b204e9800998ecf8427e': Permission denied
touch: can not touch '/home/parallelno/Lede/tmp/info/.files-packageinfo.stamp': Permission denied
make [2]: *** [/home/parallelno/Lede/tmp/info/.files-packageinfo.stamp] Error 1
make [1]: *** [prepare-tmpinfo] Error 2
make: *** [tools / install] Error 2


C sudo command error occurred about which I wrote earlier.
Made
export FORCE_UNSAFE_CONFIGURE = 1
sudo su
make tools / install -j1 V = s
without mistakes.
Further
make toolchain / install -j1 V = s
Got error:

mkdir -p / home / parallelno / Lede / dl
SHELL = flock /home/parallelno/Lede/tmp/.linux-4.4.92.tar.xz.flock -c '/home/parallelno/Lede/scripts/download.pl "/ home / parallelno / Lede / dl" " linux-4.4.92.tar.xz "" 53f8cd8b024444df0f242f8e6ab5147b0b009d7a30e8b2ed3854e8d17937460d "" "" @ KERNEL / linux / kernel / v4.x " '
% Total% Received% Xferd Average Speed ​​Time Time Time Current
Dload Upload Total Spent Left Speed
83.3M 83.3M 100 100 0 0 0 754k 0:01:53 0:01:53 -: -: - 1509k
Could not generate file hash
make [2]: *** [/home/parallelno/Lede/dl/linux-4.4.92.tar.xz] Error 255
make [2]: Leaving directory `/ home / parallelno / Lede / toolchain / kernel-headers'
make [1]: *** [toolchain / kernel-headers / prepare] Error 2
make [1]: Leaving directory `/ home / parallelno / Lede '
make: *** [toolchain / install] Error 2


Here. What to do next I do not know. Chtonit Advise, pliz.

If interested, the next task:
you need to collect firmware for the router Chinese clone Hame-A15 with 4 MB flash. Proshibka must have the support of the webcam. those. contain:
Target System: MediaTek Ralink Mips,
Subtarget RT3x5x / RT5350
Target Profile HAME MPR-A1
LUCI,
Multimedia->mjpg-streamer
Kernel modules->VideoSupport->kmod-video-core
Kernel modules->VideoSupport->kmod-video-core->kmod-video-uvc
Kernel modules->VideoSupport->kmod-video-core->kmod-video-videobuf2

To flash the router will have stitched firmware OpenWrt 15.05.1



Rep: (11)
parallelno @ 14.01.18, 19:35*
I read that the older, the more space is required


I do not know how true this is, but I collected myself the firmware of the -b lede-17.01 2.81 MB in size, with luci, its Russification and ssl (TLS), it is for https. Plus, I shoved a couple of programs to IPTV (igmpproxy, udpxy). If you're curious, here's a set of programs I've found status:

Package: libuci-lua
Version: 2016-07-04-e1bf4356-1
Depends: libc, libuci, liblua
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: iwinfo
Version: 2016-09-21-fd9e17be-1
Depends: libc, libiwinfo
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: libc
Version: 1.1.16-1
Depends: libgcc
Status: install hold installed
Essential: yes
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: libpthread
Version: 1.1.16-1
Depends: libgcc
Status: install hold installed
Essential: yes
Architecture: mips_24kc
Installed-Time: 1514018553

Package: ubus
Version: 2017-02-18-34c6e818-1
Depends: libc, libubus, libblobmsg-json, ubusd
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: iw
Version: 4.9-1
Depends: libc, libnl-tiny
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: rpcd
Version: 2017-11-12-a0231be8-1
Depends: libc, libubus, libubox, libuci, libblobmsg-json
Status: install user installed
Architecture: mips_24kc
Conffiles:
/ Etc / config / rpcd 9f58e09bb250fe6cee61c873ff2c1a19cb800d12cef0773bd5dfc47e0d01c90b
Installed-Time: 1514018553

Package: busybox
Version: 1.25.1-4
Depends: libc, jsonfilter
Status: install user installed
Essential: yes
Architecture: mips_24kc
Installed-Time: 1514018553

Package: luci-lib-ip
Version: git-17.336.23170-d2dc32a-1
Depends: libc, liblua, libnl-tiny
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: libubus-lua
Version: 2017-02-18-34c6e818-1
Depends: libc, libubus, liblua
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: libiwinfo-lua
Version: 2016-09-21-fd9e17be-1
Depends: libc, libiwinfo, liblua
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: swconfig
Version: 11
Depends: libc, libuci, libnl-tiny
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: libiwinfo
Version: 2016-09-21-fd9e17be-1
Depends: libc, libnl-tiny, libuci
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: kmod-lib-crc-ccitt
Version: 4.4.107-1
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08)
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: px5g-mbedtls
Version: 4
Depends: libc, libmbedtls
Provides: px5g
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: luci-theme-bootstrap
Version: git-17.336.23170-d2dc32a-1
Depends: libc
Status: install user installed
Architecture: all
Installed-Time: 1514018553
Auto-Installed: yes

Package: kmod-ipt-conntrack
Version: 4.4.107-1
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08), kmod-ipt-core, kmod-nf-conntrack
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: base-files
Version: 173.1-r3786-f8a441e
Depends: libc, netifd, procd, jsonfilter, fstools, fwtool
Status: install user installed
Architecture: mips_24kc
Conffiles:
/ Etc / group 35b63adf31591ac37358e918a5e8d4f9c1d541c681a07861cdf1119106c0dd2e
/ Etc / hosts c1a978d90673437b35fa9494e0a54294062c152bb653d490b718052ab88447fd
/ Etc / inittab 8b395f7d827753e1e92d4a1c369d9fe16caa23bf742b3f78e4599c4dd9b1b6e3
/ Etc / iproute2 / rt_protos a0712b1771c8d5f3e0dcf9a6314880e71aa3498ea1ae873535bdfcf70d814061
/ Etc / iproute2 / rt_tables f771e2b81741f70e3faf658dc504f0dc048672fc8caaadea15e46c35da3de8f8
/ Etc / passwd 6a451aa33393f47ade89b8bce4d9711818c2630394c3967265ffed276bb25a55
/ Etc / profile d33dd2449b260f767f7239a130402fca895ed51eafc2a2c94e6b0f09a679516a
/ Etc / protocols 7d551355d5540b07b9d86e623cbbc4abecbb94d2a662b3afcc917940eb0e3d52
/etc/rc.local 515018aa94eb4937dade12dc0d69890b352af35a5ab5fb8203f9ed10990ac06f
/ Etc / services 649cc7e6dd56e85cd1e388c4f222245aa7b25328274cc218236bf330eb342964
/ Etc / shadow ccbbfeee2dd560403fea13f7f431ebd21d9bb4b3d41e48e892013fa451f91cc4
/ Etc / shells 8b35ce73c18161a7d7ed16fa244410993bd031515260e3e0c11749047df48d0a
/etc/sysctl.conf 427dedc19aa6bfb2e9d5c59d9aa0af8445eeaf484cc3df29063d0ba68726e967
/etc/sysctl.d/local.conf 43cedc0217825c00cb1a3d49e7be43c06f70257593fb4d6d393f645e04d512de
/etc/sysctl.d/local.conf 43cedc0217825c00cb1a3d49e7be43c06f70257593fb4d6d393f645e04d512de
/etc/sysupgrade.conf 9e87b05fe2f12c84d1c465b396322748479f64bc40e5bab061887f0bd95020a6
Installed-Time: 1514018553

Package: kmod-nf-nat
Version: 4.4.107-1
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08), kmod-nf-conntrack, kmod-nf-ipt
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: netifd
Version: 2017-01-25-650758b1-1
Depends: libc, libuci, libnl-tiny, libubus, ubus, ubusd, jshn, libubox
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: uboot-envtools
Version: 2015.10-1
Depends: libc
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: dnsmasq
Version: 2.78-4
Depends: libc
Status: install user installed
Architecture: mips_24kc
Conffiles:
/ Etc / config / dhcp f81fe9bd228dede2165be71e5c9dcf76cc298bc8b6c877974a172a66fac7cf45
/etc/dnsmasq.conf 1e6ab19c1ae5e70d609ac7b6246541d52042e4dee1892f825266507ef52d7dfd
Installed-Time: 1514018553

Package: procd
Version: 2017-11-14-d9dc0e03-1
Depends: libc, ubusd, ubus, libjson-script, ubox, libubox, libubus
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: libmbedtls
Version: 2.6.0-1
Depends: libc
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: ubusd
Version: 2017-02-18-34c6e818-1
Depends: libc, libubox, libblobmsg-json
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: luci-i18n-base-ru
Version: git-17.336.23170-d2dc32a-1
Depends: libc, luci-base
Status: install user installed
Architecture: all
Installed-Time: 1514018553

Package: udpxy
Version: 2016-09-18-53e4672a7522311c40e9f6110ff256041c52c8b4-1
Depends: libc
Status: install user installed
Architecture: mips_24kc
Conffiles:
/ Etc / config / udpxy f50198de65d0ae6364cffd6f03b30c75e339d6d8c0f1bd3e8270d32b477cf767
Installed-Time: 1514018553

Package: firewall
Version: 2017-05-27-a4d98aea-1
Depends: libc, libubox, libubus, libuci, libip4tc, libxtables, kmod-ipt-core, kmod-ipt-conntrack, kmod-ipt-nat
Status: install user installed
Architecture: mips_24kc
Conffiles:
/ Etc / config / firewall 303d858071dfcf1d1e8593168eb9c582a2c774211f23cef4bf7c85e4060a5e8c
/etc/firewall.user bd68324966481011f5e36570258ad97dd422655c16f3119d48325ed8459de510
Installed-Time: 1514018553

Package: luci-app-firewall
Version: git-17.336.23170-d2dc32a-1
Depends: libc, firewall
Status: install user installed
Architecture: all
Installed-Time: 1514018553
Auto-Installed: yes

Package: kmod-nf-ipt
Version: 4.4.107-1
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08)
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: libuci
Version: 2016-07-04-e1bf4356-1
Depends: libc, libubox
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: liblua
Version: 5.1.5-1
Depends: libc
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: libip4tc
Version: 1.4.21-2
Depends: libc, libxtables
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: fstools
Version: 2017-06-30-bdcb075f-1
Depends: libc, ubox
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: kmod-ath9k
Version: 4.4.107 + 2017-01-31-3
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08), kmod-ath9k-common
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: uci
Version: 2016-07-04-e1bf4356-1
Depends: libc, libuci
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: lua
Version: 5.1.5-1
Depends: libc, liblua
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: luci-ssl
Version: git-17.336.23170-d2dc32a-1
Depends: libc, luci, libustream-mbedtls, px5g
Status: install user installed
Architecture: all
Installed-Time: 1514018553

Package: dropbear
Version: 2017.75-4
Depends: libc
Status: install user installed
Architecture: mips_24kc
Conffiles:
/ Etc / dropbear / dropbear_rsa_host_key e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
/ Etc / config / dropbear 0198dbc97b5a9aac76a5c6233684571ccdcc91fcb735e91c36d2b06a98158589
Installed-Time: 1514018553

Package: mtd
Version: 21
Depends: libc, libubox
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: libjson-c
Version: 0.12.1-1
Depends: libc
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: libgcc
Version: 6.3.0-1
Status: install hold installed
Essential: yes
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: luci-proto-ppp
Version: git-17.336.23170-d2dc32a-1
Depends: libc
Status: install user installed
Architecture: all
Installed-Time: 1514018553
Auto-Installed: yes

Package: luci-mod-admin-full
Version: git-17.336.23170-d2dc32a-1
Depends: libc, luci-base
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: libubox
Version: 2017-02-24-96305a3c-1
Depends: libc
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: luci-base
Version: git-17.336.23170-d2dc32a-1
Depends: libc, lua, libuci-lua, luci-lib-nixio, luci-lib-ip, rpcd, libubus-lua, luci-lib-jsonc
Status: install user installed
Architecture: mips_24kc
Conffiles:
/etc/luci-uploads/.placeholder e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
/ Etc / config / luci 7e04b593f6a54853b284c1dadfa0df9a90d16661977382978a56443152348329
Installed-Time: 1514018553
Auto-Installed: yes

Package: kmod-gpio-button-hotplug
Version: 4.4.107-2
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08)
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: logd
Version: 2017-03-10-16f7e161-1
Depends: libc, libubox, libubus, libblobmsg-json
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: kmod-mac80211
Version: 4.4.107 + 2017-01-31-3
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08), kmod-cfg80211, hostapd-common
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: libustream-mbedtls
Version: 2016-07-02-ec80adaa-2
Depends: libc, libubox, libmbedtls
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: libjson-script
Version: 2017-02-24-96305a3c-1
Depends: libc, libubox
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: libblobmsg-json
Version: 2017-02-24-96305a3c-1
Depends: libc, libjson-c, libubox
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: iptables
Version: 1.4.21-2
Depends: libc, kmod-ipt-core, libip4tc, libxtables
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: jshn
Version: 2017-02-24-96305a3c-1
Depends: libc, libjson-c, libubox, libblobmsg-json
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: kmod-ipt-core
Version: 4.4.107-1
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08), kmod-nf-ipt
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: igmpproxy
Version: 0.1-10
Depends: libc
Status: install user installed
Architecture: mips_24kc
Conffiles:
/ Etc / config / igmpproxy 65bea3c4c96173dc8f6858dd955b451bc6b9cdb565cb8375a3a485d52b1b60c5
Installed-Time: 1514018553

Package: libubus
Version: 2017-02-18-34c6e818-1
Depends: libc, libubox
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: uhttpd
Version: 2017-11-04-a235636a-1
Depends: libc, libubox, libblobmsg-json, libjson-script
Status: install user installed
Architecture: mips_24kc
Conffiles:
/ Etc / config / uhttpd 805ff9fa319c9ed3ed57a86d786484fbd952149cbb2f14c393ae2abceefc8ab7
Installed-Time: 1514018553

Package: kmod-nf-conntrack
Version: 4.4.107-1
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08)
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: libxtables
Version: 1.4.21-2
Depends: libc
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: luci-lib-nixio
Version: git-17.336.23170-d2dc32a-1
Depends: libc, liblua
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: hostapd-mini
Version: 2016-12-19-ad02e79d-7
Depends: libc, libnl-tiny, hostapd-common, libubus
Conflicts: wpad, wpad-mini, wpad-mesh
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: luci-lib-jsonc
Version: git-17.336.23170-d2dc32a-1
Depends: libc, liblua, libjson-c
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: luci
Version: git-17.336.23170-d2dc32a-1
Depends: libc, uhttpd, uhttpd-mod-ubus, luci-mod-admin-full, luci-theme-bootstrap, luci-app-firewall, luci-proto-ppp, libiwinfo-lua
Status: install user installed
Architecture: all
Installed-Time: 1514018553

Package: kmod-ath
Version: 4.4.107 + 2017-01-31-3
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08), kmod-mac80211
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: ubox
Version: 2017-03-10-16f7e161-1
Depends: libc, libubox, ubusd, ubus, libubus, libuci
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: kernel
Version: 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08
Depends: libc
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: libnl-tiny
Version: 0.1-5
Depends: libc
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: uhttpd-mod-ubus
Version: 2017-11-04-a235636a-1
Depends: libc, uhttpd, libubus, libblobmsg-json
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553

Package: fwtool
Version: 1
Depends: libc
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: jsonfilter
Version: 2016-07-02-dea067ad-1
Depends: libc, libubox, libjson-c
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: hostapd-common
Version: 2016-12-19-ad02e79d-7
Depends: libc
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: kmod-ath9k-common
Version: 4.4.107 + 2017-01-31-3
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08), kmod-ath
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: kmod-cfg80211
Version: 4.4.107 + 2017-01-31-3
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08), iw
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553
Auto-Installed: yes

Package: luci-i18n-firewall-ru
Version: git-17.336.23170-d2dc32a-1
Depends: libc, luci-app-firewall
Status: install user installed
Architecture: all
Installed-Time: 1514018553

Package: kmod-ipt-nat
Version: 4.4.107-1
Depends: kernel (= 4.4.107-1-e2aa6d9ba7cb81900b5184dd0a33ac08), kmod-ipt-core, kmod-nf-nat
Status: install user installed
Architecture: mips_24kc
Installed-Time: 1514018553



Attached Image



Rep: (573)
* parallelno,
If you don’t want to update your Ubuntu 12.04 (which is by the way not supported anymore, well, more precisely only paid extended support, but that’s the way)
It will be easier to take Dev, to roll her something light, such as Xubuntu16.04
Put all you need
sudo apt update && sudo apt-get install subversion git -y && sudo apt-get install g ++ libncurses5-dev zlib1g-dev gawk libssl-dev unzip make -y

Next download branch 17,01
git clone git: //github.com/openwrt/openwrt.git -b v17.01.4

go to the directory and run
./scripts/feeds update -a && ./scripts/feeds install -a && make prereq

Done, choose what you need and gather
make

And do not tormented, once assembled and ready.
By the way, I'm here right now I collect, I have Ubuntu 16.04 and everything is going fine, so think for yourself what the problem is, or turnips in your version of the distribution :)
Attached Image

PS whole assembly is not as root, sudo is not necessary

Post has been editedstp101 - 14.01.18, 23:17
Reason for editing: typo



Rep: (11)
stp101 @ 01.15.18, 03:03*
Next download branch 17.04
git clone git: //github.com/openwrt/openwrt.git -b v17.01.4


Maybe all the same -b v17.01? She even updated ...
Correct if I'm wrong.



Rep: (66)
* parallelno, All cross-compilation and assembly should correctly pass from under a user with limited rights. Sudo may only be needed during the installation of the cross-compilation toolkit. Starting with the "git clone" command and further, superuser rights are not needed and, moreover, harmful.



Rep: (573)
She even updated ...

Building OpenWrt / LEDE from source codes - discussion (Post ttb # 68784724)
turnips are replaced by ice
https://github.com/openwrt/openwrt/releases
So yes, 17.01.4 the last one, well, apart from the trunk (reboot), or as it is called now, you can get confused: D
UPD understood what was the point, I had a typo, yes, of course, 01/17, sealed from 04/17: D sorry

Post has been editedstp101 - 14.01.18, 23:17



Rep: (0)
If you don’t want to update your Ubuntu 12.04 (which is by the way not supported anymore, well, more precisely only paid extended support, but that’s the way)
It will be easier to take a virtual machine, roll something easy on it, for example Xubuntu 16.04


I'm not a proud guy. put everything you need. By the way, I wrote all the messages when building on Ubuntu14 (which, by the way, I indicated in one of the messages). And the choice was very practical. Catching compilation errors are the same as
FCSM19LeXeR @ 13.11.17, 14:55*
A123l @ 09.11.17, 13:28 *
Take ubuntu over, type 12.04

On version 14, everything was collected: lol:
Originally on tplink 941nd v6 no Luci
removing nothing collected with luci: happy:


Thanks for the advice guys. I'll try again but with Xubuntu 16.04.3 LTS (Xenial Xerus)

Posted on 1/14/2018, 23:29:

Yellow Horror @ 01/14/18, 11:10*
parallelno, all cross-compilation and assembly should correctly pass from under a user with limited rights. Sudo may only be needed during the installation of the cross-compilation toolkit. Starting with the "git clone" command and further, superuser rights are not needed and, moreover, harmful.


I'd love to, but you read my previous posts. when compiling an error that no access rights. (



Rep: (573)
wrote all the messages when building on Ubuntu14

Well, that means I'm already a little distracted in the evening. In any case, everything is fine going if you put all the pridendals that I described and use that branch, I myself have recently checked, everything is fine. Here is the result on the old man dir 300
Attached Image

The topic is terrible looking and funny that it is still called LEDE.
By the way here I looked, the old versions moved to the archive
https://github.com/openwrt/archive/releases
Support for older releases of OpenWrt (until May 15th) will be discontinued, and for OpenWrt May 15th updates will be provided to fix vulnerabilities and serious problems. LEDE 17.01 support will be provided in full. In the next few months is expected to form a new significant release, which will be released under the name OpenWrt.



Rep: (0)
Everything is going fine, so think for yourself what the problem is, in turnips or in your version of the distribution


Perhaps I have found the root of evil. By default Virtual Box offers do zheskie dynamic disk. those. it allocates memory at once as long as necessary, and as needed. And during the installation packages and other things, it reported that the ubuntu-place finishes. At some point, I stopped paying attention to it. A place on the disk runs out completely. Allocated 10 gigs at boot partishen and 1.7GB on the swap. Who has allocated 15 gigs on the boot and lo and behold, the first and second stages of the compilation was successful! Now I compile firmware. What's the matter forward end. )

Post has been editedparallelno - 14.01.18, 23:51



Rep: (0)
I do not believe my eyes. All gathered without problems.
firmware lede-ramips-rt305x-mpr-a1-squashfs-sysupgrade.bin
size 3.1MB
so here. because of some nonsense so much trouble ...))
Thank you all guys for the tips!

But this firmware without LUCI and anything else you need. I hope everything fits. But if not, tell me pliz what the maximum size should be for the firmware, if I have 4MB flash and Uboot.



Rep: (0)
Rebuilt with what you need, I got 3.6 megabytes. The last one downloaded from the openwrt site for my router and which is now flooded into the router, weighed 3.4MB and it still seemed to have 240 kilobytes of free space on the flash.
those. firmware in the butt Pliz tell me what is the maximum size for a 4MB flash drive.



Rep: (573)
parallelno @ 01/15/18, 00:05*
Pliz tell me what is the maximum size for a 4MB flash drive.

Well, if you collected for a specific profile of the router, then if you exceed the size of the firmware relative to the flash drive, the file squashfs-sysupgrade.bin does not create as far as I remember. : unsure:
What I collected today turned out to be 3.7 for a 4 meter flash drive and free space 84.00 KB shows.
http://wiki.openwrt.org/doc/howto/buildIf running make last sentence does not yield images for one ... as it probably is.

Post has been editedstp101 - 15.01.18, 00:22



Rep: (0)
Thank you. Was sewed. I did everything as it was
https://youtu.be/_u8xOenA5BY


and got the result! Hooray!
Attached Image


True, at 640 * 480 fps it feels like only 1-2 and the processor load is 70%. We need to further understand.

Post has been editedstp101 - 15.01.18, 01:36
Reason for editing: Under the spoiler pictures



Rep: (11)
parallelno @ 01/15/18 04:05*
Pliz tell me what is the maximum size for a 4MB flash drive.


If I am not mistaken, then, someone in this thread wrote:

in case of using a router with 4 MB of flash memory, the size of the firmware file with the marking of squashfs factory should not exceed 3.8 MB or3932160 bye t; check it twice before proceeding with the firmware of the router

If I am mistaken, I apologize, the flu, lazy and hard to look for :)

UPD:

I do not believe my eyes. everything gathered without problems
..............................
But this firmware without LUCI and anything else you need.


From the firmware, you can throw a lot of things, as an example:
Compilation options

Turn on the Strip
Disable Debug
Disable support for Mesh networks
Disable IPv6 support
Change the size of the block SquashFS
Remove information about installed packages


Further, with care, as needed:
What packages can be removed

OPKG Package Manager
Dropbear - SSH Server
uclient-fetch
WPAd - Wi-Fi Daemon
iwinfo - wifi command line information
USB 1.x aka OHCI

INFA taken from this article:


OPKG, by definition, is not needed, since you are assembling the firmware yourself, you will be able to include the necessary package in it during assembly.
About serverSshI would argue, especially if, without LuCi, everything depends on the danger of the environment, there is a usual telnet offered for replacement, so it’s your choice.
WPAd is replaced by WPAd-mini, but the author suggests replacing it with packages, the development of which leaves much to be desired. I am certainly not an expert, but, all the same, security holes should be closed, and who closes them, if the packages are not updated, is a rhetorical question.
Well, USB, if not in the router, is uniquely deleted, if there is, then decide for what purposes and select only the necessary packages.

Further,STRIPandDEBUGit cleans up normally, and you are struggling for size ... However, please note that without debugging, some glitches, if any, you may not catch.
To summarize: It helped me, the place remained decent.

Post has been editedCrestFallen_Soul - 15.01.18, 12:47



Rep: (66)
The maximum size of the firmware depends on the specific device. If the correct target is selected before the build, the firmware with a size larger than the allowed one will not be assembled, the files * sysupgrade.bin and * factory.bin will not be created.



Rep: (2)
CrestFallen_Soul @ 01/15/18, 12:10*
WPAd is replaced by WPAd-mini, but the author suggests replacing it with packages, the development of which leaves much to be desired. I am certainly not an expert, but, all the same, security holes should be closed, and who closes them, if the packages are not updated, is a rhetorical question.

All these wpa * and hostapd * are built from the same source code by enabling / disabling dependencies, so if the latest version of the source code is, then there will be no holes in all derived packages.
On the pages of the official wiki
https: //wiki.openwrt.o...wto/wireless.utilities
https: //wiki.openwrt.o...ci/wireless/encryption
what packages are needed for this or that functionality.

Posted on 1/16/2018 21:30:

If there is someone who understands porting OpenWRT / Lede, I suggest creating a topic for the relevant discussion and exchange of experience.
IMHO, the build process from source and using imagebuilder is well described in the official project wiki, but with porting, even there everything is completely deaf.



Rep: (25)
* iplate , I'm trying to port the device myself ... For almost a year already .. Successes have been .. But very minor



Rep: (573)
Automatic reboot by Cron in OpenWrt / LEDE (example of Cron jobs)

The crontab table consists of 6 columns, separated by spaces or tabs. The first five columns set the execution time (Minute, Hour, Day, Month, Day of the Week).
In each of the five time fields you can put:
meaning any value
5 single value
15.25,40 comma-separated list of values
9-18 range of values
* / 5 period of values ​​(in the minute field it means every 5 minutes)
All other characters in the string are interpreted as an executable command with its parameters.
| | | | |
| | | | ----- Day of the week (0 - 7) (Sunday = 0)
| | | ------- Month (1 - 12)
| | --------- Day (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)
Examples:
/ 10 5,7,11 root command1 the command will be launched every 10 minutes in July and July
0 9-18 1-5 root command2 command will be run once per hour during the workday (from 9 to 18) from Monday to Friday
We write everything here
Attached Image

Example command: 53 6 * * 2 reboot - reboot at 6.53 every Tuesday
Naturally, by this principle it is possible not only to reboot the router, but also a lot more to do.

Post has been editedstp101 - 18.01.18, 20:06
Reason for editing: Instructions for caps, if that.


Full version    

Help     rules

Time is now: 18/10/20, 2:15