aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/lib
Commit message (Collapse)AuthorAgeFilesLines
* treewide: move nand_do_upgrade call to platform_do_upgradeMathias Kresin2018-02-161-3/+4
| | | | | | | | | | Calling nand_do_upgrade() from platform_pre_upgrade() was deprecated with 30f61a34b4cf ("base-files: always use staged sysupgrade"). Update the platform upgrade code to use platform_do_upgrade() for NAND images as well. Signed-off-by: Mathias Kresin <dev@kresin.me>
* treewide: remove obsolete sysupgrade watchdog killMathias Kresin2018-02-161-9/+0
| | | | | | | | | The watchdog kill command was meant for busybox watchdog. Busybox watchdog was replaced by the procd watchdog mid 2013 with commit df7ce9301a25 ("busybox: disable the watchdog utility by default"), which makes the kill command obsolete since quite some time. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: remove DSL_ChipSetHWVersion from status informationMartin Schiller2017-12-231-4/+2
| | | | | | | | | | | | The value DSL_ChipSetHWVersion is fetched from the dsl frontend via the dsl_control service, but not really provided by the dsl frontend firmware and for now always "UNKNOWN". The lantiq support told us that this information wouldn't be provided in the foreseeable future, so let's remove this useless "UNKNOWN" information. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
* lantiq: use the generic board detectMathias Kresin2017-12-161-19/+0
| | | | | | | Drop the target specific detection function in favour of the generic one provided by base-files. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: remove the former board name from device tree modelMathias Kresin2017-12-161-1/+1
| | | | | | | Remove the former used board name from the device model property and use the model name as it is. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: use the compatible string as board nameMathias Kresin2017-12-162-2/+2
| | | | | | | | | | | Use the first compatible string as board name in userspace. Add the new board name as well as the former used board name to the image metadata to keep compatibilty with already deployed installations. Don't add the former used boardname for boards which exists only in master or evaluation boards. Signed-off-by: Mathias Kresin <dev@kresin.me>
* base-files: unify get_dt_led helper functionChristian Lamparter2017-12-141-12/+0
| | | | | | | | | | | | | | Lantiq and IPQ806X (which includes IPQ40XX) both define the same custom function {ipq806x|lantiq}_get_dt_led. This patch moves the function into the base-file package at lib/functions/leds.sh to make it more accessible for other targets as well. Cc: Mathias Kresin <dev@kresin.me> Cc: John Crispin <john@phrozen.org> Cc: Hannu Nyman <hannu.nyman@iki.fi> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* 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>
* lantiq: modified lantiq_dsl.sh status output of latencyHelge Mader2017-06-021-1/+1
| | | | Signed-off-by: Helge Mader <ma@dev.tdt.de>
* lantiq: fix lantiq_dsl.sh status and lucistat outputHelge Mader2017-06-021-12/+12
| | | | Signed-off-by: Helge Mader <ma@dev.tdt.de>
* treewide: fix device tree path in scriptsMathias Kresin2017-05-261-1/+1
| | | | | | | | The device tree is at /proc/device-tree/ without a base subdir. Fixes: da472e5b30f6 ("treewide: access device tree from userspace via /proc/") Signed-off-by: Mathias Kresin <dev@kresin.me>
* treewide: access device tree from userspace via /proc/Mathias Kresin2017-05-261-1/+1
| | | | | | | Access the device tree via /proc/device-tree/ is the documented way to access the properties. Everything else might not work in future. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: remove lantiq_board_model, it is unusedFelix Fietkau2017-03-221-9/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: remove lantiq_board_name, use the generic function insteadFelix Fietkau2017-03-222-12/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: move lantiq_board_detect() to 03_preinit_board.shFelix Fietkau2017-03-222-10/+10
| | | | | | It is only used there Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: introduce lantiq_is_vdsl_systemMathias Kresin2017-02-181-0/+4
| | | | | | | Move the code to check if the current system is a system with vdsl support to a dedicate function to make it reusable. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: remove device specific sysupgrade image checksFelix Fietkau2016-11-201-22/+1
| | | | | | Replaced by image metadata Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: append metadata to imagesFelix Fietkau2016-11-191-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: fix lantiq-dsl output spamMathias Kresin2016-10-111-1/+1
| | | | | | | | | | | | | | | | | In case the adsl/vdsl service is disabled intentional, the output is cluttered with the following message multiple times if the status of the dsl line is queried: killall: vdsl_cpe_control: no process killed If the dsl line status is queried by LuCI, the logfile is spammed with the message. Fix the issue by using killall in quite mode. In quite mode killall still returns a non-zero value if the to be killed process can not be found so that existing logic based on the return value still works. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: use aliases device tree node for ledsMathias Kresin2016-10-051-1/+1
| | | | | | The chosen node is clearly the wrong place for aliases. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: cleanup led handling functionsMathias Kresin2016-10-051-9/+5
| | | | | | | | | Use a more generic name for the lantiq_get_dt_led_chosen function. Drop the lantiq_is_dt_led_chosen function. The lantiq_get_dt_led function can be used to achieve the same. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix network in failsafeMathias Kresin2016-06-221-9/+1
| | | | | | | | | | So far the network in failsafe is setup only for one board. Use the eth0 interface as lan interface for all boards for now. If a board has its lan interface(s) on another eth, a special handling based on the board name can be added. Signed-off-by: Mathias Kresin <dev@kresin.me>
* 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