openwrt/staging/linusw.git
7 years agomac80211: rt2x00: add incomplete support for external PA on MT7620
Daniel Golle [Sun, 23 Apr 2017 23:44:29 +0000 (01:44 +0200)]
mac80211: rt2x00: add incomplete support for external PA on MT7620

Do as the vendor driver does -- however, some devices apparently
patched support for external PA into the driver similar to how it was
done on Rt3352, using EEPROM_NIC_CONF1 rather than EEPROM_NIC_CONF2,
hence we check for both fields. Somehow the vendor driver also no
longer offers the option of only one of the TX paths having an external
PA (which was probably to weird to ever be implemented in practise,
though it doesn't seem like a particularly bad idea to me). Do the same
in rt2x00 and enable support for external PA on both TX paths whenever
it is set for TX0 in EEPROM.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agomac80211: rt2x00: reorder patches and prepare for MT7620 external PA
Daniel Golle [Sun, 23 Apr 2017 23:38:07 +0000 (01:38 +0200)]
mac80211: rt2x00: reorder patches and prepare for MT7620 external PA

Import change to make external PA capability consistent with the
vendor driver instead of having the logic inverted.
While at it, apply patches in the same order as they got merged
upstream.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agomediatek: fix sysupgrade board detection
John Crispin [Mon, 10 Apr 2017 04:45:59 +0000 (06:45 +0200)]
mediatek: fix sysupgrade board detection

boardnames were changed with the recent target update. the sysupgrade board
detection was not updated properly.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoinclude/image.mk: allow passing a compat string to the NAND image template
John Crispin [Mon, 24 Apr 2017 09:10:39 +0000 (11:10 +0200)]
include/image.mk: allow passing a compat string to the NAND image template

Signed-off-by: John Crispin <john@phrozen.org>
7 years agomediatek: add support for the NAND-ePHY board
John Crispin [Fri, 21 Apr 2017 07:38:52 +0000 (09:38 +0200)]
mediatek: add support for the NAND-ePHY board

This is the same as the NAND board but gmac1 is wired to an external phy.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agomediatek: add DSA multi cpu port support
John Crispin [Mon, 24 Apr 2017 07:21:11 +0000 (09:21 +0200)]
mediatek: add DSA multi cpu port support

Signed-off-by: John Crispin <john@phrozen.org>
7 years agomediatek: fix support for gmac1 using external PHY
John Crispin [Fri, 21 Apr 2017 07:40:01 +0000 (09:40 +0200)]
mediatek: fix support for gmac1 using external PHY

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoipq8064: fix dwc3-of-simple module unloading for Netgear R7500
Thomas Reifferscheid [Sun, 2 Apr 2017 22:34:34 +0000 (00:34 +0200)]
ipq8064: fix dwc3-of-simple module unloading for Netgear R7500

Without patch unloading the dwc3-of-simple module went stuck after
successfully removing hcd.1 during the hcd.0 removal:

root@LEDE:/# rmmod dwc3-of-simple
[   21.391846] xhci-hcd xhci-hcd.1.auto: remove, state 1
[   21.391931] usb usb4: USB disconnect, device number 1
[   21.397038] xhci-hcd xhci-hcd.1.auto: USB bus 4 deregistered
[   21.401111] xhci-hcd xhci-hcd.1.auto: remove, state 1
[   21.406685] usb usb3: USB disconnect, device number 1
[   21.412848] xhci-hcd xhci-hcd.1.auto: USB bus 3 deregistered
[   21.417248] xhci-hcd xhci-hcd.0.auto: remove, state 1
[   21.422521] usb usb2: USB disconnect, device number 1
followed by nothing.

Sometimes a stall CPU was detected, or a kernel panic,
or a reboot occurred after a couple of minutes.

At the same time unloading the dwc3 module followed by dwc3-of-simple
module was working repeatedly.

root@LEDE:/# rmmod dwc3
[   53.827328] xhci-hcd xhci-hcd.1.auto: remove, state 1
[   53.827412] usb usb4: USB disconnect, device number 1
[   53.832630] xhci-hcd xhci-hcd.1.auto: USB bus 4 deregistered
[   53.836452] xhci-hcd xhci-hcd.1.auto: remove, state 1
[   53.842314] usb usb3: USB disconnect, device number 1
[   53.848412] xhci-hcd xhci-hcd.1.auto: USB bus 3 deregistered
[   53.852542] xhci-hcd xhci-hcd.0.auto: remove, state 1
[   53.857882] usb usb2: USB disconnect, device number 1
[   53.863956] xhci-hcd xhci-hcd.0.auto: USB bus 2 deregistered
[   53.867875] xhci-hcd xhci-hcd.0.auto: remove, state 1
[   53.873696] usb usb1: USB disconnect, device number 1
[   53.879742] xhci-hcd xhci-hcd.0.auto: USB bus 1 deregistered
root@LEDE:/# rmmod dwc3-of-simple
root@LEDE:/#

For the non-working case, the code was stuck in a readl() in
http://lxr.free-electrons.com/source/drivers/usb/host/xhci.c#L91
because
http://lxr.free-electrons.com/source/drivers/usb/dwc3/dwc3-of-simple.c#L126
was disabling the wrong clocks when removing hcd.1 (it was disabling
the clock of hcd.0). That's why the readl() went stuck when removing
hcd.0

The patch however addresses the clock assignment from the Netgear R7500
dts file and backs off the previous attempt.

Now unloading and repeated module loading is working just fine.

root@LEDE:/# rmmod dwc3-of-simple
[   24.089679] xhci-hcd xhci-hcd.1.auto: remove, state 1
[   24.089765] usb usb4: USB disconnect, device number 1
[   24.094856] xhci-hcd xhci-hcd.1.auto: USB bus 4 deregistered
[   24.098963] xhci-hcd xhci-hcd.1.auto: remove, state 1
[   24.104522] usb usb3: USB disconnect, device number 1
[   24.111194] xhci-hcd xhci-hcd.1.auto: USB bus 3 deregistered
[   24.115086] xhci-hcd xhci-hcd.0.auto: remove, state 1
[   24.120396] usb usb2: USB disconnect, device number 1
[   24.126503] xhci-hcd xhci-hcd.0.auto: USB bus 2 deregistered
[   24.130347] xhci-hcd xhci-hcd.0.auto: remove, state 1
[   24.135948] usb usb1: USB disconnect, device number 1
[   24.142085] xhci-hcd xhci-hcd.0.auto: USB bus 1 deregistered
root@LEDE:/#

Fixes: dwc3-of-simple module unloading for Netgear R7500
Signed-off-by: Thomas Reifferscheid <thomas@reifferscheid.org>
7 years agoipq8064: Fix dwc3 module unloading
Thomas Reifferscheid [Fri, 7 Apr 2017 10:25:10 +0000 (12:25 +0200)]
ipq8064: Fix dwc3 module unloading

The patch follows the qualcomm code comments setting
SSUSB_CTRL_TEST_POWERDOWN to 0x1 and is testing and clearing the
bit during USB superspeed PHY init. According to Andy Gross it
needs to be BIT(26).

Signed-off-by: Thomas Reifferscheid <thomas@reifferscheid.org>
Acked-by: Andy Gross <andy.gross@linaro.org>
7 years agokernel: use skb_cow_head() to deal with cloned skbs
Álvaro Fernández Rojas [Sun, 23 Apr 2017 11:48:05 +0000 (13:48 +0200)]
kernel: use skb_cow_head() to deal with cloned skbs

We need to ensure there is enough headroom to push extra header,
but we also need to check if we are allowed to change headers.

skb_cow_head() is the proper helper to deal with this.

Fixes Ethernet<->WiFi bridge for Raspberry Pi and probably other devices.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agoscripts/qemustart: initial version
Yousong Zhou [Mon, 17 Apr 2017 09:09:19 +0000 (17:09 +0800)]
scripts/qemustart: initial version

The script can be used to quickly spin up QEMU virtual machines with lan
and wan network.  Please read the initial part of the script for
instructions about how to configure host machine

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoarmvirt: merge arm64 as subtarget 64
Yousong Zhou [Tue, 18 Apr 2017 12:59:52 +0000 (20:59 +0800)]
armvirt: merge arm64 as subtarget 64

Original armvirt target is now subtarget 32.  Other than that the built
result should remain the same as before

Besides old features already available with arm64, the new armvirt/64
subtarget will also have those features originally enabled for
armvirt/32 with commit 44ecfc2 ("armvirt: new target")
 - pl011, uart
 - pl031, rtc
 - pl061, gpio
 - pci-host-generic
 - virtio_{mmio,pci,net,blk,scsi,9p,console,balloon}
 - smp with NR_CPUS=4
 - cpu-hotplug
 - ext4
 - DEBUG_BUGVERBOSE for debug purposes

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agobuild: fix aarch64 default cpu selection
Yousong Zhou [Wed, 19 Apr 2017 09:34:18 +0000 (17:34 +0800)]
build: fix aarch64 default cpu selection

Not sure since when the issue emerged, but according to the current doc of gcc
and as, armv8-a is intended as argument of -march

The change will affect at the moment arm64 and layerscape/64b

Below is the relevant error messages when building toolchain

    Assembler messages:
    Error: unknown cpu `armv8-a'
    Error: unrecognized option -mcpu=armv8-a
    /home/yousong/git-repo/lede-project/lede/build_dir/toolchain-aarch64_armv8-a_gcc-5.4.0_musl/gcc-5.4.0/libgcc/libgcc2.c:1:0: error: unknown value 'armv8-a' for -mcpu

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoiptables: fix wrong depends for nftables support (FS#707)
Ansuel Smith [Sat, 22 Apr 2017 17:57:09 +0000 (19:57 +0200)]
iptables: fix wrong depends for nftables support (FS#707)

The dep for the nftables support was wrong, if someone actually enable
that option gain a compilation error. This fix this problem.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
7 years agoar71xx: fix minor syntax error in /lib/upgrade/platform.sh
Matthias Schiffer [Sat, 22 Apr 2017 16:56:25 +0000 (18:56 +0200)]
ar71xx: fix minor syntax error in /lib/upgrade/platform.sh

Fix a '==' that should be a '=' in a test condition. Busybox fortunately
doesn't care.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoramips: update DEVICE_PACKAGES for Ubiquiti EdgeRouter X
Matthias Schiffer [Sat, 22 Apr 2017 16:54:07 +0000 (18:54 +0200)]
ramips: update DEVICE_PACKAGES for Ubiquiti EdgeRouter X

Fixes removal of unneeded kernel modules with per-device rootfs.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoramips: add former board names to PSG1218 variants
Daniel Golle [Fri, 21 Apr 2017 12:51:58 +0000 (14:51 +0200)]
ramips: add former board names to PSG1218 variants

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agobusybox: fix build of nslookup_lede applet without IPv6 (#728)
Jo-Philipp Wich [Fri, 21 Apr 2017 11:18:16 +0000 (13:18 +0200)]
busybox: fix build of nslookup_lede applet without IPv6 (#728)

Protect any IPv6 related with appropriate guards to fix compilation with
disabled IPv6 support in Busybox.

Fixes #728.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agolantiq: improve DGN3500 LED definitions
Kevin Darbyshire-Bryant [Mon, 17 Apr 2017 15:06:40 +0000 (16:06 +0100)]
lantiq: improve DGN3500 LED definitions

Add red:internet led on gpio 30 previously claimed as missing.
Wifi led was claimed as blue however there are no blue leds on the
board at all.  Actually there are two wifi leds, green & amber so add
definitions for those.  Make the newly discovered green wifi led gpio
14 the default.

There is no amber power led on this board. The mention of the amber
power led in the manual means power red and power green at the same
time.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
[removed unnecessary aliases, add migration script]
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: dont replace the board name
Mathias Kresin [Fri, 7 Apr 2017 22:34:48 +0000 (00:34 +0200)]
ramips: dont replace the board name

Use fixed led names and add each board variant instead of manipulating
the board name.

It makes the ramips board name function less different to the one used
in other targets and allows to merge them with a common function.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: add former used board names to metadata
Mathias Kresin [Sat, 1 Apr 2017 10:27:46 +0000 (12:27 +0200)]
ramips: add former used board names to metadata

We need to keep the former used (unmodified) boardname in the metadata.
Otherwise an upgrade from an board using the old boardname will be
refused.

Fixes: a75ce960ac1b ("ramips: use different board names for variants")
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: rename PSG1218 to match label
Daniel Golle [Fri, 21 Apr 2017 00:47:44 +0000 (02:47 +0200)]
ramips: rename PSG1218 to match label

Fix previous commit to be less ambigous:
PSG1218 rev.A = 5 ports, external PA, heatsinks
PSG1218 rev.B = 4 ports, internal PA, no heatsinks

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agoramips: split Phicomm PSG1218 and PSG1218K2C
Daniel Golle [Thu, 20 Apr 2017 22:53:03 +0000 (00:53 +0200)]
ramips: split Phicomm PSG1218 and PSG1218K2C

PSG1218 got only 4 Ethernet ports and WAN on port 3 while
PSG1218K2C got 5 Ethernet ports and WAN on port 4
Switch to use kmod-kt76x2 instead of kmod-mt76 for both devices while
at it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agobcm53xx: enable Northstar thermal driver
Rafał Miłecki [Thu, 20 Apr 2017 20:27:19 +0000 (22:27 +0200)]
bcm53xx: enable Northstar thermal driver

It allows monitoring CPU temp and will shutdown system on critical
value.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agobcm53xx: backport DT patches for serial, thermal and MDIO
Rafał Miłecki [Thu, 20 Apr 2017 20:15:09 +0000 (22:15 +0200)]
bcm53xx: backport DT patches for serial, thermal and MDIO

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agogeneric: mtd: backport mx25u25635f stateless 4b support
Mathias Kresin [Tue, 11 Apr 2017 17:46:16 +0000 (19:46 +0200)]
generic: mtd: backport mx25u25635f stateless 4b support

Use the stateless 4-byte op codes for this flash chip to fix reboot
hangs on SoCs expecting the flash chip in 3-byte mode.

Fixes: FS#179
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agomac80211: rt2800: fix mt7620 E2 channel registers
Tomislav Požega [Fri, 14 Apr 2017 18:59:47 +0000 (20:59 +0200)]
mac80211: rt2800: fix mt7620 E2 channel registers

update RF register 47 and 54 values according to vendor driver

Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
[daniel@makrotopia.org: moved changes into a separate patch]

7 years agomac80211: rt2800: fix mt7620 vco calibration registers
Tomislav Požega [Sun, 16 Apr 2017 12:14:42 +0000 (14:14 +0200)]
mac80211: rt2800: fix mt7620 vco calibration registers

Use register values from init LNA function instead of the ones from
restore LNA function. Apply register values based on rx path
configuration.

Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
[daniel@makrotopia.org: moved changes into a separate patch]

7 years agomac80211: fix kconfig recursive dependency warning
Felix Fietkau [Tue, 18 Apr 2017 07:42:04 +0000 (09:42 +0200)]
mac80211: fix kconfig recursive dependency warning

Make brcmfmac depend on !TARGET_uml.
Technically, brcmfmac could be built for uml because only SDIO support
won't work on that target. However, selectively avoiding the dependency
propagation of !TARGET_uml from kmod-mmc to avoid including a reference
to BRCMFMAC_SDIO doesn't work.

In practice, brcmfmac is completely useless on uml, so let's just
disable it there.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: rt2x00: fix MT7620 LNA gain and VCO-after-ALC
Daniel Golle [Mon, 17 Apr 2017 19:38:32 +0000 (21:38 +0200)]
mac80211: rt2x00: fix MT7620 LNA gain and VCO-after-ALC

This should fix issues with bad RX as well as AP not coming up and/or
scanning failing.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agodnsmasq: fix uninitialized varname in init-script
Bastian Bittorf [Sun, 16 Apr 2017 16:21:49 +0000 (18:21 +0200)]
dnsmasq: fix uninitialized varname in init-script

minor/cosmetic: fixes the following misleading message:

root@box:~ /etc/init.d/dnsmasq restart
sh: out of range

Signed-off-by: Bastian Bittorf <bb@npl.de>
7 years agoRevert "mvebu: remove linux 4.4 support"
Felix Fietkau [Mon, 17 Apr 2017 06:43:54 +0000 (08:43 +0200)]
Revert "mvebu: remove linux 4.4 support"

This reverts commit 51397d7d95d9f5e210a5557f65de1fa21e6f5921.
There are some unresolved random crashes on WRT1900AC v1 that still need
to be sorted out

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: update kernel 4.4 to 4.4.61
Jo-Philipp Wich [Sat, 15 Apr 2017 15:00:49 +0000 (17:00 +0200)]
kernel: update kernel 4.4 to 4.4.61

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobrcm2708: disable CONFIG_BCM2835_THERMAL by default
Rafał Miłecki [Sat, 15 Apr 2017 06:21:50 +0000 (08:21 +0200)]
brcm2708: disable CONFIG_BCM2835_THERMAL by default

This fixes:
  Thermal sensors on bcm2835 SoC (BCM2835_THERMAL) [N/m/y/?] (NEW) aborted!

This symbol depends on ARCH_BCM2835 so it should be OK to disable it at
brcm2708 target only.

Fixes: 7d32caa61fb0 ("brcm2708: backport upstream sdhost controller driver")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agokernel: backport Broadcom thermal drivers
Rafał Miłecki [Fri, 14 Apr 2017 16:18:36 +0000 (18:18 +0200)]
kernel: backport Broadcom thermal drivers

This includes driver for Northstar and for Raspberry Pi.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoramips: really drop the rt-n56u factory image
Mathias Kresin [Thu, 13 Apr 2017 17:20:07 +0000 (19:20 +0200)]
ramips: really drop the rt-n56u factory image

Remove the stale reference to the factory image.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoar71xx: fix ath9k default LED changes fallout
Mathias Kresin [Wed, 12 Apr 2017 06:45:19 +0000 (08:45 +0200)]
ar71xx: fix ath9k default LED changes fallout

Since 192f0a3db859 ("ath9k: unset the default LED pin if used by
platform leds") the default ath9k wireless LED is not set as soon as
any pin of the ath ath9k gpio controller is used.

All touched boards have leds defined which are using the gpio pins
exposed by the ath9k driver but rely on a default set wireless led
trigger.

Add the wireless leds were missing and setup the wireless phy trigger
in userspace.

Signed-off-by: Russell Senior <russell@personaltelco.net>
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: fix Netgear R6220 package selection
Mathias Kresin [Sun, 9 Apr 2017 07:58:51 +0000 (09:58 +0200)]
ramips: fix Netgear R6220 package selection

The Netgear R6220 requires the kmod-usb3 package and misses
kmod-usb-ledtrig-usbport package to setup the configured usb led
trigger.

Drop the already target selected kmod-mt76.

Fixes: FS#686
Fixes: 38bee61dab02 ("ramips: add support for Netgear R6220")
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: add RP-N53 pcie wireless eeprom
Mathias Kresin [Sun, 9 Apr 2017 07:14:52 +0000 (09:14 +0200)]
ramips: add RP-N53 pcie wireless eeprom

Fix the PCIe 5GHz wireless by using the on flash eeprom/caldata.
Disable the 2.4GHz band as this band has no antennas attached but is
enabled in the eeprom/caldata.

Fixes: FS#691
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: fix WHR-600D eeprom dt property
Mathias Kresin [Sun, 9 Apr 2017 07:12:55 +0000 (09:12 +0200)]
ramips: fix WHR-600D eeprom dt property

Fix the PCIe 5GHz wireless by using the ralink mtd-eeprom property as
this board have a RT5592 and uses the rt2x00 driver. The mediathek
device tree bindings do not work here.

Fixes: FS#691
Fixes: d8dd207ea6f2 ("ramips: use the ralink,mtd-eeprom device tree property")
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: drop rt-n56u factory image
Mathias Kresin [Mon, 27 Mar 2017 19:47:05 +0000 (21:47 +0200)]
ramips: drop rt-n56u factory image

The factory image has an uImage header covering the entire image and
not only the kernel. The original uImage header which covers only the
kernel is appended to the end of the image.

During LEDE boot the uImage rootfs splitter skips the whole filesystem,
can't find a valid filesystem magic and panics.

The last known working version was OpenWrt 14.07, which simply kept on
searching for an uImage header if the first found didn't resulted into
a working rootfs. This behaviour is kind of error prone since it could
produce false positives.

Since the sysupgrade image works fine in combination with the tftp
recovery for doing the initial installation of LEDE, simply drop the
factory image.

Related: FS#462

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agobusybox: Move libresolv detection to LEDE Makefile
Florian Fainelli [Wed, 12 Apr 2017 16:02:30 +0000 (09:02 -0700)]
busybox: Move libresolv detection to LEDE Makefile

Since the LEDE nslookup applet is already specific to LEDE, move the
libresolv detection into the busybox Makefile that LEDE uses.

This fixes builds with external toolchains that don't automatically
search for headers and/or libraries without being told so.

Fixes: de5b8e5d2fe1 ("busybox: add musl compatible nslookup replacement")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agomac80211: add rt2x00 debug symbols to PKG_CONFIG_DEPENDS
Jonas Gorski [Wed, 12 Apr 2017 10:44:12 +0000 (12:44 +0200)]
mac80211: add rt2x00 debug symbols to PKG_CONFIG_DEPENDS

Chaning these symbols require a recompilation of the modules, so make the
system aware of it.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agomac80211: manually apply dependencies to prevent a recoursive one
Jonas Gorski [Wed, 12 Apr 2017 10:44:12 +0000 (12:44 +0200)]
mac80211: manually apply dependencies to prevent a recoursive one

Apply the !UML dependency to both the symbol and the DEPENDS so there is
no recursive dependency anymore.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agocns3xxx: enable mpcore watchdog
Koen Vandeputte [Wed, 12 Apr 2017 09:11:00 +0000 (11:11 +0200)]
cns3xxx: enable mpcore watchdog

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agocns3xxx: fix mpcore watchdog
Koen Vandeputte [Wed, 12 Apr 2017 09:10:59 +0000 (11:10 +0200)]
cns3xxx: fix mpcore watchdog

The original implementation loaded the count register with (wrong) semi-
random values due to its implemenation nature.

If the wrongly calulated value was below the kickrate,
the WD was triggered and rebooted the system.

Rework this, partly based on upstream patches, to dynamically fetch the
current clockrate and calculate the proper offset for the WD countdown
register.

Before:

[  143.800000] count val: 27219720
[  148.820000] count val: 50623201
[  153.830000] count val: 96425250
[  158.830000] count val: 89735401
[  163.840000] count val: 4756110

After:

[    0.700000] MPCore WD init. clockrate: 299984500 prescaler: 256
countrate: 1171814 timeout: 60s
[  358.530000] count val: 35154751
[  363.540000] count val: 35154750
[  368.540000] count val: 35154751
[  373.550000] count val: 35154750

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agocns3xxx: refresh kernel config
Koen Vandeputte [Wed, 12 Apr 2017 09:10:58 +0000 (11:10 +0200)]
cns3xxx: refresh kernel config

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agocns3xxx: remove linux 4.4 support
Koen Vandeputte [Wed, 8 Feb 2017 08:44:14 +0000 (09:44 +0100)]
cns3xxx: remove linux 4.4 support

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agogrub2: update to 2.02~rc2
Alif M. Ahmad [Wed, 22 Mar 2017 14:29:12 +0000 (21:29 +0700)]
grub2: update to 2.02~rc2

Update to version 2.02~rc2.

Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
7 years agomac80211: conistent wireless.wiki.kernel.org
Matthias Fritzsche [Wed, 5 Apr 2017 22:14:17 +0000 (00:14 +0200)]
mac80211: conistent wireless.wiki.kernel.org

Change all the URLs to wireless.wiki.kernel.org to have
the same protocol, domain and path.

Signed-off-by: Matthias Fritzsche <txt.file@txtfile.eu>
7 years agoiptables: set ABI_VERSION to force rebuild of dependent packages
Felix Fietkau [Fri, 7 Apr 2017 11:20:11 +0000 (13:20 +0200)]
iptables: set ABI_VERSION to force rebuild of dependent packages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoiptables: bump to 1.6.1
Ansuel Smith [Wed, 22 Mar 2017 15:02:09 +0000 (16:02 +0100)]
iptables: bump to 1.6.1

Switch to git repo
Removed musl patch
Refreshed existing patch

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup]
7 years agobinutils: fix build with host gcc < 4.9
Hauke Mehrtens [Sun, 2 Apr 2017 15:40:43 +0000 (17:40 +0200)]
binutils: fix build with host gcc < 4.9

binutils 2.27 checks if the target compiler supports -Wstack-
usage=262144, and also uses this setting for the host compiler. If the
host compiler is gcc < 4.9 binutils build will fail. This backports 2
commits which are fixing this problem for binutils 2.28.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agobase-files: use restart if no reload hook for service
Alexandru Ardelean [Fri, 31 Mar 2017 06:44:19 +0000 (09:44 +0300)]
base-files: use restart if no reload hook for service

This was also working before, with a slightly
different semantic.

[ Original semantic ]
If no reload hooks was implemented, the default one would
kick in, it would return fail, and restart would happen.

This would happen also in the case where a reload hook
would be implemented, it would fail, and it would restart
the service.

[ New semantic ]
The default reload hook calls restart.
Services can implement their own reload.

If reload fails, then the '/etc/init.d/<service> reload'
would return a non-zero code, and the caller can choose
a way to handle this.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
7 years agoath10k-firmware: update to latest version
Pavel Kubelun [Wed, 29 Mar 2017 14:41:31 +0000 (17:41 +0300)]
ath10k-firmware: update to latest version

Kvalo's repo has a newer version of qca9984 firmware. Use it instead.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agobuild: remove package makefile overlay functionality
Felix Fietkau [Mon, 3 Apr 2017 10:36:35 +0000 (12:36 +0200)]
build: remove package makefile overlay functionality

Recent attempts to use it have shown that it does not work properly
except for a few undocumented cases. It's better to remove this now to
avoid having more people fall into the same trap

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoopenvpn: add myself as maintainer
Felix Fietkau [Mon, 3 Apr 2017 07:00:32 +0000 (09:00 +0200)]
openvpn: add myself as maintainer

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoOpenVPN: Update to 2.4.1
Daniel Engberg [Mon, 27 Mar 2017 12:51:44 +0000 (14:51 +0200)]
OpenVPN: Update to 2.4.1

Update OpenVPN to 2.4.1
Remove 200-small_build_enable_occ.patch as it's included upstream.
Refresh patches
Add mirror and switch to HTTPS

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
7 years agoarm64: remove linux 4.4 support
Felix Fietkau [Wed, 12 Apr 2017 07:52:14 +0000 (09:52 +0200)]
arm64: remove linux 4.4 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoapm821xx: remove 4.4 kernel support
Christian Lamparter [Fri, 10 Feb 2017 16:44:44 +0000 (17:44 +0100)]
apm821xx: remove 4.4 kernel support

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
7 years agomvebu: remove linux 4.4 support
Felix Fietkau [Mon, 13 Feb 2017 10:02:06 +0000 (11:02 +0100)]
mvebu: remove linux 4.4 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoarm64: Switch to 4.9 kernel
Florian Fainelli [Tue, 11 Apr 2017 19:11:16 +0000 (12:11 -0700)]
arm64: Switch to 4.9 kernel

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agokernel: Add various arm64-related symbols
Florian Fainelli [Tue, 11 Apr 2017 22:16:15 +0000 (15:16 -0700)]
kernel: Add various arm64-related symbols

In preparation for bumping arm64 to 4.9, add a bunch of configuration
symbols that are available under arm64.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoarm64: Update README
Florian Fainelli [Tue, 11 Apr 2017 22:15:43 +0000 (15:15 -0700)]
arm64: Update README

Drop sample command line to use against the ARM Foundation v8 model and
replace the path to something that matches LEDE's directory structure.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoarm64: Remove Vexpress Foundation support
Florian Fainelli [Fri, 7 Apr 2017 21:49:15 +0000 (14:49 -0700)]
arm64: Remove Vexpress Foundation support

This required us to both download the Foundation emulator but also build
a boot wrapper. QEMU is now fully usable and is a much better
replacement.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agobusybox: add musl compatible nslookup replacement
Jo-Philipp Wich [Tue, 14 Mar 2017 21:38:59 +0000 (22:38 +0100)]
busybox: add musl compatible nslookup replacement

Add an alternative nslookup applet implementation which is compatible with
musl libc wrt. name server selection and which supports a number of additional
features such as query type selection.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agokernel: make kmod-mmc unavailable on UML
Jonas Gorski [Mon, 10 Apr 2017 08:56:10 +0000 (10:56 +0200)]
kernel: make kmod-mmc unavailable on UML

MMC requires IOMEM support, which UML doesn't have.

Fixes mac80211 build, as mwifiex-sdio depends on MMC support.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoiproute2: add libgenl.h and ll_map.h to InstallDev section
Hans Dedecker [Sat, 8 Apr 2017 18:40:56 +0000 (20:40 +0200)]
iproute2: add libgenl.h and ll_map.h to InstallDev section

Commit f4e312ddf855375667f43c842c7187934b8aca92 adds libnetlink to
staging dir but did not add the header files libgenl.h and ll_map.h
which define functions belonging to libnetlink lib

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agodnsmasq: peacefully coexist with ISC DHCPd
Daniel Golle [Wed, 5 Apr 2017 18:31:01 +0000 (20:31 +0200)]
dnsmasq: peacefully coexist with ISC DHCPd

Similar to odhcpd, allow using ISC DHCPd instead of dnsmasq.
Disable DHCP and/or DHCP6 in case ISC DHCP is present and
enabled.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agoath9k: drop obsolete patch
Mathias Kresin [Sat, 25 Mar 2017 10:48:02 +0000 (11:48 +0100)]
ath9k: drop obsolete patch

Now that the wireless LEDs are added via platform leds this patch isn't
required any longer.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoar71xx: add correct named default wireless led by using platform leds
Mathias Kresin [Wed, 22 Mar 2017 20:59:49 +0000 (21:59 +0100)]
ar71xx: add correct named default wireless led by using platform leds

Instead of renaming the default wireless led attached to the wireless
chip, add a new led using the platform leds with the phy0tpt trigger
set in userspace.

When switching ar71xx to device tree, the same can be done by using the
build in GPIO controller and without adding new bindings.

Drop the now unused platform code.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoath9k: ignore led_pin if ath9k GPIO controller is used with DT
Mathias Kresin [Wed, 22 Mar 2017 07:04:16 +0000 (08:04 +0100)]
ath9k: ignore led_pin if ath9k GPIO controller is used with DT

Don't setup the default led pin if the ath9k GPIO controller is used
via device tree to prevent collision. In case any of the pins exposed
by the ath9k is used, the phyNtpt trigger needs to be set in userspace.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoath9k: enable GPIO chip only if requested via DT
Mathias Kresin [Wed, 22 Mar 2017 06:29:32 +0000 (07:29 +0100)]
ath9k: enable GPIO chip only if requested via DT

In case that the atheros device tree binding is used, enable access to
the GPIO chip only if the gpio-controller device tree parameter is used
for the ath9k node.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoath9k: unset the default LED pin if used by platform leds
Mathias Kresin [Tue, 21 Mar 2017 22:21:57 +0000 (23:21 +0100)]
ath9k: unset the default LED pin if used by platform leds

Unset the default LED gpio pin if the same gpio pin is used by a LED
defined via platform LED. This prevents that the default led trigger
gets assigned to this LED and the GPIO value gets changed on
wifi up/down in case the led is not used for signaling the wifi state.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: drop tffs patches
Mathias Kresin [Sat, 25 Mar 2017 18:24:26 +0000 (19:24 +0100)]
lantiq: drop tffs patches

With the fritz-tools a userspace parser for the Tiny Flash File System
is available and makes the tffs2 kernel patches obsolete.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agofirmware: rework fritz-tools package
Mathias Kresin [Sat, 25 Mar 2017 17:09:37 +0000 (18:09 +0100)]
firmware: rework fritz-tools package

Split the fritz-tools into subpackages. fritz_tffs_read is usefull for
all Fritz boards where fritz-cal_extract is only required for the
Fritz 4040 at the moment.

Rename the tffs related binary to the more catchy name fritz_tffs and
move the whole package to utilities since the package doesn't really
provide a firmware file.

Make the fritz-tools available for all targets and build them shared.
The tffs is used by avm on lantiq and ar71xx as well.

Tested-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agokernel: update MIPS pci fix to the accepted version
Mathias Kresin [Sat, 25 Mar 2017 11:18:56 +0000 (12:18 +0100)]
kernel: update MIPS pci fix to the accepted version

Fix the list order instead of adjusting the controller scan order.
Revert the former required changes to the lantiq PCIe driver.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agomdadm: extend uci config support
Jo-Philipp Wich [Thu, 9 Feb 2017 12:22:47 +0000 (13:22 +0100)]
mdadm: extend uci config support

Extend the mdadm package to allow to explicitely configure arrays as
well as device list entries.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoopkg: backport upstream fixes, code cleanups
Jo-Philipp Wich [Sat, 1 Apr 2017 12:34:57 +0000 (14:34 +0200)]
opkg: backport upstream fixes, code cleanups

Update to latest Git in order to import the following fixes:

1d0263b check_data_file_clashes_change: remove duplicated offline root in paths
a00a6a9 buildReplaces: do not add duplicated replacees
9fbedd8 opkg: compare-versions doesn't need any state
45b54f6 opkg_cmd: fix segmentation fault in opkg_compare_versions_cmd()
93de62b opkg_cmd: fix return of opkg compare-versions
51275a8 pkg_src_list_push: remove unused function
947d3d4 pkg_src_list_pop: remove unused function
980cfb2 str_list_push: remove unused function
52c31c1 str_list_prev: remove unused function
7d24212 str_list_last: remove unused function
48142a3 conffile_list_pop: remove unused function
46c5de5 pkg_dest_list_push: remove unused functions
368bb62 nv_pair_list_prev: remove unused function
2985c00 nv_pair_list_last: remove unused function
f5082ac conffile_list_pop: remove unused function
89bf8b9 conffile_list_push: remove unused function
23d31fb active_list_sort: remove unused function
7fe45f2 active_list_add_depend: remove unused function
86b584d pkg_dependence_satisfied: remove unused function
816d330 Fix typo in pkg_hash_fetch_best_installation_candidate.
07f3b02 set_flags_from_control: remove function

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agomediatek: various fixes for v4.9
John Crispin [Fri, 7 Apr 2017 15:42:08 +0000 (17:42 +0200)]
mediatek: various fixes for v4.9

* adds MT7530 DSA support
* backport latest ethernet driver
* add PMIC leds
* add auxadc support
* add efuse support
* add thermal sensor support
* add irq affinity support for ethernet

still todo
* DSA multi cpu support

Signed-off-by: John Crispin <john@phrozen.org>
7 years agokernel: add thermal monitor for nct6775/6776
Philip Prindeville [Mon, 9 Jan 2017 04:08:47 +0000 (21:08 -0700)]
kernel: add thermal monitor for nct6775/6776

Support for the nct6775/6776 hwmon chips, and other compatibles
in the family as well as the Intel on-chip thermal sensors.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agouboot-ar71xx: fix build error
Felix Fietkau [Thu, 6 Apr 2017 14:24:46 +0000 (16:24 +0200)]
uboot-ar71xx: fix build error

The HOSTCFLAGS override only works on newer u-boot versions

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomt76: ensure that the metapackage gets built as .ipk
Felix Fietkau [Wed, 5 Apr 2017 21:38:42 +0000 (23:38 +0200)]
mt76: ensure that the metapackage gets built as .ipk

Fixes errors during the image builder run

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobusybox: fix installation of cron and ntpd scripts in the default config
Felix Fietkau [Tue, 4 Apr 2017 13:05:11 +0000 (15:05 +0200)]
busybox: fix installation of cron and ntpd scripts in the default config

Fixes: 0b24850e9778 ("busybox: don't install NTP scripts if NTP isn't configured")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: move initramfs's init script out of base-files
Rafał Miłecki [Mon, 27 Mar 2017 09:03:01 +0000 (11:03 +0200)]
kernel: move initramfs's init script out of base-files

Keeping it in base-files was resulting in adding it to the base-files
package. This file is meant to be included manually for initramfs
images only.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agou-boot.mk: pass HOSTCC and HOST_CFLAGS into the build
Felix Fietkau [Thu, 16 Mar 2017 08:01:56 +0000 (09:01 +0100)]
u-boot.mk: pass HOSTCC and HOST_CFLAGS into the build

Cuts build time on Mac OS X in half by avoiding repeated $(shell) calls
from the build system

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agotarget.mk: check that CPU_TYPE has known CPU_CFLAGS mapping
Philip Prindeville [Wed, 4 Jan 2017 01:15:15 +0000 (18:15 -0700)]
target.mk: check that CPU_TYPE has known CPU_CFLAGS mapping

If someone creates a target and indicates a CPU_TYPE, but there's
no corresponding support for that CPU_TYPE's flags in include/target.mk
then that should probably be indicated rather than silently ignored.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agoath10k-firmware: update the qca988x firmware to 10.2.4-1.0-00029
Changmin Jang [Mon, 3 Apr 2017 14:29:26 +0000 (23:29 +0900)]
ath10k-firmware: update the qca988x firmware to 10.2.4-1.0-00029

update the qca988x firmware to firmware-5.bin_10.2.4-1.0-00029.
According to LEDE Forum, the new firmware supports mesh mode.
Also, it seems to have several improvements.

Signed-off-by: Changmin Jang <ckdalsdk12@gmail.com>
7 years agoscripts/download.pl: fix error message on hash mismatch
Felix Fietkau [Tue, 4 Apr 2017 09:44:22 +0000 (11:44 +0200)]
scripts/download.pl: fix error message on hash mismatch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-lantiq: fix build error on mac os x
Felix Fietkau [Tue, 4 Apr 2017 10:33:03 +0000 (12:33 +0200)]
uboot-lantiq: fix build error on mac os x

asm/* includes are not safe for the host build

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: backport an upstream fix for queue start/stop handling
Felix Fietkau [Mon, 3 Apr 2017 13:08:28 +0000 (15:08 +0200)]
mac80211: backport an upstream fix for queue start/stop handling

Fixes issues with 802.11s

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: tp-link.mk: always include device version in image and DEVICE_TITLE
Piotr Dymacz [Thu, 23 Mar 2017 22:49:28 +0000 (23:49 +0100)]
ar71xx: tp-link.mk: always include device version in image and DEVICE_TITLE

There are currently several supported TP-Link devices without specified
version number in image name and/or DEVICE_TITLE (e.g. WBS210, WBS510,
TL-WR810N, TL-WA7510N, TL-WPA8630), but vendor website shows that there
are already more than one version of them on the market.

For devices like Archer C5, which second version is based on a total
different platform, missing version number in DEVICE_TITLE (used in
menuconfig) might be misleading for users.

To make it less confusing for users and easier to maintain in future,
include version number in image name and DEVICE_TITLE for all TP-Link
devices, even if there is only one version of device at the moment.

Also, keep DEVICE_TITLE in same format for all TP-Link devices.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Acked-by: John Crispin <john@phrozen.org>
7 years agoar71xx: add userspace support for Mikrotik RB2011iL
Ron Angeles [Tue, 28 Mar 2017 01:55:48 +0000 (18:55 -0700)]
ar71xx: add userspace support for Mikrotik RB2011iL

Kernel/hardware support for this board has been implemented since
Chaos Calmer. This set of patches is to get the board identified in
userland. This will allow support for things like sysupgrade,
configuring initial LED state, configuring initial switch state, etc.

Signed-off-by: Ron Angeles <ronangeles@gmail.com>
7 years agoar71xx: add TP-LINK TL-WR841N/ND v12 image
Vittorio Gambaletta [Sun, 26 Mar 2017 07:55:44 +0000 (09:55 +0200)]
ar71xx: add TP-LINK TL-WR841N/ND v12 image

This router has the same hardware as TP-LINK TL-WR841N/ND v11 (same FCC
ID, same TFTP image name...).

If the stock firmware web interface doesn't accept LEDE factory image,
it can be flashed via the U-Boot TFTP recovery mode, by long-pressing
the reset button after power on.

The TFTP image name is wr841nv11_tp_recovery.bin (yes, v11, not v12).

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
7 years agonetifd: fix fw3 warnings in dhcp script
Hans Dedecker [Sun, 2 Apr 2017 19:13:08 +0000 (21:13 +0200)]
netifd: fix fw3 warnings in dhcp script

Fix fw3 warnings in dhcp script in case fw3 is not enabled

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agobuild: move PKG_CONFIG_DEPENDS from feeds.mk to opkg
Felix Fietkau [Mon, 27 Mar 2017 08:21:24 +0000 (10:21 +0200)]
build: move PKG_CONFIG_DEPENDS from feeds.mk to opkg

Normal packages don't rely on the feed configuration variables for the
build step

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: allow specifying flow-control to grub on serial console
Philip Prindeville [Tue, 7 Feb 2017 03:33:36 +0000 (20:33 -0700)]
build: allow specifying flow-control to grub on serial console

On the more sophisticated (i.e. deeper FIFO) serial controllers,
flow-control might be needed to avoid dropping output.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agokexec-tools: get kexec running on MUSL and x86 hardware
Philip Prindeville [Wed, 22 Mar 2017 03:55:23 +0000 (21:55 -0600)]
kexec-tools: get kexec running on MUSL and x86 hardware

Couple of important upstream patches (slated for 2.0.15) that
are necessary for kexec to run on MUSL and on x86 hardware.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agobusybox: don't install NTP scripts if NTP isn't configured
Philip Prindeville [Mon, 6 Feb 2017 22:26:49 +0000 (15:26 -0700)]
busybox: don't install NTP scripts if NTP isn't configured

If you're using Chrony or NTPD you don't want the busybox NTP server
as well.  Make it's installation truly conditional.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [simplify]
7 years agomodules: Add kmod-igbvf kernel module for Intel(R) 82576 Virtual Function Ethernet...
Ye Tao [Sun, 19 Feb 2017 12:57:11 +0000 (21:57 +0900)]
modules: Add kmod-igbvf kernel module for Intel(R) 82576 Virtual Function Ethernet adapters

Intel(R) 82576 is an adapter which supports SR-IOV. Thus the host can
assign Virtual Functions (VFs) to different VMs by the PCI-E Passthrough
(e.g. VFIO for KVM), to gain different advantages (performance, VF to VF
communications, host kernel offload, etc.).

The driver of the passthroughed VFs is the igbvf (igb is NOT
compatible).

This is essential for VM guests, to enable them to utilize this feature.

Signed-off-by: Ye Tao <tydus@hongo.wide.ad.jp>