SuccessChanges

Summary

  1. kernel: bump 4.9 to 4.9.199 (commit: 015fefa) (details)
  2. kernel: bump 4.14 to 4.14.152 (commit: ecfe552) (details)
  3. kernel: bump 4.19 to 4.19.82 (commit: 6589de9) (details)
  4. netifd: add dynamic wireless reconfiguration (commit: 155ede4) (details)
  5. hostapd: add ubus reload (commit: 60fb4c9) (details)
  6. mac80211: add support for dynamically reconfiguring wifi (commit: a5bc978) (details)
  7. base-files: add 'wifi reconf' (commit: 6becc37) (details)
  8. build: image: posix compatibility cut v head (commit: dfd8c45) (details)
  9. base-files: remove shebang from uci-defaults files (commit: 4b81c1f) (details)
  10. ramips: read label MAC address from flash instead of using phy0/phy1 (commit: f4c3cfc) (details)
  11. ath79: read label MAC address from flash instead of using phy0/phy1 (commit: d421a8b) (details)
  12. ar71xx: fix MAC addresses for Archer C5 v1, C7 v1/v2, WDR4900 v2 (commit: a021268) (details)
  13. ramips: fix MAC address setup for Samsung CY-SWR1100 (commit: 7231c1e) (details)
  14. ramips: improve Samsung CY-SWR1100 support (commit: aabdf69) (details)
  15. ramips: change status LED of Samsung CY-SWR1100 (commit: fe6a04a) (details)
  16. ramips: add usb-ledtrig-usbport to DEVICE_PACKAGES of CY-SWR1100 (commit: 261c746) (details)
  17. base-files: add /usr/share/libubox/jshn.sh to sysupgrade stage2 (commit: b20b997) (details)
  18. ramips: support dual image feature on ALFA Network boards (commit: bc173dd) (details)
  19. ramips: add support for ALFA Network R36M-E4G (commit: dfecf94) (details)
  20. uboot-envtools: ramips: add support for ALFA Network R36M-E4G (commit: 3cfea3a) (details)
  21. ramips: provide label MAC for ALFA Network Tube-E4G (commit: fc0d0f5) (details)
  22. ramips: mt7621: refresh kernel config (commit: 44d7a14) (details)
  23. ramips: add support for ALFA Network Quad-E4G (commit: e68539a) (details)
  24. uboot-envtools: ramips: add support for ALFA Network Quad-E4G (commit: 10bcf1e) (details)
  25. ath79: prepare NAND subtarget for upstream support of SPI NAND (commit: 20b3e77) (details)
  26. ath79: GL-AR300M: provide NAND support; increase to 4 MB kernel (commit: 55e6c90) (details)
  27. ath79: add GL.iNet GL-AR300M16 as NOR-only board (commit: b591cab) (details)
  28. ath79: GL-AR750S: provide NAND support; increase kernel to 4 MB (commit: b496a22) (details)
  29. mac80211: restore mac80211_interface_cleanup() (commit: 000b768) (details)
  30. ath79: include rssileds package for ubnt devices with LEDs (commit: 1c6066a) (details)
  31. kernel: fix typo in fb-sys-fops autoload (commit: 6990510) (details)
  32. kernel-build: fix kernel_menuconfig breakage by forcing YACC (commit: f962e02) (details)
  33. ath79: remove obsolete OF PCI related config symbols (commit: fa83455) (details)
  34. base-files: rc.common: fix missing EXTRA_HELP texts (commit: 953c27d) (details)
  35. build: prereq: simplify Python 3 version checks (commit: c001ace) (details)
  36. build: prereq: add support for Python 3.8 (commit: 2066ee0) (details)
  37. libnl-tiny: update to latest Git head (commit: 5d7fcd0) (details)
  38. uci: update to latest Git head (commit: 240d590) (details)
  39. fwtool: update to latest Git head (commit: 8f0a540) (details)
  40. ath79: improve common DTSI name for TP-Link Archer C5, C7 v1/v2 (commit: bcee364) (details)
  41. ath79: fix indent in TP-Link TL-WDR4900 v2 DTS (commit: 71fbec0) (details)
  42. ath79: split dts file for Netgear WNDR4300 (commit: 119e0d5) (details)
  43. ath79: add support for Netgear WNDR3700v4 (commit: 7e623c3) (details)
  44. ath79: fix sysupgrade from ar71xx for WNDR3700 V2 and WNDR3800(CH) (commit: fc44a84) (details)
  45. mediatek: fix bootup problem on mt7629 EVB (commit: 50735df) (details)
  46. mediatek: drop accidentially commited file (commit: 1ea22e4) (details)
  47. ath79: fix firmware partition attributes for GL-AR300M16 and -Lite (commit: f84d6d2) (details)
  48. Revert "mac80211: restore mac80211_interface_cleanup()" (commit: 50d6e92) (details)
  49. mac80211: detect existing interface before adding (commit: ccf2aa9) (details)
  50. general: add README.md (commit: a38a81d) (details)
  51. build: update download.pl to change priority of mirrors (commit: 1506a7e) (details)
  52. ramips: Add support for I-O DATA WN-G300DGR (commit: fc21c01) (details)
  53. ath79: add support for Logitec LAN-W451NGR (commit: 8a5ead1) (details)
  54. ramips: add support for ELECOM WRC-1167GHBK2-I (commit: c2722d7) (details)
  55. ramips: add support for I-O DATA WN-G300R3 (commit: 5824be4) (details)
Commit 015fefa8e7fb65503d15654903be694b6ccbf952 by koen.vandeputte
kernel: bump 4.9 to 4.9.199

Refreshed all patches.

Compile-tested on: none
Runtime-tested on: none

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(commit: 015fefa)
The file was modifiedtarget/linux/generic/hack-4.9/661-use_fq_codel_by_default.patch (diff)
The file was modifiedinclude/kernel-version.mk (diff)
Commit ecfe552f9915eb6bf10fce473b4a4ea9e6c07840 by koen.vandeputte
kernel: bump 4.14 to 4.14.152

Refreshed all patches.

Altered patches:
- 301-arch-support-layerscape.patch

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(commit: ecfe552)
The file was modifiedinclude/kernel-version.mk (diff)
The file was modifiedtarget/linux/generic/hack-4.14/661-use_fq_codel_by_default.patch (diff)
The file was modifiedtarget/linux/layerscape/patches-4.14/301-arch-support-layerscape.patch (diff)
Commit 6589de9af79f58175e4af22a98122e62896aba8a by koen.vandeputte
kernel: bump 4.19 to 4.19.82

Refreshed all patches.

