Commit Graph

14810 Commits (576621f1e353339fe81ece6cff7e8bcd12cbc7b8)

Author SHA1 Message Date
John Crispin 2210e821e1 lantiq: bugfix luci lantiq_dsl status
Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Signed-off-by: Helge Mader <hmader@tdt.de>
Reported-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47152
9 years ago
John Crispin b0f7e6bc83 ramips: fix /target/linux/ramips/dts/HC5XXX.dtsi
dtb complained about those lines

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47151
9 years ago
Felix Fietkau 2686dc6dd8 ramips: enable mt76 by default for the mt7620 subtarget (for devices with mt7620 + mt7612)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47146
9 years ago
Felix Fietkau 38389c79c2 ramips: improve read performance of the m25p80 chunked io patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47137
9 years ago
John Crispin a0543c2bdc lantiq: several ARV7519RW22 fixes
Fixes ARV7519RW22 flash register (only 1 flash).
Power LED is green, not red.
Rename message LEDs to internet.
Add LEDs configuration (lan, wan, power).
Enable switch VLANs.
Fix secondary USB.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: José Vázquez Fernández <ppvazquezfer@gmail.com>

SVN-Revision: 47132
9 years ago
John Crispin 2795592d91 lantiq: make v4.1 the default kernel
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47131
9 years ago
John Crispin 161179f40b lantiq: Add target TP-Link TD-W8980
The device is similar to the TD-W8970, beside a different Atheros 2.4 GHz
wireless chip and the additional, PCI connected, WAVE300 5 GHz wireless.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 47130
9 years ago
John Crispin f2f50ad762 lantiq: fix ath_pci_fixup hang on bridged devices
Port of r41856.

In contrast to the brcm63xx target, it isn't sufficient to enable/disable
the bridge. The device needs to be enabled/disabled to fix the hang. The
bridge will be automatically enabled by the time the connected device is
enabled.

Fixes boot on TD-W8980.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 47129
9 years ago
John Crispin c5cc3d9610 lantiq: Change the data-type of mac address in ETOP driver
This adds the changes from r46219 to the linux 4.1 patches as well.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 47128
9 years ago
John Crispin cea7c66ef8 lantiq: bugfix uninitialized variables
Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Reported-by: Sylwester Petela <sscapi@gmail.com>

SVN-Revision: 47127
9 years ago
John Crispin 7ce3e1fd3c brcm2708: keep boot partition mounted to allow users to change config.txt
This way it's easier to configure device tree overlays, customize other
parameters...

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 47126
9 years ago
John Crispin d1fc19265a brcm2708: add support for device tree overlays
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 47125
9 years ago
John Crispin b97498ab29 brcm2708: switch device tree compilation to linux
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 47124
9 years ago
John Crispin a32acfe73c brcm2708: fix kmod-sound-soc-bcm2708-i2s config
Right now, selecting kmod-sound-soc-bcm2708-i2s causes build errors due to
missing configs.
kmod-regmap enables I2C and SPI, causing build errors due to depending
variables not defined.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 47123
9 years ago
John Crispin b4db6d29d3 ramips: improve systick timer
when sleep mode is disable use MIPS as clocksource and clockevent instead of systick.
because MIPS timer has higher resolution 5ns less than systick 20us and
larger counter bits 32 > 16.
clean interrupt by write compare register at isr.
fix typo cause sleep mode not enable.

Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47122
9 years ago
John Crispin 10f75a2b7f ramips: fix use remove_irq to release irqaction resource
Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47121
9 years ago
John Crispin ccf89e71f2 ramips: add support for 16MB VoCore
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 47120
9 years ago
John Crispin 948e67cb16 ramips: fix size-cells for spi nodes
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 47119
9 years ago
John Crispin d4cd8f89eb ramips: Ralink RT3883 RGMII pinmux fix.
Due to datasheet of rt3883 SoC rgmii1 port handles pins 84-95 and rgmii2 port handles pins 72-83. When this function ports gets added to rt3883_pinmux_data there's wrong pinmux bits set (RT3883_GPIO_MODE_GE1 manages 84-95 pins and RT3883_GPIO_MODE_GE2 manages 72-83). So when enabling rgmii2 as GPIO driver confuses hardware and nothing work, neither rgmii nor gpio.
Also in '0030-pinctrl-ralink-add-pinctrl-driver.patch' typo in name of rgmii2 port.

Signed-off-by: Nick Leiten <nickleiten@gmail.com>

SVN-Revision: 47118
9 years ago
John Crispin aecac14cc4 ramips: Enable rx of 1536 bytes ethernet frames on MT7621
The default switch frame size (with FCS + header) is 1536 bytes. But the
GMAC only accepted frames up to 1522 bytes. Setting it to 1536 allows to
receive ethernet frames using the full of MTU 1500 + an extra VLAN header +
VLAN header added by the switch.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 47117
9 years ago
John Crispin 7b306e3eb3 ramips: Fix too small rx buffer
The driver assumes that the maximum received buffer for non-jumbo frames is
1536 bytes. But the allocation of the rx fragment doesn't reflect that. It
currently allocates fragments which will only be large enough to be used as
rx buffer with the size of 1534 bytes. This is problematic because the GMAC
will now try to write to 2 bytes which don't belong to its receive buffer
when a large enough ethernet frame is received.

This may already be a problem on existing chips but will at least become a
problem when the 1536 byte rx modus is enabled on MT7621a. It is required
on this SoC to receive ethernet frames which use their full 1500 bytes MTU
and a VLAN header next to the switch VLAN tag.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 47116
9 years ago
John Crispin 6b4985b105 ramips: Fix setting of rx buffer length
The length of the DMA rx buffer was always set to 0 because the function
for extracting the length was used to calculate the value for setting it.
Instead the macro has to be split in a get and set function similar to the
TX_DMA_(GET_|)PLEN(0|1) macro.

No problem was noticed on MT7621a before this was changed and thus maybe it
was hidden by different problem which is not yet fixed.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 47115
9 years ago
John Crispin 1aab21df9f ramips: Allow to receive vlan over untag ports on MT7530
The MT7530 switch driver with enable_vlan set will automatically set all
ports to the user port mode. The hardware will remove the incoming vlan tag
on these ports and use it for its internal vlan. This is usually not wanted
and makes it impossible to communicate via vlan over the switch in both
directions.

It is possible to configure a switch port to "transparent mode" when this
port is only used as untag in the switch VLANs. This will disable the VLAN
untagging of packets when they were received on this port. The tagging on
"tag" ports based on the vlan id is still working.

The transparent port mode cannot be used when a port is both used in a VLAN
as "tag" and in another one as "untag" port.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 47114
9 years ago
John Crispin dd8f5abb23 ramips: Add build files for HiWiFi HC5x61 models
HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com <http://www.hiwifi.com/>. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu (rssnsj@gmail.com). I ported the patch to trunk and submitted it here with his approval.

v3 fix
    1: Spaces -> Tabs
    2: Removed some packages

Signed-off-by: Xiaoning Kang <kangxn@163.com>

SVN-Revision: 47113
9 years ago
John Crispin e6e373d348 ramips: Add DTS files for HiWiFi HC5x61 models
HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu (rssnsj@gmail.com). I ported the patch to trunk and submitted it here with his approval.

v3 fix
  1: Merged most stuff into dtsi file
  2: Remove unnecessary empty lines.

Signed-off-by: Xiaoning Kang <kangxn@163.com>

SVN-Revision: 47112
9 years ago
John Crispin c10bdf11ff ramips: Add base-files for HiWiFi HC5x61 models
HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them.

The original author is Justin Liu (rssnsj@gmail.com). I ported the patch to trunk and submitted it here with his approval.

v3 fix
   1: Fixed model order
   2: Remove manufacturer name from model name
   3: Use a hacky but prettier way to get mac address.

Signed-off-by: Xiaoning Kang <kangxn@163.com>

SVN-Revision: 47111
9 years ago
John Crispin 03681684bf ar71xx: Correct WeIO board name
Trivial parch to correct WeIO board name in the system.

Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>

SVN-Revision: 47110
9 years ago
John Crispin df47e4c55b target/mpc85xx: check if 'generic' subtarget for image file cuImage.tl-wdr4900-v1
Only add 'cuImage.tl-wdr4900-v1' to KERNEL_IMAGES if
the selected subtarget is 'generic'.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>

