openwrt/svn-archive/archive.git
4 years agox86: update to kernel 3.18
Felix Fietkau [Sun, 15 Mar 2015 04:43:30 +0000 (04:43 +0000)]
x86: update to kernel 3.18

copied target/linux/x86/config-3.14 and target/linux/x86/patches-3.14 to
3.18 equivalents and then tweaked until it built.

Tested on alix2, soekris net4826 and soekris net4521.

Still having trouble with net4826 booting from Grub, alix2 and net4521
are fine.

Signed-off-by: Russell Senior <russell@personaltelco.net>
SVN-Revision: 44758

4 years agokernel: fix portability issues of the x86 vdso2c utility
Felix Fietkau [Sun, 15 Mar 2015 04:43:22 +0000 (04:43 +0000)]
kernel: fix portability issues of the x86 vdso2c utility

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

4 years agokernel: add missing config symbol for 3.18+
Felix Fietkau [Sun, 15 Mar 2015 04:40:10 +0000 (04:40 +0000)]
kernel: add missing config symbol for 3.18+

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

4 years agobcm53xx: support NVRAM prefixes with extra / in devpath
Rafał Miłecki [Sat, 14 Mar 2015 16:35:56 +0000 (16:35 +0000)]
bcm53xx: support NVRAM prefixes with extra / in devpath

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

4 years agoath9k: always select relay support, not just when debugfs is enabled - fixes an unres...
Felix Fietkau [Sat, 14 Mar 2015 12:12:25 +0000 (12:12 +0000)]
ath9k: always select relay support, not just when debugfs is enabled - fixes an unresolved symbol error

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

4 years agox86: disable rts/cts for serial console in grub - fixes net48xx boot issues
Felix Fietkau [Sat, 14 Mar 2015 08:38:35 +0000 (08:38 +0000)]
x86: disable rts/cts for serial console in grub - fixes net48xx boot issues

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

4 years agogrub2: fix processing the serial rts/cts option
Felix Fietkau [Sat, 14 Mar 2015 08:21:02 +0000 (08:21 +0000)]
grub2: fix processing the serial rts/cts option

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

