Commit graph

760 commits

Author SHA1 Message Date
Jonas Gorski
b723119385 brcm63xx: replace nvram_buf with a properly initialized array
Use an empty nvram_header to tell wl that there is no nvram buf.
wl else might try to allocate huge amount of memory because the
bcm63xx's nvram does not match the expected structure and contains
random values.

Fixes the following warning on load of wl:

[    9.152000] WARNING: at mm/slab_common.c:377 kmalloc_slab+0x4c/0xc0()
[    9.160000] Modules linked in: wl(P+) wl_glue ipv6 gpio_keys_polled input_polldev button_hotplug input_core
[    9.168000] CPU: 0 PID: 366 Comm: kmodloader Tainted: P             3.10.49 #1
[    9.176000] Stack : 00000000 00000000 00000000 00000000 8034b77a 00000042 81ac9af0 c02e0000
[    9.176000]    8028bf70 802df31b 0000016e 8034af28 81ac9af0 c02e0000 c02e0000 81b39810
[    9.176000]    0000002d 8002c9d4 00000003 8002a3c8 802937a0 c02e0000 8028e528 81ab398c
[    9.176000]    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    9.176000]    00000000 00000000 00000000 00000000 00000000 00000000 00000000 81ab3918
[    9.176000]    ...
[    9.212000] Call Trace:
[    9.216000] [<800224b8>] show_stack+0x48/0x70
[    9.220000] [<8002a538>] warn_slowpath_common+0x78/0xa8
[    9.224000] [<8002a5f0>] warn_slowpath_null+0x18/0x24
[    9.228000] [<8008145c>] kmalloc_slab+0x4c/0xc0
[    9.236000] [<80097258>] __kmalloc+0x20/0x10c
[    9.240000] [<80e23b90>] osl_malloc+0x24/0x6c [wl]
[    9.244000] [<80e15288>] nvram_init+0x54/0x164 [wl]
[    9.252000] [<80e08668>] si_pci_fixcfg+0x60c/0x9e8 [wl]
[    9.256000]
[    9.260000] ---[ end trace b5c4dbb046cf3c83 ]---

Reported-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41861
2014-07-28 15:31:37 +00:00
Jonas Gorski
042fb8eb57 brcm63xx: 3.14: fix ath9k_pci_fixup
Since kernel commit 928bea964827 ("PCI: Delay enabling bridges until
they're needed"), pci fixups are run with bridges (e.g. the pcie port)
disabled.

This causses hangs when ath9k_pci_fixup tries to manually enable the
device to apply the register fixups.

Fix this by enabling any parent bridges before trying to access the
device itself.

Fixes boot on DSL-274XB rev F1.

Reported-by: Matteo Croce <matteo@openwrt.org>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41856
2014-07-28 11:12:25 +00:00
Jonas Gorski
1cb1041c55 brcm63xx: Add support for ADB P.DG A4001N
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41852
2014-07-27 17:44:59 +00:00
Jonas Gorski
3209fb968e brcm63xx: Add support for Huawei HG520v
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41851
2014-07-27 17:44:56 +00:00
Jonas Gorski
c27cb6e0fd brcm63xx: Add support for ZyXEL P870HW-51a v2
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41850
2014-07-27 17:44:53 +00:00
Jonas Gorski
b26139eb3f brcm63xx: Add support for Comtrend VR-3025un
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: José Vázquez Fernández <ppvazquezfer@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41848
2014-07-27 17:44:48 +00:00
Jonas Gorski
a669d2c528 brcm63xx: Add support for Comtrend VR-3025u
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: José Vázquez Fernández <ppvazquezfer@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41847
2014-07-27 17:44:45 +00:00
John Crispin
ba63338d3f kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41776
2014-07-20 17:31:11 +00:00
Jonas Gorski
2b6403722b brcm63xx: update irq affinity code to latest version
Reduces code size a bit and sets affinity to boot cpu by default.

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

SVN-Revision: 41591
2014-07-12 12:31:47 +00:00
Jonas Gorski
ba9d2f397a brcm63xx: base-files: order board names alphabetically
Restore alphatetical order in uci-defaults scripts and brcm63xx.sh

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

SVN-Revision: 41590
2014-07-12 12:31:45 +00:00
Jonas Gorski
44e187fd66 brcm63xx: Use leds script for Huawei HG556a and improve profile
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41589
2014-07-12 12:31:43 +00:00
Jonas Gorski
e5cadabb58 brcm63xx: Fix HW553 support
- adsl and lan leds are swapped.
- internetkey is labeled as hspa.
- enable status led and reset button for failsafe.
- use new leds script.
- fix switch configuration.
- remove enet0 from board_info.
- add profile.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41588
2014-07-12 12:31:39 +00:00
Jonas Gorski
beb25f96eb brcm63xx: Use model name for Comtrend AR-5381u
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41587
2014-07-12 12:31:35 +00:00
Jonas Gorski
c9b2e96909 brcm63xx: Use model name for Comtrend AR-5387un
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41586
2014-07-12 12:31:33 +00:00
Jonas Gorski
aee666d8f9 brcm63xx: Use model name for ADB P.DG A4001N1
This patch also makes use of the new leds script.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41585
2014-07-12 12:31:30 +00:00
Jonas Gorski
8630d101b7 brcm63xx: fixup patches borked by allowing too much fuzz
Move defines and board_info structs back to their proper locations so
(de-)selecting SOC support won't break the build.

Reported-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41550
2014-07-08 12:27:55 +00:00
Jonas Gorski
ffae660fbd brcm63xx: disable AUDIT
Reduces kernel size by about 24k (6k compressed).

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

SVN-Revision: 41506
2014-07-04 08:23:19 +00:00
Jonas Gorski
2289e58252 brcm63xx: fix Livebox 1 support
The Livebox 1 support is currently broken. Fixed with this patch

Fixes:
- Redboot partitioning broken: fixed
- Replaced custom ephy reset with platform code
- USB code breaks the building process: fixed
- Led colors
- Removed unneded EHCI code since bcm6348 only has OHCI

Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>
[jogo: drop unneded parts since merge, fixup to apply to current head]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41424
2014-06-30 13:34:43 +00:00
Jonas Gorski
dc230d9b0f brcm63xx: 3.10: backport multi-board support
There have been no reported regressions, so backport it to 3.10.

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

SVN-Revision: 41422
2014-06-30 13:34:37 +00:00
Jonas Gorski
44ef9f7789 brcm63xx: Add support for Comtrend WAP-5813n
This adds support for Comtrend WAP-5813n.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: refresh patches]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41421
2014-06-30 13:34:34 +00:00
Jonas Gorski
439fe41813 brcm63xx: CPVA502+ board fixes
Some fixes for Telsey CPVA502+ bcm6348 routers:
- reset the external PHY (eth1) with proper platform code, not using a led definiton
- eth1 is an external phy, not a switch, deleted forced link speed
- fixed led color