SVN-Revision: 47109
9 years ago
Rafał Miłecki 07fac13b51 ar71xx: rename firmware for Chinese version of TL-WR941ND v6
It seems there are two *different* versions on TL-WR941ND v6: Chinese
and European one. Currently supported by OpenWrt is Chinese one. Rename
firmware to make it clear.
For details see:
http://wiki.openwrt.org/toh/tp-link/tl-wr941nd
https://forum.openwrt.org/viewtopic.php?id=59295

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 47107
9 years ago
Matteo Croce 70da7324cd lantiq: fix binutils 2.15.1 build
SVN-Revision: 47105
9 years ago
Hauke Mehrtens 0cd478518f kernel: update 4.1 to 4.1.10
Fixes a regression on spi flash devices (upstream commit 1583eaece6fa).

Changelogs:
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.7
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.8
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.9
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.10

096-ipv4-off-by-one-in-continuation-handling-in-proc-net.patch was applied
upstream and dropped.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
[update from 4.1.9 to 4.1.10]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 47104
9 years ago
John Crispin 7ad419a9f1 ralink: add irq to mt7628 gpio node
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47076
9 years ago
John Crispin e1b1b0cbfd ralink: the mmc driver can now handle CD lines that are active low
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47074
9 years ago
John Crispin 9e1268b168 ralink: speed selection was broken in spi-mt7621
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47073
9 years ago
Felix Fietkau 2675ade97a uml: backport another upstream patch to fix compile errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47067
9 years ago
Felix Fietkau 82791e92ce uml: fix build with gcc 5
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47062
9 years ago
Felix Fietkau 110a74dd71 uml: update to linux 4.1
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47061
9 years ago
Rafał Miłecki f8a14765b8 brcm47xx: describe 300-fork_cacheflush.patch & 310-no_highpage.patch
These were initially commited in r9285.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 47058
9 years ago
Rafał Miłecki c6c4b2640f brcm47xx: describe 160-kmap_coherent.patch
It was initially commited in r6642.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 47057
9 years ago
Rafał Miłecki 6eadb62f70 brcm47xx: describe 610-pci_ide_fix.patch
It was initially commited in r20924.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 47056
9 years ago
Rafał Miłecki c6401c6d61 bcm53xx: add early support for Linksys EA6300 V1
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 47052
9 years ago
Rafał Miłecki 792f31bd10 kernel: crypto: fix ubsec_ssb.c compilation with 4.0+
SSB_DEVTABLE_END was removed in 4.0 by upstream commit 673e2baaa6d9
("treewide: Remove unnecessary SSB_DEVTABLE_END macro").

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 47047
9 years ago
Felix Fietkau 941505c94b kernel: backport some SPI layer improvements from 4.1 to 3.18, significantly improves flash speed on ramips
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47045
9 years ago
Rafał Miłecki ff6ae7ce34 kernel: remove old "rootfs" splitter
A year ago I made this old splitter obsolete (see r42828), it's time to
completely remove it now. For all this time we got these warnings:
"Dedicated partitioner didn't create "rootfs_data" partition, please fill a bug report!"
and
"Support for built-in "rootfs_data" splitter will be removed, please use CONFIG_MTD_SPLIT_SQUASHFS_ROOT"
but I'm not aware of any bug reports related to that.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 47040
9 years ago
Rafał Miłecki ce7f25066b oxnas: add platform_pre_upgrade for sysupgrade
We're in process of cleaning nand_do_platform_check. Currently it leaves
a special mark in /tmp/sysupgrade-nand-path triggering some diffent code
path in nand_upgrade_stage1. This can be a bit confusing.

The plan is to have the check function only check the image and nothing
else. Then platform code (platform_pre_upgrade) should trigger NAND
specific upgrade path. This is what this patch implements.

