Commit graph

14627 commits

Author SHA1 Message Date
John Crispin
9e1268b168 ralink: speed selection was broken in spi-mt7621
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47073
2015-10-01 15:35:44 +00:00
Felix Fietkau
2675ade97a uml: backport another upstream patch to fix compile errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47067
2015-09-28 12:22:35 +00:00
Felix Fietkau
82791e92ce uml: fix build with gcc 5
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47062
2015-09-27 17:29:48 +00:00
Felix Fietkau
110a74dd71 uml: update to linux 4.1
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47061
2015-09-27 17:29:38 +00:00
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
2015-09-27 06:53:12 +00:00
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
2015-09-27 06:24:33 +00:00
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
2015-09-27 06:05:53 +00:00
Rafał Miłecki
c6401c6d61 bcm53xx: add early support for Linksys EA6300 V1
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 47052
2015-09-26 22:57:33 +00:00
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
2015-09-25 04:22:13 +00:00
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
2015-09-24 16:07:10 +00:00
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
2015-09-24 11:19:12 +00:00
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
2015-09-24 09:18:59 +00:00
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
2015-09-24 09:18:47 +00:00
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
2015-09-24 09:08:47 +00:00
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
2015-09-24 08:37:50 +00:00
Felix Fietkau
1061f93476 imx6: disable ext2/ext3 filesystem support (ext4 is enough)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47032
2015-09-24 08:37:35 +00:00
Felix Fietkau
c8f0290651 uml: disable ext2/ext3 filesystem support (ext4 is enough)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47031
2015-09-24 08:37:30 +00:00
Felix Fietkau
67aa83442e arm64: disable ext2/ext3 filesystem support (ext4 is enough)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47030
2015-09-24 08:37:23 +00:00
Jo-Philipp Wich
74f4f519e5 mxs: fixup permissions of image generation scripts
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47029
2015-09-23 18:40:42 +00:00
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
2015-09-22 11:28:28 +00:00
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
2015-09-21 21:10:43 +00:00
Zoltan Herpai
e4eb8a4145 mxs: adopt SD card generation to fixed U-Boot path
Signed-off-by: Michael Heimpold <mhei@heimpold.de>

SVN-Revision: 47019
2015-09-21 21:05:16 +00:00
Felix Fietkau
3babd37b0e omap: add Kernel 4.1
tested on Beagleboard C4

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

