summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/lib
Commit message (Collapse)AuthorAgeFilesLines
* lantiq: add AVM image mageic to sysupgrade scriptJohn Crispin2016-06-131-0/+2
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* lantiq-dsl: add missing blank in dsl outputJohn Crispin2016-04-091-1/+1
| | | | | | | | blank inserted before ACTATP Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> SVN-Revision: 49137
* lantiq-dsl: bugfix latency values swapped for lucistatJohn Crispin2016-04-091-2/+2
| | | | | | | | swapped wrong latency output Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> SVN-Revision: 49136
* lantiq-dsl: bugfix db negative sign after commaJohn Crispin2016-04-091-1/+1
| | | | | | | | If db is negative minus sign was shown after comma Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> SVN-Revision: 49135
* lantiq: print profile name in dsl lucistatFelix Fietkau2016-03-071-0/+1
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48949
* use "-gt" instead of ">" with [ in /lib/functions/lantiq_dsl.shJohn Crispin2016-02-121-2/+2
| | | | | | | | | Avoids inadvertent file creation when executing `/etc/init.d/dsl_control status`. Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net> SVN-Revision: 48700
* lantiq: convert vendorid into human readable formJohn Crispin2016-01-011-0/+67
| | | | | | Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 48046
* lantiq: add the current profile to the stats outputJohn Crispin2016-01-011-0/+30
| | | | | | Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 48045
* lantiq: use default leds defined in DTSJohn Crispin2016-01-011-0/+16
| | | | | | | | | | | | | Remove all now double defined leds from the led board file. Use pppoe as default for all broadband connections, since it's the default in OpenWrt now. Rename the the wifi leds to make sure, the not applicable default values get overwritten. Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 48038
* lantiq: add VDSL2 vectoring status informationFelix Fietkau2015-12-051-1/+12
| | | | | | Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 47785
* lantiq: Synchronize access to the DSL command pipeJohn Crispin2015-10-191-0/+2
| | | | | | | | | | Whenever two processes were executing different commands at the same time then one of the commands sometimes got the response of the other command. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> SVN-Revision: 47213
* lantiq: bugfix wrong non pre-emptive crc errors outputJohn Crispin2015-10-111-1/+1
| | | | | | | | | This patch fixes a wrong non pre-emptive crc errors output of dsl_control.sh status. Signed-off-by: Luca Debernardi <luca.debernardi@gmail.com> SVN-Revision: 47172
* lantiq: bugfix luci lantiq_dsl statusJohn Crispin2015-10-071-25/+25
| | | | | | | | Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> Signed-off-by: Helge Mader <hmader@tdt.de> Reported-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47152
* lantiq: bugfix uninitialized variablesJohn Crispin2015-10-051-0/+2
| | | | | | | Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> Reported-by: Sylwester Petela <sscapi@gmail.com> SVN-Revision: 47127
* lantiq: update list on NAND devices in platform_pre_upgradeRafał Miłecki2015-09-151-1/+1
| | | | | | | | Meanwhile BTHOMEHUBV5A board was added. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 46941
* lantiq: add platform_pre_upgrade for sysupgradeJohn Crispin2015-09-151-0/+10
| | | | | | | | | | | | | | | | | | | | As explained in recent sysupgrade/nand.sh commits, current NAND sysupgrade is a bit misleading because of nand_do_platform_check behavior. It leaves a special mark in /tmp/sysupgrade-nand-path triggering some diffent code path in nand_upgrade_stage1. The plan is to have the check function only check the image and nothing else. Then platform code (platform_pre_upgrade) should trigger NAND specific upgrade path. This is what this patch implements. Please note that because of current nand_upgrade_stage1 implementation this patch doesn't change any behaior yet. It only prepares lantiq target for changing nand_do_platform_check (it will be possible after preparing all other targets as well). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 46939
* lantiq: get more status information from xDSLJohn Crispin2015-09-141-12/+400
| | | | | | | | | Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> Signed-off-by: Helge Mader <hmader@tdt.de> Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Tested-by: Andre Heider <a.heider@gmail.com> SVN-Revision: 46917
* lantiq: Add support for the BT Home Hub 5AJohn Crispin2015-07-071-1/+1
| | | | | | | | | | | | | | | u-boot support depends on the next "upstream" version ([0]) from Daniel Schwierzeck. Since the installation process is quite complicated a "how to" was added to the wiki: [1] [0] https://github.com/danielschwierzeck/u-boot-lantiq/tree/openwrt/v2014.01-next [1] http://wiki.openwrt.org/toh/bt/homehub_v5a V2: Use the correct PCI interrupt (fixes 2.4GHz wifi) Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> SVN-Revision: 46223
* lantiq: td-w8970: fix failsafe modeJohn Crispin2015-02-091-0/+18
| | | | | | | | Fix failsafe mode for TD-W8970, register interface for preinit. Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> SVN-Revision: 44353
* Add profile and userspace for P2812HNUF1/3, switch from UBI_GLUEBI to UBI_BLOCKJohn Crispin2015-01-171-1/+1
| | | | | | | | Add profile and userspace for P2812HNUF1/3, switch from UBI_GLUEBI to UBI_BLOCK Signed-off-by: Sylwester Petela <sscapi@gmail.com> SVN-Revision: 43987
* lantiq: BT Home Hub 3A - userspaceJohn Crispin2015-01-081-1/+1
| | | | | | | | BT Home Hub 3A - userspace Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com> SVN-Revision: 43879
* lantiq_dsl.sh: properly detect vdsl_cpe_control and add missing quotesJohn Crispin2014-10-291-3/+7
| | | | | | | | | | lantiq_dsl.sh didn't work with VDSL chipsets for now, fix that by detecting whether vdsl_cpe_control or dsl_cpe_control should be used. Also add missing quotes around shell string comparision. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43101
* lantiq: detect board in preinit stateJohn Crispin2014-07-142-2/+9
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41638
* lantiq: generate /tmp/sysinfo/lantiq_board_name if missingJohn Crispin2014-07-101-0/+2
| | | | | | | | | | | Run lantiq_board_detect from lantiq_board_name and lantiq_board_model. This was the one thing missing from r41474 for sysupgrade board detection to work properly. Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com> SVN-Revision: 41567
* lantiq: enable SysupgradeNAND for BTHOMEHUBV2BJohn Crispin2014-07-101-0/+10
| | | | | | | | | | | | | | | | | Enables SysupgradeNAND for BTHOMEHUBV2B. Depends on the following patches: http://patchwork.openwrt.org/patch/5817/ http://patchwork.openwrt.org/patch/5848/ http://patchwork.openwrt.org/patch/5851/ Many thanks everyone for your help the last couple of days. Ben Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com> SVN-Revision: 41566
* lantiq: add support for /tmp/sysinfoJohn Crispin2014-07-021-3/+23
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41472
* target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGCJohn Crispin2014-06-021-1/+1
| | | | | | | | | | | | | | | | | | | 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
* lantiq: cleanup the dsl control scriptsJohn Crispin2014-04-051-0/+244
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 40381
* lantiq: add v3.10 patchesJohn Crispin2013-09-171-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38031
* lantiq: add tplink header id to sysupgrade and fix a commentJohn Crispin2013-08-061-1/+3
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37719
* lantiq: DGN3500 supportJohn Crispin2013-05-301-19/+0
| | | | | | | | | This requires all the preceding patches and finishes support for the DGN3500, also removing an obsolete file. Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> SVN-Revision: 36781
* lantiq: fix board detection helpersJohn Crispin2013-04-251-2/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36444
* cleanup basefilesJohn Crispin2012-12-153-18/+10
| | | | SVN-Revision: 34698
* dgn3500 support with eeprom loading from sysfsJohn Crispin2012-05-271-0/+19
| | | | | | | | | | | | | | | | | WIFI eeprom: As discussed, it is impossible for nand and spi flash platforms to have the eeprom data available from mtd. I suggested to load the eeprom from user-space. I've looked into regular firmware loading but this is only possible when using modules. I've created a sysfs entry that allows reading and writing the eeprom data to the platform data. After loading the eeprom data I rely on pci-hotplug support to disable the bogus pci device and rescan the bus (with fixups and all). Because hotplug is not available, an init script is created that performs the copy from mtd to platform data. I think it is best to eventually move the sysfs functions to dev_wifi_athxk.c file, this would get rid of the external to the ath9k platform data. SPI flash: It seems that the spi-xway driver is not really working. It causes my kernel to crash in all sorts of ways. I added to bitbang SPI to be able to the calibration data mention above. I've kept the original mtd partitioning that Netgear uses. Buttons/LED: Both buttons are working properly. Two leds are not enabled: The red internet led is connected to the pci_gnt1 pin... I can't disable it because then DMA stops working. The green wifi led is connected to an unknown atheros gpio. Signed-off-by: Pieter Voorthuijsen <p.voorthuijsen at gmail.com> SVN-Revision: 31910
* add annex selection support to ltq_dsl packageJohn Crispin2012-02-141-0/+4
| | | | SVN-Revision: 30518
* lantiq: add runtime generation of /etc/config/networkJohn Crispin2011-11-151-0/+4
| | | | SVN-Revision: 29161
* lantiq: add /lib/lantiq.sh and make hotplug handlers use itJohn Crispin2011-11-121-0/+9
| | | | SVN-Revision: 29003
* adds new lantiq kernel. once the codebase is fully tested and know to be ↵John Crispin2010-12-121-0/+25
working on all the devices previously supported by ifxmips, we will drop ifxmips support. SVN-Revision: 24526