Remove upstreamed:
- 950-0295-sc16is7xx-Fix-for-Unexpected-interrupt-8.patch

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(commit: 6589de9)
The file was modifiedtarget/linux/mediatek/patches-4.19/0005-pinctrl-mediatek-sync-with-5.3.patch (diff)
The file was modifiedtarget/linux/brcm2708/patches-4.19/950-0730-hid-usb-Add-device-quirks-for-Freeway-Airmouse-T3-an.patch (diff)
The file was modifiedtarget/linux/mediatek/patches-4.19/0006-mtd-spi-nor-mtk-quadspi-add-SNOR_HWCAPS_READ-to-spi_.patch (diff)
The file was removedtarget/linux/brcm2708/patches-4.19/950-0295-sc16is7xx-Fix-for-Unexpected-interrupt-8.patch
The file was modifiedtarget/linux/mediatek/patches-4.19/0004-clk-mediatek-add-clock-support-for-MT7629-SoC.patch (diff)
The file was modifiedtarget/linux/brcm2708/patches-4.19/950-0100-ARM64-Force-hardware-emulation-of-deprecated-instruc.patch (diff)
The file was modifiedtarget/linux/brcm2708/patches-4.19/950-0149-sc16is7xx-Don-t-spin-if-no-data-received.patch (diff)
The file was modifiedtarget/linux/generic/hack-4.19/661-use_fq_codel_by_default.patch (diff)
The file was modifiedtarget/linux/mediatek/patches-4.19/0003-arm-mediatek-add-MT7629-smp-bring-up-code.patch (diff)
The file was modifiedinclude/kernel-version.mk (diff)
The file was modifiedtarget/linux/brcm2708/patches-4.19/950-0181-Revert-rtc-pcf8523-properly-handle-oscillator-stop-b.patch (diff)
The file was modifiedtarget/linux/brcm2708/patches-4.19/950-0040-Add-dwc_otg-driver.patch (diff)
The file was modifiedtarget/linux/mediatek/patches-4.19/0002-Revert-ARM-mediatek-add-MT7623a-smp-bringup-code.patch (diff)
Commit 155ede4f1fdb192b11f8ae2dbffda5f7ef4903bd by daniel
netifd: add dynamic wireless reconfiguration

7a723d0 wireless: add ubus method for reloading configuration
e15147c wireless: make reconf opt-in and allow serializing configuration

Set new option 'reconf' in 'wifi-device' section to enable dynamic
re-configuration on that radio.
If necessary, also set option 'serialize' which forced netifd to
configure interfaces of wireless devices one-by-one.
Both options are disabled by default.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(commit: 155ede4)
The file was modifiedpackage/network/config/netifd/Makefile (diff)
Commit 60fb4c92b6b0d1582d31e02167b90b424185f3a2 by daniel
hostapd: add ubus reload

Add ubus interface to hostapd and wpa_supplicant to allow dynamically
reloading wiface configuration without having to restart the hostapd
process.
As a consequence, both hostapd and wpa_supplicant are now started
persistently on boot for each wifi device in the system and then
receive ubus calls adding, modifying or removing interface
configuration.
At a later stage it would be desirable to reduce the services to one
single instance managing all radios.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(commit: 60fb4c9)
The file was modifiedpackage/network/services/hostapd/files/hostapd.sh (diff)
The file was addedpackage/network/services/hostapd/patches/700-wifi-reload.patch
The file was modifiedpackage/network/services/hostapd/patches/600-ubus_support.patch (diff)
The file was modifiedpackage/network/services/hostapd/Makefile (diff)
The file was modifiedpackage/network/services/hostapd/src/wpa_supplicant/ubus.h (diff)
The file was addedpackage/network/services/hostapd/files/hostapd.hotplug
The file was modifiedpackage/network/services/hostapd/src/src/ap/ubus.c (diff)
The file was modifiedpackage/network/services/hostapd/src/wpa_supplicant/ubus.c (diff)
The file was modifiedpackage/network/services/hostapd/src/src/ap/ubus.h (diff)
Commit a5bc9787d4ef89c9e2593a191b3c4cf8702b41a3 by daniel
mac80211: add support for dynamically reconfiguring wifi

Change scripts to use ubus interface of hostapd/wpa_supplicant to
add/remove/modify wireless interfaces instead of (re-)starting the
services.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(commit: a5bc978)
The file was modifiedpackage/kernel/mac80211/Makefile (diff)
The file was modifiedpackage/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh (diff)
Commit 6becc37f33be4c2f2b5d58467bdda41c251d9e2e by daniel
base-files: add 'wifi reconf'

Now that netifd and hostapd allow dynamic reconfiguration, add a
command to trigger it.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(commit: 6becc37)
The file was modifiedpackage/base-files/files/sbin/wifi (diff)
The file was modifiedpackage/base-files/Makefile (diff)
Commit dfd8c45a98f82c69cad7a622016aa70210b025c5 by ldir
build: image: posix compatibility cut v head

Replace 2 instances of non posix use of 'head' with posix compliant
'cut'.

'head -c n' cuts 'n' bytes from the passed string and happens to work on
Linux & Mac OS X even though '-c' is not posix.

'head --bytes n' does the same thing and happens to work on linux but
not on Mac OS X and is also not posix.

'cut -b1-8' cuts the first 8 bytes from the passed string and is posix
compliant, hence works on Linux & Mac OS X.

Our usage of 'head --bytes' was particularly unfortunate since it was
used to calculated the RootFS UUID passed to grub - the net result being
a non-functioning system waiting for the root file system to appear.

Thanks to karlp, ynezz & others for pointers on solving this.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
(commit: dfd8c45)
The file was modifiedinclude/image.mk (diff)
Commit 4b81c1fd570c61ca7bafa5baf750e7364bd8117f by freifunk
base-files: remove shebang from uci-defaults files

uci-defaults are sourced and non-executable, so they do not require
a shebang.

While at it, apply consistent naming scheme.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: 4b81c1f)
The file was modifiedpackage/base-files/Makefile (diff)
The file was modifiedpackage/base-files/files/etc/uci-defaults/12_network-generate-ula (diff)
The file was removedpackage/base-files/files/etc/uci-defaults/13_fix_group_user
The file was modifiedpackage/base-files/files/etc/uci-defaults/10_migrate-shadow (diff)
The file was addedpackage/base-files/files/etc/uci-defaults/13_fix-group-user
Commit f4c3cfc620db16484fd85570c8215abc3b36dc82 by freifunk
ramips: read label MAC address from flash instead of using phy0/phy1

This replaces all uses of $(cat /sys/class/ieee80211/phyX/macaddress)
by retrieval from the proper flash locations. This will make
02_network independent of WiFi setup again.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: f4c3cfc)
The file was modifiedtarget/linux/ramips/mt7620/base-files/etc/board.d/02_network (diff)
The file was modifiedtarget/linux/ramips/mt7621/base-files/etc/board.d/02_network (diff)
The file was modifiedtarget/linux/ramips/mt76x8/base-files/etc/board.d/02_network (diff)
The file was modifiedtarget/linux/ramips/rt305x/base-files/etc/board.d/02_network (diff)
Commit d421a8b9448968de0e3265f5beb469c210a909ab by freifunk
ath79: read label MAC address from flash instead of using phy0/phy1

This replaces all uses of $(cat /sys/class/ieee80211/phyX/macaddress)
by retrieval from the proper flash locations. This will make
02_network independent of WiFi setup again.

For future reference:

The MAC addresses of the FRITZ!WLAN Repeater 300E can be extracted
from the urlader key value store:

maca        *:6B
macb        *:6C
macwlan     *:6D
macdsl      *:6E

