15248 Commits

Author SHA1 Message Date
Zoltan HERPAI
1fea0d89f5 CC: kernel: update to 3.18.45, refresh targets
Compile-tested on ar71xx, imx6, lantiq, mvebu
Runtime-tested on sunxi.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2016-12-19 14:19:47 +01:00
Zoltan Herpai
c170d84bbe Merge pull request #264 from wigyori/cc-dm9601
CC: brcm2708: Fix Kernel Panic: DM9601 Fast Ethernet Adapter
2016-12-18 12:36:52 +01:00
Marian Hello
6ee59728b9 CC: brcm2708: Fix Kernel Panic: DM9601 Fast Ethernet Adapter
The dm9601 driver expects to receive a single encapsulated ethernet
frame from the device in one URB transfer, and it provides an URB
buffer of length 1,522 to receive it. This is not a round multiple
of USB transfer packets.

The device in question [1] provides a stream of such frames and it
does not conveniently slice them up as the dm9601 driver expects. We
can end up with 1,536 (0x600) bytes returned by the device in response
to the URB request. This may include several encapsulated ethernet
frames, and/or fragments thereof.

It seems to me that the kernel 'Oops' arises because the dwc_otg driver
does not notice that the destination buffer is too small to receive the
full 1,536 bytes. Comparing dwc_otg's update_urb_state_xfer_comp with
dwc2's dwc2_update_urb_state is suggestive.

More details: https://github.com/raspberrypi/linux/issues/1045
All Credits to: https://github.com/mw9

Signed-off-by: Marian Hello <marian.hello@gmail.com>
Reviewed-by: Zoltan HERPAI <wigyori@uid0.hu>
2016-12-07 17:06:47 +01:00
Gad Krumholz
d9740d24d7 CC: ar71xx: Added missing support for Linksys E2100L
It's based on the WRT160NL according to https://wiki.openwrt.org/toh/linksys/e2100l

Based on research done here: https://forum.openwrt.org/viewtopic.php?id=24244 and here: https://forum.openwrt.org/viewtopic.php?pid=120791#p120791 this patch was conceived.

Signed-off-by: Gad Krumholz <gad.krumholz@gmail.com>
2016-11-30 00:47:10 -06:00
Matthias Schiffer
efffd3c32a
CC: ar71xx: fix syntax error in /etc/uci-defaults/01_leds
Fixes f98117a "CC: ar71xx: backport LED fix for TL-WR841N-v11".

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-11-06 12:53:38 +01:00
Zoltan Herpai
0f757bd260 Merge pull request #158 from Shalzz/chaos_calmer
CC: ar71xx: backport LED fix for TL-WR841N-v11
2016-10-29 00:32:16 +02:00
Shaleen Jain
f98117a065 CC: ar71xx: backport LED fix for TL-WR841N-v11
Signed-off-by: Shaleen Jain <shaleen.jain95@gmail.com>
2016-10-28 21:14:27 +05:30
Zoltan Herpai
c4ce8c716c Merge pull request #141 from mumuqz/chaos_calmer
CC: ar71xx: Add support to DomyWifi DW33D
2016-10-28 17:27:07 +02:00
Jing Lin
a8a1e2a19a CC: ar71xx: Add support to DomyWifi DW33D
Signed-off-by: Jing Lin <mumuqz@163.com>
2016-10-28 23:00:21 +08:00
Zoltan HERPAI
2c54d989b4 CC: generic: bump kernel to 3.18.44
Patch 610- is updated as check_entry helper was killed in 3.18.37
Fixes CVE-2016-5195 (dirtycow)
Compile-tested on ar71xx, mxs, sunxi, imx6
Runtime-tested on ar71xx (PB42)

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2016-10-25 22:58:12 +02:00
Imre Kaloz
2aefb514a4 mvebu: bugfixes for rango
backport of ce116bc6f997d8d6e6b976cacce5d4c60d705fc6

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
2016-10-18 11:43:26 +02:00
Imre Kaloz
fa885ed5db mvebu: add support for the Linksys WRT3200ACM (Rango)
backport of 50e627ac06112eb633222cc72af5c4fe60f3dbb9

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
2016-10-13 13:01:24 +02:00
Zoltan Herpai
ca3f1a614a Merge pull request #105 from wigyori/chaos_calmer
CC: openssl security upgrade, sync updates from git.openwrt.org/chaos_calmer
2016-09-29 15:49:20 +02:00
John Crispin
84ea6e0315 ramips: fix usb phy initialisation
this broke usb20 device detection.