This follows all other targets making it finally possible to change
nand_do_platform_check.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 47039
9 years ago
Rafał Miłecki a25fbb5c9a oxnas: drop some unused sysupgrade code
First of all platform_do_upgrade_phase2 doesn't seem to be defined
anywhere. Other than that platform_do_upgrade is not likely to be ever
called. There is a call to nand_do_platform_check which triggers
nand_upgrade_stage1 call with "exit 0" in it.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 47038
9 years ago
Felix Fietkau 896d3e3e13 ar71xx: Add WeIO Board Support
Add support for WeIO board (http://we-io.net).
This board is based on Carambola2 board form 8Devices.

Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org> [some cleanups]

SVN-Revision: 47036
9 years ago
Felix Fietkau 5119ee9be6 ar71xx: fix bogus hardcoded kernel image size for Seama images (fixes #20585)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47034
9 years ago
Felix Fietkau 1061f93476 imx6: disable ext2/ext3 filesystem support (ext4 is enough)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47032
9 years ago
Felix Fietkau c8f0290651 uml: disable ext2/ext3 filesystem support (ext4 is enough)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47031
9 years ago
Felix Fietkau 67aa83442e arm64: disable ext2/ext3 filesystem support (ext4 is enough)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47030
9 years ago
Jo-Philipp Wich 74f4f519e5 mxs: fixup permissions of image generation scripts
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47029
9 years ago
Felix Fietkau b0f48b6ebc kernel: add a patch to fix crashes on pppoe disconnect/reconnect
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47026
9 years ago
Zoltan Herpai ce59fe6b3d mxs: re-work SD card image generation
- Duckbill uses a different partitioning approach than standard
  FSL and Olimex
- use new sdimage to integrate U-Boot into the SD card images

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

SVN-Revision: 47021
9 years ago
Zoltan Herpai e4eb8a4145 mxs: adopt SD card generation to fixed U-Boot path
Signed-off-by: Michael Heimpold <mhei@heimpold.de>

SVN-Revision: 47019
9 years ago
Felix Fietkau 3babd37b0e omap: add Kernel 4.1
tested on Beagleboard C4

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 47013
9 years ago
Felix Fietkau c429250ee4 arm64: switch to Kernel 4.1
- fix Kernel dts subdir location
- enable virtio networking
  we are using -M virt which supports virtio devices

changes in symbols due to make kernel_oldconfig:

- CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y : removed
fix security: upstream id: d1fd836dcf00d2028c700c7e44d2c23404062c90

- CONFIG_ARM64_CPU_SUSPEND: removed
commit id: af3cfdbf56b91785650f54e7c9a899d814b4b9fb

- CONFIG_ARM64_PGTABLE_LEVELS=3 : renamed PGTABLE_LEVELS
commit id: 9f25e6ad58e1fb3b4d441e4c55635c4598a6fa94

- CONFIG_GENERIC_CLOCKEVENTS_BUILD=y : removed upstream
commit id: 9f083b74df3a7eaa100b456f2dc195512daf728e

-# CONFIG_PREEMPT_RCU: unnecessary

unknown remove reasons:
-CONFIG_GENERIC_IOMAP=y
-# CONFIG_POWER_RESET_GPIO is not set
-# CONFIG_POWER_RESET_GPIO_RESTART is not set
-# CONFIG_POWER_RESET_LTC2952 is not set
-# CONFIG_POWER_RESET_SYSCON is not set
-# CONFIG_XEN is not set

tested and boot, networking work with qemu

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 47005
9 years ago
Felix Fietkau 708c58c1a7 kernel: fix dependencies of the sock_diag debloat patch (#20544)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46997
9 years ago
Felix Fietkau 6c018c2f5e kernel: solos-pci: Increase headroom on received packets
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46993
9 years ago
Felix Fietkau 312908ff4b kernel: ipv6: ip6_fragment: fix headroom tests and skb leak
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46992
9 years ago
Felix Fietkau d6408aa9b4 x86/geode: enable DMI and Geos support (fixes #20512)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

SVN-Revision: 46986
9 years ago
Felix Fietkau ef447c9a5f x86: fix Geode LX timekeeping (#20531)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46985
9 years ago
Felix Fietkau 45b52d4581 kernel: remove lantiq specific ATM API hacks and their kernel space users (fixes #20523)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46984
9 years ago
John Crispin 9412c4e66c kernel: unbreak atm ABI for 4.0 and 4.1
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46983
9 years ago
John Crispin e11479771d kernel: properly guard the lantiq atm abi hack with an ifdef
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46981
9 years ago
John Crispin 94295b80ff kernel 3.18/kernel 4.0/kernel 4.1: add missing symbol
deactivate NET_SCTPPROBE just like NET_TCPPROBE

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 46974
9 years ago
John Crispin 74bbc08651 x86: add missing symbol
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 46973
9 years ago
John Crispin ac75fc8d98 ar71xx: add support for ap152 reference board
Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>

SVN-Revision: 46972
9 years ago
John Crispin f6607a4bec ath79: dev-eth: fix QCA9561 set phy interface mode and mask
QCA9563 and QCA9561 are two series of Qualcomm SoC Dragonfly. The only different
is QCA9563 w/o internal switch. It has one GMAC with SGMII interface. But they
have the same device ID(0x1150). So they share the same codes.

Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>

SVN-Revision: 46971
9 years ago
John Crispin fa09d76521 ar71xx: uci-defaults: fix ap143 to appropriate group
Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>

SVN-Revision: 46970
9 years ago
John Crispin f461ffbaad kernel: unbreak the atm abi
the lantiq dsl hack to struct atm_trafprm broke the ABI fix this by moving
the variables to the end of the struct

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46964
9 years ago
John Crispin f453508b3e ramips: Fix pinmux functions for MT7621
The pinctrl-rt2880 code doesn't support multiple functions with the same
name. This will result in a incorrect pinmux configuration.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46963
9 years ago
John Crispin 1297679f4b ar71xx: Add UBNT airGateway Pro support
This patch adds kernel and userspace support for the Ubiquiti Networks airGateway Pro.

Signed-off-by: Matthew Reeve <mreeve at tenxnetworks.com>

SVN-Revision: 46961
9 years ago
John Crispin 3a149a2910 ramips: add mt7621/3/8 support to the I2C driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46959
9 years ago
John Crispin e6a9d5edf2 ramips: fix reported vendor name
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46958
9 years ago
John Crispin 86a1e46b63 ramips: add proper mt7688 detection
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46957
9 years ago
John Crispin 85d5b9984d ramips: add speed and mode settings to spi-mt7621
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46956
9 years ago
John Crispin 38c28154bd ramips: add get_direction() callback and irq support to gpio-mt7621
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46955
9 years ago
John Crispin 23d79b60ce ramips: more m7628 pinmux fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46954
9 years ago
John Crispin 9473837653 ramips: add mt7628 pwm driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46953
9 years ago
John Crispin 9dfe1f6fbe ramips: make pinctrl work on newer socs
newer socs have 2 mux registers

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46952
9 years ago
John Crispin 710520d5c7 ramips: make the mt7628 spi driver work for both cs lines
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46951
9 years ago
John Crispin 6f07b8a659 ramips: make the early_printk code detect which uart is used
only tested on mt7628

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46950
9 years ago
Felix Fietkau f74116e599 omap24xx: remove obsolete kernel 3.3 patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46947
9 years ago
Rafał Miłecki ffcb268437 ipq806x: add platform_pre_upgrade for sysupgrade
We're in process of cleaning nand_do_platform_check. Currently is leaves
a special mark in /tmp/sysupgrade-nand-path triggering some diffent code
path in nand_upgrade_stage1. This can be a bit confusing.

The plan is to have the check function only check the image and nothing
else. Then platform code (platform_pre_upgrade) should trigger NAND
specific upgrade path. This is what this patch implements.

This follows ar71xx, lantiq and partially bcm53xx.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46945
9 years ago
Rafał Miłecki 39940fac6b imx6: add platform_pre_upgrade for sysupgrade
We're in process of cleaning nand_do_platform_check. Currently is leaves
a special mark in /tmp/sysupgrade-nand-path triggering some diffent code
path in nand_upgrade_stage1. This can be a bit confusing.

The plan is to have the check function only check the image and nothing
else. Then platform code (platform_pre_upgrade) should trigger NAND
specific upgrade path. This is what this patch implements.

This follows ar71xx, lantiq and partially bcm53xx.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46944
9 years ago
Rafał Miłecki 90e1b84f15 lantiq: update list on NAND devices in platform_pre_upgrade
Meanwhile BTHOMEHUBV5A board was added.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46941
9 years ago
John Crispin 57c8708d64 lantiq: add platform_pre_upgrade for sysupgrade
As explained in recent sysupgrade/nand.sh commits, current NAND
sysupgrade is a bit misleading because of nand_do_platform_check
behavior. It leaves a special mark in /tmp/sysupgrade-nand-path
triggering some diffent code path in nand_upgrade_stage1.

The plan is to have the check function only check the image and nothing
else. Then platform code (platform_pre_upgrade) should trigger NAND
specific upgrade path. This is what this patch implements.

Please note that because of current nand_upgrade_stage1 implementation
this patch doesn't change any behaior yet. It only prepares lantiq
target for changing nand_do_platform_check (it will be possible after
preparing all other targets as well).

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46939
9 years ago
John Crispin 0dbced8a48 ar71xx: add TP-LINK TL-WDR3320 v2 support
This patch adds support for TP-LINK TL-WDR3320 v2.

This router uses a chinese version 2 firmware header,.

Signed-off-by: Weijie Gao <hackpascal@gmail.com>

SVN-Revision: 46934
9 years ago
John Crispin bfeae90850 ar71xx: extract ath10k wifi board.bin for the OpenMesh MR1750 board
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46933
9 years ago
John Crispin fec6313b62 ar71xx: create profile and build image for the OpenMesh MR1750 board
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46932
9 years ago
John Crispin b9b6d34e36 ar71xx: enable sysupgrade for the OpenMesh MR1750
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46929
9 years ago
John Crispin cbf71651ec ar71xx: add user-space support for the OpenMesh MR1750 board
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46927
9 years ago
John Crispin aba20334a4 ar71xx: add kernel support for the OpenMesh MR1750 board
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46926
9 years ago
John Crispin f582a93a6a realview: create sd card image for qemu
enables a real rootfs with custom size

use qemu with:
qemu-system-arm -M realview-pbx-a9 \
-kernel openwrt-realview-vmlinux.elf \
-nographic -m 1024M \
-sd openwrt-realview-sdcard.img \
--append "console=ttyAMA0 root=/dev/mmcblk0p1"

modified script from brcm2708 target

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 46924
9 years ago
John Crispin edb5ec3f34 realview: enable sd card support
qemu can be run with -sd <imagename>

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 46923
9 years ago
John Crispin d1587fb4aa ar71xx: assign proper GPIO pin for Ubiquiti Nanostation models
The GPIO pins for "POE passthrough" of Ubiquiti Nanostation models are the
following:
* Ubiquiti Nanostation M XM: Pin 8
* Ubiquiti Nanostation M XW: Pin 2

The previous definition of the pins was mixed up between XM and XW model.

Signed-off-by: Lars Kruse <lists@sumpfralle.de>

SVN-Revision: 46922
9 years ago
John Crispin 57c5910535 ramips: Added WIZnet WizFi630A Platform based on Ralink RT5350
This patch is to add the WIZnet WizFi630A board as a new platform. The board is in mini pci express form factor.

Signed-off-by: Tobias Welz <tw@wiznet.eu>

SVN-Revision: 46921
9 years ago
John Crispin 2efdc7c896 ramips: add support for Planex DB-WRT01
This patch add support for Planex DB-WRT01. DANBOARD route on
 the MT7620A SoC with two Ethernet port and a 802.11n 2.4 GHz radio.
 DANBOARD is Cartoon character.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>

SVN-Revision: 46918
9 years ago
John Crispin 06a180d027 lantiq: get more status information from xDSL
Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Signed-off-by: Helge Mader <hmader@tdt.de>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Tested-by: Andre Heider <a.heider@gmail.com>

SVN-Revision: 46917
9 years ago
John Crispin 404b183aa8 lantiq: Add AR9 compatibility bits to DWC2 driver
Add AR9 DTS definition to be recognized by the DWC2 driver.

The same driver parameters can be mostly used except that some boards
seem to erroneously report OTG HNP/SRP capability of the USB HCD.
Forcing the HNP/SRP off allows these boards to work with the DWC2 as well.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>

SVN-Revision: 46915
9 years ago
John Crispin 4595440215 lantiq: Introduce DWC2 compatible DTS definitions for AR9 USB
Since the AR9 USB is very similar to the VR9 USB it too can be used with
the upstream DWC2 driver.

Here are the DTS definitions which make it compatible with the DWC2
driver.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>

SVN-Revision: 46914
9 years ago
John Crispin 1f4124ceb0 lantiq: Initialize USB on AR9 platform
Based on the ltq-hcd driver the AR9 USB can be initialized the same way
as the VR9 platform. Use the same initialization bits for both
platforms.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>

SVN-Revision: 46913
9 years ago
Felix Fietkau fcee359813 ramips: fix chunked-io support for big flash chips (#20504)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46904
9 years ago
Hauke Mehrtens e1ec8b76e9 ar71xx: fix build of lzma-loader with binutils 2.25.1
To make the lzma-loader build with binutils 2.25.1 it is needed to
remove the .MIPS.abiflags section otherwise I get the following compile
error:

mips-openwrt-linux-musl-objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S loader loader.bin
mips-openwrt-linux-musl-objcopy: Warning: Writing section `.text' to huge (ie negative) file offset 0xffffffff80a00000.
mips-openwrt-linux-musl-objcopy:loader.bin[.text]: File truncated

This should close #20487.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46893
9 years ago
Hauke Mehrtens 41f9b5e42e bcm53xx: add NAND flash chip description for Asus RT-AC87U
This should fix #20492.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46892
9 years ago
Felix Fietkau 1956cc7018 ramips: enable external amplifier for Xiaomi MiWiFi Mini
Attempt to boost the 2.4 GHz signal, currently very low.

Signed-off-by: D. Andrei Măceș <dmaces@nd.edu>

SVN-Revision: 46891
9 years ago
Rafał Miłecki 450aebcdce bcm53xx: reorder some arch patches
This moves arch patches affecting many DTS files. Thanks to this change
we can put some ready-to-mainline patches at 300-319 and simplify
backporting process.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46889
9 years ago
Hauke Mehrtens 89ce027c08 kernel: add CONFIG_MIPS_CDMM config option
This driver was added in kernel 4.1.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46881
9 years ago
Rafał Miłecki c6e30d6d7a brcm47xx: detect Netgear R6300 V1 & support reset button
It's still far from complete support.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46880
9 years ago
Hauke Mehrtens 4b1278e43e kernel: Added missing symbols into 4.1 & 4.0 kernel default .config
As requested here #20432 I've
tried to fix the missing symbols from the specified default kernel
config files.
I ran into this problem trying to build an image for x86_64 target
with a custom kernel configuration.

Signed-off-by: Manganini Mirko <mmanganini@gmail.com>

SVN-Revision: 46879
9 years ago
Hauke Mehrtens 5b04888848 brcm47xx: update to kernel 4.1
This makes bcm53xx use kernel 4.1 by default now.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46878
9 years ago
Hauke Mehrtens b075d5e734 bcm53xx: update to kernel 4.1
This makes bcm53xx use kernel 4.1 by default now.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46877
9 years ago
Hauke Mehrtens 5caee877dc brcm47xx: increase max image size
the trx utile uses a maximum image size of 7.2MB. There are brcm47xx
devices even with serial flash with bigger flash chips, but OpenWrt was
not able to create images for these devices. This patch provides an
additional parameter which increases this limit to 32 MB. There is a
warning in the trx utile code which suggests that bigger images could
overwrite the nvram partition on some devices, but normally the program
writing the image should make sure that it is safe to write it to the
flash.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46872
9 years ago
Hauke Mehrtens c9bebfb9ce brcm47xx: break long lines in image Makefile
This patch changes nothing on the behaviour, it just breaks long lines
with bin/trx to make it easier to add additional parameters.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46871
9 years ago
Felix Fietkau e1f0a7e841 brcm2708: remove linux 3.18 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46870
9 years ago
Felix Fietkau 6c1adb3eec lantiq: Use the BAR0 base address in the ath PCI fixup code
Fixes support for AR9287 on TP-Link TD-W8980 and possibly other devices
which have an ath wifi chip at a PCI address other than 0xb8000000
(TD-W8980 for example has it's wifi chip at 0xbc000000).

Signed-off-by: Geoffrey McRae <geoff@spacevs.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 46869
9 years ago
Felix Fietkau 18c01061a9 mvsw61xx: match swconfig function names
Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 46865
9 years ago
Felix Fietkau b75d188b21 mvsw61xx: use standard swconfig get_port_link
The previous "link" and "status" functions were non-standard,
and thus less useful for parsing.

Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 46864
9 years ago
Felix Fietkau 542ee6ed19 ar71xx: Restore buildability of the AP121 target
Increase space for kernel and also introduce a 8M flash target into the
Makefile.

Signed-off-by: Attila Lendvai <attila@lendvai.name>

SVN-Revision: 46862
9 years ago
Felix Fietkau e6fb730daa yaffs2: remove __TIME__ __DATE__ macros
prevent compiler errors with gcc 4.9
increase reproducibility

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 46858
9 years ago
Felix Fietkau d9857f5468 ramips: Enable RTC support for PBR-M1
The PBR-M1 and other upcoming MT7621 boards have RTC chips on them. The
PBR-M1 also selects the kmod-rtc-pcf8563 by default. But the module itself
will not be build because CONFIG_RTC_CLASS is currently not enabled for its
kernel.

Enabling this option should fix the problem of the missing rtc device on
these boards.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46857
9 years ago
Felix Fietkau bc4f2c5ce4 ar71xx: fix ar724x clock calculation
According to the AR7242 datasheet section 2.8, AR724X CPUs use a 40MHz
input clock as the REF_CLK instead of 5MHz.

The correct CPU PLL calculation procedure is as follows:
CPU_PLL = (DIV * REF_CLK) / REF_DIV / 2.

This patch is compatible with the current calculation procedure with default
DIV and REF_DIV values.

Test on both AR7240, AR7241 and AR7242.

Signed-off-by: Weijie Gao <hackpascal@gmail.com>

SVN-Revision: 46856
9 years ago
Felix Fietkau b1be597a7a brcm2708: add kmod-sound-soc-raspidac3
This adds support for RaspiDAC Rev.3x

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46854
9 years ago
Felix Fietkau 0b5d87fd30 brcm2708: update 4.1 patches
As usual, this patches were taken (and rebased) from
https://github.com/raspberrypi/linux/commits/rpi-4.1.y

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46853
9 years ago
Felix Fietkau 2ce833060a target: ar71xx: add support for COMFAST CF-E316N v2 board
This adds full support (sans sysupgrading from vendor firmware) for the COMFAST
CF-E316N v2 (aka CF-E316V2, CF-E316N-V2 and CF-E316Nv2.0, no FCC ID) by
Shenzhen Four Seas Global Link Network Technology Co., Ltd (this company is
actively refusing to provide GPL'd sources for the OpenWrt version they ship
with the device, damn them).

Signed-off-by: Paul Fertser <fercerpav@gmail.com>

SVN-Revision: 46852
9 years ago
Jonas Gorski 82fb27917b ipq806x: fix uninitialized variable usage in cpufreq-krait
In krait_cpufreq_probe, both freq and max_cpu_freq are never
initialized, so the max_cpu_freq will have a random value at the end.
Fix this by properly initializing max_cpu_freq to 0 and storing the clk
frequency in freq as well, to make it similar to how it's calculated in
krait_set_target.

Fixes the following warnings:

In file included from include/linux/clk.h:16:0,
                 from drivers/cpufreq/cpufreq-krait.c:13:
drivers/cpufreq/cpufreq-krait.c: In function 'krait_cpufreq_probe':
include/linux/kernel.h:714:24: warning: 'freq' may be used uninitialized in this function [-Wmaybe-uninitialized]
  _max1 > _max2 ? _max1 : _max2; })
                        ^
drivers/cpufreq/cpufreq-krait.c:217:25: note: 'freq' was declared here
  unsigned long freq_Hz, freq, max_cpu_freq;
                         ^
In file included from include/linux/clk.h:16:0,
                 from drivers/cpufreq/cpufreq-krait.c:13:
include/linux/kernel.h:714:24: warning: 'max_cpu_freq' may be used uninitialized in this function [-Wmaybe-uninitialized]
  _max1 > _max2 ? _max1 : _max2; })
                        ^
drivers/cpufreq/cpufreq-krait.c:217:31: note: 'max_cpu_freq' was declared here
  unsigned long freq_Hz, freq, max_cpu_freq;

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46839
9 years ago
Jonas Gorski bebff6364d ipq806x: modules: fix typo in usb-dwc3-qcom dependencies
The phy driver has its qcom-dwc3 order switched in contrast to the usb
controller driver.

Signed-off-by: Kaspar Schleiser <kaspar@schleiser.de>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46838
9 years ago
Jonas Gorski a752ff1f8e ipq806x: fix R7500 kernel generation
Obviously the dummy rootfs must be after the kernel (uImage), not
included in it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46837
9 years ago
Felix Fietkau 5fcafa319d generic: Fix per interface nf_call_iptables setting
commit r30917 ("kernel: bypass all netfilter hooks if the sysctls for that
functionality have been disabled - eliminates the overhead of enabling
CONFIG_BRIDGE_NETFILTER in the kernel config") introduced an optimization
which should reduce/eliminate the overhead for traffic send over bridges on
kernels compiled with CONFIG_BRIDGE_NETFILTER=y. But this optimization
breaks the nf_call_iptables per bridge setting which is more fine grained
than the global sysctl net.bridge.bridge-nf-call-iptables setting.

A test reflecting a real world setup was created to identify if this really
eliminates the overhead and if per-bridge nf_call_iptables could be used in
some setups to increase the throughput. A Qualcomm Atheros QCA9558 based
system with one ethernet and an ath9k wifi 3x3 in HT40 mode was used.
Cables from the AP to the wifi station were used to reduce interference
problems during the tests.

The wlan interface was put in one bridge interface called br-wlan. This
bridge usually contains some more wlan interfaces. The eth0 was put in a
second bridge called br-lan. This usually contains some other privileged
wlan or mesh interfaces. Routing was added between br-lan and br-wlan.

Three kernels were tested:

 * (default) OpenWrt kernel for this device
 * (brfilter-global) OpenWrt kernel with CONFIG_BRIDGE_NETFILTER=y
 * (brfilter-local)  OpenWrt kernel with CONFIG_BRIDGE_NETFILTER=y and
    without 644-bridge_optimize_netfilter_hooks.patch

The changes to the the netfilter settings of the bridge were done via:

 * (brfilter-global) /sbin/sysctl -w net.bridge.bridge-nf-call-iptables=1
 * (brfilter-lobal) echo 1 > /sys/class/net/br-lan/bridge/nf_call_iptables
   and/or echo 1 > /sys/class/net/br-wan/bridge/nf_call_iptables

A station connected to the wlan0 (AP) interface was used to send traffic to
a PC connected via ethernet. iperf with 3 concurrent transmissions was used
to generate the traffic.

| kernel          | br-nf-* global | nf-call* iface | download | upload   |
|-----------------|----------------|----------------|----------|----------|
| default         | 0              | -              |      209 |      268 |
| brfilter-global | 0              | -              |      185 |      243 |
| brfilter-local  | 0              | -              |      187 |      243 |
| brfilter-local  | 0              | br-lan         |      157 |      226 |
| brfilter-local  | 0              | br-lan br-wlan |      139 |      161 |
| brfilter-global | 1              | -              |      136 |      162 |

Download/upload results in Mibit/s

It can be seen that the patch doesn't eliminate the overhead. It can also
be seen that the throughput of brfilter-global and brfilter-local with
disabled filtering is the roughly the same. Also the throughput for
brfilter-global and brfilter-local for enabled filtering on all bridges is
roughly the same.

But also the brfilter-local throughput is higher when only br-lan requires
the filtering. This setting would not be possible with
644-bridge_optimize_netfilter_hooks.patch applied and thus can only be
compared with brfilter-global and filtering enabled for all interfaces.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46835
9 years ago
Rafał Miłecki f0c747dee5 kernel: describe bridge patch "multicast to unicast"
It was initially added in r41367 by nbd.

SVN-Revision: 46828
9 years ago
Rafał Miłecki b8c9d6b296 kernel: describe bridge patch "optimize netfilter hooks"
It was initially added in r30917 by nbd.

SVN-Revision: 46827
9 years ago
Rafał Miłecki 255d7ad8ba kernel: describe bridge patch "remove IPv6 depependency of bridge in 2.6.38+"
It was initially added in r27237 by jow as patch from Jonas.

SVN-Revision: 46826
9 years ago
Rafał Miłecki f8a689d276 kernel: describe bridge patch "port isolate"
It was initially added in r25762 by nbd.

SVN-Revision: 46825
9 years ago
Rafał Miłecki e77fae4cba kernel: describe bridge patch "always accept EAP"
It was initially added in r26015 by nbd.

SVN-Revision: 46824
9 years ago
Rafał Miłecki c64214d465 kernel: describe bridge patch "no EAP forward"
It was initially added in r25095 by nbd.

SVN-Revision: 46823
9 years ago
Felix Fietkau 75744d133d kernel: restore 640-bridge_no_eap_forward.patch to its original form
It was corrupted in r38528. The most obvious symptom is repeated messages like this:

Tue Sep  8 08:25:18 2015 kern.warn kernel: [77141.972226] br-lan: received packet on wlan0 with own address as source address

Signed-off-by: Dmitry Ivanov <dima@ubnt.com>

SVN-Revision: 46821
9 years ago
Felix Fietkau e29efa2fb7 kernel: remove packaging of kmod-crypto-core and kmod-crypto-arc4
Everything except for blkcipher was already built-in, so make blkcipher
built-in as well.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46820
9 years ago
Rafał Miłecki bda4c3d5e5 brcm47xx: apply serial flash size trick to Netgear WNR1000 V3
It also uses different block size just like WGR614 V10.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46810
9 years ago
Rafał Miłecki d2a9c35af0 brcm47xx: fix reading WGT634U CFE variables with 4.1
This ports fix from r46584 to the 4.1.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46806
9 years ago
Rafał Miłecki da2178eb7e brcm47xx: add Netgear WNR1000 V3 support in the Linux arch code
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46805
9 years ago
Jonas Gorski 8b4df1efd5 ipq806x: add support for Netgear Nighthawk X4 R7500
Add support for the Netgear Nighthawk X4 R7500 and build
appropariate sysupgrade and factory images.

Known issues:
 * 5 GHz wifi not working - there is no quantenna driver
 * One of the USB ports is not working

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46796
9 years ago
Jonas Gorski 6ec4c4b6b9 ipq806x: enable ide led trigger
To use gpio leds as ide leds, we need to enable the trigger to be
included in the kernel.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46795
9 years ago
Jonas Gorski 05e4d736d1 ipq806x: add support for retrieving macs from mtd
Add support for mtd-mac-address for stmac.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46793
9 years ago
Jonas Gorski b958c12d2c image: move netgear-image to top and rename to -dni
Use the same naming as netgear-chk.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46791
9 years ago
Jonas Gorski 156a25b9c4 ar71xx: rename NETGEAR_ variables to their netgear names
Netgear names them BOARD_ID and HW_ID, so we should do the same.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46790
9 years ago
Jonas Gorski 89815d4645 ipq806x: build images and add sysupgrade support for AP148
Add full ubi and sysupgrade images for AP148 and add sysupgrade support
for ipq806x to allow updating the current installation.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46789
9 years ago
Jonas Gorski e3f6876623 ipq806x: clear IMAGES for devices
Ensure that IMAGE-less devices won't keep the IMAGES of any previous
devices.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46788
9 years ago
Jonas Gorski 7a962fb55a ipq806x: wrap legacy image in uImage
Wrap the zImage in a uImage header so we can easily boot it from legacy
u-boots.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46787
9 years ago
Jonas Gorski 5686d67d1c ipq806x: rename "rootfs" to "ubi" on nand
OpenWrt expects the ubi paritition to be named "ubi", not "rootfs".

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46786
9 years ago
Jonas Gorski 9f44a347ea ipq806x: enable smem-parser for nand on AP148
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46785
9 years ago
Jonas Gorski 556d483a6f ipq806x: enable ubiblock support
To allow squashfs on ubi, enable ubiblock support in the kernel.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46782
9 years ago
Felix Fietkau efb08b9602 ar7: fix HIGHMEM_START (#20427)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46773
9 years ago
Jonas Gorski 7d6cff4882 kernel: update 3.18 to 3.18.21
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.21

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46768
9 years ago
Felix Fietkau 7747092ed1 ramips: fix devicetree corruption with some boot loaders if the caches are not ready at boot
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46766
9 years ago
Felix Fietkau 2416e506f5 kernel: bridge, multicast-to-unicast: fix echoes on STA
Currently, multicast packets from an STA are sent to any according
multicast listener directly through the bridge multicast-to-unicast
feature. Unfortunately, so far this includes the originating STA, too,
resulting in multicast packets being echo'ed back to the originating STA
if it itself is a multicast listener for that group.

This behaviour breaks IPv6 duplicate address detection: An IPv6 Neighbor
Solicitation for IPv6 Duplicate Address Detection is being echo'ed back,
resulting in the host falsely detecting an address collision, which
makes the node unable to claim an IPv6 address and use IPv6 in general.

Mac80211 unfortunately only prevents the echoes for us for multicast
frames. For the multicast frames cast to a unicast destination we'll
need to take care of excluding the originator ourselves.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>

SVN-Revision: 46765
9 years ago
Jonas Gorski 1bc35a08d1 lantiq: remove dead EASY33016 image recipe
Support for lantiq_svip_be has been removed a while ago, so EASY33016
images weren't buildable anymore. Remove the recipes as well as gzip
compressed kernel support, as EASY33016 was the last user of it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46760
9 years ago
Jonas Gorski efb2c403cf ramips: disable the openwrt commandline hack
We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46759
9 years ago
Jonas Gorski 6920a664e8 malta: disable the openwrt commandline hack
We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46758
9 years ago
Jonas Gorski 09609b4e44 brcm63xx: disable the openwrt commandline hack
We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46757
9 years ago
Jonas Gorski f5601a97a2 brcm47xx: disable the openwrt commandline hack
We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46756
9 years ago
Jonas Gorski 22d707ecd8 ath25: disable the openwrt commandline hack
We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46755
9 years ago
Jonas Gorski 900b87e96c adm5120: disable the openwrt commandline hack
We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46754
9 years ago
Jonas Gorski 5ebd02e8d5 brcm63xx: remove legacy led/button related patches
We register all gpio buttons and leds through DT, so no need to keep
fixes/additions for the platform data based bay.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46753
9 years ago
Jonas Gorski 78f253f9b1 brcm63xx: add Comtrend VR-3026e support
Add support for Comtrend VR-3026e v1.
The device is almost identical to the Comtrend VR-3025un.

Signed-off-by: Martin Tesar <tesarmar@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46752
9 years ago
Rafał Miłecki a9559efe43 brcm47xx: fix Linksys E1200 V2 image filename
Drop unwanted suffix (copy & paste mistake).

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46742
9 years ago
Rafał Miłecki f87990840d bcm53xx: support sysupgrade with Netgear R7000 original firmware
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46732
9 years ago
Rafał Miłecki 8f77e9f668 bcm53xx: add OpenWrt specific stuff for Netgear R7000
This adds DT things that couldn't be upstreamed yet.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46731
9 years ago
Rafał Miłecki 36a8075d90 bcm53xx: use pending Netgear R7000 patch
It includes support for LEDs and buttons.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46730
9 years ago
Rafał Miłecki 1111782e20 bcm53xx: use backported patches for UART0 and profiling
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46729
9 years ago
Jonas Gorski 05a3cdd71f brcm63xx: fix WAP-5813n default network config
/etc/uci-defaults/02_network had a typo, making it generate the wrong
network config.

Closes #20407.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46727
9 years ago
Jonas Gorski a486ffacea linux: fix off-by-one in handling in /proc/net/route
Add an upstream fix for /proc/net/route causing missing routes doing
several continued reads from it.

Only 4.1+ is affected.

Closes #20403.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46726
9 years ago
Jonas Gorski 77a70a0716 brcm63xx: enable dual rx/tx spi support for hsspi
should improve flash access times. Should be harmless to gnerally
enable regardless if a flash supporting dual reads is attached. In
doubt, spi-nor will just fall back to serial reads.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46725
9 years ago
Felix Fietkau ddf8858cea kernel: bridge, multicast-to-unicast: assign src after pskb_may_pull()
A call to pskb_may_pull() might reallocate skb->data. Therefore we
should only assign the src-pointer after any potential reallocations.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46721
9 years ago
Felix Fietkau ea9963bb21 Revert "kernel: disable multicast-to-unicast translation for ipv6 neighbor solicitation (#17625)"
This reverts commit a080e8e1943156168913d0353a2e99d1151102aa.

It did not fix the problem but just hid some symptom. The real issue was
that IGMP/MLD report suppression was not considered for the
multicast-to-unicast feature. A recent netifd which isolates IGMP/MLD
reports between STAs by utilizing AP-isolation and bridge-hairpinning
should have fixed this.

It is perfectly fine to apply multicast-to-unicast to IPv6 Neighbor
Solicitations, too (once that feature is configured correctly).

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46720
9 years ago
Jonas Gorski 2d53e22357 kernel: remove already upstream applied patch
Remove 131-MIPS-export-get_c0_perfcount_int.patch which was already applied
in 4.1.6. This fixes the following build error:

arch/mips/ath79/setup.c:217:77: error: redefinition of '__kstrtab_get_c0_perfcount_int'
arch/mips/ath79/setup.c:211:77: note: previous definition of '__kstrtab_get_c0_perfcount_int' was here
arch/mips/ath79/setup.c:217:350: error: redefinition of '__ksymtab_get_c0_perfcount_int'
arch/mips/ath79/setup.c:211:350: note: previous definition of '__ksymtab_get_c0_perfcount_int' was here
scripts/Makefile.build:258: recipe for target 'arch/mips/ath79/setup.o' failed

Reported-by: swalker
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46715
9 years ago
Jonas Gorski 548630d74e adm5120: make patches apply again
Fix patches not applying anymore since r46654.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46714
9 years ago
Jonas Gorski 2d379e796f kernel: update 4.1 to 4.1.6
Changelog:
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.6

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46713
9 years ago
Jonas Gorski 2190f090bb mvebu: kirkwood: fix ehci-orion probe if generic-phy isn't enabled
Properly treat -ENOSYS as no PHY, else ehci-orion won't work without
generic phy support.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46711
9 years ago
Jonas Gorski ecdce239a5 brcm63xx: ensure dummy byte is set for mapped spi flash with fast read
Some CFEs seem to misconfigure the mapped memory flash access with
fast read but without a dummy byte, causing all accesses to be prefixed
with 0xff.
This of course breaks reading out the nvram, so do not just move back to
single i/o accessors, but also ensure that the dummy byte is correctly
set.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46707
9 years ago
Zoltan Herpai e0d332cdbe sunxi: bump to 4.1
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 46705
9 years ago
Zoltan Herpai 79e1aa2ac3 sunxi: add audio module for 4.1
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 46704
9 years ago
Zoltan Herpai ed1a7a2deb sunxi: update ahci package list for a couple board profiles
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 46703
9 years ago
Zoltan Herpai c00198216a sunxi: reorganize kmod-ata-sunxi dependencies
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 46702
9 years ago
Imre Kaloz 87a70e0774 This had been set in r44508 as a workaround for switch problems.
Now that the switch driver can handle two devices with
the same MAC address in separate VLANs we can go back
to using the same address on both interfaces.

This is the Linksys firmware's default behavior.

Signed-off-by: Claudio Leite <leitec@staticky.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 46700
9 years ago
Imre Kaloz 9cca6c5ad9 Previously, all VLANs (port-based or 802.1q) were sharing a single database in the ATU. This created problems in the case of a system where two ports/devices share a MAC address (e.g. Linksys WRT1900AC eth0/eth1).
This also clears any bootloader-set FDB defaults. This had
caused issues creating port-based VLANs when mappings
overlapped previous VLANs. Packets destined to a port
not in the default port group flooded all ports.

Tested on a 88E6171 (Linksys EA4500) and 88E6172 ('1900AC)

Signed-off-by: Claudio Leite <leitec@staticky.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 46699
9 years ago
Imre Kaloz f57484c4af mvebu: fix cobra chainmask
Thanks Sebastian for spotting it.

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 46697
9 years ago
Zoltan Herpai f5fcb0b4b8 kernel: add missing symbols for 4.1
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 46696
9 years ago
Imre Kaloz 20fac016e4 mvebu: add support for the Linksys boot counter
The u-boot boot counter was never reset after a successful boot,
which sometimes could make some variables become out of sync.
This patch adds support for the boot counter and enables
auto_recovery unconditionally.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Rob Mosher <nyt-openwrt@countercultured.net>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 46690
9 years ago
John Crispin 0ff8c94aab at91: fix usb rate backport patch tab mangle
The patch submitted in [46649] was mangled in the use of gmails webmail interface, tabs replaced with spaces, resulting in a patch which dit not apply.
This should fix the issue, sorry for the noise.

Signed-off-by: Ben Whitten <benwhitten@gmail.com>

SVN-Revision: 46676
9 years ago
John Crispin 8411858194 orion: remove IRQF_DISABLED
no-op since 2.6.35
    removed in Kernel 4.1
    see https://lwn.net/Articles/380931/

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 46672
9 years ago
John Crispin 6d461ddbb2 generic: crypto: remove IRQF_DISABLED
no-op since 2.6.35
    removed in Kernel 4.1
    see https://lwn.net/Articles/380931/

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 46671
9 years ago
John Crispin 4582d7e8f5 lantiq: Support newer versions of the PEF7071 ethernet PHYs
The BT Home Hub 5A uses three PEF7071 with PHY ID 0xd565a401. Daniel's
PHY driver (for his u-boot sources) already supports that PHY because
it uses a PHY ID mask of 0xfffffff8.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 46670
9 years ago
John Crispin 9b531bcab1 oxnas: remove support for kernel 3.18 and 4.0
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 46668
9 years ago
John Crispin 402c2d008b ramips: move patches around
0073 needs to applied afert 0102

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46667
9 years ago
John Crispin 0f155a330e ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds scripts
Instead of using board name provided explicitly as text in LED name, ex.:

[...]
mlwg2)
	status_led="mlwg2:blue:system"
[...]

use $board variable, which allows to combine together multiple boards with same color and LED names, ex:

[...]
mlw221|\
mlwg2)
	status_led="$board:blue:system"
[...]

The above approach allows to shrink size of code in base-files/etc/board.d/01_leds and base-files/etc/diag.sh scripts dramatically.
One thing to keep in mind here is that we assume to use proper and consistent LED naming scheme ("device:color:led-name").

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46665
9 years ago
John Crispin 1a392636a5 ramips: use consistent naming scheme for LEDs
The upstream LED naming convention is "device:color:led-name", but it seems that many of supported boards in OpenWrt don't follow this approach.
The following patch fixes this inconsistency in dts{,i} files and updates base-files scripts for ramips target:
 * fixes wrong indentation
 * keeps case statements structure in same convention as in other scripts (no empty line after ";;", no indentation for case...esac body)
 * fixes wrong LED names for some of boards (makes them the same as in dts{,i} files)
 * combines boards with same configuration (ex. set_wifi_led "rt2800pci-phy0::radio" in 01_leds)

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46664
9 years ago
John Crispin af60c367b7 ar71xx: add support for TP-Link TL-WDR6500 v2
Signed-off-by: Weijie Gao <hackpascal@gmail.com>

This patch adds support for TP-Link TL-WDR6500 v2.

The firmware has a U-Boot header for kernel, and a TP-LINK v2 header for
the whole firmware, so I have to create a new firmware creation method.

SVN-Revision: 46663
9 years ago
John Crispin a2b38ebf77 ar71xx: add 64kb bootloader mtd parser for tplinkpart
Signed-off-by: Weijie Gao <hackpascal@gmail.com>

This patch adds flash layout parser for TP-Link firmwares which have a 64kb
bootloader.

This is used for TP-Link TL-WDR6500 v2.

SVN-Revision: 46662
9 years ago
John Crispin eba4a143c6 ramips: reorder the sysupgrade script
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46660
9 years ago
John Crispin aa4c6e27b4 ramips: reorder patches
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46659
9 years ago
John Crispin b0b59a8e75 ipq806x: switch AP148 to using SMEM based MTD parser
*Enable SMEM MTD parser and its dependencies (SMEM & HW spinlocks) in
 the kernel config
*Replaces the MTD layout in DT by the dynamic layout provided by the
 SMEM parser for AP148

Using the OF based parser is still possible on platforms which have a
fixed MTD partition layout.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 46658
9 years ago
John Crispin 0e33ae8e5d ipq806x: add QCOM SMEM based MTD parser
This patch adds a new parser which uses the SMEM available on IPQ and
some other QCOM platforms to map the MTD partitions.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 46657
9 years ago
John Crispin 6529d23267 ipq806x: add SMEM support
2 patches are cherry-picked from the following LKML thread:
*https://lkml.org/lkml/2015/4/11/208

The last patch (036-soc-qcom-add-smem-to-IPQ806x-platforms.patch) is
adding the corresponding DT nodes required for IPQ806x.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 46656
9 years ago
John Crispin 6b775f4517 ipq806x: add hwspinlock support
This change cherry-picks the following 3 changes from linux-next:
*fb7737 hwspinlock/core: add device tree support
*19a0f6 hwspinlock: qcom: Add support for Qualcomm HW Mutex block
*bd5717 hwspinlock: qcom: Correct msb in regmap_field

We're also adding a patch to add the hardware spinlock device nodes on
IPQ806x platforms (033-soc-qcom-Add-sfbp-device-to-IPQ806x-dts.patch).

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>

SVN-Revision: 46655
9 years ago
John Crispin 6856535e29 kernel: move linux, part-probe dt parsing in generic code
The "linux,part-probe" dts parsing is a pretty neat generic feature.
It has been posted to kernel.org and could easily be reused by all
targets.

This change moves the patch to the 3.18 and 4.1 generic folders, and
makes the feature available to all platforms who may want to use it.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46654
9 years ago
John Crispin 4463bc017b ar71xx: Add support for Black Swift
Add support for the Black Swift board:
http://www.black-swift.com/

Took relevant parts and slightly adapted from:
https://github.com/blackswift/openwrt/blob/master/bsb.patch

Signed-off-by: Bruno Randolf <br1@einfach.org>

SVN-Revision: 46651
9 years ago
John Crispin 8e90f20bf7 at91: Backport determine_rate prototype fix
This patch is backport of a fix to a USB prototype mismatch bug found
in 3.18 kernels, originally submitted by Boris Brezillon [1].
The symptom of this bug was that devices attached to the at91 using
at91_ohci on a hub never appeared and failed to initialise.

[1] http://www.spinics.net/lists/linux-usb/msg125969.html

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>

SVN-Revision: 46649
9 years ago
John Crispin c0d0cb6d28 mcs814x: use firmware partition splitter on dLAN USB Extender
to avoid editing the dts every time the kernel size changes.
uImage is now bigger than 1MB. Pad uImage to 64k erase block size.

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 46648
9 years ago
John Crispin d8ec3ee77d mcs814x: fix interrupt handling
Switch to generich chip irqs/irq domains.
Interrupts were broken since kernel 3.14. dLAN USB extender is now
booting again.

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 46647
9 years ago
John Crispin a8d7c5c8de mcs814x: fix debug UART
Switch to new 8250 debug uart code because the old
mach-mcs814x/include/mach/debug-macro.S tries to include
asm/hardware/debug-8250.S which no longer exists since kernel 3.14

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 46646
9 years ago
John Crispin 87df7da757 ramips: Fix MT7621 pinmux bits for uart3, uart2, mdio
The MT7621 uses a 2 bit wide configuration of the sdhci, spi, mdio, pcie,
wdt, uart2 and uart3 in the GPIO_MODE register. It was correctly done
for sdhci, spi, pcie and wdt, The same has to be done for uart3, uart2
and mdio.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46645
9 years ago
John Crispin 09851afd33 ramips: Fix amount of MT7621 pins controlled by spi group
The PINS conntrolled by the SPI bits in the GPIO_MODE register is always
7 and not 8 for nand mode.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46644
9 years ago
John Crispin 9ed654e389 ramips: Fix uart2/uart3 pinmux order on MT7621
The uart3 setting in GPIO_MODE register is before the uart2 setting. Also
don't mix uart2 and uart3 function/groups.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46643
9 years ago
John Crispin 27a40c79b0 brcm2708: override disabled device tree module status from config.txt
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46642
9 years ago
John Crispin a6e47b8324 brcm2708: fix kmod-sound-soc-iqaudio-dac and add missing symbol
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46641
9 years ago
John Crispin 22b3e521b5 brcm2708: update 4.1 patches
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46640
9 years ago
John Crispin 98e122e4cc brcm2708: use BuildDTB in image/Makefile
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46639
9 years ago
John Crispin 9b94521a46 oxnas: switch to kernel 4.1
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 46637
9 years ago
John Crispin 7261fde797 oxnas: prepare for kernel 4.1
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 46636
9 years ago
John Crispin f32116987f ramips: remove unnecessary LED declaration for WT1520 in diag.sh
This device doesn't have defined LEDs in its dts file.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46635
9 years ago
John Crispin 2f0449419f ramips: fix indentation, case statements structure and optimize base-files/etc/board.d/02_network
The following patch:
 * fixes wrong indentation
 * combines together boards with same configuration
 * removes unnecessary spaces
 * removes empty lines after ";;" and uses only "|\" (for consistency)
 * orders boards alphabetically

in base-files/etc/board.d/02_network script.

One bug was left untouched: freestation5 board is listed twice in case statement, in ramips_setup_macs().

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46634
9 years ago
John Crispin 4069a8e49c ramips: be consistent with case statement in base-files/lib/upgrade/platform.sh
Always use "|\" (without spaces) and keep boards in alphabetical order.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46633
9 years ago
John Crispin a18b35a2f1 ramips: remove leading spaces, sort boards and optimize base-files/lib/ramips.sh
This patch:
 * fixes various mistakes (leading spaces, wrong or missing model names)
 * shortens model strings (we don't need to use whole model string from dts file, make it for consistency and as optimization)
 * sorts boards alphabetically

in base-files/lib/ramips.sh script.

Case statement was tested after above changes with simple script, which:
 * takes model string from dts{,i} file (model = "...")
 * provides this value as case input ($machine)
 * returns output ($name)

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46632
9 years ago
John Crispin 57e614c179 ramips: fix various mistakes in subtargets *.mk profiles
This patch:
 * fixes wrong indentation
 * fixes wrong names and descriptions (ex. Dlink -> D-Link)
 * changes filenames to manufacturer names
 * moves oem/unknown manufacturers boards to misc.mk profiles
 * combines profiles for boards from the same manufacturers in one file (ex. Olimex)
 * fix profile files structure (keep the same convention as in other targets, ex. ar71xx)

in various .mk profiles, in ramips target.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46631
9 years ago
John Crispin 0d464c360f ramips: remove old code for Edimax BR-6524N
It seems that support for Edimax BR-6524N was dropped long time ago (dts file for this device is missing).
This patch removes remaining code.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46630
9 years ago
John Crispin 2fe5cf2bd6 ramips: fix 7Links PX-4885 dts{, i}, board, image and profile names
The following patch changes 7Links PX-4885 dts{,i} filenames, board, image and profile names from "PX4885" to "PX-4885" (for consistency).

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46629
9 years ago
John Crispin e4b6dcee5e ramips: fix Buffalo WMR-300 dts, board, image and profile names
The following patch changes Buffalo WMR-300 dts filename, board, image and profile names from "WMR300" to "WMR-300" (for consistency).

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46628
9 years ago
John Crispin 713c81e97b ramips: fix Omnima models, images and profiles names
Official names for supported Omnima products are (as on website):
 * Omnima HPM
 * Omnima MiniEMBWiFi
 * Omnima MiniEMBPlug

This patch changes:
 * board names
 * dts filenames
 * profile names
 * image filenames
 * LED names

for Omnima devices, for consistency.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46627
9 years ago
John Crispin 0bb270429d ramips: fix Edimax BR-6425 board name
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46626
9 years ago
John Crispin 40f808600c ramips: fix Tenda W150M model name
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46625
9 years ago
John Crispin b52ac01d27 ramips: fix Aigale Ai-BR100 dts and profile names
The following patch changes dts filename and profile name for Aigale Ai-BR100 (for consistency).

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46624
9 years ago
John Crispin 633c46a1d4 ramips: fix Olimex models, images and profiles names
Official names for RT5350F based OLinuXino products are "RT5350F-OLinuXino{,-EVB}" as on official manufacturer website.
The following patch:
 * changes board names from "olinuxino-rt5350f{,-evb}" to "rt5350f-olinuxino{,-evb}"
 * changes filenames of dts and profile files
 * changes image filenames

for Olimex RT5350F-OLinuXino{,-EVB} devices.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46623
9 years ago
John Crispin 66f6c9e231 ramips: fix Sitecom WL-341v3 board and image names
The following patch changes:
 * board name from "wl341v3" to "wl-341v3"
 * dts filename
 * LED names in dts file

for Sitecom WL-341v3 device.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46622
9 years ago
John Crispin 102073ca17 ramips: fix Argus ATP-52B board and image names
The following patch:
 * changes board name from "argus-atp52b" to "atp-52b"
 * changes dts filename
 * fixes LED names in dts file and base-files scripts
 * removes manufacturer name from image filename

for Argus ATP-52B device.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46621
9 years ago
John Crispin f38d42b8e4 ramips: fix Belkin F7C027 image name
This patch removes manufacturer from Belkin F7C027 image name ("belkinf7c027" -> "f7c027").

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46620
9 years ago
John Crispin 5e84d173fa ramips: fix Asus RT-N56U dts filename
Other Asus RT-N dts files are named "RT-N..." (not "RTN..."), so use the same for RT-N56U.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46619
9 years ago
John Crispin 7bf1db0dcb ramips: fix UPVEL model names
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46618
9 years ago
John Crispin a0b8c60134 ramips: fix Xiaomi MiWiFi Mini board, image and profile names
The following patch:
 * changes board name from "xiaomi-miwifi-mini" to "miwifi-mini"
 * changes filenames of dts and profile
 * fixes LED names in dts file and base-files scripts
 * removes manufacturer name from image filename

for Xiaomi MiWiFi Mini device.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46617
9 years ago
John Crispin 5a6690a7a6 ramips: fix Asus RP-N53 and Lenovo Y1{, S} image names
This patch:
 * fixes typo (rp_n53 -> rp-n53) in Asus RP-N53 image name
 * removes manufacturer from image names for Lenovo Y1{,S} devices

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46616
9 years ago
John Crispin 5e1ea4810b ramips: fix Asus WL-330N{, 3G} boards names
There are other Asus boards supported in ramips target, so use the same naming scheme for WL-330N{,3G} boards and their dts files.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46615
9 years ago
John Crispin f38db77707 ramips: fix Zbtlink ZBT-WR8305RT board name
There is another Zbtlink board (ZBT-WA05) supported in ramips target, so use the same naming scheme for ZBT-WR8305RT board and its dts file.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46614
9 years ago
John Crispin 553fea9f19 ramips: fix indentation and other mistakes in .dts{, i} files
The following patch fixes:
 * wrong indentations
 * doubled gpio-keys-polled nodes (DIR-300-B7, DIR-320-B1, DIR-610-A1)
 * duplicate spacings
 * empty lines at end of files and after last child nodes
 * trailing and leading whitespace
 * unnecessary and commented-out code
 * missing empty lines between nodes and between properties and nodes
 * unnecessary empty lines between nodes properties [1]

in .dts{,i} files, for ramips target.

[1] Some of empty lines in SOCs dtsi files were left untouched, because they seem to be there for a reason (readability?).

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46613
9 years ago
Hauke Mehrtens b1bd85c40e kernel: yaffs2: update to version from 2015-06-02
In addition to the update this also fixes compile problems with kernel 4.1.

This closes #20323.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46609
9 years ago
Zoltan Herpai 1c66ebcd2d sunxi: respect CONFIG_TARGET_IMAGES_GZIP
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 46608
9 years ago
Zoltan Herpai 56533842ce sunxi: create KDIR_TMP, build boot.img in it
It's nice to have a distinction between files which are built during the
normal OpenWrt build process and ones that are created by the ImageBuilder
(like it already exists on some other targets).

This also gives boot.img a profile-specific prefix as it contains profile-
specific data.

KDIR_TMP does not need to be specified since include/image.mk already sets
it.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 46607
9 years ago
Zoltan Herpai 58fc927889 sunxi: fix uboot install location
Install uboot files to KERNEL_BUILD_DIR instead of BIN_DIR to fix
ImageBuilder. Similar fixes are necessary for many (all?) other uboot
targets.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 46605
9 years ago
Zoltan Herpai 1de658c27b sunxi: don't copy DTS files to BIN_DIR
The DTS files aren't useful (other targets don't copy them either) and
clutter BIN_DIR with files unrelated to the chosen profile.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 46604
9 years ago
Jonas Gorski c7d8377931 ipq806x: switch to new image build system
Switch ipq806x to the new image build system. Image files might change
slightly their names, but the generated files should not change.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46602
9 years ago
Jonas Gorski 4e81a1473e brcm63xx: move gzip build command to include/image.mk
Allow other targets to make use of it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46601
9 years ago