and be set by e.g.
addr=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: d421a8b)
The file was modifiedtarget/linux/ath79/generic/base-files/etc/board.d/02_network (diff)
Commit a021268032fb64afdce7bafa91c7c7bf44fa6ff2 by freifunk
ar71xx: fix MAC addresses for Archer C5 v1, C7 v1/v2, WDR4900 v2

As discussed in 1d18a14a90c7 ("ath79: really fix TP-Link Archer C7
v2 MAC address"), stock firmware MAC address assignment is
actually as follows:

wlan0 (5GHz) : -1
wlan1 (2.4GHz) : 0
eth1 (LAN) : 0
eth0 (WAN) : 1

This has never been fixed for ar71xx, so let's do it now.
Note that with WDR4900 v2 even both wlan0 and wlan1 where assigned
to basemac-1 before ...

Fixes: FS#408

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: a021268)
The file was modifiedtarget/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata (diff)
The file was modifiedtarget/linux/ar71xx/files/arch/mips/ath79/mach-archer-c7.c (diff)
Commit 7231c1edd99217c6baa8d7d5d841d75ad9de26f1 by freifunk
ramips: fix MAC address setup for Samsung CY-SWR1100

Ethernet MAC address setup has been broken since c3e420f28cf1. Restore
original setting.

Fixes: c3e420f28cf1 ("ramips: Add support for D-Link DCH-M225")

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
(commit: 7231c1e)
The file was modifiedtarget/linux/ramips/rt3883/base-files/etc/board.d/02_network (diff)
Commit aabdf6991cce55a76540c91ff3b5177afd8dce99 by freifunk
ramips: improve Samsung CY-SWR1100 support

This patch does the following:

- rename "devdata" flash partition and make it read-only
- switch from gpio-keys-polled to gpio-keys
- add missing power LED
- set correct PCI ID to compatible string in wifi node
- remove ralink,5ghz property in wifi node
- provide label MAC address

Rename devdata partition to devconf as indicated in the stock firmware
partition table:
00030000-00040000: "devdata"
00040000-00050000: "devconf"

Power LED can be controlled by SoC GPIO. Add it in the dts leds node.

RT3092L supports only bgn mode, so it is unnecessary to disable 5GHz band.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
(commit: aabdf69)
The file was modifiedtarget/linux/ramips/rt3883/base-files/etc/board.d/02_network (diff)
The file was modifiedtarget/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts (diff)
Commit fe6a04a8fe85755f080971280aa6a2b34f79718c by freifunk
ramips: change status LED of Samsung CY-SWR1100

Use power LED for status indication and free WPS LED for other uses.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
(commit: fe6a04a)
The file was modifiedtarget/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts (diff)
Commit 261c746631d2bf311a6b62a6d3bacce6fde90976 by freifunk
ramips: add usb-ledtrig-usbport to DEVICE_PACKAGES of CY-SWR1100

CY-SWR1100 has a USB LED but kmod-usb-ledtrig-usbport is missing
in default images. This commit adds it.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
[changed commit title]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: 261c746)
The file was modifiedtarget/linux/ramips/image/rt3883.mk (diff)
Commit b20b997c680e38f999e4608b158ef08718527ca0 by daniel
base-files: add /usr/share/libubox/jshn.sh to sysupgrade stage2

Discovered recent changes had broken sysupgrade for ar71xx mikrotik
rb-493g, traced the problem to missing /usr/share/libubox/jshn.sh after
switching to tmpfs.

Signed-off-by: Russell Senior <russell@personaltelco.net>
(commit: b20b997)
The file was modifiedpackage/base-files/files/lib/upgrade/stage2 (diff)
Commit bc173ddd8381b03dde8cc2e6c66d0cd392c62bbd by pepe2k
ramips: support dual image feature on ALFA Network boards

New U-Boot version for MediaTek MT76x8/MT762x based ALFA Network boards
includes support for a 'dual image' feature. Users can enable it using
U-Boot environment variable 'dual_image' ('1' -> enabled).

When 'dual image' feature is enabled, U-Boot will modify DTB and divide
the original 'firmware' flash area into two, equal in size and aligned
to 64 KB partitions: 'firmware' and 'backup'. U-Boot will also adjust
size of 'firmware' area to match installed flash chip size.

U-Boot will load kernel from active partition which is marked with env
variable 'bootactive' ('1' -> first partition, '2' -> second partition)
and rename both partitions accordingly ('firmware' <-> 'backup').

There are 3 additional env variables used to control 'dual image' mode:
- bootlimit   - maximum number of unsuccessful boot tries (default: '3')
- bootcount   - current number of boot tries
- bootchanged - flag which informs that active partition was changed; if
                it is set and 'bootcount' reaches 'bootlimit' value,
                U-Boot will start web-based recovery which then updates
                both partitions with provided image

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
(commit: bc173dd)
The file was modifiedtarget/linux/ramips/mt76x8/base-files/etc/init.d/bootcount (diff)
The file was addedtarget/linux/ramips/mt7620/base-files/etc/init.d/bootcount
The file was modifiedtarget/linux/ramips/mt7620/base-files/lib/upgrade/platform.sh (diff)
The file was modifiedtarget/linux/ramips/mt76x8/base-files/lib/upgrade/platform.sh (diff)
Commit dfecf94c2059998411f95067de3866aa7cdf5ec9 by pepe2k
ramips: add support for ALFA Network R36M-E4G

ALFA Network R36M-E4G is a dual-SIM, N300 Wi-Fi, compact size platform
based on MediaTek MT7620A WiSoC. This product is designed for operation
with 4G modem (can be bought in bundle with Quectel EC25, EG25 or EP06)
but supports also Wi-Fi modules (miniPCIe slot has USB and PCIe buses).

Specification:

- MT7620A (580 MHz)
- 64/128/256 MB of RAM (DDR2)
- 16/32+ MB of FLASH (SPI NOR)
- 2x 10/100 Mbps Ethernet, with passive PoE support (24 V)
- 2T2R 2.4 GHz (MT7620A), with ext. LNA (RFFM4227)
- 1x miniPCIe slot (with PCIe and USB 2.0 buses and optional 5 V)
- 2x SIM slot (mini, micro) with detect and switch driven by GPIO
- 2x u.fl antenna connectors (for Wi-Fi)
- 8x LED (7 driven by GPIO)
- 2x button (reset, wifi)
- 2x UART (4-pin/2.54 mm pitch, 10-pin/1.27 mm pitch) headers on PCB
- 1x I2C (4-pin, 1.27 mm pitch) header on PCB
- 1x LED (8-pin, 1.27 mm pitch) header on PCB
- 1x DC jack with lock (12 V)

Other:

- there is a dedicated, 4-pin connector for optional RTC module (Holtek
  HT138x) with 'enable' input, not available at the time of preparing
  support for this board
- miniPCIe slot supports additional 5 V supply on pins 47 and 49 but a
  jumper resistor (R174) is not installed by default
- U-Boot selects default SIM slot, based on value of 'default_sim' env
  variable: '1' or unset -> SIM1 (mini), '2' -> SIM2 (micro). This will
  work only if both slots are occupied, otherwise U-Boot will always
  select slot with SIM card inside (user can override it later, in
  user-space)