4 years agokernel: linux 3.19 also needs the network namespace related fd export patch (#19161)
Felix Fietkau [Sat, 14 Mar 2015 05:38:14 +0000 (05:38 +0000)]
kernel: linux 3.19 also needs the network namespace related fd export patch (#19161)

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

4 years agoath: fix selecting the module individually (#19162)
Felix Fietkau [Sat, 14 Mar 2015 02:00:50 +0000 (02:00 +0000)]
ath: fix selecting the module individually (#19162)

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

4 years agomac80211: fix a rounding issue in minstrel MCS rate duration calculation
Felix Fietkau [Sat, 14 Mar 2015 02:00:44 +0000 (02:00 +0000)]
mac80211: fix a rounding issue in minstrel MCS rate duration calculation

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

4 years agomac80211: improve powersave handling in the tx queue rework patch
Felix Fietkau [Sat, 14 Mar 2015 02:00:36 +0000 (02:00 +0000)]
mac80211: improve powersave handling in the tx queue rework patch

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

4 years agodnsmasq: enable pxe-prompt, pxe-service config options
John Crispin [Fri, 13 Mar 2015 08:39:08 +0000 (08:39 +0000)]
dnsmasq: enable pxe-prompt, pxe-service config options

DNSMASQ has the ability to provide a menu to a pxeboot system, using
the --pxe-prompt and --pxe-service configuration options.  The current
init.d script converting the "dhcp" file to "dnsmasq.conf" does not
find these options, but they are supported.  This patch thus enables
the options.

Signed-off-by: Derek LaHousse <dlahouss@mtu.edu>
SVN-Revision: 44747

4 years agoBusyBox: Netcat 1.10 compatibility require server option
John Crispin [Fri, 13 Mar 2015 08:38:56 +0000 (08:38 +0000)]
BusyBox: Netcat 1.10 compatibility require server option

Netcat 1.10 compatibility require server options

1.10 compatibility without server option
produce error "NO OPT l!" and completely not function

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
SVN-Revision: 44746

4 years agorelayd: bump to latest git HEAD
John Crispin [Fri, 13 Mar 2015 08:38:46 +0000 (08:38 +0000)]
relayd: bump to latest git HEAD

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

4 years agodnsmasq: Make parameters optional in dhcpboot config
John Crispin [Fri, 13 Mar 2015 08:38:35 +0000 (08:38 +0000)]
dnsmasq: Make parameters optional in dhcpboot config

The --dhcp-boot option of dnsmasq does not require servername and serveraddress
arguments if the builtin tftp server is used.

Signed-off-by: Stefan Tomanek <stefan.tomanek+openwrt@wertarbyte.de>
SVN-Revision: 44744

4 years agolldpd: make LLDP-MED, DOT1 and DOT3 extensions disable-able
John Crispin [Fri, 13 Mar 2015 08:38:25 +0000 (08:38 +0000)]
lldpd: make LLDP-MED, DOT1 and DOT3 extensions disable-able

The names for the config options were taken from lldpd's
configure.ac file.

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

4 years agoipset: add ipmark support
John Crispin [Fri, 13 Mar 2015 08:38:17 +0000 (08:38 +0000)]
ipset: add ipmark support

Below you'll find a patch to add ipmark module support to ipset.
Changeset 44671 already bumped ipset to version 6.24, but it's still
compiled without ipmark support. This is a requirement for mwan3 v1.6.

Signed-off-by: Jeroen Louwes <jeroen.louwes@gmail.com>
SVN-Revision: 44742

4 years agoralink: support change tx/rx ring size
John Crispin [Fri, 13 Mar 2015 08:38:08 +0000 (08:38 +0000)]
ralink: support change tx/rx ring size

Signed-off-by: michael lee <igvtee@gmail.com>
SVN-Revision: 44741

4 years agoralink: use random generate mac address instead of default one.
John Crispin [Fri, 13 Mar 2015 08:38:01 +0000 (08:38 +0000)]
ralink: use random generate mac address instead of default one.

Signed-off-by: michael lee <igvtee@gmail.com>
SVN-Revision: 44740

4 years agoralink: add wifi 5g dts info for cy-swr1100
John Crispin [Fri, 13 Mar 2015 08:37:45 +0000 (08:37 +0000)]
ralink: add wifi 5g dts info for cy-swr1100

Signed-off-by: michael lee <igvtee@gmail.com>
SVN-Revision: 44739

4 years agomac80211: fix a pointer handling error in the new tx queueing code
Felix Fietkau [Fri, 13 Mar 2015 05:17:06 +0000 (05:17 +0000)]
mac80211: fix a pointer handling error in the new tx queueing code

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

4 years agoath25: set myself as maintainer
Felix Fietkau [Fri, 13 Mar 2015 03:02:34 +0000 (03:02 +0000)]
ath25: set myself as maintainer

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44737

4 years agoRename 'atheros' target to 'ath25'
Felix Fietkau [Fri, 13 Mar 2015 03:02:28 +0000 (03:02 +0000)]
Rename 'atheros' target to 'ath25'

Rename 'atheros' target to more precise 'ath25'.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44736

4 years agoatheros: remove odd board check during image build
Felix Fietkau [Fri, 13 Mar 2015 03:02:21 +0000 (03:02 +0000)]
atheros: remove odd board check during image build

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44735

4 years agoatheros: remove linux 3.14
Felix Fietkau [Fri, 13 Mar 2015 03:02:17 +0000 (03:02 +0000)]
atheros: remove linux 3.14

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44734

4 years agoatheros: switch to 3.18
Felix Fietkau [Fri, 13 Mar 2015 03:02:12 +0000 (03:02 +0000)]
atheros: switch to 3.18

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44733

4 years agoatheros: v3.18: renumber backported patches
Felix Fietkau [Fri, 13 Mar 2015 03:02:08 +0000 (03:02 +0000)]
atheros: v3.18: renumber backported patches

Move first 3 patches to 0xx numbers range to denote that this is
backported code and they should be removed when we update
kernel to version >= 3.19

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44732

4 years agoatheros: v3.18: non-functional cleanup
Felix Fietkau [Fri, 13 Mar 2015 03:02:00 +0000 (03:02 +0000)]
atheros: v3.18: non-functional cleanup

To finally sync code with upsream cleanup registers headers, and update
several comments and kernel config symbols descriptions. No functional
changes.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44731

4 years agoatheros: v3.18: cleanup includes
Felix Fietkau [Fri, 13 Mar 2015 03:01:50 +0000 (03:01 +0000)]
atheros: v3.18: cleanup includes

Remove odd and add missed includes.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44730

4 years agoatheros: v3.18: rearrange code between patches
Felix Fietkau [Fri, 13 Mar 2015 03:01:42 +0000 (03:01 +0000)]
atheros: v3.18: rearrange code between patches

Cleanup board patch by moving code to specific patches, and factor out
leds to separate patch. No functional changes.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44729

4 years agoatheros: v3.18: move GPIO patches behind PCI
Felix Fietkau [Fri, 13 Mar 2015 03:01:37 +0000 (03:01 +0000)]
atheros: v3.18: move GPIO patches behind PCI

Move GPIO patches behind PCI patch, since they are not yet merged
upstream.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44728

4 years agoatheros: v3.18: switch to IRQ domain
Felix Fietkau [Fri, 13 Mar 2015 03:01:31 +0000 (03:01 +0000)]
atheros: v3.18: switch to IRQ domain

Rework MISC and PCI IRQ controllers code to use IRQ domains and bitops.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44727

4 years agoatheros: v3.18: update register names
Felix Fietkau [Fri, 13 Mar 2015 03:01:21 +0000 (03:01 +0000)]
atheros: v3.18: update register names

Make register names more consistent, mostly add appropriate prefix
(AR5312_ or AR2315_) or _BASE suffix. Also add macro to simplify mask
and shift operation.

No functional changes.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44726

4 years agoatheros: v3.18: remap flash for boardconfig parsing
Felix Fietkau [Fri, 13 Mar 2015 03:01:17 +0000 (03:01 +0000)]
atheros: v3.18: remap flash for boardconfig parsing

Rework boardconfig handling code to honestly remap flash memory region.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44725

4 years agoatheros: v3.18: make registers headers local
Felix Fietkau [Fri, 13 Mar 2015 03:01:11 +0000 (03:01 +0000)]
atheros: v3.18: make registers headers local

There are no external users (last one was PCI driver) for these headers,
so move them to arch directory. Few macroses from ar231x.h header moved
to devices.h and file was removed.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44724

4 years agoatheros: v3.18: remap main SoC MMR memory
Felix Fietkau [Fri, 13 Mar 2015 03:01:04 +0000 (03:01 +0000)]
atheros: v3.18: remap main SoC MMR memory

Honestly remap main SoC MMR mem and use accessor functions to
interact with registers. Now registers defined relatively to base
address (e.g. SDRAM controller base address).

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44723

4 years agoatheros: v3.18: cleanup register headers
Felix Fietkau [Fri, 13 Mar 2015 03:00:59 +0000 (03:00 +0000)]
atheros: v3.18: cleanup register headers

AFAIK, no one AR2315+ chip (AR2315, AR2316, AR2317, AR2318) does not
contain IR block, so remove IR registers definitions. Also remove few
unused macroses.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44722

4 years agoatheros: v3.18: pass PCI IRQ and I/O mem via resources
Felix Fietkau [Fri, 13 Mar 2015 03:00:51 +0000 (03:00 +0000)]
atheros: v3.18: pass PCI IRQ and I/O mem via resources

Pass PCI IRQ and I/O memory ranges via platform device resources, this
change makes PCI controller driver independed from arch headers, so
also remove few includes.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44721

4 years agoatheros: v3.18: remap PCI controller MMR memory
Felix Fietkau [Fri, 13 Mar 2015 03:00:43 +0000 (03:00 +0000)]
atheros: v3.18: remap PCI controller MMR memory

Honestly remap PCI controller MMR and use accessor functions to interact
with registers.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44720

4 years agoatheros: v3.18: add context container for PCI driver
Felix Fietkau [Fri, 13 Mar 2015 03:00:19 +0000 (03:00 +0000)]
atheros: v3.18: add context container for PCI driver

Add container and place all context specific variables and structure to
it.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44719

4 years agoatheros: v3.18: move PCI enable code to arch
Felix Fietkau [Fri, 13 Mar 2015 03:00:06 +0000 (03:00 +0000)]
atheros: v3.18: move PCI enable code to arch

Move PCI host interface enable code to arch, since it touches generic
SoC registers outside the PCI MMR region.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44718

4 years agoatheros: v3.18: rearrange PCI regs definitions
Felix Fietkau [Fri, 13 Mar 2015 02:59:54 +0000 (02:59 +0000)]
atheros: v3.18: rearrange PCI regs definitions

Move PCI controller configuration registers from generic header to
driver source. No functional changes.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44717

4 years agoatheros: v3.18: relocate PCI host DMA base definition
Felix Fietkau [Fri, 13 Mar 2015 02:59:43 +0000 (02:59 +0000)]
atheros: v3.18: relocate PCI host DMA base definition

Put AR2315_PCI_HOST_SDRAM_BASEADDR macro to DMA header, since this is
arbitrary value and not some hw specific constant. Also this relocation
decouples dma from HW specific header.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44716

4 years agoatheros: v3.18: rework early initialization
Felix Fietkau [Fri, 13 Mar 2015 02:59:27 +0000 (02:59 +0000)]
atheros: v3.18: rework early initialization

Do not use prom_init() callback, do memory initialization in
plat_mem_setup() callback and move serial port configuration to
arch_initcall stage.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44715

4 years agoatheros: v3.18: rearrange interrupt handling functions
Felix Fietkau [Fri, 13 Mar 2015 02:59:19 +0000 (02:59 +0000)]
atheros: v3.18: rearrange interrupt handling functions

No functional changes, just change functions order in source file.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44714

4 years agoatheros: v3.18: change calls logic
Felix Fietkau [Fri, 13 Mar 2015 02:59:04 +0000 (02:59 +0000)]
atheros: v3.18: change calls logic

Check SoC family (AR5312+ or AR2315+) before call instead of checking it
inside the called function. Also convert ar{5312,2315}_init_device()
function to void, since they both return zero and nobody care about
return value.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44713

4 years agoatheros: v3.18: update names and declarations
Felix Fietkau [Fri, 13 Mar 2015 02:58:58 +0000 (02:58 +0000)]
atheros: v3.18: update names and declarations

Sync functions, variables and enums names with upstream. Mostly replace
'ar231x_' prefix by 'ath25_'.

No functional changes, except few 'int' -> 'unsigned' changes.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44712

4 years agoatheros: v3.18: cleanup cpu-feature-overrides.h
Felix Fietkau [Fri, 13 Mar 2015 02:58:49 +0000 (02:58 +0000)]
atheros: v3.18: cleanup cpu-feature-overrides.h

Remove mention of undefined features.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44711

4 years agoatheros: v3.18: remove eth platform device unused field
Felix Fietkau [Fri, 13 Mar 2015 02:58:37 +0000 (02:58 +0000)]
atheros: v3.18: remove eth platform device unused field

Ethernet controller driver don't use boarddata directly, so remove
corresponding field from its platform device structure.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44710

4 years agoatheros: v3.18: remove odd header reset.h
Felix Fietkau [Fri, 13 Mar 2015 02:58:24 +0000 (02:58 +0000)]
atheros: v3.18: remove odd header reset.h

This header provides prototype for function without realization and
users.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44709

4 years agoatheros: v3.18: rename platform header
Felix Fietkau [Fri, 13 Mar 2015 02:58:17 +0000 (02:58 +0000)]
atheros: v3.18: rename platform header

Rename ar231x_platform.h to ath25_platform.h

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44708

4 years agoatheros: v3.18: rename kernel platform to ath25
Felix Fietkau [Fri, 13 Mar 2015 02:57:59 +0000 (02:57 +0000)]
atheros: v3.18: rename kernel platform to ath25

Rename platform source directory and asm includes directory.

No functional changes.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44707

4 years agoatheros: v3.18: rename ATHEROS_AR231X symbol to ATH25
Felix Fietkau [Fri, 13 Mar 2015 02:57:51 +0000 (02:57 +0000)]
atheros: v3.18: rename ATHEROS_AR231X symbol to ATH25

This patch starts upsteam ath25 code backporting.

No functional changes.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44706

4 years agoatheros: add v3.18 support
Felix Fietkau [Fri, 13 Mar 2015 02:57:41 +0000 (02:57 +0000)]
atheros: add v3.18 support

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44705

4 years agoglibc: make it more obvious that eglibc is a version of glibc
John Crispin [Thu, 12 Mar 2015 20:29:58 +0000 (20:29 +0000)]
glibc: make it more obvious that eglibc is a version of glibc

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

4 years agoglibc: remove accidentally commited folder
John Crispin [Thu, 12 Mar 2015 20:29:50 +0000 (20:29 +0000)]
glibc: remove accidentally commited folder

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

4 years agotoolchain: The glorious return of glibc, ver 2.21
John Crispin [Thu, 12 Mar 2015 19:50:57 +0000 (19:50 +0000)]
toolchain: The glorious return of glibc, ver 2.21

It's the eglibc packaging with a bit of spit-polishing. And testing. :-)

[blogic: merged glibc and eglibc into 1 and made eglibc a glibc variant]

Signed-off-by: Jeff Waugh <jdub@bethesignal.org>
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 44701

4 years agobusybox: Minor fix for glibc 2.21 compatibility
John Crispin [Thu, 12 Mar 2015 19:50:23 +0000 (19:50 +0000)]
busybox: Minor fix for glibc 2.21 compatibility

Signed-off-by: Jeff Waugh <jdub@bethesignal.org>
SVN-Revision: 44700

4 years agofstools: bump to latest git HEAD
John Crispin [Thu, 12 Mar 2015 19:50:14 +0000 (19:50 +0000)]
fstools: bump to latest git HEAD

this makes fstools compile with latest glibc

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

4 years agoprocd: bump to latest git HEAD
John Crispin [Thu, 12 Mar 2015 19:50:00 +0000 (19:50 +0000)]
procd: bump to latest git HEAD

this makes procd compile with latest glibc

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

4 years agoath9k: fix a beacon enable handling bug
Felix Fietkau [Thu, 12 Mar 2015 16:21:53 +0000 (16:21 +0000)]
ath9k: fix a beacon enable handling bug

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

4 years agokernel: backport fib_trie improvements/fixes from 4.0-rc
Felix Fietkau [Thu, 12 Mar 2015 15:27:44 +0000 (15:27 +0000)]
kernel: backport fib_trie improvements/fixes from 4.0-rc

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

4 years agouClibc: fix syscall() for syscalls with 6 arguments on PowerPC
John Crispin [Thu, 12 Mar 2015 10:07:01 +0000 (10:07 +0000)]
uClibc: fix syscall() for syscalls with 6 arguments on PowerPC

Patch from the uClibc master.

Fixes the package fastd on PowerPC.

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

4 years agoar71xx: Ext LNA patch for TUBE2H and HORNET-UB targets
John Crispin [Thu, 12 Mar 2015 10:06:53 +0000 (10:06 +0000)]
ar71xx: Ext LNA patch for TUBE2H and HORNET-UB targets

Signed-off-by: Christophe Prévotaux <c.prevotaux@rural-networks.com>
SVN-Revision: 44693

4 years agoar71xx: Hornet UB GPIO WPS/Reset
John Crispin [Thu, 12 Mar 2015 10:06:42 +0000 (10:06 +0000)]
ar71xx: Hornet UB GPIO WPS/Reset

This problem has existed at least since Attitude Adjustment and
is also present in trunk. Basically on the Hornet-UB board the
functionality of RESET and WPS have "switched places".

There are two tickets about the issue at dev.openwrt.org,
The solution suggested on them both is incomplete though
and introduces the following proglem:

Patching as suggested on #14136/#15282 will result in a situation
where simply pressing the RESET button on the bottom will cause
FACTORY RESET to be run. This is due to GPIO high/low state being
incorrect as a result of the above change and virtually the RESET
button is in the pressed-down state the entire time. When it is
then physically pressed, that causes the opposite, release, to be
triggered and since to the board it seemed that the button was
pressed long before it was released, the FACTORY RESET results.

The attached patch works as expected. I have verified both the
incorrect functionality as well as after fixing the issue as
described in the patch and flashing the resulting firmware to a
Hornet-UB board.

Signed-off-by: Janne Cederberg <janne.cederberg@gmail.com>
SVN-Revision: 44692

4 years agoralink: resize the flash partition for FireWRT
John Crispin [Thu, 12 Mar 2015 10:06:31 +0000 (10:06 +0000)]
ralink: resize the flash partition for FireWRT

Signed-off-by: wengbj <fl.service@t-firefly.com>
SVN-Revision: 44691

4 years agoralink: MT7621 add i2c controller driver
John Crispin [Thu, 12 Mar 2015 10:06:17 +0000 (10:06 +0000)]
ralink: MT7621 add i2c controller driver

ralink i2c driver is not working on MT7621 platform. Porting a new drivers from MTK's source code.

Signed-off-by: daixj <fl.service@t-firefly.com>
SVN-Revision: 44690

4 years agolldpd: add support for 'readonly_mode'
John Crispin [Thu, 12 Mar 2015 10:06:08 +0000 (10:06 +0000)]
lldpd: add support for 'readonly_mode'

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

4 years agomodules: set dwc2 gadget dependency for at91
John Crispin [Thu, 12 Mar 2015 10:06:01 +0000 (10:06 +0000)]
modules: set dwc2 gadget dependency for at91

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

4 years agoacx-mac80211: fails to build on cobalt
John Crispin [Thu, 12 Mar 2015 10:05:54 +0000 (10:05 +0000)]
acx-mac80211: fails to build on cobalt

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

4 years agocobalt: framebuffer device has moved
John Crispin [Thu, 12 Mar 2015 10:05:48 +0000 (10:05 +0000)]
cobalt: framebuffer device has moved

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

4 years agodisable silent-rules by default
Mirko Vogt [Thu, 12 Mar 2015 00:39:50 +0000 (00:39 +0000)]
disable silent-rules by default

OpenWrt hides verbose output by default,
regardless of automake silent-rules being en-/disabled.

If we enable verbose output for package builds (V=s)
however, we'd like to see as most as possible.

Signed-off-by: Mirko Vogt <mirko@openwrt.org>
SVN-Revision: 44685

4 years agoDo not use $(V) - force AM_V=1
Mirko Vogt [Thu, 12 Mar 2015 00:39:48 +0000 (00:39 +0000)]
Do not use $(V) - force AM_V=1

Projects using silent-rules might otherwise fail to compile.

This is due to the following resulting Makefile code:

AM_V_P = $(am__v_P_$(V))
am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
am__v_P_0 = false
am__v_P_1 = :

Automake directly uses $(V) for variable name expansion
which fails if $(V) is set to sth. else other than '0' or '1'.

This patch forces automake to not take $(V) into account
but to always use the default config for verbosity.

A better approach would be to actually take $(V) into account,
however not just pass it through (AM_V='$(V)') but
set AM_V to 0 if $V=0 / unset and to 1 otherwise.

This plan however is foiled due to my frustration about
automake as well as my lack of m4 skills.

automake bug report: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20077

Signed-off-by: Mirko Vogt <mirko@openwrt.org>
SVN-Revision: 44684

4 years agomodules: make dwc2 only depend on gadget support for brcm2708
John Crispin [Wed, 11 Mar 2015 17:58:53 +0000 (17:58 +0000)]
modules: make dwc2 only depend on gadget support for brcm2708

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

4 years agouhttp: update to latest git HEAD
John Crispin [Wed, 11 Mar 2015 17:58:47 +0000 (17:58 +0000)]
uhttp: update to latest git HEAD

this add json-c 0.12, sorry forgot to push this earlier today

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

4 years agokernel: backport symbol export from r44653 to 3.14
Felix Fietkau [Wed, 11 Mar 2015 17:32:29 +0000 (17:32 +0000)]
kernel: backport symbol export from r44653 to 3.14

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

4 years agobcm53xx: fixup early device id 8012
Rafał Miłecki [Wed, 11 Mar 2015 17:32:02 +0000 (17:32 +0000)]
bcm53xx: fixup early device id 8012

Looks like the BCM53012 has a similar problem to the BCM53011.

Signed-off-by: Ian Kent <raven@themaw.net>
SVN-Revision: 44680

4 years agobcm53xx: fix typo in bcm47xx sprom driver
Rafał Miłecki [Wed, 11 Mar 2015 17:10:19 +0000 (17:10 +0000)]
bcm53xx: fix typo in bcm47xx sprom driver

Fix thinko' in the bcm47xx sprom driver.

Signed-off-by: Ian Kent <raven@themaw.net>
SVN-Revision: 44679

4 years agokenrel: refresh patches
John Crispin [Wed, 11 Mar 2015 17:08:46 +0000 (17:08 +0000)]
kenrel: refresh patches

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

4 years agolantiq: make the new dwc2 support only work for vr9
John Crispin [Wed, 11 Mar 2015 17:08:40 +0000 (17:08 +0000)]
lantiq: make the new dwc2 support only work for vr9

danube needs to be added

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

4 years agolantiq: Convert Zyxel P-2812HNU-FX and TP-Link TD-W8970 to support dwc2
John Crispin [Wed, 11 Mar 2015 17:08:32 +0000 (17:08 +0000)]
lantiq: Convert Zyxel P-2812HNU-FX and TP-Link TD-W8970 to support dwc2

Here the device tree entry for ifxhcd is listed as compatible with one
supported in dwc2 (after patching the dwc driver appropriately).

A second entry is added to support the second core of the hcd. This
entry is listed to be compatible with only dwc2. Done this way there
should be backwards support for both hcd drivers (ltq-hcd and dwc2)

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>
SVN-Revision: 44676

4 years agolantiq: Use platform endianness when accessing dwc2 registers
John Crispin [Wed, 11 Mar 2015 17:08:26 +0000 (17:08 +0000)]
lantiq: Use platform endianness when accessing dwc2 registers

This patch switches calls to readl/writel to their
dwc2_readl/dwc2_writel equivalents which preserve platform endianness.

This patch is necessary to access dwc2 registers correctly on big
endian systems such as the mips based SoCs made by Lantiq. Then dwc2
can be used to replace ifx-hcd driver for Lantiq platforms found e.g.
in OpenWrt.

The patch was autogenerated with the following commands:
$EDITOR core.h
sed -i "s/\<readl\>/dwc2_readl/g" *.c hcd.h hw.h
sed -i "s/\<writel\>/dwc2_writel/g" *.c hcd.h hw.h

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>
SVN-Revision: 44675

4 years agolantiq: Add sensible hw-defaults for dwc2
John Crispin [Wed, 11 Mar 2015 17:08:15 +0000 (17:08 +0000)]
lantiq: Add sensible hw-defaults for dwc2

Lantiq driver does not work with autodetected fifo sizes so use ones
from original ltq-hcd driver in dwc2. Other values can be
autodetected.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>
SVN-Revision: 44674

4 years agolantiq: Configure gpio power output pin when initializing dwc2 usb
John Crispin [Wed, 11 Mar 2015 17:08:08 +0000 (17:08 +0000)]
lantiq: Configure gpio power output pin when initializing dwc2 usb

Port gpio code from original ltq-hcd driver to dwc2.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>
SVN-Revision: 44673

4 years agolantiq: Add usb initialization bits from ltq-hcd to platform init
John Crispin [Wed, 11 Mar 2015 17:08:02 +0000 (17:08 +0000)]
lantiq: Add usb initialization bits from ltq-hcd to platform init

Add VR9 specific usb initialization bits from ltq-hcd to platform
initialization.

This patch is more of a proof-of-concept than production quality
since the initialization registers are different on other lantiq
platforms.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>
SVN-Revision: 44672

4 years agoipset: Bump to 6.24
John Crispin [Wed, 11 Mar 2015 16:41:58 +0000 (16:41 +0000)]
ipset: Bump to 6.24

Included you'll find a patch to bump ipset to version 6.24. This
version supports the ip,fwmark set, which is needed for mwan3 1.6.

Signed-off-by: Jeroen Louwes <jeroen.louwes@gmail.com>
SVN-Revision: 44671

4 years agomac80211: add missing header file
Felix Fietkau [Wed, 11 Mar 2015 16:36:35 +0000 (16:36 +0000)]
mac80211: add missing header file

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

4 years agomac80211: remove obsolete patches
Felix Fietkau [Wed, 11 Mar 2015 16:25:09 +0000 (16:25 +0000)]
mac80211: remove obsolete patches

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

4 years agocobalt: rename config file
John Crispin [Wed, 11 Mar 2015 16:22:01 +0000 (16:22 +0000)]
cobalt: rename config file

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

4 years agorpcd: update to latest git HEAD
John Crispin [Wed, 11 Mar 2015 15:56:51 +0000 (15:56 +0000)]
rpcd: update to latest git HEAD

adds 3 fixes from luka

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

4 years agoar71xx: improve WD's My Net Wi-fi Range Extender image creation
John Crispin [Wed, 11 Mar 2015 15:56:34 +0000 (15:56 +0000)]
ar71xx: improve WD's My Net Wi-fi Range Extender image creation

Previously, the generated images for the My Net Wi-fi Range Extender
wouldn't always work (and panic) due to the fixed mtd offsets and
sizes for the kernel and rootfs. This patch fixes the problem by
utilizing the shared Cybertan's partition parser to recalculate
the mtd partitions for every image dynamically everytime.

Reported-by: Pascal Paradis <peparadis@yahoo.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
SVN-Revision: 44665

4 years agoar71xx: generalize cybertan partition parser
John Crispin [Wed, 11 Mar 2015 15:56:27 +0000 (15:56 +0000)]
ar71xx: generalize cybertan partition parser

By removing the NL16 signature check, the parser can be
utilized by other devices like the WD My Net Wi-fi Range
Extender.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
SVN-Revision: 44664

4 years agoar71xx: rename wrt160nl's trx partition parser
John Crispin [Wed, 11 Mar 2015 15:56:15 +0000 (15:56 +0000)]
ar71xx: rename wrt160nl's trx partition parser

This patch renames the partition parser from
wrt160nl to more generic cybertan.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
SVN-Revision: 44663

4 years agoar71xx: fix WRT160NL and TP-Link partition parser patches
John Crispin [Wed, 11 Mar 2015 15:55:55 +0000 (15:55 +0000)]
ar71xx: fix WRT160NL and TP-Link partition parser patches

405-mtd-tp-link-partition-parser.patch was updating the
WRT160NL's partition parser Kconfig. This patch moves the
relevant change into the right file:
404-mtd-wrt160nl-trx-parser.patch

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
SVN-Revision: 44662

4 years agoralink: FireWRT flash size is up to 16M.
John Crispin [Wed, 11 Mar 2015 15:55:28 +0000 (15:55 +0000)]
ralink: FireWRT flash size is up to 16M.

Signed-off-by: wengbj <fl.service@t-firefly.com>
SVN-Revision: 44661

4 years agoralink: add FireWRT IO multiplexing
John Crispin [Wed, 11 Mar 2015 15:55:16 +0000 (15:55 +0000)]
ralink: add FireWRT IO multiplexing

Signed-off-by: wengbj <fl.service@t-firefly.com>
SVN-Revision: 44660

4 years agoar71xx: fix switched WLAN LEDs on TP-LINK Archer C5/C7
John Crispin [Wed, 11 Mar 2015 15:55:06 +0000 (15:55 +0000)]
ar71xx: fix switched WLAN LEDs on TP-LINK Archer C5/C7

ath10k is loaded before ath9k, so the 5GHz adapter becomes phy0.

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

4 years agoFix 3.18.8 breakage of UBI devices with EOF marker (e.g. WNDR4300)
John Crispin [Wed, 11 Mar 2015 15:54:52 +0000 (15:54 +0000)]
Fix 3.18.8 breakage of UBI devices with EOF marker (e.g. WNDR4300)

This commit re-adds a patch from 3.14 that is required for UBI block
devices with an EOF marker to be successfully mounted.

Signed-off-by: Oliver Smith <oliver@8.c.9.b.0.7.4.0.1.0.0.2.ip6.arpa>
SVN-Revision: 44658

4 years agojson-c: update to 0.12 and bump all depending services
John Crispin [Wed, 11 Mar 2015 15:54:33 +0000 (15:54 +0000)]
json-c: update to 0.12 and bump all depending services

Version 0.12 deprecates json_object_object_get and moves the header files around

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

4 years agomac80211: Use newer firmware for ath10k
Felix Fietkau [Wed, 11 Mar 2015 15:02:54 +0000 (15:02 +0000)]
mac80211: Use newer firmware for ath10k

Patch by Bryan Forbes <bryan@reigndropsfall.net>

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