Signed-off-by: John Crispin <john@phrozen.org>
2016-09-29 14:23:08 +02:00
John Crispin
b5e7d8a212 ramips: fix timing issues when using MT7621 spi
Signed-off-by: John Crispin <john@phrozen.org>
2016-09-29 14:22:40 +02:00
Hauke Mehrtens
e7d2443743 CC: kernel: update kernel 3.18 to version 3.18.36
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-09-29 14:21:21 +02:00
Sven Eckelmann
3411c9a885 ar71xx: add MR1750v2 to the MR1750 profile
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2016-09-21 18:16:54 +02:00
Sven Eckelmann
21560ae52e ar71xx: extract ath10k wifi board.bin for the OpenMesh MR1750v2 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2016-09-21 18:16:54 +02:00
Sven Eckelmann
82d0eae9b2 ar71xx: enable sysupgrade for the OpenMesh MR1750v2
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2016-09-21 18:16:54 +02:00
Sven Eckelmann
c02d2e3885 ar71xx: add user-space support for the OpenMesh MR1750v2
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2016-09-21 18:16:54 +02:00
Sven Eckelmann
7599f56630 ar71xx: add kernel support for the OpenMesh MR1750v2
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2016-09-21 18:16:54 +02:00
Sven Eckelmann
563eb0eaba ar71xx: add OM2P-HSv3 to the OM2P profile
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2016-09-21 18:16:54 +02:00
Sven Eckelmann
22bd3b1c0c ar71xx: enable sysupgrade for the OpenMesh OM2P-HSv3
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2016-09-21 18:16:54 +02:00
Sven Eckelmann
eaf23dc12a ar71xx: add user-space support for the OpenMesh OM2P-HSv3
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2016-09-21 18:16:54 +02:00
Sven Eckelmann
8d88087030 ar71xx: add kernel support for the OpenMesh OM2P-HSv3
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
2016-09-21 18:16:54 +02:00
Sven Eckelmann
0e46b8641b ar71xx: add OM5P-ACv2 to the OM5P-AC profile
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r49155
2016-09-21 18:16:54 +02:00
Sven Eckelmann
6f84fea54e ar71xx: extract ath10k wifi board.bin for the OpenMesh OM5P-ACv2 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r49154
2016-09-21 18:16:54 +02:00
Sven Eckelmann
85584fd4d4 ar71xx: enable sysupgrade for the OpenMesh OM5P-ACv2
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r49151
2016-09-21 18:16:54 +02:00
Sven Eckelmann
88160843cd ar71xx: add user-space support for the OpenMesh OM5P-ACv2
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r49150
2016-09-21 18:16:54 +02:00
Sven Eckelmann
1348284297 ar71xx: add kernel support for the OpenMesh OM5P-ACv2 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r49149
2016-09-21 18:16:54 +02:00
Sven Eckelmann
6aaf2d1c0c 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
2016-09-21 18:16:54 +02:00
Sven Eckelmann
85e7ec9bfd 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
2016-09-21 18:16:54 +02:00
Sven Eckelmann
e2a8a159fd ar71xx: enable sysupgrade for the OpenMesh OM5P-AC
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r49144
2016-09-21 18:16:54 +02:00
Sven Eckelmann
1c49922ada ar71xx: add user-space support for the OpenMesh OM5P-AC
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r49142
2016-09-21 18:16:54 +02:00
Sven Eckelmann
bdf20fd1f1 ar71xx: add kernel support for the OpenMesh OM5P-AC board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r49141
2016-09-21 18:16:54 +02:00
Sven Eckelmann
5ec3e29ac9 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
2016-09-21 18:16:54 +02:00
Sven Eckelmann
f8d1f1c678 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
2016-09-21 18:16:54 +02:00
Sven Eckelmann
b92fcfb75e 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
2016-09-21 18:16:54 +02:00
Sven Eckelmann
9bac508e46 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
2016-09-21 18:16:54 +02:00
Sven Eckelmann
5ba0cfb798 ar71xx: Add QCA955X GPIO mux and function definitions
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r49075
2016-09-21 18:16:54 +02:00
Sven Eckelmann
601462ea2f ar71xx: Add support for ath79_gpio_function_* on QCA955X
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r49074
2016-09-21 18:16:54 +02:00
Sven Eckelmann
1702e3b2a9 ar71xx: Allow to use ath79_gpio_output_select on QCA955x
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r46459
2016-09-21 18:16:54 +02:00
Sven Eckelmann
d103186192 ar71xx: Use *_eth_cfg helper for Open Mesh MR900 boards
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r46241
2016-09-21 18:16:54 +02:00
Sven Eckelmann
4bddce1be0 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
2016-09-21 18:16:54 +02:00
Sven Eckelmann
37ec7eca7a ar71xx: create profile and build image for the OpenMesh MR1750 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r46932
2016-09-21 18:16:54 +02:00
Sven Eckelmann
fc2657851d ar71xx: enable sysupgrade for the OpenMesh MR1750
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r46929
2016-09-21 18:16:54 +02:00
Sven Eckelmann
4643507288 ar71xx: add user-space support for the OpenMesh MR1750 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r46927
2016-09-21 18:16:54 +02:00
Sven Eckelmann
579c3580e3 ar71xx: add kernel support for the OpenMesh MR1750 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

Backport of r46926
2016-09-21 18:16:54 +02:00
Sven Eckelmann
4332d73411 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>
2016-09-21 18:16:54 +02:00
Rafał Miłecki
cd903cf340 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
2016-06-19 19:56:13 +02:00