Patch made for 3.14 kernel patches.

Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>
[jogo: also fix 3.14, refresh patches]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41420
2014-06-30 13:34:28 +00:00
John Crispin
994e5ce2f9 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>

SVN-Revision: 41351
2014-06-26 13:47:42 +00:00
Jonas Gorski
43cc8c3ebe brcm63xx: allow bcm963xx and livebox support at the same time
Use the CFE_EPTSEAL to tell them apart at runtime. Added for now only
for the 3.14 until properly tested.

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

SVN-Revision: 41296
2014-06-21 19:23:38 +00:00
Jonas Gorski
21d65bb185 brcm63xx: update variant detection patches and fix VARID shift
The variant id field shift was wrong, causing the variant detection
to fail.

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

SVN-Revision: 41295
2014-06-21 19:23:28 +00:00
Jonas Gorski
f695fa358a brcm63xx: fix up borked patch
Fix up patch borked by quilt fuzzy application of patches.

SVN-Revision: 41294
2014-06-21 19:23:18 +00:00
John Crispin
f933a741a9 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>

SVN-Revision: 40915
2014-06-02 12:43:22 +00:00
Gabor Juhos
d2812cb036 kernel: update 3.10 to 3.10.36
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40467
2014-04-12 11:59:07 +00:00
Jonas Gorski
dba8a58b46 brcm63xx: hack around jffs2 corruption with SMP
mempy_fromio seems to be randomly failing when the destination is
unaligned; work around it by forcing the name to be aligned in memory.

Should fix jffs2 and SMP for now, but needs to be some additional
looking into as it does not fix the source.

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

SVN-Revision: 40396
2014-04-06 22:03:42 +00:00
Jonas Gorski
663083d930 brcm63xx: sync mips counters during bringup of cpus
Fixes gettimeofday returning different values depending on which cpu
it is called.

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

SVN-Revision: 40387
2014-04-05 18:32:34 +00:00
Jonas Gorski
b519908e84 brcm63xx: update development kernel to linux 3.14
Now that 3.13 will be EOL soon, switch to 3.14.

Known issues:
 * 74x164 is not available because upstream dropped non-DT support
 * jffs2 breaks with SMP

Unknown issues:
 * probably plenty

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

SVN-Revision: 40380
2014-04-04 10:17:08 +00:00
Gabor Juhos
627baa28d3 kernel: update 3.10 to 3.10.34
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40291
2014-03-27 09:28:33 +00:00
Jonas Gorski
0d120f42da brcm63xx: add preliminary support for 3.13
Add support for 3.13 as a development kernel. Mostly untested, only net
booted. If flashed may brick your router or kill your cat.

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

