diff options
author | John Crispin <john@openwrt.org> | 2009-11-01 18:52:35 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2009-11-01 18:52:35 +0000 |
commit | 976d1a10243874c67f3cd7f5987c3a9a4136d9e7 (patch) | |
tree | 664a2ea026634c11dff4a2451dd2e0b309fd58df /package/ifxmips-dsl-control | |
parent | eff68fb14bf3b423ea5ae58306b95581d3a76a11 (diff) | |
download | mtk-20170518-976d1a10243874c67f3cd7f5987c3a9a4136d9e7.zip mtk-20170518-976d1a10243874c67f3cd7f5987c3a9a4136d9e7.tar.gz mtk-20170518-976d1a10243874c67f3cd7f5987c3a9a4136d9e7.tar.bz2 |
adds dsl support, thank you infineon/lantiq
SVN-Revision: 18259
Diffstat (limited to 'package/ifxmips-dsl-control')
-rw-r--r-- | package/ifxmips-dsl-control/Makefile | 84 | ||||
-rw-r--r-- | package/ifxmips-dsl-control/files/ifx_cpe_control_init.sh | 21 |
2 files changed, 105 insertions, 0 deletions
diff --git a/package/ifxmips-dsl-control/Makefile b/package/ifxmips-dsl-control/Makefile new file mode 100644 index 0000000..6905aea --- /dev/null +++ b/package/ifxmips-dsl-control/Makefile @@ -0,0 +1,84 @@ +# +# Copyright (C) 2009 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# ralph / blogic + +include $(TOPDIR)/rules.mk + +PKG_BASE_NAME:=dsl_cpe_control_danube +PKG_VERSION:=3.24.4.4 +PKG_SOURCE:=$(PKG_BASE_NAME)-$(PKG_VERSION).tar.gz +PKG_BUILD_DIR:=$(BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION) +PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/ +PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161 + +include $(INCLUDE_DIR)/package.mk + +define Package/ifxmips-dsl-control + SECTION:=application + CATEGORY:=Infineon + TITLE:=DSL CPE control application + URL:=http://www.infineon.com/ + MAINTAINER:=Infineon Technologies AG / Lantiq / blogic@openwrt.org + DEPENDS:=+kmod-ifxmips-dsl-api +libpthread +endef + +define Package/ifxmips-dsl-control/description + Infineon DSL CPE API for Amazon SE, Danube and Vinax. + This package contains the DSL CPE control application for Amazon SE & Danube. + + Supported Devices: + - Amazon SE + - Danube + + This package was kindly contributed to openwrt by Infineon/Lantiq +endef + +IFX_DSL_MAX_DEVICE=1 +IFX_DSL_LINES_PER_DEVICE=1 +IFX_DSL_CHANNELS_PER_LINE=1 +#CONFIG_IFX_CLI=y + +CONFIGURE_ARGS += \ + --with-max-device="$(IFX_DSL_MAX_DEVICE)" \ + --with-lines-per-device="$(IFX_DSL_LINES_PER_DEVICE)" \ + --with-channels-per-line="$(IFX_DSL_CHANNELS_PER_LINE)" \ + --enable-danube \ + --enable-driver-include="-I$(STAGING_DIR)/usr/include" \ + --enable-debug-prints \ + --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \ + --enable-cmv-scripts \ + --enable-debug-tool-interface \ + --enable-adsl-led \ + --enable-dsl-ceoc \ + --enable-script-notification \ + --enable-dsl-pm \ + --enable-dsl-pm-total \ + --enable-dsl-pm-history \ + --enable-dsl-pm-showtime \ + --enable-dsl-pm-channel-counters \ + --enable-dsl-pm-datapath-counters \ + --enable-dsl-pm-line-counters \ + --enable-dsl-pm-channel-thresholds \ + --enable-dsl-pm-datapath-thresholds \ + --enable-dsl-pm-line-thresholds \ + --enable-dsl-pm-optional-parameters + +ifeq ($(CONFIG_IFX_CLI),y) +CONFIGURE_ARGS += \ + --enable-cli-support \ + --enable-soap-support +endif + +define Package/ifxmips-dsl-control/install + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/ifx_cpe_control_init.sh $(1)/etc/init.d/ + + $(INSTALL_DIR) $(1)/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin +endef + +$(eval $(call BuildPackage,ifxmips-dsl-control)) diff --git a/package/ifxmips-dsl-control/files/ifx_cpe_control_init.sh b/package/ifxmips-dsl-control/files/ifx_cpe_control_init.sh new file mode 100644 index 0000000..9131693 --- /dev/null +++ b/package/ifxmips-dsl-control/files/ifx_cpe_control_init.sh @@ -0,0 +1,21 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2008 OpenWrt.org +START=99 + +start() { + + # start CPE dsl daemon in the background + /sbin/dsl_cpe_control -i -f /lib/firmware/ModemHWE.bin & + +# PS=`ps` +# echo $PS | grep -q dsl_cpe_control && { +# # workaround for nfs: allow write to pipes for non-root +# while [ ! -e /tmp/pipe/dsl_cpe1_ack ] ; do sleep 1; done +# chmod a+w /tmp/pipe/dsl_* +# } + echo $PS | grep -q dsl_cpe_control || { + echo "Start of dsl_cpe_control failed!!!" + false + } + +} |