Commit Graph

680 Commits (2f757bc989540acb986031b0b69d1274a922ef0f)

Author SHA1 Message Date
Hauke Mehrtens 7a4fa1b0a7 brcm47xx: 3.14: update MIPS patches with versions sent upstream
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41911 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-31 21:42:59 +00:00
Hauke Mehrtens 5d8eab8ae2 brcm47xx: 3.10: update MIPS patches with versions sent upstream
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41910 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-31 21:40:38 +00:00
Hauke Mehrtens 020ac4da2b brcm47xx: don't create named switch_vlan sections
It doesn't seem to be used anywhere, it's incompatible with other
targets and can be confusing. People may think they need to update
section name every time they change VLAN ID (well, even I was doing
that).

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41835 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-26 12:33:48 +00:00
John Crispin a7911af6ef kernel: update to 3.10.49
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41776 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-20 17:31:11 +00:00
Hauke Mehrtens 4a0919e7bb brcm47xx: fix switch detection with kernel 3.14
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41706 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-17 20:34:18 +00:00
Hauke Mehrtens 71f6e265c4 brcm47xx: remove kmod-bgmac from profile
bgmac will be compiled into the kernel since r41594.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41667 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-15 21:57:13 +00:00
Hauke Mehrtens 0a3ca544c9 brcm47xx: fix LEDs on WRT54GL 1.1
Ticket: #17062
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41666 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-15 21:54:38 +00:00
Hauke Mehrtens 8e570d48b0 brcm47xx: fix special board handling for some devices
Some devices were renamed when converted from diag to in kernel board detection and it was not changed in netconfig. Devices not in the 
kernel board detection are removed now.

