Commit graph

112 commits

Author SHA1 Message Date
Jonas Gorski
0f08442ded brcm63xx: move DSL-275XB to DT
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45168
2015-03-30 20:21:15 +00:00
Jonas Gorski
f77b446051 brcm63xx: move bcm6318 reference boards to DT
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45167
2015-03-30 20:21:07 +00:00
Jonas Gorski
f644c1581a brcm63xx: move VG50 to DT
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45166
2015-03-30 20:21:01 +00:00
Jonas Gorski
f973580488 brcm63xx: move V2110 to DT
Also readd image generation which was accidentally dropped in r43364.

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

SVN-Revision: 45165
2015-03-30 20:20:49 +00:00
Jonas Gorski
1e07f8c7ff brcm63xx: fix bcm96328avng board name
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44994
2015-03-25 15:36:26 +00:00
Jonas Gorski
4dc169f9a2 brcm63xx: fix bt v2500v dts based detection
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44993
2015-03-25 15:36:15 +00:00
Jonas Gorski
10cdfd04e6 brcm63xx: move RTA770(B)W to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44992
2015-03-25 15:36:12 +00:00
Jonas Gorski
0e4c1ba284 brcm63xx: move MAGIC to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44991
2015-03-25 15:36:05 +00:00
Jonas Gorski
582dfc52f5 brcm63xx: move CPVA502+ to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44990
2015-03-25 15:35:57 +00:00
Jonas Gorski
46b4d4d1d5 brcm63xx: move dg834g v4 to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44989
2015-03-25 15:35:43 +00:00
Jonas Gorski
30a579c674 brcm63xx: move dsl-2640u to dts
Also build image again(?).

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

SVN-Revision: 44988
2015-03-25 15:35:37 +00:00
Jonas Gorski
16ea19053a brcm63xx: move bcm963268bu_p300 to dts
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44987
2015-03-25 15:35:24 +00:00
Jonas Gorski
2d3371cd0f brcm63xx: Add BT Home Hub 2A support.
Support for the BT HomeHub 2.0 Type A.

This router was manufactured by Thomson, and it's BCM6358 based.
The leds are controled by two chained HC594, all working ok. The BCM5325
switch has the RESET# pin wired to the GPIO15, but currently there is no
way to tell the b53 driver how to get this gpio number in brcm63xx,
therefore swconfig won't use it when performing a switch reset.

The patch was tested with several firmwares, and all except unsupported
stuff (i.e xDSL) works pretty well.

Tested-by: Tahir <tahir00ali@gmail.com>
Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>

SVN-Revision: 44985
2015-03-25 15:35:12 +00:00
Jonas Gorski
5d0e2d1b41 brcm63xx: call brcm63xx_detect explicitly
Now that we have converted all users of global variables to use
brcm63xx_board_name, we can savely convert the implicit call to detect
in brcm63xx.sh to a single, explicit call in preinit.

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

SVN-Revision: 44840
2015-03-16 11:53:14 +00:00
Jonas Gorski
020e5733f9 brcm63xx: move preinit ifname detection to the preinit script
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44839
2015-03-16 11:53:06 +00:00
Jonas Gorski
90da308e3b brcm63xx: remove obsolete brcm63xx_has_reset_button
r37000 made button kmods loaded from generic code, so we don't use
it anymore for deciding to load them.

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

SVN-Revision: 44838
2015-03-16 11:52:57 +00:00
Jonas Gorski
f0badcb769 brcm63xx: set status leds from within diag.sh
Instead of setting them up on invocation of brcm63xx_detect, set them
when calling diag.sh based.

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

SVN-Revision: 44837
2015-03-16 11:52:49 +00:00
Jonas Gorski
098377af25 brcm63xx: switch to board_name based configuration
Board IDs are not unique, so in preparation for depricating them, always
use board_name for any (default) configuration decisions.

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