- U-Boot resets the modem, using PERSTn signal, before starting kernel
- this board supports 'dual image' feature (controlled by 'dual_image'
  U-Boot environment variable)

Flash instruction:

You can use the 'sysupgrade' image directly in vendor firmware which is
based on OpenWrt (make sure to not preserve settings - use 'sysupgrade
-n -F ...' command). Alternatively, use web recovery mode in U-Boot:

1. Power the device with reset button pressed, the modem LED will start
   blinking slowly and after ~3 seconds, when it starts blinking faster,
   you can release the button.
2. Setup static IP 192.168.1.2/24 on your PC.
3. Go to 192.168.1.1 in browser and upload 'sysupgrade' image.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
(commit: dfecf94)
The file was modifiedtarget/linux/ramips/mt7620/base-files/etc/board.d/01_leds (diff)
The file was modifiedtarget/linux/ramips/mt7620/base-files/etc/board.d/02_network (diff)
The file was modifiedtarget/linux/ramips/mt7620/base-files/lib/upgrade/platform.sh (diff)
The file was modifiedtarget/linux/ramips/mt7620/base-files/etc/init.d/bootcount (diff)
The file was addedtarget/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
The file was modifiedtarget/linux/ramips/image/mt7620.mk (diff)
Commit 3cfea3a32125a2c59dfaa9103804ad51609ebe9d by pepe2k
uboot-envtools: ramips: add support for ALFA Network R36M-E4G

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
(commit: 3cfea3a)
The file was modifiedpackage/boot/uboot-envtools/files/ramips (diff)
Commit fc0d0f5dfdfcc392e8009115a7ac3b500614f97c by pepe2k
ramips: provide label MAC for ALFA Network Tube-E4G

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
(commit: fc0d0f5)
The file was modifiedtarget/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts (diff)
Commit 44d7a14a83dbe359593c5ae7e71513c3e596b6b8 by pepe2k
ramips: mt7621: refresh kernel config

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
(commit: 44d7a14)
The file was modifiedtarget/linux/ramips/mt7621/config-4.14 (diff)
Commit e68539aca43a560077364de27eb220f1d85ca3ef by pepe2k
ramips: add support for ALFA Network Quad-E4G

ALFA Network Quad-E4G is a universal Wi-Fi/4G platform, which offers
three miniPCIe (PCIe, USB 2.0, SIM) and a single M.2 B-key (dual-SIM,
USB 3.0) slots, RTC and five Gigabit Ethernet ports with PoE support.

Specification:

- MT7621A (880 MHz)
- 256/512 MB of RAM (DDR3)
- 16/32+ MB of FLASH (SPI NOR)
- optional second SPI flash (8-pin WSON/SOIC)
- 1x microSD (SDXC) flash card reader
- 5x 10/100/100 Mbps Ethernet, with passive PoE support (24 V) in LAN1
- optional 802.3at/af PoE module for WAN
- 3x miniPCIe slot (with PCIe and USB 2.0 buses, micro SIM and 5 V)
- 1x M.2/NGFF B-key 3042 (USB 3.0/2.0, mini + micro SIM)
- RTC (TI BQ32002, I2C bus) with backup battery (CR2032)
- external hardware watchdog (EM Microelectronic EM6324)
- 1x USB 2.0 Type-A
- 1x micro USB Type-B for system serial console (Holtek HT42B534)
- 11x LED (5 for Ethernet, 5 driven by GPIO, 1x power indicator)
- 3x button (reset, user1, user2)
- 1x I2C (4-pin, 2.54 mm pitch) header on PCB
- 4x SIM (6-pin, 2.00 mm pitch) headers on PCB
- 2x UART2/3 (4-pin, 2.54 mm pitch) headers on PCB
- 1x mechanical power switch
- 1x DC jack with lock (24 V)

Other:

- U-Boot selects default SIM slot, based on value of 'default_sim' env
  variable: '1' or unset -> SIM1 (mini), '2' -> SIM2 (micro). This board
  has additional logic circuit for M.2 SIM switching. The 'sim-select'
  will work only if both SIM slots are occupied. Otherwise, always slot
  with SIM inside is selected, no matter 'sim-select' value.
- U-Boot enables power in all three miniPCIe and M.2 slots before
  loading the kernel
- this board supports 'dual image' feature (controlled by 'dual_image'
  U-Boot environment variable)
- all three miniPCIe slots have additional 5 V supply on pins 47 and 49
- the board allows to install up to two oversized miniPCIe cards (vendor
  has dedicated MediaTek MT7615N/D cards for this board)
- this board has additional logic circuit controlling PERSTn pins inside
  miniPCIe slots. By default, PERSTn (GPIO19) is routed to all miniPCIe
  slots but setting GPIO22 to high allows PERSTn control per slot, using
  GPIO23-25 (value is inverted)

You can use the 'sysupgrade' image directly in vendor firmware which is
based on OpenWrt (make sure to not preserve settings - use 'sysupgrade
-n -F ...' command). Alternatively, use web recovery mode in U-Boot:

1. Power the device with reset button pressed, the modem LED will start
   blinking slowly and after ~3 seconds, when it starts blinking faster,
   you can release the button.
2. Setup static IP 192.168.1.2/24 on your PC.
3. Go to 192.168.1.1 in browser and upload 'sysupgrade' image.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
(commit: e68539a)
The file was modifiedtarget/linux/ramips/image/mt7621.mk (diff)
The file was modifiedtarget/linux/ramips/mt7621/config-4.14 (diff)
The file was modifiedtarget/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh (diff)
The file was addedtarget/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts
The file was modifiedtarget/linux/ramips/mt7621/base-files/etc/board.d/02_network (diff)
The file was modifiedtarget/linux/ramips/mt7621/base-files/etc/init.d/bootcount (diff)
Commit 10bcf1eb40b728b3583c1a7693111f27a9801dc5 by pepe2k
uboot-envtools: ramips: add support for ALFA Network Quad-E4G

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
(commit: 10bcf1e)
The file was modifiedpackage/boot/uboot-envtools/files/ramips (diff)
Commit 20b3e77ba3e690453203587afa174bef43ee339b by gch981213
ath79: prepare NAND subtarget for upstream support of SPI NAND

Linux 4.19 supplies the upstream spi-nand framework,
permitting porting and support of boards with SPI NAND.

  * Adjusted nand/target.mk to provide FEATURES += squashfs nand

  * Updated config-default to provide current MTD and UBI support

Defaults selected for:

  CONFIG_MTD_UBI_WL_THRESHOLD=4096
  CONFIG_MTD_UBI_BEB_LIMIT=20
  # CONFIG_MTD_UBI_FASTMAP is not set
  # CONFIG_MTD_UBI_GLUEBI is not set

The bad-block reservation limit technically should be 21 for Paragon
SPI NAND but most other devices in the class are 20 blocks per Gbit.
In Linux 5.2 this is specified on a per-chip basis through NAND_MEMORG

Contents adjusted to remove declarations provided at the target level
by commit 08a134820f5 (Oct 23, 2019) ath79: enable PCI for whole target

Signed-off-by: Jeff Kletsky <git-commits@allycomm.com>
Tested-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
(commit: 20b3e77)
The file was modifiedtarget/linux/ath79/nand/config-default (diff)
The file was modifiedtarget/linux/ath79/nand/target.mk (diff)
Commit 55e6c903ae20bd8e694f4626166766e59602f87c by gch981213
ath79: GL-AR300M: provide NAND support; increase to 4 MB kernel

The GL.iNet GL-AR300M has been supported by the ar71xx and ath79
platforms with access to its 16 MB NOR flash, but not its 128 MB
SPI NAND flash.

This commit provides support for the NAND through the upstream
SPI-NAND framework. Devices with both NOR and NAND flash can support
independent firmware on each, with U-Boot able to boot from either.
The OEM U-Boot will fall back to the NOR firmware after three
"unsuccessful" boots.

The family of GL-AR300M devices on the ath79 platform now includes:

  * glinet,gl-ar300m-lite       "generic" target, NOR-only board
  * glinet,gl-ar300m-nand       "nand" target
  * glinet,gl-ar300m-nor        "nand" target (NAND-aware)

NB: This commit increases the kernel size from 2 MB to 4 MB

"Force-less" sysupgrade is presently supported from the current
versions of following NOR-based firmwre images to the version of
glinet,gl-ar300m-nor firmware produced by this commit:

  * gl-ar300m            -- OEM v3 NOR    ar71xx (openwrt-ar300m16-*.bin)
  * gl-ar300m            -- OpenWrt 18.06 ar71xx
  * gl-ar300m            -- OpenWrt 19.07 ar71xx

Other upgrades to these images should be performed through U-Boot.

The GL-AR300M OEM U-Boot allows upload and flashing of either NOR
firmware (sysupgrade.bin) or NAND firmware (factory.img) through its
HTTP-based GUI. Serial connectivity is not required.

The glinet,gl-ar300m-nand and glinet,gl-ar300m-nor images generated
after this commit should safely flash each other using sysupgrade.

The boot counter is implemented by the OEM using u-boot-env. At this
time, it does not appear that the switch on the side of the unit can
be used to select NOR vs. NAND boot and the fail-over is only from
NAND to NOR. To save flash wear, it is only reset when running the
glinet,gl-ar300m-nand firmware.

NAND-specific base-files are used to remove impact on existing
generic and tiny targets.

As there is now no "generic" build appropriate for the GL-AR300M16,
(or for users of the GL-AR300M that do not need access to NAND)
it will be introduced in a subsequent commit.

Note: `mtd_get_mac_binary art 0x6` does not return the proper MAC
and the GL.iNet source indicates that only the 0x0 offset is valid

The ar71xx targets are unmodified.

Signed-off-by: Jeff Kletsky <git-commits@allycomm.com>
(commit: 55e6c90)
The file was addedtarget/linux/ath79/nand/base-files/etc/init.d/bootcount
The file was modifiedtarget/linux/ath79/nand/base-files/etc/board.d/01_leds (diff)
The file was modifiedtarget/linux/ath79/nand/base-files/lib/upgrade/platform.sh (diff)
The file was modifiedtarget/linux/ath79/dts/qca9531_glinet_gl-ar300m-nor.dts (diff)
The file was modifiedtarget/linux/ath79/image/nand.mk (diff)
The file was addedtarget/linux/ath79/nand/base-files/lib/upgrade/glinet.sh
The file was modifiedtarget/linux/ath79/generic/base-files/etc/board.d/01_leds (diff)
The file was modifiedtarget/linux/ath79/image/generic.mk (diff)
The file was modifiedtarget/linux/ath79/dts/qca9531_glinet_gl-ar300m-nand.dts (diff)
The file was modifiedtarget/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts (diff)
The file was modifiedtarget/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi (diff)
Commit b591cabd3989b44cfaf15248af9e55a0300a9c0a by gch981213
ath79: add GL.iNet GL-AR300M16 as NOR-only board

The GL.iNet GL-AR300M series of devices includes variants without NAND
and only the 16 MB NOR flash. These include the GL-AR300M16 and the
GL-AR300M-Lite (already with its own board name).

This board-name addition provides disambiguation from the NAND-bearing
GL-AR300M devices, both for OpenWrt code and for end users.

Kernel and firmware support for NAND and UBI will add ~320 kB to the
overall firmware size at this time. This NOR-only option continues to
provide more compact firmware for both the GL-AR300M16 as well as
those who wish to use it as an alternate or primary, NOR-resident
firmware on the GL-AR300M.

The ar71xx targets are unmodified.

Installation
------------

Install through OEM U-Boot (HTTP-based) or `sysupgrade --force` when
booted from NOR and running OEM or OpenWrt, NOR-based firmware.

As one of the intentions is disambiguation from NAND-bearing units,
users who have flashed this firmware onto a device with NAND would
need to use U-Boot or `sysupgrade --force` to flash firmware that
again supports NAND.

There are no additional SUPPORTED_DEVICES as it is not possible to
determine if a device does or does not have NAND based on
either the OEM's or OpenWrt's board names prior to this patch.

Signed-off-by: Jeff Kletsky <git-commits@allycomm.com>
(commit: b591cab)
The file was modifiedpackage/boot/uboot-envtools/files/ath79 (diff)
The file was modifiedtarget/linux/ath79/image/generic.mk (diff)
The file was modifiedtarget/linux/ath79/generic/base-files/etc/board.d/01_leds (diff)
The file was addedtarget/linux/ath79/dts/qca9531_glinet_gl-ar300m16.dts
Commit b496a2294c6e663a2dcbf08d714443e758d1269d by gch981213
ath79: GL-AR750S: provide NAND support; increase kernel to 4 MB

The GL.iNet GL-AR750S has been supported by the ar71xx and ath79
platforms with access to its 16 MB NOR flash, but not its 128 MB
SPI NAND flash.

This commit provides support for the NAND through the upstream
SPI-NAND framework.

At this time, the OEM U-Boot appears to only support loading the
kernel from NOR. This configuration is preserved as this time,
with the glinet,gl-ar750s-nand name reserved for a potential,
future, NAND-only boot.

The family of GL-AR750S devices on the ath79 platform now includes:

  * glinet,gl-ar750m-nor-nand   "nand" target
  * glinet,gl-ar750m-nor        "nand" target (NAND-aware)

NB: This commit increases the kernel size from 2 MB to 4 MB

"Force-less" sysupgrade is presently supported from the current
versions of following NOR-based firmwre images to the version of
glinet,gl-ar750s-nor firmware produced by this commit:

  * glinet,gl-ar750s     -- OpenWrt 19.07 ar71xx
  * glinet,gl-ar750s     -- OpenWrt 19.07 ath79

Users who have sucessfully upgraded to glinet,gl-ar750m-nor may then
flash glinet,gl-ar750m-nor-nand with sysupgrade to transtion to the
NAND-based variant.

Other upgrades to these images, including directly to the NAND-based
glinet,gl-ar750s-nor-nand firmware, can be accomplished through U-Boot.

NB: See "ath79: restrict GL-AR750S kernel build-size to 2 MB" which
enables flashing of NAND factory.img with the current GL-iNet U-Boot,
"U-Boot 1.1.4-gcf378d80-dirty (Aug 16 2018 - 07:51:15)"

The GL-AR750S OEM U-Boot allows upload and flashing of either NOR
firmware (sysupgrade.bin) or NAND firmware (factory.img) through its
HTTP-based GUI. Serial connectivity is not required.

The glinet,gl-ar750s-nor and glinet,gl-ar750s-nor-nand images
generated after this commit flash each other directly.

This commit changes the control of the USB VBUS to gpio-hog from
regulator-fixed introduced by commit 0f6b944c92. This reduces the
compressed kernel size by ~14 kB, with no apparent loss of
functionality. No other ath79-nand boards are using regulator-fixed
at this time.

Note: mtd_get_mac_binary art 0x5006 does not return the proper MAC
and the GL.iNet source indicates that only the 0x0 offset is valid

The ar71xx targets are unmodified.

Cc: Alexander Wördekemper <alexwoerde@web.de>

Signed-off-by: Jeff Kletsky <git-commits@allycomm.com>
(commit: b496a22)
The file was modifiedpackage/boot/uboot-envtools/files/ath79 (diff)
The file was modifiedtarget/linux/ath79/image/generic.mk (diff)
The file was removedtarget/linux/ath79/dts/qca9563_glinet_gl-ar750s.dts
The file was modifiedtarget/linux/ath79/generic/base-files/etc/board.d/02_network (diff)
The file was addedtarget/linux/ath79/dts/qca9563_glinet_gl-ar750s-nor.dts
The file was addedtarget/linux/ath79/dts/qca9563_glinet_gl-ar750s-nor-nand.dts
The file was modifiedtarget/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata (diff)
The file was modifiedtarget/linux/ath79/image/nand.mk (diff)
The file was addedtarget/linux/ath79/dts/qca9563_glinet_gl-ar750s.dtsi
The file was modifiedtarget/linux/ath79/nand/base-files/etc/board.d/02_network (diff)
The file was modifiedtarget/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata (diff)
The file was modifiedtarget/linux/ath79/nand/base-files/lib/upgrade/platform.sh (diff)
Commit 000b7687bc50be5b0f1161f4bf8ceb85c495c395 by daniel
mac80211: restore mac80211_interface_cleanup()

Changes introduced for dynamic wifi reconfiguration left behind
unmanaged interface types. Restore parts of the old function to
also clean (unencrypted, non-DFS) mesh and ad-hoc interfaces.

Fixes: a5bc9787d4 ("mac80211: add support for dynamically
                    reconfiguring wifi")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(commit: 000b768)
The file was modifiedpackage/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh (diff)
Commit 1c6066a867400eca9e335235ff4dc43acacc1183 by freifunk
ath79: include rssileds package for ubnt devices with LEDs

Some Ubiquiti devices had the RSSI LEDs configured in 01_leds but
were missing the rssileds package, while others that don't have
RSSI LEDS had the package included.

This commit includes the rssileds package only for those devices
that need it.

Tested on a NanoStation M XW.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
(commit: 1c6066a)
The file was modifiedtarget/linux/ath79/image/generic-ubnt.mk (diff)
Commit 6990510aca41074351f92a5abc6f4afb4b606506 by ynezz
kernel: fix typo in fb-sys-fops autoload

AutoLoad parameter must match the exact kernel module name. Fix it.

Fixes: 125f1ce9ad0c ("kernel: video: add DRM core and IMX DRM support for HDMI/LVDS")
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
(commit: 6990510)
The file was modifiedpackage/kernel/linux/modules/video.mk (diff)
Commit f962e021d48fc2cc4e9e884e3639b5046cec9c2c by ynezz
kernel-build: fix kernel_menuconfig breakage by forcing YACC

Commit 965f341aa9fd ("build: fix host menu config targets using
ncurses") has moved host's path with pkg-config (usually /usr/bin) at
the first place in PATH variable, which is now causing issues with bison
as BISON_PKGDATADIR points into STAGING_DIR_HOST, but the actual bison
used is the one under host PATH (usually /usr/bin/bison), leading to the
following strange failures:

$ make target/linux/clean kernel_menuconfig V=sc

export MAKEFLAGS= ;make -C /somewhere/linux-4.19.81 menuconfig
make -f ./scripts/Makefile.build obj=scripts/kconfig menuconfig
  ...
  bison -oscripts/kconfig/zconf.tab.c -t -l scripts/kconfig/zconf.y
  staging_dir/host/bin/m4: cannot open `staging_dir/host/share/bison/bison.m4': No such file or directory
  staging_dir/host/bin/m4: cannot open `staging_dir/host/share/bison/c-skel.m4': No such file or directory
  ...
  gcc -Wp,-MD,scripts/kconfig/.zconf.tab.o.d <...snip...> -o scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c
  gcc: error: scripts/kconfig/zconf.tab.c: No such file or directory
  gcc: fatal error: no input files

Fix this by forcing usage of bison under STAGING_DIR_HOST/bin via YACC
make variable.

Cc: Thomas Albers <thomas.gameiro@gmail.com>
Cc: Stijn Tintel <stijn@linux-ipv6.be>
Cc: Eneas U de Queiroz <cotequeiroz@gmail.com>
Tested-by: Ivan Revyakin <LovingFox@GMail.com>
Tested-by: Thomas Albers <thomas.gameiro@googlemail.com>
Ref: https://forum.openwrt.org/t/bpi-r64-kernel-4-19-kernel-menuconfig-error
Fixes: 965f341aa9fd ("build: fix host menu config targets using ncurses")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: f962e02)
The file was modifiedinclude/kernel-build.mk (diff)
Commit fa8345539262f71a5fcc8667374b7e064dc43439 by ynezz
ath79: remove obsolete OF PCI related config symbols

Those symbols were removed in kernel 4.16:

commit 4670d610d59233b017a6ea1fa25bbf06dabbff42
Author:     Rob Herring <robh@kernel.org>

    PCI: Move OF-related PCI functions into PCI core

Fixes: FS#2588
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: fa83455)
The file was modifiedtarget/linux/ath79/config-4.19 (diff)
Commit 953c27df315ded7fae45daba0229ced4309e4baa by ynezz
base-files: rc.common: fix missing EXTRA_HELP texts

Commit ed5b9129d7a4 ("base-files: implement generic service_running")
has added EXTRA_HELP variable, thus overriding already available
EXTRA_HELP text available in other init scripts, resulting in the
missing help text from services like dropbear for example.

So fix this regression by appending EXTRA_HELP text provided by the
other init scripts into the one provided by the script itself.

Fixes: ed5b9129d7a4 ("base-files: implement generic service_running")
Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
[commit title/description facelift, fixes tag, fixed From:, pkg bump]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: 953c27d)
The file was modifiedpackage/base-files/files/etc/rc.common (diff)
The file was modifiedpackage/base-files/Makefile (diff)
Commit c001ace8bdf03fec036840638a1fa2a1edd8b2b6 by ynezz
build: prereq: simplify Python 3 version checks

We don't need to check if python3.5 binary is actually Python 3.5+.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: c001ace)
The file was modifiedinclude/prereq-build.mk (diff)
Commit 2066ee09d99441a67a5f23b6e38baeadc9f92e15 by ynezz
build: prereq: add support for Python 3.8

Add support for Python 3.8 which was released Oct. 14, 2019.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
[added missing commit description, simplified version check]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: 2066ee0)
The file was modifiedinclude/prereq-build.mk (diff)
Commit 5d7fcd07a21aada05e2f5b406a0eb25264e68f29 by ynezz
libnl-tiny: update to latest Git head

