Sven Eckelmann [Thu, 19 May 2016 18:21:13 +0000 (20:21 +0200)]
ar71xx: enable sysupgrade for the OpenMesh OM5P-ACv2
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49151
Sven Eckelmann [Thu, 19 May 2016 18:21:12 +0000 (20:21 +0200)]
ar71xx: add user-space support for the OpenMesh OM5P-ACv2
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49150
Sven Eckelmann [Thu, 19 May 2016 18:21:11 +0000 (20:21 +0200)]
ar71xx: add kernel support for the OpenMesh OM5P-ACv2 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49149
Sven Eckelmann [Thu, 19 May 2016 18:21:10 +0000 (20:21 +0200)]
ar71xx: create profile and build image for the OpenMesh OM5P-AC board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49148
Sven Eckelmann [Thu, 19 May 2016 18:21:09 +0000 (20:21 +0200)]
ar71xx: extract ath10k wifi board.bin for the OpenMesh OM5P-AC board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49147
Sven Eckelmann [Thu, 19 May 2016 18:21:08 +0000 (20:21 +0200)]
uboot-envtools: add OpenMesh OM5P-AC support
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49146
Sven Eckelmann [Thu, 19 May 2016 18:21:07 +0000 (20:21 +0200)]
om-watchdog: add OpenMesh OM5P-AC support
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49145
Sven Eckelmann [Thu, 19 May 2016 18:21:06 +0000 (20:21 +0200)]
ar71xx: enable sysupgrade for the OpenMesh OM5P-AC
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49144
Sven Eckelmann [Thu, 19 May 2016 18:21:05 +0000 (20:21 +0200)]
scripts/om-fwupgradecfg-gen.sh: add support for the OM5P-AC
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49143
Sven Eckelmann [Thu, 19 May 2016 18:21:04 +0000 (20:21 +0200)]
ar71xx: add user-space support for the OpenMesh OM5P-AC
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49142
Sven Eckelmann [Thu, 19 May 2016 18:21:03 +0000 (20:21 +0200)]
ar71xx: add kernel support for the OpenMesh OM5P-AC board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49141
Sven Eckelmann [Thu, 19 May 2016 18:21:02 +0000 (20:21 +0200)]
scripts/om-fwupgradecfg-gen.sh: Generate sha256sum for uboot verification
Future Open Mesh u-boot versions are changing the check of the image files
(vmlinux, rootfs) from md5 to sha256. Having both in them should be enough
to ensure backward and forward compatibility.
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49140
Sven Eckelmann [Thu, 19 May 2016 18:21:01 +0000 (20:21 +0200)]
scripts/om-fwupgradecfg-gen.sh: Fix u-boot image md5sum check
The u-boot on Open Mesh devices checks the whole transfered image against a
md5sum. This is stored inside the option filemd5sum inside the
fwupgrade.cfg. The bootloader will not check it when this setting is
missing and could therefore write invalid images to the flash.
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r46925
Sven Eckelmann [Thu, 19 May 2016 18:21:00 +0000 (20:21 +0200)]
ar71xx: Use private version of ath79_setup_qca955x_eth_cfg for MR1750
The MR1750 must unset some bits in ETH_CFG which were set by u-boot to work
correctly under OpenWrt. But the global function
ath79_setup_qca955x_eth_cfg will not unset all of them to increase the
backward compatiblity with older mach-* files. A private (simplified)
version for MR1750 can be used instead.
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49070
Sven Eckelmann [Thu, 19 May 2016 18:20:59 +0000 (20:20 +0200)]
ar71xx: Use private version of ath79_setup_qca955x_eth_cfg for MR900
The MR900 must unset some bits in ETH_CFG which were set by u-boot to work
correctly under OpenWrt. But the global function
ath79_setup_qca955x_eth_cfg will not unset all of them to increase the
backward compatiblity with older mach-* files. A private (simplified)
version for MR900 can be used instead.
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49069
Sven Eckelmann [Thu, 19 May 2016 18:20:58 +0000 (20:20 +0200)]
ar71xx: Use PHY fixups for Open Mesh MR1750
The delays of PHY/MAC on the MR1750 are done by u-boot and OpenWrt in
different ways. u-boot only modifies the ETH_CFG of the QCA955x based on
the link speed. But OpenWrt can only modify the PHY delays based on the
link speed.
This can lead to communication problems when u-boot initializes the ETH_CFG
for a specific link speed (e.g. 10BASE-T) but then OpenWrt the sets the PHY
delays to an incompatible value.
Instead reset the ETH_CFG delay bits of the QCA955x to a specific value and
only rely on the AT803x PHY settings.
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49031
Sven Eckelmann [Thu, 19 May 2016 18:20:57 +0000 (20:20 +0200)]
ar71xx: Use PHY fixups for Open Mesh MR900
The delays of PHY/MAC on the MR900 are done by u-boot and OpenWrt in
different ways. u-boot only modifies the ETH_CFG of the QCA955x based on
the link speed. But OpenWrt can only modify the PHY delays based on the
link speed.
This can lead to communication problems when u-boot initializes the ETH_CFG
for a specific link speed (e.g. 10BASE-T) but then OpenWrt the sets the PHY
delays to an incompatible value.
Instead reset the ETH_CFG delay bits of the QCA955x to a specific value and
only rely on the AT803x PHY settings.
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49030
Sven Eckelmann [Thu, 19 May 2016 18:20:56 +0000 (20:20 +0200)]
ar71xx: Add QCA955X GPIO mux and function definitions
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49075
Sven Eckelmann [Thu, 19 May 2016 18:20:55 +0000 (20:20 +0200)]
ar71xx: Add support for ath79_gpio_function_* on QCA955X
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49074
Sven Eckelmann [Thu, 19 May 2016 18:20:54 +0000 (20:20 +0200)]
ar71xx: Allow to use ath79_gpio_output_select on QCA955x
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r46459
Sven Eckelmann [Thu, 19 May 2016 18:20:53 +0000 (20:20 +0200)]
ar71xx: Use *_eth_cfg helper for Open Mesh MR900 boards
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r46241
Sven Eckelmann [Thu, 19 May 2016 18:20:52 +0000 (20:20 +0200)]
ar71xx: Extend the list of bits in QCA955X_GMAC_REG_ETH_CFG
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49027
Sven Eckelmann [Thu, 19 May 2016 18:20:51 +0000 (20:20 +0200)]
ar71xx: create profile and build image for the OpenMesh MR1750 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r46932
Sven Eckelmann [Thu, 19 May 2016 18:20:50 +0000 (20:20 +0200)]
package/uboot-envtools: add OpenMesh MR1750 support
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r46931
Sven Eckelmann [Thu, 19 May 2016 18:20:49 +0000 (20:20 +0200)]
package/om-watchdog: add OpenMesh MR1750 support
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r46930
Sven Eckelmann [Thu, 19 May 2016 18:20:48 +0000 (20:20 +0200)]
ar71xx: enable sysupgrade for the OpenMesh MR1750
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r46929
Sven Eckelmann [Thu, 19 May 2016 18:20:47 +0000 (20:20 +0200)]
scripts/om-fwupgradecfg-gen.sh: add support for the MR1750
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r46928
Sven Eckelmann [Thu, 19 May 2016 18:20:46 +0000 (20:20 +0200)]
ar71xx: add user-space support for the OpenMesh MR1750 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r46927
Sven Eckelmann [Thu, 19 May 2016 18:20:45 +0000 (20:20 +0200)]
ar71xx: add kernel support for the OpenMesh MR1750 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r46926
Sven Eckelmann [Thu, 19 May 2016 18:20:44 +0000 (20:20 +0200)]
ar71xx: Generate sysupgrade images for OpenMesh devices
Some OpenWrt based firmwares like Gluon expect that a sysupgrade image
exists when a device firmware can be updated via sysupgrade. This image
wasn't created until now because OpenMesh devices use the same image for
factory and sysupgrade flash. Copying the image from *factory.bin to
*sysupgrade.bin is therefore enough to make the sysupgrade functionality
visible.
Reported-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Zoltan Herpai [Wed, 21 Sep 2016 16:04:01 +0000 (18:04 +0200)]
Merge pull request #83 from ecsv/gcc6
toolchain: fix build with GCC 6
Matthias Schiffer [Sun, 8 May 2016 22:16:38 +0000 (00:16 +0200)]
toolchain: gcc: fix build with GCC 6
At least for GCC 4.8, which is used by most targets.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Matthias Schiffer [Sun, 8 May 2016 20:06:51 +0000 (22:06 +0200)]
tools: mkimage: sync include/linux/compiler*.h with u-boot master
Fixes build with GCC 6.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Matthias Schiffer [Tue, 10 May 2016 22:36:51 +0000 (22:36 +0000)]
tools: pkg-config: fix build with GCC 6
Fixes the following error:
gdate.c: In function ‘g_date_strftime’:
gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
^~~~~~
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Rafał Miłecki [Fri, 17 Jun 2016 11:00:32 +0000 (11:00 +0000)]
iw: backport support for "channels" command
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49388
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49389
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 17 Jun 2016 07:50:22 +0000 (07:50 +0000)]
mac80211: brcmfmac: fix support for BCM4366
1) Fix setting AP channel
2) Improve BSS management to avoid:
[ 3602.929199] brcmfmac: brcmf_ap_add_vif: timeout occurred
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49383
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49386
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 17 Jun 2016 07:50:11 +0000 (07:50 +0000)]
mac80211: brcmfmac: add support for get_channel
It's very useful for debugging problems with brcmfmac setting requested
channel.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49382
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49385
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 17 Jun 2016 07:50:03 +0000 (07:50 +0000)]
mac80211: brcmfmac: fix support for up to 4 AP interfaces
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49381
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49384
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Mon, 30 May 2016 06:29:43 +0000 (06:29 +0000)]
mac80211: brcmfmac: return -ENFILE if interface exists
This makes brcmfmac compatible with mac80211 which uses dev_alloc_name
(and so returns -ENFILE on error).
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49378
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Luka Perkov [Tue, 10 May 2016 22:42:36 +0000 (22:42 +0000)]
openssl: Update to version 1.0.2h
openssl: Update to version 1.0.2h
Bump to the latest version, fixes several security issues:
* CVE-2016-2107, CVE-2016-2105, CVE-2016-2106, CVE-2016-2109, CVE-2016-2176
More details at https://www.openssl.org/news/openssl-1.0.2-notes.html
Signed-off-by: Mohammed Berdai <mohammed.berdai@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49363
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Mon, 9 May 2016 15:34:13 +0000 (15:34 +0000)]
mtd: seama: exit with error if Seama header wasn't found
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49314
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49315
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Mon, 9 May 2016 12:54:53 +0000 (12:54 +0000)]
mtd: seama: fix image data handling
1) Put sanity checks in one place
2) Respect provided offset
3) Read only as much data as needed for MD5 calculation
Thanks to the last change this is a great speedup and memory saver. On
devices with NAND flash we were allocating & reading about 128 MiB while
something about 8 MiB is enough.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49309
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49313
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Mon, 9 May 2016 12:54:49 +0000 (12:54 +0000)]
mtd: seama: move buf allocation to the MD5 function
This buf is only used in this function now, so lets move it there.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49308
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49312
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Mon, 9 May 2016 12:54:46 +0000 (12:54 +0000)]
mtd: seama: update MD5 using header in the first block buffer
This will allow separating first block buffer from a buffer used for MD5
calculation.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49307
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49311
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Mon, 9 May 2016 12:54:42 +0000 (12:54 +0000)]
mtd: seama: add md5 to header struct
This allows us to drop some extra offset calculations and simplifies
code a bit.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49306
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49310
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Mon, 9 May 2016 09:55:35 +0000 (09:55 +0000)]
mtd: check for Seama magic early when fixing MD5
This avoid long (and unneeded) process of reading all data in case of
running on MTD not containig Seama entity.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49304
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49305
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Mon, 9 May 2016 07:55:18 +0000 (07:55 +0000)]
mtd: add missing breaks in a switch
On platforms supporting both: TRX and Seama calling "fixtrx" was
resulting in trying to fix Seama as well.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49301
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49303
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Mon, 9 May 2016 07:55:08 +0000 (07:55 +0000)]
mtd: use tabs for indents
This makes code style consistent across the whole file.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49300
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49302
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Sun, 8 May 2016 21:09:23 +0000 (21:09 +0000)]
hostapd: backport fix for AP SME drivers with monitor mode support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49299
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Sun, 8 May 2016 21:09:18 +0000 (21:09 +0000)]
kernel: use backported versions of bgmac patches
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49298
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Sun, 8 May 2016 21:09:12 +0000 (21:09 +0000)]
bcm53xx: use backported versions of bcma USB patches
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49297
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Luka Perkov [Tue, 3 May 2016 12:18:16 +0000 (12:18 +0000)]
CC: ubox: turn logd into a separate package
Currently system log is always included as a part of ubox.
Add logd as a seperate package and add it to default packages list.
Signed-off-by: Andrej Vlasic <andrej.vlasic@sartura.hr>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49294
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Wed, 27 Apr 2016 07:16:17 +0000 (07:16 +0000)]
mac80211: add support for BCM4366C0 in brcmfmac
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49261
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Tue, 26 Apr 2016 07:52:01 +0000 (07:52 +0000)]
Revert "ar71xx: change some TP-link modelnames (WR841, WA701, WA730)"
This reverts commit
0fd48fd7dab066db8a46e51775579c9ef507ca25.
We are facing some problem on rolling out the current 15.05-branch to
our devices because the image name changed.
The changed image name breaks compatibility for derived projects and
that's something which should only happen if there is a really good
reason (e.g. security fix).
Signed-off-by: Tim Niemeyer <tim@tn-x.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49231
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Tue, 26 Apr 2016 07:52:00 +0000 (07:52 +0000)]
lantiq: Fix LED handling.
Backport of r47914 to CC.
Without this patch the TDW8970 is left without any status LED at all,
even during preinit and failsafe.
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49230
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Tue, 26 Apr 2016 07:51:58 +0000 (07:51 +0000)]
lantiq: Fix ath9k LED for TDW8970.
Backport of r47911, r47912, r47969 to CC.
All other required patches have already been backported in r48822.
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49229
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Mon, 25 Apr 2016 20:08:54 +0000 (20:08 +0000)]
ar71x: Added support for TP-Link TL-WR841N v11 to 15.05
This patch adds support for the TP-Link TL-WR841N to OpenWrt Chaos Calmer
15.05. Confirmed working [1] and [2].
Signed-off by Stijn Segers <francesco.borromini@inventati.org>
[1] https://forum.openwrt.org/viewtopic.php?id=63657
[2] https://forum.openwrt.org/viewtopic.php?id=61309
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49228
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Mon, 25 Apr 2016 20:08:52 +0000 (20:08 +0000)]
ar71xx: backport support for Netgear WPN824N
Add support for Netgear WPN824N.
Hardware specs:
* AR7240, 4 LAN ports, 1 WAN port
* AR9285 WLAN
* 32 MB RAM
* 4 MB Flash
* 16 LEDs (LAN, WAN and Power/Status contain two LEDs for dual color
effect)
* 3 Buttons (not supported)
Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49227
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Mon, 25 Apr 2016 20:08:49 +0000 (20:08 +0000)]
ar71xx: Add TP-Link TL-WA901ND v4 support to Chaos Calmer 15.05.1
This patch backports support for the TP-Link TL-WA901ND v4 to Chaos Calmer 15.05.1,
which was added into trunk recently [1].
Signed-off by Stijn Segers <francesco.borromini@inventati.org>
[1]: http://patchwork.ozlabs.org/patch/606780/
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49226
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Mon, 25 Apr 2016 20:08:44 +0000 (20:08 +0000)]
ar71xx: Add TP-Link TL-WR740N v6 support to 15.05.1
This patch adds support for the TP-Link TL-WR740N v6 to OpenWrt Chaos Calmer. Hardware wise, it's very similar to the TL-WR841N v10. See the forum thread [1]. Credit goes to the user 'traveler' who did the legwork and tested builds.
Also thanks to Matthias Schiffer for clarifying the DEVICE_PROFILE settings.
Signed-off by: Stijn Segers <francesco.borromini@inventati.org>
[1]: https://forum.openwrt.org/viewtopic.php?pid=318704
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49225
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Mon, 25 Apr 2016 20:08:41 +0000 (20:08 +0000)]
CC: ramips: backport rt3352 usbphy fix in dts-file
Backport of trunk patch. Fix kernel hang during loading ehci-hcd module.
SIgned-Off-By: Serge Vasilugin <vasilugin@yandex.ru>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49224
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Hauke Mehrtens [Sun, 24 Apr 2016 19:20:10 +0000 (19:20 +0000)]
CC: kernel: Support for new Archer C7 with gd25q128 chip
Archer C7 V2.0 units from December 2015 onwards ( serials starting 215C
) have changed flash chips to the gd25q128 chip, this is supported in
trunk but not presently in 15.05. I would like stable support for this
version so I've back ported the required fix from trunk and removed a
conflicting patch from bcm53xx I've tested the patch it and I'm able to
install a build of 15.05.1 on a new Archer C7 device with this patch.
Signed-off-by: John Marrett <johnf@zioncluster.ca>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49220
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Wed, 20 Apr 2016 18:24:35 +0000 (18:24 +0000)]
bcm53xx: bump maximum TRX size for devices with serial flash
It was already increased for NAND devices so do the same for the ones
with serial memory.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49207
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49208
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Wed, 20 Apr 2016 16:49:19 +0000 (16:49 +0000)]
ramips: fix 16 bit IO on newer cores
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49203
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Wed, 20 Apr 2016 06:05:56 +0000 (06:05 +0000)]
ar71xx: fix nondeterministic hangs during bootconsole/console handover
Reconfiguring the UART when the FIFO is not empty may cause the boot to
hang. This hang is extremely suspectible to timing differences; recompiling
the kernel with the same configuration, but different UTS_VERSION
timestamps can yield images that hang more or less often. Sometimes images
are produced that hang reproducibly.
This patch should also make it into one of the next linux-stable releases,
but it's better to get this fixed as soon as possible.
Fixes #21773, #21857.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r49156
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49202
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Tue, 19 Apr 2016 21:01:34 +0000 (21:01 +0000)]
ralink: add spi fix
the fullduplex on CS1 is broken. remove the fullduplex support and run on
plain half duplex on both CS lines.
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49201
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Tue, 19 Apr 2016 21:01:30 +0000 (21:01 +0000)]
ralink: add i2c fix
there is a deadlock that triggers under heavy bus load. until the bug is
fxed, revert to an old version of the I2C driver that does not suffer
from this issue.
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49200
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Hauke Mehrtens [Sun, 17 Apr 2016 11:05:54 +0000 (11:05 +0000)]
CC: samba: fix some security problems
Backport of r49175.
This fixes the following security problems:
* CVE-2015-7560
* CVE-2015-5370
* CVE-2016-2110
* CVE-2016-2111
* CVE-2016-2112
* CVE-2016-2115
* CVE-2016-2118
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49177
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Sat, 16 Apr 2016 08:47:12 +0000 (08:47 +0000)]
mac80211: backport brcmfmac workaround for missing boardrev
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49173
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 15 Apr 2016 11:25:27 +0000 (11:25 +0000)]
bcm53xx: backport upstream profiling and USB VCC patches
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49172
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 15 Apr 2016 11:25:14 +0000 (11:25 +0000)]
bcm53xx: backport patch enabling UART on tested devices
Also rename and simpify patch enabling UART on untested ones.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49171
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 15 Apr 2016 11:24:57 +0000 (11:24 +0000)]
bcm53xx: fix MD5 in Seama format on flash after installing OpenWrt
We need to fix Seama just like we fix TRX due to the rootfs mark.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48522
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49170
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 15 Apr 2016 11:24:51 +0000 (11:24 +0000)]
mtd: enable "fixseama" on bcm53xx
There are D-Link bcm53xx devices using Seama format.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48521
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49169
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Luka Perkov [Wed, 13 Apr 2016 07:55:22 +0000 (07:55 +0000)]
rpcd: update to latest version
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49163
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Tue, 5 Apr 2016 06:47:11 +0000 (06:47 +0000)]
bcm53xx: fixup 14e4:d612 device class to bridge as well
14e4:d612 was found in D-Link DIR-885L and Netgear R8500. It's most
likely a bridge used by all 14e4:4365 BCM4366 devices.
Without this fixup device wasn't treated as a bridge:
[ 2.849895] pci 0000:00:00.0: ignoring class 0x020000 (doesn't match header type 01)
and didn't get its resources assigned. This resulted in child devices
not being able to get any resources (due to the parrent missing them):
[ 3.375428] pci 0000:01:00.0: BAR 2: no space for [mem size 0x00400000 64bit]
[ 3.387949] pci 0000:01:00.0: BAR 2: failed to assign [mem size 0x00400000 64bit]
[ 3.725797] pci 0000:01:00.0: BAR 0: no space for [mem size 0x00008000 64bit]
[ 3.738314] pci 0000:01:00.0: BAR 0: failed to assign [mem size 0x00008000 64bit]
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49118
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Mon, 4 Apr 2016 14:53:25 +0000 (14:53 +0000)]
bcm53xx: prepare for building D-Link DIR-885L image
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Partial backport of r48606
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49117
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Mon, 4 Apr 2016 14:53:22 +0000 (14:53 +0000)]
firmware-utils: add oseama tool for creating Seama entities
It has an important feature (compared to seama) of using multiple input
files, aligning them and padding zeroes until reaching a specified
absolute offset. This is needed for a proper flash layout on NAND. We
want kernel partition to be big enough to handle future updates without
a need to resize it and wipe whole "ubi" partition. It's important as
we don't want to lose block counters.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48601
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49116
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Mon, 4 Apr 2016 14:53:15 +0000 (14:53 +0000)]
bcm53xx: update BCM5301X patches
This moves few upstreamed patches and adds DIR-885L dts file. Please
note it doesn't mean this device is supported yet.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49115
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Wed, 30 Mar 2016 16:43:25 +0000 (16:43 +0000)]
kernel: update kernel 3.18 to version 3.18.29
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49096
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49097
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Wed, 30 Mar 2016 12:55:39 +0000 (12:55 +0000)]
bcm53xx: improve USB 2.0 PHY support for BCM4709 and BCM47094
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49095
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Wed, 30 Mar 2016 10:49:29 +0000 (10:49 +0000)]
bcm53xx: support USB 3.0 PHY on BCM4707 rev. 6 and BCM47094
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49093
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Wed, 30 Mar 2016 10:49:25 +0000 (10:49 +0000)]
bcm53xx: simpify USB 3.0 PHY initialization
We can use one code path for BCM4707 rev. 4 and BCM53018.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49092
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Luka Perkov [Thu, 24 Mar 2016 21:33:21 +0000 (21:33 +0000)]
ar71xx: cosmetic fix of alfa ap120c/ap96 ordering
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49087
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Luka Perkov [Wed, 23 Mar 2016 22:37:05 +0000 (22:37 +0000)]
uboot-envtools: add support for ap120c
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49085
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Luka Perkov [Wed, 23 Mar 2016 22:37:02 +0000 (22:37 +0000)]
ar71xx: add support for ap120c
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49084
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Sun, 20 Mar 2016 14:45:02 +0000 (14:45 +0000)]
CC: version.mk and image-config.in: adjust to 15.05.1
* Adjust the default version number in include/version.mk to 15.05.1
* Copy the correct download repo location from include/version.mk
to base-files/image-config.in
After the change to version.mk, new builds made from CC sources will
have opkg config that downloads from the recent 15.05.1 packages repo
instead of the ancient 15.05 packages repo.
The change to image-config.in ensures that if somebody uses
VERSIONOPT config options in .config, he will get the
correct download repo address (instead of trunk snapshots).
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49053
3c298f89-4303-0410-b956-
a3cf2f4a3e73
John Crispin [Sun, 20 Mar 2016 14:44:59 +0000 (14:44 +0000)]
ar71xx: change some TP-link modelnames (WR841, WA701, WA730)
This patch changes the image-name of some TPlink-routers.
Esp. for the TPlink WR841N + WR841ND some users are confused by the fact
that some images have "nd"-names and others "n"-names only.
In addition this also corrects a missed "D" on WA701 and a "-" for
WA730RE.
backport to CC of
r48767 'http://git.openwrt.org/?p=openwrt.git;a=commit;h=
dbd0ab83566291e3b4974f4d4289bb7c93b091d6'
r48768 'http://git.openwrt.org/?p=openwrt.git;a=commit;h=
656a17c77d530b14355e8fef4a83265ee2c3271d'
r48769 'http://git.openwrt.org/?p=openwrt.git;a=commit;h=
783756e3096a417565d58d78e082a29db10738d4'
Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49052
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Hauke Mehrtens [Sat, 19 Mar 2016 11:01:06 +0000 (11:01 +0000)]
CC: linux-firmware: fix rt73-usb-firmware package
Backport of r49037
Some parts of this package were named rt73-pci-firmware before which
looks like a copy and past error. This renames all parts to rt73-usb-
firmware and then the firmware gets build and the dependencies from the
package with the kernel module are also working correctly.
This fixes #22069
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49038
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 11 Mar 2016 21:41:20 +0000 (21:41 +0000)]
brcm47xx: image: create standard TRX images using new building system
Apart from using our new building system there are 2 more changes:
1) Limit amount of images
So far we were generating all standard images (optimized one and two
with no loader) for every SUBTARGET. This is not needed, as e.g. the
only device requiring gzipped kernel is legacy Huawei E970.
2) Change output names
The new image building system requires specifying device name. This
forced picking some and resulted in:
openwrt-brcm47xx-$(SUBTARGET)-squashfs.trx
openwrt-brcm47xx-$(SUBTARGET)-squashfs-gz.trx
openwrt-brcm47xx-$(SUBTARGET)-squashfs-noloader-nodictionary.trx
becoming:
openwrt-brcm47xx-$(SUBTARGET)-standard-squashfs.trx
openwrt-brcm47xx-$(SUBTARGET)-standard-noloader-gz-squashfs.trx
openwrt-brcm47xx-$(SUBTARGET)-standard-noloader-nodictionarylzma-squashfs.trx
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r49006
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49007
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 11 Mar 2016 09:55:00 +0000 (09:55 +0000)]
mac80211: backport brcmfmac fixes for WARNING and BCM4360 init
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49004
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 11 Mar 2016 08:54:19 +0000 (08:54 +0000)]
brcm47xx: image: move disabled devices to the new building system
This only drops WGR614 V9 which has 2 MiB flash and it's unlikely to get
any interest.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48975
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49003
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 11 Mar 2016 08:54:16 +0000 (08:54 +0000)]
brcm47xx: image: switch Linksys WRT54G3GV2-VF to the new building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48974
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49002
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 11 Mar 2016 08:54:13 +0000 (08:54 +0000)]
brcm47xx: image: switch Netgear WGT634U to the new building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48973
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49001
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 11 Mar 2016 08:54:09 +0000 (08:54 +0000)]
brcm47xx: image: switch rest of 64k block devices to the new building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48972
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49000
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 11 Mar 2016 08:54:06 +0000 (08:54 +0000)]
brcm47xx: image: switch Motorola devices to the new building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48971
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48999
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Rafał Miłecki [Fri, 11 Mar 2016 08:54:03 +0000 (08:54 +0000)]
brcm47xx: image: switch D-Link DWL-3150 to the new building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Backport of r48970
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48998
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Felix Fietkau [Sat, 5 Mar 2016 10:24:00 +0000 (10:24 +0000)]
kernel: rework bcm47xx backport, fix build errors on the brcm47xx target (#21974)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48925
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Hauke Mehrtens [Thu, 3 Mar 2016 22:30:22 +0000 (22:30 +0000)]
CC: curl: detect the library as renamed wolfssl
Without this patch curl does not detect the new cyassl/wolfssl version
and would be build without ssl support instead when cyassl was selected.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48900
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Felix Fietkau [Thu, 3 Mar 2016 22:29:13 +0000 (22:29 +0000)]
mac80211: improve rate control performance
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48897
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48899
3c298f89-4303-0410-b956-
a3cf2f4a3e73
Felix Fietkau [Thu, 3 Mar 2016 22:29:11 +0000 (22:29 +0000)]
mt76: update to the latest version, adds stability fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48895
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48898
3c298f89-4303-0410-b956-
a3cf2f4a3e73