SVN-Revision: 47013
2015-09-21 17:40:52 +00:00
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
2015-09-18 13:39:55 +00:00
Felix Fietkau
708c58c1a7 kernel: fix dependencies of the sock_diag debloat patch (#20544)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46997
2015-09-18 09:05:01 +00:00
Felix Fietkau
6c018c2f5e kernel: solos-pci: Increase headroom on received packets
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46993
2015-09-17 15:38:58 +00:00
Felix Fietkau
312908ff4b kernel: ipv6: ip6_fragment: fix headroom tests and skb leak
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46992
2015-09-17 15:38:46 +00:00
Felix Fietkau
d6408aa9b4 x86/geode: enable DMI and Geos support (fixes #20512)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

SVN-Revision: 46986
2015-09-17 10:15:52 +00:00
Felix Fietkau
ef447c9a5f x86: fix Geode LX timekeeping (#20531)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46985
2015-09-17 10:15:45 +00:00
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
2015-09-17 09:45:34 +00:00
John Crispin
9412c4e66c kernel: unbreak atm ABI for 4.0 and 4.1
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46983
2015-09-16 12:40:40 +00:00
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
2015-09-16 12:08:05 +00:00
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
2015-09-16 08:33:25 +00:00
John Crispin
74bbc08651 x86: add missing symbol
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 46973
2015-09-16 08:33:18 +00:00
John Crispin
ac75fc8d98 ar71xx: add support for ap152 reference board
Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>

SVN-Revision: 46972
2015-09-16 08:33:14 +00:00
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
2015-09-16 08:33:04 +00:00
John Crispin
fa09d76521 ar71xx: uci-defaults: fix ap143 to appropriate group
Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>

SVN-Revision: 46970
2015-09-16 08:32:56 +00:00
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
2015-09-16 08:32:01 +00:00
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
2015-09-16 08:31:52 +00:00
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
2015-09-16 08:31:40 +00:00
John Crispin
3a149a2910 ramips: add mt7621/3/8 support to the I2C driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46959
2015-09-16 08:31:15 +00:00
John Crispin
e6a9d5edf2 ramips: fix reported vendor name
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46958
2015-09-16 08:31:10 +00:00
John Crispin
86a1e46b63 ramips: add proper mt7688 detection
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46957
2015-09-16 08:31:00 +00:00
John Crispin
85d5b9984d ramips: add speed and mode settings to spi-mt7621
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46956
2015-09-16 08:30:43 +00:00
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
2015-09-16 08:30:17 +00:00
John Crispin
23d79b60ce ramips: more m7628 pinmux fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46954
2015-09-16 08:30:06 +00:00
John Crispin
9473837653 ramips: add mt7628 pwm driver
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46953
2015-09-16 08:29:55 +00:00
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
2015-09-16 08:29:45 +00:00
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
2015-09-16 08:29:40 +00:00
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
2015-09-16 08:29:31 +00:00
Felix Fietkau
f74116e599 omap24xx: remove obsolete kernel 3.3 patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46947
2015-09-16 07:56:33 +00:00
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
2015-09-15 16:05:10 +00:00
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
2015-09-15 16:05:03 +00:00
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
2015-09-15 11:49:33 +00:00
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
2015-09-15 06:13:07 +00:00
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
2015-09-14 20:12:16 +00:00
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
2015-09-14 20:12:00 +00:00
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
2015-09-14 20:11:51 +00:00
John Crispin
b9b6d34e36 ar71xx: enable sysupgrade for the OpenMesh MR1750
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46929
2015-09-14 20:11:24 +00:00
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
2015-09-14 20:11:01 +00:00
John Crispin
aba20334a4 ar71xx: add kernel support for the OpenMesh MR1750 board
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46926
2015-09-14 20:10:43 +00:00
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
2015-09-14 20:10:04 +00:00
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
2015-09-14 20:09:56 +00:00
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
2015-09-14 20:09:40 +00:00
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
2015-09-14 20:09:31 +00:00
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
2015-09-14 20:08:55 +00:00
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
2015-09-14 20:08:39 +00:00
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
2015-09-14 20:08:15 +00:00
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
2015-09-14 20:08:07 +00:00
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
2015-09-14 20:07:23 +00:00
Felix Fietkau
fcee359813 ramips: fix chunked-io support for big flash chips (#20504)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46904
2015-09-14 06:54:15 +00:00
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
2015-09-12 18:57:37 +00:00
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
2015-09-12 11:10:34 +00:00
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
2015-09-12 10:22:41 +00:00
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
2015-09-11 22:36:05 +00:00
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
2015-09-11 20:31:32 +00:00
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
2015-09-11 20:00:02 +00:00
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
2015-09-11 19:02:53 +00:00
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
2015-09-11 18:52:42 +00:00
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
2015-09-11 18:52:18 +00:00
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
2015-09-11 17:55:28 +00:00
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
2015-09-11 17:54:55 +00:00
Felix Fietkau
e1f0a7e841 brcm2708: remove linux 3.18 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46870
2015-09-11 17:17:30 +00:00
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
2015-09-11 16:35:46 +00:00
Felix Fietkau
18c01061a9 mvsw61xx: match swconfig function names
Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 46865
2015-09-11 16:34:49 +00:00
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
2015-09-11 16:34:35 +00:00
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
2015-09-11 16:34:08 +00:00
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
2015-09-11 16:33:12 +00:00
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
2015-09-11 16:32:58 +00:00
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
2015-09-11 16:32:45 +00:00
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
2015-09-11 16:32:15 +00:00
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
2015-09-11 16:32:00 +00:00
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
2015-09-11 16:31:35 +00:00
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
2015-09-10 10:09:42 +00:00
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
2015-09-10 10:09:36 +00:00
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
2015-09-10 10:09:26 +00:00
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
2015-09-09 18:40:15 +00:00
Rafał Miłecki
f0c747dee5 kernel: describe bridge patch "multicast to unicast"
It was initially added in r41367 by nbd.

SVN-Revision: 46828
2015-09-08 16:43:32 +00:00
Rafał Miłecki
b8c9d6b296 kernel: describe bridge patch "optimize netfilter hooks"
It was initially added in r30917 by nbd.

SVN-Revision: 46827
2015-09-08 16:43:21 +00:00
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
2015-09-08 16:43:10 +00:00