0219008cc876 remove never used err variable assignment disliked by scan-build
7ce813fcd667 silence use after the free clang analyzer warning
1f73b6a8e678 use offsetof macro to make scan-build happy

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: 5d7fcd0)
The file was modifiedpackage/libs/libnl-tiny/Makefile (diff)
Commit 240d590ca4513b021ebcbe38bde91770bd800536 by ynezz
uci: update to latest Git head

8dd50da20de0 lua: fix error handling
a2cab3b088a2 ucimap: fix possible use of memory after it is freed
9cf978bc7964 delta: prevent possible null pointer use
7736f497d2d9 cli: remove unused variable assigment
39093f3b040d lua: fix memory leak in set method
19ceff323f1e lua: fix memory leak in changes method
18049a84fe40 tests: add cram based unit tests
2b549cc050de lua: fix copy&paste in error string
f5dd5217d627 cli: fix realloc issue spotted by cppcheck
af59f86a0db9 iron out all extra compiler warnings
1637d2918692 tests: shunit2: run all tests under Valgrind by default
c1af73bfb023 cmake: enable extra compiler checks
be69504e3666 cmake: build Lua module only if enabled
38a2f12ec5ab tests: shunit2: fix issues reported by shellcheck
266fc9e94c1e add initial GitLab CI support
17d6144a49c6 tests: shunit2: make it working under CMake
a6e8bbefd860 cmake: add unit testing option and shunit2 tests
0ca93fec701a test: move shunit2 tests under standalone subdirectory

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: 240d590)
The file was modifiedpackage/system/uci/Makefile (diff)
Commit 8f0a540648e1089ed83faf6f0283a1957123526b by ynezz
fwtool: update to latest Git head

