Commit Graph

28301 Commits

Author SHA1 Message Date
Hauke Mehrtens
254b4df66f brcm47xx: fix brcm47xx.legacy build
we should check for ssb here.

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

SVN-Revision: 42164
2014-08-14 21:21:27 +00:00
Jonas Gorski
006cdbfdbc dropbear: fix keepalive with putty
Don't send SSH_MSG_UNIMPLEMENTED for keepalive responses, which broke
at least putty.

Fixes #17522 / #17523.

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

SVN-Revision: 42162
2014-08-13 20:49:56 +00:00
Steven Barth
92ef017054 netifd: assign ipv6-prefixes with length <64 with /64 on-link routes
SVN-Revision: 42161
2014-08-13 14:57:11 +00:00
Steven Barth
a8a07e5156 odhcpd: improve DHCPv6-PD detection
SVN-Revision: 42160
2014-08-13 14:57:07 +00:00
Steven Barth
af964cafc3 ppp: enable IPv6CP by default
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 42158
2014-08-13 10:18:20 +00:00
Steven Barth
eba984b94b odhcpd: multiple DHCPv4 improvements (thx Christian Mehlis)
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 42153
2014-08-12 13:30:04 +00:00
Jo-Philipp Wich
eb02b887ff package: fix segfault of iwinfo.scanlist("radio0").
This is a bug revealed in r41830.

First, the static variable `char nif[IFNAMSIZ]` of nl80211_phy2ifname()
would be zeroed out if the argument is "wlan0" or the like.  This will
happen in the following call stack.

 nl80211_get_scanlist("radio0", buf, len);
   nl80211_phy2ifname("radio0")			// return static var nif with content "wlan0"
   nl80211_get_scanlist(nif, buf, len);		// tail call
     nl80211_get_mode(nif);
        nl80211_phy2ifname(nif);		// zero out nif

Later we try nl80211_ifadd("") which was supposed to create interface
"tmp.", but that won't happen because nl80211_msg() will put an invalid
ifidx 0 to the nlmsg.

Then iwinfo_ifup() and iwinfo_ifdown() would fail and happily
nl80211_get_scanlist() returned 0 and left *len undefined.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 42151
2014-08-12 11:14:11 +00:00
Luka Perkov
24696a06ad imx6: update kernel config
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 42149
2014-08-11 20:35:15 +00:00
Luka Perkov
fa8e8d262e imx6: kernel: add GW5520 support
The GW5520 is a small form-factor single-board computer with the following
features:
 * 70x100mm form-factor
 * IMX6DL 800MHz SoC (IMX6Q optional)
 * 512MB 32bit DDR3 SDRAM (up to 2GB optional)
 * 256MB NAND FLASH (up to 2GB optional)
 * Gateworks System Controller
 * 2x front-panel Intel i210 GbE adapters with passive PoE support
 * 2x MiniPCIe sockets with USB support
 * 2x front-panel USB
 * 1x rear-panel full-size HDMI connector
 * 1x front-panel bi-color user LED
 * 1x front-panel user pushbutton
 * 1x rear-panel barrel jack for power
 * 1x Application connector with:
  * 2x TTL level UARTs
  * 10x TTL level Digital IO

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 42148
2014-08-11 20:35:13 +00:00
Luka Perkov
dcacd65281 imx6: kernel: add GW16083 Ethernet Expansion Mezzanine support
The GW16083 Ethernet Expansion Mezzanine adds the following to supported
Gateworks baseboards:
 * 7-port Ethernet Switch
  * 4x RJ45 ports (ENET1-4) supporing 802.11af/at PoE (with optional PoE module)
  * 2x RJ45 ports or SFP module (ENET5-6) (auto-selected)

