Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH v2] kernel: rtl8366-smi: add Realtek switch management via mii-bus

2018-04-04 Thread Сергей Василюгин
04.04.2018, 00:22, "Florian Fainelli" : > On 04/03/2018 10:13 AM, Сергей Василюгин wrote: > The switch node should be moved under the mdio controller node below, > parent/child relationships imply the control bus. > Ok > > You should have two entry points for your driver, and have shared code,

[OpenWrt-Devel] [PATCH 0/4] Gemini forward-port to kernel v4.14

2018-04-04 Thread Linus Walleij
This patch set forward-ports Gemini to v4.14 with as good support as I can get. I don't know if all or any patches actually make it through to the devel list. They are also posted here: https://dflund.se/~triad/krad/gemini/openwrt/ It would be nice if we could apply this and get a working modern

[OpenWrt-Devel] [PATCH 1/4] firmware-utils: Add the DNS-313 image header tool

2018-04-04 Thread Linus Walleij
This tool is used to create headers on images for the D-Link DNS-313. Signed-off-by: Linus Walleij --- tools/firmware-utils/Makefile| 1 + tools/firmware-utils/src/dns313-header.c | 239 +++ 2 files changed, 240 insertions(+) create mode 100644 tools/fi

[OpenWrt-Devel] [PATCH 4/4] gemini: Delete kernel 4.4 patches

2018-04-04 Thread Linus Walleij
The v4.14 kernel is what we should be using so get rid of those old patches. The old patches doesn't even support using device tree. Signed-off-by: Linus Walleij --- target/linux/gemini/config-4.4 | 165 --- .../linux/gemini/patches-4.4/050-gpio-to-irq.patch | 21

[OpenWrt-Devel] [PATCH v2 0/4] [RFC] base-files: add new backup options

2018-04-04 Thread Luiz Angelo Daros de Luca
My previous patch on Nov2017 (http://lists.infradead.org/pipermail/lede-dev/2017-November/009892.html) generated some discussion because it depends on the presence of /rom to become effetive. So I opted to turn it into a new sysupgrade option (-u). Besides that, I added some more stuff to sysupgr

[OpenWrt-Devel] [PATCH v2 1/4] base-files: minor cleanups on sysupgrade

2018-04-04 Thread Luiz Angelo Daros de Luca
Renamed add_uci_conffiles to add_conffiles as it includes any conffiles listed, not only UCI ones. Make do_save_conffiles arg mandatory Allow other options after -l (like -c) Signed-off-by: Luiz Angelo Daros de Luca --- package/base-files/files/sbin/sysupgrade | 15 --- 1 file chan

[OpenWrt-Devel] [PATCH v2 2/4] base-files: add sysupgrade -u to skip unchanged files

2018-04-04 Thread Luiz Angelo Daros de Luca
With '-u', for a file /aaa/bbb/ccc enlisted for backup, it will only get into backup if /rom/aaa/bbb/ccc does not exist or /aaa/bbb/ccc is different from /rom/aaa/bbb/ccc. It also works with '-c', but only effective for files touched but not modified. Signed-off-by: Luiz Angelo Daros de Luca ---

[OpenWrt-Devel] [PATCH v2 3/4] base-files: add sysupgrade -o to save all overlay files

2018-04-04 Thread Luiz Angelo Daros de Luca
Add sysupgrade '-o' option in order to include all overlay files in backup, except for those that are from packages but including files listed in conffiles, sysupgrade.conf or /lib/upgrade/keep.d. With '-u' option, it will skip files equals to /rom and conffiles that were not changed. Signed-off-

[OpenWrt-Devel] [PATCH v2 4/4] base-files: add sysupgrade -k to save list of pkgs

2018-04-04 Thread Luiz Angelo Daros de Luca
When '-k' is used, sysupgrade inserts into backup a new file /etc/sysupgrade.installed which contains pkgname and origin (rom, overlay, unknown). It's maily used to reinstall all extra packages: # opkg update # grep "\toverlay" etc/sysupgrade.installed | cut -f1 | xargs opkg install # rm etc/s