SVN-Revision: 39746
2014-02-24 15:54:12 +00:00
Gabor Juhos
b5fdd769f0 brcm63xx: update LINUX_VERSION to 3.10.32
Missed from the previous comit.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39708
2014-02-23 11:07:58 +00:00
Gabor Juhos
f677b1bc7e kernel: update 3.10 to 3.10.32
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39707
2014-02-23 10:59:40 +00:00
Jonas Gorski
b8ed6534ca brcm63xx: fix RG100A/DB120 usb port number
Set usbh ports to 2 to fix #15007.

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

SVN-Revision: 39681
2014-02-22 11:16:52 +00:00
Jonas Gorski
4a2f87bce0 brcm63xx: fix number of usb ports for HW556 variants
Don't only fix up the fallback board, but also all three variants.

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

SVN-Revision: 39680
2014-02-22 11:16:50 +00:00
Jonas Gorski
ece12908a8 brcm63xx: add initial support for BCM963268BU_P300 reference board
Only netboot tested, so no images or now.
GbE ports are only working in FE mode, and leds do not work.

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

SVN-Revision: 39679
2014-02-22 11:16:48 +00:00
Jonas Gorski
f6c4b1eb29 brcm63xx: add VW6339GU support
Completely untested except for booting from network; wan port
only works in 10/HD, lan1 only in 100/FD.

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

SVN-Revision: 39678
2014-02-22 11:16:46 +00:00
Jonas Gorski
60edb75e47 brcm63xx: fix number of switch ports for BCM63168/63268
BCM63168 has 6 ports (3 FE PHY, 1 GE PHY, two RGMII) and BCM63268
has two additional RGMII ports, making it 8.
Fix this by checking the chip variant and applying an appropriate
limit.

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

SVN-Revision: 39677
2014-02-22 11:16:44 +00:00
Jonas Gorski
edbfb81b56 brcm63xx: F@ST2504n board support (image, base-files)
Signed-off-by: Max Staudt <openwrt.max@enpas.org>
Patchwork: http://patchwork.openwrt.org/patch/4730/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39676
2014-02-22 11:16:42 +00:00
Jonas Gorski
84dc1f1209 brcm63xx: F@ST2504n board support
Signed-off-by: Max Staudt <openwrt.max@enpas.org>
Patchwork: http://patchwork.openwrt.org/patch/4729/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39675
2014-02-22 11:16:40 +00:00
Jonas Gorski
ce655b93cd brcm63xx: add support for Asmax AR 1004g router
Support for Asmax AR 1004g router

Signed-off-by: Adrian Feliks <mexit@o2.pl>
Patchwork: http://patchwork.openwrt.org/patch/4464/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39674
2014-02-22 11:16:38 +00:00
Jonas Gorski
fa26229e8b brcm63xx: Add profile and build image for Sagemcom F@ST2704V2 ADSL router
This adds profile and build image for Sagemcom F@st2704, using b43
driver.
For WiFi to work properly BCMA fallback SPROM support patch must
be applied (http://git.io/z1Ki8A).

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4212/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39673
2014-02-22 11:16:35 +00:00
Jonas Gorski
fe37b14fca brcm63xx: Add userspace support for Sagemcom F@ST2704V2 ADSL router
This adds userspace support for Sagemcom F@st 2704 router.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4215/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39672
2014-02-22 11:16:33 +00:00
Jonas Gorski
f92b2a956b brcm63xx: Add kernel support for Sagemcom F@ST2704V2 ADSL router
This adds kernel support support for Sagemcom F@st 2704 wireless ADSL
router.
It's a BCM6328-based 802.11n wireless router with USB port and ADSL2+
modem equipped with 64 MiB RAM and 8 MiB flash.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4266/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 39671
2014-02-22 11:16:30 +00:00
Florian Fainelli
87f8092629 brcm63xx: fix warning in Redboot code
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 39404
2014-01-27 04:34:39 +00:00
Gabor Juhos
a2543d72d8 kernel: update 3.10 to 3.10.28
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39399
2014-01-26 11:30:34 +00:00
Florian Fainelli
a747611fe3 brcm63xx: enable support for BCM63268
Support for the BCM63268 is usable, enable it by default.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 39364
2014-01-21 18:50:26 +00:00
Florian Fainelli
eaa3e9ec6e brcm63xx: add support for BCM963269BHR board
Add kernel support for the BCM963269BHR board, USB and Ethernet switch,
LEDs and buttons are working.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 39363
2014-01-21 18:50:11 +00:00
Florian Fainelli
fed4b02a68 brcm63xx: improve BCM63268 support
Allow using the HSSPI controller since it works just fine, as well as
the integrated switch core, since that one works too.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 39362
2014-01-21 18:49:50 +00:00