SVN-Revision: 44836
2015-03-16 11:52:42 +00:00
Jonas Gorski
52ffc6faa7 brcm63xx: add missing board_ids to legacy_detect
These boards do not have a corresponding dts file yet.

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

SVN-Revision: 44835
2015-03-16 11:52:35 +00:00
Jonas Gorski
906c9ef952 brcm63xx: add device tree based board detection
Use the device tree model property for detecting the board instead
of board id from nvram if present.

Since we can now directly detect the DVA-G3810BN, we can remove the
extra check for it.

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

SVN-Revision: 44834
2015-03-16 11:52:26 +00:00
Jonas Gorski
844e92e188 brcm63xx: populate /tmp/sysinfo
Take full board name from devicetree, if present. Provide a method
for retrieving the board name.

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

SVN-Revision: 44833
2015-03-16 11:52:20 +00:00
Jonas Gorski
9c53e344c0 brcm63xx: base-files: rename board_name to board_id
Rename board_name to board_id to prepare for using board_name as a
proper name for the board.

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

SVN-Revision: 44832
2015-03-16 11:52:16 +00:00
Jonas Gorski
ca7f6d28c8 brcm63xx: Add DGND3700 v1 / DGND3800B support
This adds support for the Netgear DGND3700 v1 and DGND3800B.

DGND3700 v1 and DGND3800B are exactly the same router, only one difference,
the factory firmware. This patch produces two factory firmwares for each router.

The router includes an onboard NAND flash for extra storage. NAND is currently
not supported in bcm63xx, so no code added for this part. The NOR flash (32MB)
is enough for storing an openwrt firmware.

Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>
[jogo: Add back commit message from v1]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44831
2015-03-16 11:52:10 +00:00
Luka Perkov
81db848656 targets: base-files: diag.sh does not need to be executable
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44305
2015-02-07 19:58:58 +00:00
Luka Perkov
92e6e80080 targets: files in uci-defaults do not need to be executables
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44304
2015-02-07 19:58:52 +00:00
John Crispin
019ea725aa add "preinit_regular" diag.sh set_state argument
This new argument is used right after starting regular preinit (which
happens if failsafe wasn't triggered). The main purpose of "preinit"
argument is to indicate that failsafe can be triggered, however we were
missing a way to inform user that we don't wait for a trigger anymore.
With this change it's clear when failsafe mode can be triggered.

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

SVN-Revision: 43715
2014-12-15 10:37:00 +00:00
Jonas Gorski
1041e3be6e brcm63xx: uci-defaults: network: move DSL-274x1 F1 to right section
The cpu port is at 8, not 5.

Fixes #18406.

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

SVN-Revision: 43379
2014-11-25 19:07:02 +00:00
Jonas Gorski
29e4d82dbb brcm63xx: fix HG556a boards and remove fallback board
This changes board info to match the Wiki
http://wiki.openwrt.org/toh/huawei/hg556a, removes the no longer needed
fallback board and fixes HG556 Ralink eeprom extraction.

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

SVN-Revision: 42206
2014-08-18 21:50:29 +00:00
Jonas Gorski
930e3e7ca3 brcm63xx: add preliminary support for D-Link DSL-2751B E1
Mostly works except for USB led. Flashing not tested yet. Mostly
as an example for the sprom fixup code.

Fixup values taken from GPL tarball by comparing bcm43217_map.c
with the struct in sprom.c.

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

SVN-Revision: 41944
2014-08-01 21:56:46 +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
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
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
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
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
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
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
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
Felix Fietkau
9a9d97b749 bcm63xx: update ralink wlan firmware hotplug script for new eeprom size
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37337
2013-07-15 11:07:59 +00:00
Jonas Gorski
9a077f70de bcm63xx: fix DSL-274xB F1 default network config
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 37032
2013-06-24 20:35:54 +00:00
John Crispin
67f5f188b1 base-files: input/button drivers get loaded before preinit by procd
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37000
2013-06-21 16:53:47 +00:00