This series adds support for a phy driver that adds support for ENET5/ENET6
PHY adding initialization for those PHY's and a polling mechanism that detects
SFP insertion and configuration.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 42147
2014-08-11 20:35:10 +00:00
Luka Perkov
9d826428b7 imx6: kernel: add GW16082 miniPCI Expansion Mezzanine support
The GW16082 miniPCI Expansion Mezzanine has the INTA/B/C/D IRQ's reversed
from the PCI standard. This will soon be resolved in the bootloader via
devicetree, but in the meantime this will work around the issue.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 42146
2014-08-11 20:35:06 +00:00
Luka Perkov
e47c4d7014 imx6: kernel: fix occasional link failure
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 42145
2014-08-11 20:35:04 +00:00
Luka Perkov
fe5d39d66c imx6: kernel: backport an upstream pci hang fix
Signed-off-by: Tim Harvey <tharvey@gateworks.com>

SVN-Revision: 42144
2014-08-11 20:35:02 +00:00
Hauke Mehrtens
3c3b3dd41d bcm53xx: add b43 wifi support
Now it is possible to use b43 wifi.

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

SVN-Revision: 42143
2014-08-11 20:25:26 +00:00
Hauke Mehrtens
1d14e7ef1b bcm53xx: remove BCM4360 from PCI ids
bcma does not support this card and b43 hangs when probing this card.

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

SVN-Revision: 42142
2014-08-11 20:24:45 +00:00
Hauke Mehrtens
33264155cb mac80211: fix warning with kernel 3.14
This fixes a redefinition of net_get_random_once() warning.

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

SVN-Revision: 42141
2014-08-11 20:23:20 +00:00
Jo-Philipp Wich
f63509ac89 base-files: /lib/functions/network.sh: fix network_get_ipaddr6
When looking for the first ipaddr also consider the current prefix just
like network_get_ipaddrs6 does. If ipv6-address was empty the function
did not return the first ipaddr even if the list was non-empty.

fixes commit 83e9122f88a002871d5cdf421cf6aa6052b7e006

Signed-off-by: Henning Schild <henning@hennsch.de>

SVN-Revision: 42139
2014-08-11 18:15:18 +00:00
Jo-Philipp Wich
aa9e69908e firewall: fix potential NULL pointer access
Properly skip struct ifaddr entries with NULL ifa_addr, thanks Kostas Papadopoulos for reporting.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42138
2014-08-11 17:45:18 +00:00
Steven Barth
ff6363dc19 dropbear: update to 2014.65
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 42131
2014-08-11 13:02:43 +00:00
Imre Kaloz
ecba34a3ee add support for the NC-LINK SMART-300
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 42130
2014-08-11 11:44:51 +00:00
Jonas Gorski
43029544e2 brcm63xx: remove now obsolete board fixup code
Now that we migrated all users to dtb based detection, we can drop the
board fixup code.

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

SVN-Revision: 42129
2014-08-11 11:37:26 +00:00
Jonas Gorski
74ec41ef59 brcm63xx: use dtb board detection for neufbox 4
This splits up neufbox 4 for now into two images, one for each OEM.

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

SVN-Revision: 42128
2014-08-11 11:37:21 +00:00
Jonas Gorski
862f7fccb0 brcm63xx: use dtb board detection for NB6
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42127
2014-08-11 11:37:17 +00:00
Jonas Gorski
52b0935efe brcm63xx: use dtb board detection for HW556
This requires individual images for each board version for now.
Linux partition was shrunk to ensure writing thewrong image won't
erase wifi calibration data.

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

SVN-Revision: 42126
2014-08-11 11:37:14 +00:00
Jonas Gorski
0aa242fe20 brcm63xx: replace CFEFIXUP usage with dtb based detection
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42125
2014-08-11 11:37:09 +00:00
Jonas Gorski
f22bab1017 brcm63xx: move bcm96328avng to dtb detection
Use appended dtb for board detection for bcm96328avng.

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

SVN-Revision: 42124
2014-08-11 11:37:04 +00:00
Jonas Gorski
9c6287d6a1 brcm63xx: add support for registering parallel flash through dtb
Add the required nodes to the dtsi files and code to prevent double
registration from the board support code.

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

SVN-Revision: 42123
2014-08-11 11:37:01 +00:00
Jonas Gorski
79057c7255 brcm63xx: add helpers for building cfe images with dtb
Add a helper for building images with dtb appended kernels.

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