8f7fe925ca20 cmake: use extra compiler warnings only on gcc6+

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(commit: 8f0a540)
The file was modifiedpackage/system/fwtool/Makefile (diff)
Commit bcee364944808759ec4fc572ea6d21cd1393b84b by freifunk
ath79: improve common DTSI name for TP-Link Archer C5, C7 v1/v2

As the former qca9558_tplink_archer-c7.dtsi is also used for
Archer C5 v1 this patch removes the number from the DTSI name
to indicate that.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: bcee364)
The file was modifiedtarget/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts (diff)
The file was addedtarget/linux/ath79/dts/qca9558_tplink_archer-c.dtsi
The file was removedtarget/linux/ath79/dts/qca9558_tplink_archer-c7.dtsi
The file was modifiedtarget/linux/ath79/dts/qca9558_tplink_archer-c7-v1.dts (diff)
The file was modifiedtarget/linux/ath79/dts/qca9558_tplink_archer-c5-v1.dts (diff)
Commit 71fbec0eff7aeadf63bf3f2dd5fa11c58c20995e by freifunk
ath79: fix indent in TP-Link TL-WDR4900 v2 DTS

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: 71fbec0)
The file was modifiedtarget/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts (diff)
Commit 119e0d57aedb8fd586fee57d2c8be023a309c2cb by freifunk
ath79: split dts file for Netgear WNDR4300