This should close: #17111, #16968, #13202

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



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41663 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-14 22:16:19 +00:00
Hauke Mehrtens 3811c42566 brcm47xx: improve board detection for some devices
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41662 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-14 22:03:59 +00:00
Hauke Mehrtens 35c8c127b5 brcm47xx: deactivate ssb and old phy code for new devices
This deactivates ssb and G-PHY code in b43 for the mips74k profile in 
brcm47xx.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41594 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-12 15:39:31 +00:00
John Crispin fb6da76b11 target/linux/*: more dead package cleanups
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41571 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-10 20:05:43 +00:00
John Crispin e829dd51f4 target/linux/*: kmod-fs-ext{2,3} RIP
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41560 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-10 19:16:15 +00:00
Hauke Mehrtens 0f360fe477 brcm47xx: make reboot a more reliable
A reboot is issued by setting the watchdog timer to a low value, when 
the value is decreased from 1 to 0 by the hardware the system will 
reboot. Setting this value to 1 does not work every time, it is a 
little bit more reliable when setting it to 3. This timer runs with 
some MHz or KHz so nobody will notice the increased waiting.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41548 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-07 20:12:40 +00:00
Hauke Mehrtens 2d4fa4c68a brcm47xx: add buttons support for Netgear WNR3500L
Ticket: #14406

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41547 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-07 19:14:22 +00:00
Hauke Mehrtens 31b4c085ff brcm47xx: remove unneeded images from generic target
broadcom-wl now builds in the mips74k profile, so remove these chips
from the generic profile.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41546 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-07 17:47:24 +00:00
Hauke Mehrtens 039ebc968d brcm47xx: image: legacy: take over old devices images
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41530 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-06 17:21:37 +00:00
Hauke Mehrtens 43de876d12 brcm47xx: image: mips74k: take over some device images
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41529 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-06 17:14:29 +00:00
Hauke Mehrtens 769e2bac54 brcm47xx: image: prepare for using mips74k subtarget
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41528 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-06 17:14:06 +00:00
Hauke Mehrtens ebf712921a brcm47xx: fix bcm4705 rebooting when initializing the switch.
When the Ethernet controller is powered down and someone wants to
access the mdio bus like the witch driver (b53) the system crashed if
PCI_D3hot was set before. This patch deactivates this power sawing mode
when a switch driver is in use.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41527 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-06 13:45:43 +00:00
Hauke Mehrtens 5760ac4599 brcm47xx: add LEDs for Netgear WNR3500L
https://dev.openwrt.org/ticket/14406

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41520 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-05 23:25:26 +00:00
Hauke Mehrtens 736bb2f1a5 brcm47xx: make it possible to unregister the adm switch
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41517 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-05 21:35:15 +00:00
Hauke Mehrtens 776ae1250f brcm47xx: fix LEDs on WRTSL54GS
https://dev.openwrt.org/ticket/16991

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41516 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-05 19:40:15 +00:00
Hauke Mehrtens f31480bd0c brcm47xx: increase fallback mac addresses by one
Now the mac address is increased by two for the first fallback mac 
address. It could be that the address increased should be used for the 
wan port.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41515 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-05 19:36:49 +00:00
Hauke Mehrtens 41b3ae989c brcm47xx: do not use mac addresses with 00:90:4C prefix, prevent mac address collisions.
The address prefix 00:90:4C is used by Broadcom in their initial
configuration. When a mac address with the prefix 00:90:4C is used
all devices from the same series are sharing the same mac address.
To prevent mac address collisions we replace them with a mac address
based on the base address.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41513 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-05 15:04:50 +00:00
Hauke Mehrtens 8b171622cd brcm47xx: get switch name from swconfig first
Without this patch the switch config for the adm switch did not worked, 
because hey are not names eth0.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41512 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-05 12:15:03 +00:00
Hauke Mehrtens a287e6f91b brcm47xx: add LEDs for Asus RT-N15U and update RT-N66U
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41501 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-03 21:41:33 +00:00
Hauke Mehrtens 0f7a9d7a21 brcm47xx: migrate basic network settings from old releases
Old OpenWrt releases were using network configs that are not valid
anymore. They were specifying ports tagging in a different way (or were
not tagging CPU at all) and were using VID 0 which is a reserved value.

Modifying network configuration to apply all needed changes would be
pretty tricky. Script /etc/init.d/netconfig that generates new config is
quite complex itself.
So instead let's save the most important settings, regenerate config
from the scratch and restore values. This should work for 99% of users.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41500 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-03 21:40:59 +00:00
Hauke Mehrtens a38320f412 brcm47xx: add CONFIG_LEDS_GPIO_REGISTER
CONFIG_LEDS_GPIO_REGISTER is selected by the bcm47xx arch code.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41488 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 22:07:46 +00:00
Hauke Mehrtens d412d3583a brcm47xx: refresh patches
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41487 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 22:03:03 +00:00
Hauke Mehrtens 33c281b77e brcm47xx: backport BCM47XX Linksys WRT54G series patches
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41486 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 21:54:59 +00:00
John Crispin 9944858776 kernel: update 3.10.36->3.10.44
205-fix-headers_install.patch is obseleted by upstream commit 3246a0352e3d58380b9386570f1db1faf7edf8a8

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41351 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-26 13:47:42 +00:00
Felix Fietkau b0caf60f09 brcm47xx: merge FEATURES lines in the legacy subtarget
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41053 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-08 09:51:38 +00:00
Felix Fietkau 459c9c3fc6 brcm47xx: fix kmod-usb-brcm47xx build on legacy and mips74k subtargets
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41052 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-08 09:45:55 +00:00
Hauke Mehrtens 436d42c5cd brcm47xx: activate some compiler optimizations for 74K CPUs
With this patch the mips74k subtarget will be compiled with optimized 
compiler options to generated smaller and faster code. This currently 
breaks broadcom-wl, because the binary blob is only compiled with 
mipsr1 support.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41050 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 17:36:02 +00:00
Felix Fietkau 7e4ffc4002 brcm47xx: move the low_mem feature flag to the legacy subtarget
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41049 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 17:21:30 +00:00
Hauke Mehrtens 3b8f1d816c brcm47xx: remove old gpio and nvram interfaces
These were only used by broadcom-diag any more.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41048 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 17:04:37 +00:00
Hauke Mehrtens c8621d02f5 brcm47xx: mips74k: optimize kernel config
This saves abount 15 kB of compressed kernel size.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41043 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 15:42:33 +00:00
Hauke Mehrtens 6143a2a98d bcm47xx: use eth0 for switch name
This fixes some strange problems with tg3. I assume that the Ethernet 
driver was not brought up if the switch was named switch0.

This was reported and tested by ernesto (Faulp3lz).

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41042 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 15:41:41 +00:00
Felix Fietkau 758e298a5d brcm47xx: add a "legacy" subtarget that is usable for low-end 802.11g devices like WRT54G
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41041 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 15:19:40 +00:00
Hauke Mehrtens 42acb52779 brcm47xx: add mips74k subtarget for newer devices
All new devices (with MIPS 74K CPU) are based on BCMA SoC and have
Ethernet core supported by bgmac. Create a new subtarget to generate
optimized builds.
This is just a beginning, further tweaks (like kernel configuration)
are still possible. This decreases default root.squashfs by ~128 kB.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41025 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-05 21:25:03 +00:00
Hauke Mehrtens 431f863e5e brcm47xx: move current target to "generic" subtarget
This allows creating more subtargets and optimize builds per family.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41024 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-05 21:23:58 +00:00
Felix Fietkau 6b987a0730 brcm47xx: enable the low-memory feature flag
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40982 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-02 17:04:45 +00:00
John Crispin 38c81b2552 target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
ARGC is a 'C-ism', but not known/valid in shell-syntax - insert the correct
var $# (=number of args) here. under normal conditions this had no impact,
but we should at least correct it. the error was observable like this:

root@box:~ [ -e "/etc/functions.sh" ] && . /etc/functions.sh
root@box:~ [ -e "/lib/functions.sh" ] && . /lib/functions.sh
root@box:~ . /lib/upgrade/platform.sh
root@box:~ . /lib/upgrade/common.sh
root@box:~ platform_check_image /tmp/myfirmware.bin
ash: bad number
root@box:~ echo $?
0

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40915 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-02 12:43:22 +00:00
Felix Fietkau b82d436d9b kernel: add a ssb backport required for a new mac80211 update
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40833 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-23 18:48:31 +00:00
Hauke Mehrtens 28e07a7e77 brcm47xx: profiles: fix white spaces (s/ $//)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40763 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-14 10:09:31 +00:00
Hauke Mehrtens ee42391db2 brcm47xx: image: respect device flash block size
We should be more careful and don't generate 128K JFFS2 images for
devices with flashes using 64K blocks (nor the other way).

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40762 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-14 10:08:56 +00:00
Hauke Mehrtens 29489441e4 brcm47xx: image: document some defines arguments
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40761 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-14 10:08:22 +00:00
Gabor Juhos 0e6867db1e kernel: update 3.10 to 3.10.36
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40467 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-12 11:59:07 +00:00
Hauke Mehrtens f379312b9c brcm47xx: refresh patches
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40425 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-08 19:51:36 +00:00
Hauke Mehrtens 30de67d409 brcm47xx: backport 3.14 patch for nvram GPIO pin read
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40346 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-30 19:07:46 +00:00