But now with latest openwrt 18.06.0 there is couple of problems. I found out, that atleast aiccu, odhcp, and some just had to be removed. Well that is not the problem.
Now the problem is that my router will lose configuration settings after reboot, so I will have to remove some packages. I just don't know which packages are useless for me from above config.
I will need basic openwrt system with luci and these additional features:
You should only include in your command the packages that you actually want. The device profile and your selected packages will then pick up the needed dependency packages.
E.g. your list includes support for 3G USB modems (proto3g, comgt etc.) and that is not on your list. Similarly there are PPTP related packages. Plus USB disk mounting related stuff.
Looks like you have compiled the by including all kind of stuff unrelated to your actual needs.
You should cleanup the whole list, and just add the device and those packages that you listed as needed: luci-app-statistics, collectd modules, luci-app-sqm and cake, openvpn related stuff etc.
Thanks ! I earlier used 3G modem, and that is why there is so much stuff. Problem is that I don't really know which are the packages I can remove. First time I build the image I found some instruction how to know which packages were installed and all those are from that time.
If it is not much to ask, maybe someone can "write down" correct PACKAGES line for me.
Problem is that it's a lot of work to pick the packages for everything. Have you tried running "make menuconfig" and selecting the stuff you want? You can start by picking in the Luci apps category. You need to read the documentation to see which additional packages are needed. "Samba network share (usb stick)" doesn't make much sense. Do you want to mount a network share or a USB stick? You need Samba for network shares, or USB and file system drivers for a USB stick.
I agree with the suggestions thus far, but another thought...
Are you deploying a fleet of devices, or just one? Your list of requirements is not that long, so if you're just doing one or two, you may want to consider just flashing the standard image that is already available via the openwrt downloads page. From there, you should be able to install all of those things via the package manger (opkg) fairly easily and quickly since you really don't have too many extra packages to install. The opkg system will also handle installing the dependencies, too. You could even create a small script to do this if you've got multiple units and/or think you may re-install the image again.
Simly add the additional packages you need to PACKAGES... All other default packages are included anyway.
The dependencies of other packages are automatically resolved as with opkg.
If you run out of space, try to remove some single default packages with a leading "-".
Do you mean that I could use this as PACKAGES line "nano luci-app-statistics collectd-mod-conntrack collectd-mod-ping collectd-mod-uptime luci-app-sqm luci-app-samba luci-app-upnp ddns-scripts_no-ip_com luci-app-ddns kmod-usb-storage kmod-fs-ext4 usbutils 6in4 6rd 6to4 luci-app-openvpn openvpn-easy-rsa openvpn-openssl" ?
Yes. And if you run out of space, check the buildlog for unneeded packages and specify that with the leading "-" to not include it in a second build run.