Move board configuration to dtsi file in preparation for WNDR3700v4
router support.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
(commit: 119e0d5)
The file was addedtarget/linux/ath79/dts/ar9344_netgear_wndr.dtsi
The file was modifiedtarget/linux/ath79/dts/ar9344_netgear_wndr4300.dts (diff)
Commit 7e623c312832386d5eb5aa970738288cf96d96c3 by freifunk
ath79: add support for Netgear WNDR3700v4

This patch adds ath79 support for Netgear WNDR3700v4.
Router was previously supported by ar71xx target only.
Note: device requires 'ar934x-nand' driver in kernel.

Specification
=============
  * Description: Netgear WNDR3700v4
  * Loader: U-boot
  * SOC: Atheros AR9344 (560 MHz)
  * RAM: 128 MiB
  * Flash: 128 MiB (NAND)
    - U-boot binary: 256 KiB
    - U-boot environment: 256 KiB
    - ART: 256 KiB
    - POT: 512 KiB
    - Language: 2 MiB
    - Config: 512 KiB
    - Traffic Meter: 3 MiB
    - Firmware: 25 MiB
    - ART Backup: 256 KiB
    - Reserved: 96 MiB
  * Ethernet: 5 x 10/100/1000 (4 x LAN, 1 x WAN) (AR8327)
  * Wireless:
    - 2.4 GHz b/g/n (internal)
    - 5 GHz a/n (AR9580)
  * USB: yes, 1 x USB 2.0
  * Buttons:
    - Reset
    - WiFi (rfkill)
    - WPS
  * LEDs:
    - Power (amber/green)
    - WAN (amber/green)
    - WLAN 2G (green)
    - WLAN 5G (blue)
    - 4 x LAN (amber/green)
    - USB (green)
    - WPS (amber/green)
  * UART: 4-pin connector JP1, 3.3V (Vcc, TX, RX, GND), 115200 8N1
  * Power supply: DC 12V 2.5A
  * MAC addresses: LAN=WLAN2G on case label, WAN +1, WLAN5G +2

Installation
============
  * TFTP recovery
  * TFTP via U-boot prompt
  * sysupgrade
  * Web interface

Note about partitioning: firmware partition offset (0x6c0000) is
hardcoded into vendor's u-boot, so this partition cannot be moved
and resized to include Netgear-specific flash areas (pot, language,
config, traffic_meter) not used by OpenWrt.

Test build configuration
========================
CONFIG_TARGET_ath79=y
CONFIG_TARGET_ath79_nand=y
CONFIG_TARGET_ath79_nand_DEVICE_netgear_wndr3700-v4=y
CONFIG_ALL_KMODS=y
CONFIG_DEVEL=y
CONFIG_CCACHE=y
CONFIG_COLLECT_KERNEL_DEBUG=y
CONFIG_IMAGEOPT=y

Signed-off-by: Paul Blazejowski <paulb@blazebox.homeip.net>
(commit: 7e623c3)
The file was modifiedtarget/linux/ath79/nand/base-files/etc/board.d/01_leds (diff)
The file was modifiedpackage/boot/uboot-envtools/files/ath79 (diff)
The file was modifiedtarget/linux/ath79/nand/base-files/etc/board.d/02_network (diff)
The file was addedtarget/linux/ath79/dts/ar9344_netgear_wndr3700-v4.dts
The file was modifiedtarget/linux/ath79/image/nand.mk (diff)
The file was modifiedtarget/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom (diff)
Commit fc44a8481cbf317febaf27a550e0c9fa49be68d5 by freifunk
ath79: fix sysupgrade from ar71xx for WNDR3700 V2 and WNDR3800(CH)

