aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/base-files/lib/preinit
Commit message (Collapse)AuthorAgeFilesLines
* brcm63xx: use compatible instead of manually setting board nameAdrian Schmutzler2020-02-081-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the translation of device model name into a board name in lib/brcm63xx.sh. The latter has been actually totally useless as we have the compatible which can be used instead of the board name (and actually is at other targets like ath79 or ramips). The change requires updating the base-files with the new identifiers based on compatible. With all "board names" replaced by the compatible, we do not need the old scripts to detect board name anymore and can also remove the obsolete treatment of "legacy" devices without DTS, as there are none of those left. So, this patch removes the target-specific board detection and uses the standard procedure in package/base-files/files/lib/preinit/02_sysinfo This also fixes several cases where the board name was not set or evaluated correctly: - asmax,ar1004g in 02_network - telsey,magic in 09_fix_crc/02_network - brcm,bcm96338gw in 02_network - brcm,bcm96338w in 02_network - brcm,bcm96348gw in 02_network - dynalink,rta1025w in 02_network - huawei,echolife-hg520v in 02_network - several cases in diag.sh The following orphaned identifiers are removed from board.d files: - dmv-s0 Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* treewide: populate boardname and model earlierMathias Kresin2017-07-151-0/+0
| | | | | | | | | | | | | For targets using the generic board detection and board specific settings in diag.sh, the board name is still unset at the time the set_state() provided by diag.sh is called by 10_indicate_preinit. Change the execution order to ensure the boardname is populated before required the first time. Do the target specific board detection as early as possible, directly followed by the generic one to allow a seamless switch to the generic function for populating /tmp/sysinfo/. Signed-off-by: Mathias Kresin <dev@kresin.me>
* brcm63xx: switch to board based failsafe networkingJonas Gorski2016-08-131-37/+0
| | | | Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: remove obsolote preinit scripts and fix preinit iface scriptÁlvaro Fernández Rojas2016-06-034-84/+23
| | | | | | | | | | These scripts were causing ip issues in the latest version of LEDE: https://gist.github.com/Noltari/6d20d8bcbe236caf516c0a73f5477d00 Fixes preinit iface script by making eth0 the default ifname and only changing it to eth1 for the devices that specifically need it. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* brcm63xx: add support for Huawei HG622Jonas Gorski2016-01-181-0/+1
| | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 48305
* brcm63xx: add Comtrend VR-3026e supportJonas Gorski2015-08-301-0/+1
| | | | | | | | | | Add support for Comtrend VR-3026e v1. The device is almost identical to the Comtrend VR-3025un. Signed-off-by: Martin Tesar <tesarmar@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46752
* brcm63xx: fix failsafe lan and status led for DSL-274xB rev. F1Jonas Gorski2015-05-211-0/+1
| | | | | | | | | Add it to the appropriate places so the power led properly works and ethernet is properly configured for failsafe. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45709
* brcm63xx: call brcm63xx_detect explicitlyJonas Gorski2015-03-161-0/+2
| | | | | | | | | | 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
* brcm63xx: move preinit ifname detection to the preinit scriptJonas Gorski2015-03-161-1/+40
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44839
* base-files: input/button drivers get loaded before preinit by procdJohn Crispin2013-06-211-15/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37000
* remove superfluous calls to /lib/brcm63xx.shFlorian Fainelli2013-02-052-6/+0
| | | | | | | | | | The first preinit script 03_do_brcm63xx.sh does the right job of exporting variables for the other subsequent preinit scripts to use them. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 35504
* remove references to the old switch driverFlorian Fainelli2013-02-051-15/+0
| | | | | | Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 35503
* bcm63xx: switch to b53 and swconfigJonas Gorski2013-01-232-23/+1
| | | | | | | | | | | | | | | | | Switch to using the B53 switch driver where appropriate. Use a non-tagged default config where it isn't confirmed to be working. Remove the switch configuration in preinit as the switch will now be configured by the driver to use port isolation to prevent leakage between lan and wan. While at it, also provide a switch config for Neufbox 6. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 35307
* bcm63xx: fix entering failsafe through buttonJonas Gorski2012-10-081-0/+1
| | | | | | | gpio_keys_polled needs to be loaded in preinit for buttons to work for entering failsafe. SVN-Revision: 33653
* bcm63xx: Don't hardcode the switch ethernet interface in preinit.Daniel Dickinson2010-11-282-10/+10
| | | | | | | | | | Currently eth1 is hardcoded as the expected interface switches in diagmode. This patch replaces the eth1 with the ifname, and also directly tests if the interface specified by ifname has a switch attached. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> SVN-Revision: 24186
* brcm63xx: Fixed vlan packet leakage in preinit for known devices with a ↵Daniel Dickinson2010-05-304-0/+97
| | | | | | switch on eth1 (currently only 96348GW - Tecom 6x00) SVN-Revision: 21629
* brcm63xx: Added preinit reset button module loading for devices known to ↵Daniel Dickinson2010-05-301-0/+16
| | | | | | support it and for which /lib/brcm63xx.sh has the definitions (currently only 96348GW - Tecom 6x00) SVN-Revision: 21628
* brcm63xx: Added preinit board-type detection (currently only 96348GW - Tecom ↵Daniel Dickinson2010-05-301-0/+7
6x00) SVN-Revision: 21626