SVN-Revision: 42122
2014-08-11 11:36:59 +00:00
Jonas Gorski
aa572fccb5 brcm63xx: add support for attaching dtbs to lzma kernels
In preparation for switching to dtb based board identification, add
support for building lzma-loader and lzma cfe kernels with dtb
appended.

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

SVN-Revision: 42121
2014-08-11 11:36:55 +00:00
Jonas Gorski
0343c0288e brcm63xx: add empty dtsi files for each of the supported SoCs
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42120
2014-08-11 11:36:53 +00:00
Jonas Gorski
de8e3f2f86 brcm63xx: add and enable support for loading an appended dtb
Allow appending a dtb blob to the binary and use it for identifying the
board. Fall back to nvram based identification in case of no dtb passed.

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

SVN-Revision: 42119
2014-08-11 11:36:48 +00:00
Jonas Gorski
b61f57a5c7 brcm63xx: correctly export fallback sprom for brcm-wl
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 42118
2014-08-11 11:36:41 +00:00
Jonas Gorski
97d0ed4faa brcm63xx: make board patch context less ambiguous
Make it less likely for quilt/patch to put boards into the "wrong"
section.

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

SVN-Revision: 42117
2014-08-11 11:36:38 +00:00
Jonas Gorski
a06013e9b7 brcm63xx: fix board patches offsets
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo fix 553-boards_probe_switch.patch]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42116
2014-08-11 11:36:30 +00:00
Jo-Philipp Wich
fa37594f50 firewall: implement selective conntrack flushing (#10225)
Utilize the new selective conntrack flushing facility to clear
out active conntrack entries referring to old IP addresses after
a firewall reload.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42114
2014-08-11 09:41:20 +00:00
Luka Perkov
a7840a0306 kernel: 3.14: refresh patches
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 42113
2014-08-11 09:21:05 +00:00
Jo-Philipp Wich
01fd962745 build: enable PER_FEED_REPO by default
Enable the separate feed repositories by default to align custom builds with the repositories
available on the snapshot download server.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42112
2014-08-11 09:15:17 +00:00
Luka Perkov
bc69ee8eab hostapd: fix some whitespaces
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 42111
2014-08-11 08:44:48 +00:00
Jonas Gorski
48318b52af brcm63xx: Add fallback sprom for A4001N
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42110
2014-08-10 12:22:15 +00:00
Jonas Gorski
f30102c6c2 brcm63xx: Add fallback sprom for HG520v
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42109
2014-08-10 12:22:12 +00:00
Jonas Gorski
e07dc84b24 brcm63xx: Add fallback sprom for P870HW-51a
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42108
2014-08-10 12:22:10 +00:00
Jonas Gorski
568a15adb3 brcm63xx: Add fallback sprom for VR-3025un
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42107
2014-08-10 12:22:08 +00:00
Jonas Gorski
d3af37fdfb brcm63xx: Add fallback sprom for VR-3025u
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42106
2014-08-10 12:22:05 +00:00
Jonas Gorski
6eb9375da4 brcm63xx: Add fallback sprom for WAP-5813n
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42105
2014-08-10 12:22:02 +00:00
Jonas Gorski
061f738087 brcm63xx: Add fallback sprom for AR-5381u
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42104
2014-08-10 12:21:59 +00:00
Jonas Gorski
23df30ca4a brcm63xx: Add fallback sprom for AR-5387un
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42103
2014-08-10 12:21:55 +00:00
Jonas Gorski
d1f731866b brcm63xx: Add fallback sprom for A4001N1
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42102
2014-08-10 12:21:52 +00:00
Jonas Gorski
312a7f9883 brcm63xx: Add fallback sprom for CT6373
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42101
2014-08-10 12:21:48 +00:00
Jonas Gorski
8240f6ad54 brcm63xx: Add fallback sprom for CT5365
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42100
2014-08-10 12:21:44 +00:00
Jonas Gorski
a299702df0 brcm63xx: Add fallback sprom for CT5361_CT5621
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42099
2014-08-10 12:21:39 +00:00