ar71xx has just one board name "wndr3700" for WNDR3700 V1/V2,
WNDR3800 and WNDR3800CH, whereas ath79 provides separate images for
the boards. So, update SUPPORTED_DEVICES to store the correct
ar71xx board names.

Fixes: FS#2510

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: fc44a84)
The file was modifiedtarget/linux/ath79/image/generic.mk (diff)
Commit 50735df7b238ce886c6f718b3e9437a09c8efb28 by john
mediatek: fix bootup problem on mt7629 EVB

Signed-off-by: John Crispin <john@phrozen.org>
(commit: 50735df)
The file was addedtarget/linux/mediatek/patches-4.19/0307-spi-mem-Mediatek-Add-SPI-Nand-support-for-MT7629.patch
The file was modifiedtarget/linux/mediatek/mt7629/config-4.19 (diff)
The file was addedtarget/linux/mediatek/patches-4.1
Commit 1ea22e4de6f0ee08fe3463a34d3b207b4979f1bc by john
mediatek: drop accidentially commited file

Signed-off-by: John Crispin <john@phrozen.org>
(commit: 1ea22e4)
The file was removedtarget/linux/mediatek/patches-4.1
Commit f84d6d2f3a84d8694cad8d069f1a6d355f497e0d by freifunk
ath79: fix firmware partition attributes for GL-AR300M16 and -Lite

During the introduction of the ath79/nand images for the GL-AR300M
series the firmware partition label and compatible were altered,
but the necessary adjustments have not been made for the
GL-AR300M16 and the GL-AR300M-Lite. This will result in a
non-bootable partition setup for these devices.

This patch adds the necessary definitions to those two devices.

Fixes: 55e6c903ae20 ("ath79: GL-AR300M: provide NAND support;
       increase to 4 MB kernel")
Fixes: b591cabd3989 ("ath79: add GL.iNet GL-AR300M16 as NOR-only
       board")

Signed-off-by: Jeff Kletsky <git-commits@allycomm.com>
[extend commit message, alter commit title]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(commit: f84d6d2)
The file was modifiedtarget/linux/ath79/dts/qca9531_glinet_gl-ar300m16.dts (diff)
The file was modifiedtarget/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts (diff)
Commit 50d6e92619545d014639c68ea327cf7c6dd38695 by daniel
Revert "mac80211: restore mac80211_interface_cleanup()"

This reverts commit 000b7687bc50be5b0f1161f4bf8ceb85c495c395.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(commit: 50d6e92)
The file was modifiedpackage/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh (diff)
Commit ccf2aa9d4bf6b79669fc7121fa3bfe4c1e2b05c3 by daniel
mac80211: detect existing interface before adding

Keep existing wdev when creating new nl80211 interfaces if phy and
type match, delete it otherwise.
To make this work, also remove left-over debugging function which
prevented the return-value of the 'iw' command to be taken into
account in mac80211_iw_interface_add().
As 4addr-mode (WDS) was setup during interface creation for station
interfaces, also set it after interface creation to make sure an
existing sta interface ends up with the right mode.

Fixes: a5bc9787d4 ("mac80211: add support for dynamically
                    reconfiguring wifi")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(commit: ccf2aa9)
The file was modifiedpackage/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh (diff)
The file was addedREADME.md
Commit 1506a7e66a321bbb9c49da7c5693d0c2ddc6184b by musashino.open
build: update download.pl to change priority of mirrors
(commit: 1506a7e)
The file was modifiedscripts/download.pl (diff)
Commit fc21c0171accdec961161ca39ddcc35f24d0471f by musashino.open
ramips: Add support for I-O DATA WN-G300DGR

IODATA WN-G300DGR is a 2.4GHz band 11n router, based on Ralink RT3052F.

Specification:

- RT3052F (384 MHz)
- 32 MB of RAM (SDRAM)
- 4 MB of FLASH (CFI)
- 2T2R 2.4 GHz
- 4x 10/100/1000 Mbps Ethernet (Realtek RTL8366RB)
- 5x LED, 3x button
- UART header on PCB

Flash instruction using U-Boot TFTP:
1. Connect the UART pin on WN-G300DGR (CN1, Vcc/GND/TX/RX from caret) with PC
2. Set PC to fixed ip address 192.168.99.8
3. Download lede-ramips-rt305x-wn-g300dgr-squashfs-sysupgrade.bin and
rename it to uImageWN-G300DGR
4. Start a tftp server with the file uImageWN-G300DGR in its root
directory
5. Turn off the router
6. Turn on router and repeatedly press "2" key on the UART console
7. When entering tftp mode, press keys "y", "Enter", "Enter", "Enter"
8. After a short time, the firmware should be transferred from the tftp
server
9. Wait ~60 second to complete flash

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
(commit: fc21c01)
The file was modifiedtarget/linux/ramips/rt305x/config-4.14 (diff)
The file was addedtarget/linux/ramips/dts/rt3052_iodata_wn-g300dgr.dts
The file was modifiedtarget/linux/ramips/rt305x/base-files/etc/board.d/02_network (diff)
The file was modifiedtarget/linux/ramips/image/rt305x.mk (diff)
Commit 8a5ead1c152984d6d936d955d2327c8bdedc3b2c by musashino.open
ath79: add support for Logitec LAN-W451NGR

ath79: convert to hex for LAN-W451NGR
(commit: 8a5ead1)
The file was modifiedtarget/linux/ath79/tiny/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom (diff)
The file was addedtarget/linux/ath79/dts/ar7242_logitec_lan-w451ngr.dts
The file was modifiedtarget/linux/ath79/tiny/base-files/etc/board.d/02_network (diff)
The file was modifiedtarget/linux/ath79/image/tiny.mk (diff)
Commit c2722d7277b6ad11beb9e0f6fc114b7ef04ae3d4 by musashino.open
ramips: add support for ELECOM WRC-1167GHBK2-I

There is no plan to submit a PR to openwrt/openwrt.

WRC-1167GHBK2-I does not have a device specific MAC address in the
eeprom for MT7612E in "Factory" partition.
(commit: c2722d7)
The file was modifiedtarget/linux/ramips/mt7620/base-files/etc/board.d/02_network (diff)
The file was addedtarget/linux/ramips/dts/mt7620a_elecom_wrc-1167ghbk2-i.dts
The file was modifiedtarget/linux/ramips/image/mt7620.mk (diff)
The file was modifiedtarget/linux/ramips/mt7620/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom (diff)
Commit 5824be4daa33b0aaa5c9d35c58e772a5210c9255 by musashino.open
ramips: add support for I-O DATA WN-G300R3
(commit: 5824be4)
The file was addedtarget/linux/ramips/dts/mt7620n_iodata_wn-g300r3.dts
The file was modifiedtarget/linux/ramips/image/mt7620.mk (diff)
The file was modifiedtarget/linux/ramips/mt7620/base-files/etc/board.d/02_network (diff)