From patchwork Sat Oct 19 17:38:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hoffmann X-Patchwork-Id: 1999521 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XW87B6SxXz1xwR for ; Sun, 20 Oct 2024 04:43:18 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=B6F4GAhrfVpi1M4C1v4XkrZGJhu41SRQ4MzSsIEuWjA=; b=mRNiJHh4qQ9NZ6 +zlqlU1gpHuPymgnOXYS+Xtz+dARjdbLJkFSlaZBzr2wWN3DknKt4Pxj/ZPfDp3FcubgKYgdLXJfu kScrVxzWaroA0MZzvpJ9sdDG5yRUGbe0VEZ5Ln6dmfkkBSqgxW9NiGagq8EcPhX1PzAM8f6u6xh6H X0PufWN68O+AnUdbaN5q4e2+sLnSzWZpVydbPzIKl+n9B07DH/81NpryMN6XP5+iAQFhs4Kv/hEOY suinxTHTJ7y70e9wt5PG/PABnL1B4s4S0FyrDantw1Qu7Rr1dzTTq9fz9mujNj5L47jYpGpwKmnMY 6buF1SKyZo3aVvpM+oJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2DSX-00000003hmH-2088; Sat, 19 Oct 2024 17:41:49 +0000 Received: from srv4.3e8.eu ([193.25.101.238]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2DSU-00000003hlw-1D8S for openwrt-devel@lists.openwrt.org; Sat, 19 Oct 2024 17:41:47 +0000 Received: from localhost.localdomain (p200300c6cf3eb7a015fa183947c91018.dip0.t-ipconnect.de [IPv6:2003:c6:cf3e:b7a0:15fa:1839:47c9:1018]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by srv4.3e8.eu (Postfix) with ESMTPSA id 27E4D4087A; Sat, 19 Oct 2024 19:41:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=3e8.eu; s=mail20211217; t=1729359676; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rA4dQ6XLtn7T4GwerTTXyicFq5MNgANwqXisO/rOxtc=; b=ELfogeJsAvrkP4SlnEk7zYyYk1vge88VAGcUvmmI22t6biRpQ1cyku1Y6UPpXArL4CMEne 9byJQN4JDBTFZiLz2zkg7xK3YK42EcIbxgu0HIR4W8MSO/jQHC05xPCCYsms/xKo+4ON6I 66z2eUVpoyDrDrQsYeXppcuNBPuMVIOqaiIO0ZhPCd+zl+6QpYsa/RHG2+ciQMZDPYT7ys 8vUma8m8jvjoyWP0LCvDoTzWMY1opGjA6DgKseih/FHpHOnAxVCjNVMmVHKoFWL18/Tp6A vMcdID3JAKtPKd+4lm6347sr3AUgv2AZt4t7MiiwWH9KtPgeDx/4zi6gQM9Wyw== From: Jan Hoffmann To: openwrt-devel@lists.openwrt.org Cc: Jan Hoffmann Subject: [PATCH 1/3] ltq-adsl: align config more closely to VDSL variants Date: Sat, 19 Oct 2024 19:38:22 +0200 Message-ID: <20241019174041.1281093-2-jan@3e8.eu> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241019174041.1281093-1-jan@3e8.eu> References: <20241019174041.1281093-1-jan@3e8.eu> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_104146_495174_CD166222 X-CRM114-Status: UNSURE ( 9.20 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This is a preparation for adding support for dsl_cpe_pipe.sh with a similar set of commands compared to the VDSL variant. The configuration is simplified by using the "--enable-model" option. Other options are chosen to match the VDSL variant, while also making sure that previously enabled options stay like that. However [...] Content analysis details: (-2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [193.25.101.238 listed in sa-accredit.habeas.com] 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [193.25.101.238 listed in sa-trusted.bondedsender.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [193.25.101.238 listed in bl.score.senderscore.com] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This is a preparation for adding support for dsl_cpe_pipe.sh with a similar set of commands compared to the VDSL variant. The configuration is simplified by using the "--enable-model" option. Other options are chosen to match the VDSL variant, while also making sure that previously enabled options stay like that. However, ReTx options stay disabled, because of incompatibility with the ubus code. Signed-off-by: Jan Hoffmann --- package/kernel/lantiq/ltq-adsl/Makefile | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/package/kernel/lantiq/ltq-adsl/Makefile b/package/kernel/lantiq/ltq-adsl/Makefile index ac9667493386..992fc09305ff 100644 --- a/package/kernel/lantiq/ltq-adsl/Makefile +++ b/package/kernel/lantiq/ltq-adsl/Makefile @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=ltq-adsl PKG_VERSION:=3.24.4.4 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=drv_dsl_cpe_api_danube-$(PKG_VERSION).tar.gz PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/ltq-dsl-$(BUILD_VARIANT)/drv_dsl_cpe_api-$(PKG_VERSION) PKG_SOURCE_URL:=@OPENWRT @@ -53,20 +53,13 @@ CONFIGURE_ARGS += --enable-kernel-include="$(LINUX_DIR)/include" \ --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-model=full \ + --disable-dsl-pm-retx-counters \ + --disable-dsl-pm-retx-thresholds \ + --disable-adsl-mib-support \ + --disable-adsl-trace \ --disable-dsl-delt-static \ --disable-adsl-led \ - --enable-dsl-ceoc \ - --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 \ --enable-linux-26 \ --enable-kernelbuild="$(LINUX_DIR)" \ ARCH=$(LINUX_KARCH) From patchwork Sat Oct 19 17:38:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hoffmann X-Patchwork-Id: 1999524 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XW87B3Nfrz1xwL for ; Sun, 20 Oct 2024 04:43:16 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=m7JWkKWtwMx7LLrrazIAAHRJ5moo8I6xfWx/M41G2rQ=; b=k/yATJJIK0NF46 bVDMguNGrAj5+l+xjCeioNH4BVLDHVOuUQLu4sw7Fg3cKl96L7RLbLVETRbRO/ObTiCCkOivjGJyn +AT+TFZpYc1hsQ7/3TcW54Kyuzwtqotd/51W87haTSJ6zDXgTj3NnJD7Gfw8KJSGLO/hIJtyVk8OZ 9ICMhy4NJ39tZwzjV1lKLhAkzI0XukU3hkuOZvXq0jJiGDN13iVRdiXauPoBU1gmXS1m921OFJ9WB oxeXnx027G7jJ22PbSDOMSfKAH1ggpLJ/6yXbl1Qii7VRcF4vC92C8t555VvyTkv+Q3cUP7hgS/ZD DPjkz54K00tvVztBmNqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2DSn-00000003hpI-18Zn; Sat, 19 Oct 2024 17:42:05 +0000 Received: from srv4.3e8.eu ([193.25.101.238]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2DSk-00000003ho5-0d4Q for openwrt-devel@lists.openwrt.org; Sat, 19 Oct 2024 17:42:03 +0000 Received: from localhost.localdomain (p200300c6cf3eb7a015fa183947c91018.dip0.t-ipconnect.de [IPv6:2003:c6:cf3e:b7a0:15fa:1839:47c9:1018]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by srv4.3e8.eu (Postfix) with ESMTPSA id 30EB340B0B; Sat, 19 Oct 2024 19:41:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=3e8.eu; s=mail20211217; t=1729359677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C59Nle7QTAPsQMcjESuj/VFoNI8tnUtemYiIMeedgNA=; b=Lufc+gmgD6ITGh2zwT/+pRLIcK7ANKSNudNEqeo6Sem/JpMFbIhkgdLi+E1w/25Plo3V42 8r1yAZdhvOGD0DIe+Vf6KqSFFvZdX0P+7M9C6HpkhKe4y3/L3NvwMNfX1Wkr6EvvQSaqUN X+pVa4cRqwj/lTVziWWh9OG2OMs7060a5WA/WMORNz4WjEGNDvsG06yYb/cJGT+Hc/78mW hfvhLbn3gn7LBQhfIWH9ZmwPXx6B+fjY5Me1hFI5P2OsbfIgHJZiXtPdfFh5rT8hjJJ4jP 8FZYqXz7WkG2zihZ/4X+K+w+tH0ck8i2yDE2vg4o6grVvGPrWTWwXkSpC/Uttg== From: Jan Hoffmann To: openwrt-devel@lists.openwrt.org Cc: Jan Hoffmann Subject: [PATCH 3/3] ltq-adsl-app: add dsl_cpe_pipe.sh script Date: Sat, 19 Oct 2024 19:38:24 +0200 Message-ID: <20241019174041.1281093-4-jan@3e8.eu> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241019174041.1281093-1-jan@3e8.eu> References: <20241019174041.1281093-1-jan@3e8.eu> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_104202_353566_CFC423B3 X-CRM114-Status: UNSURE ( 9.65 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This allows to obtain detailed diagnostic information about the DSL connection from the modem. The script is copied from the corresponding packages for VDSL modems. Signed-off-by: Jan Hoffmann --- package/network/config/ltq-adsl-app/Makefile | 3 ++- .../config/ltq-adsl-app/files/dsl_cpe_pipe.sh | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+ [...] Content analysis details: (-2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [193.25.101.238 listed in sa-accredit.habeas.com] 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [193.25.101.238 listed in sa-trusted.bondedsender.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [193.25.101.238 listed in bl.score.senderscore.com] X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This allows to obtain detailed diagnostic information about the DSL connection from the modem. The script is copied from the corresponding packages for VDSL modems. Signed-off-by: Jan Hoffmann --- package/network/config/ltq-adsl-app/Makefile | 3 ++- .../config/ltq-adsl-app/files/dsl_cpe_pipe.sh | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 package/network/config/ltq-adsl-app/files/dsl_cpe_pipe.sh diff --git a/package/network/config/ltq-adsl-app/Makefile b/package/network/config/ltq-adsl-app/Makefile index 94e2e9d0d77d..b96a3f71e5bd 100644 --- a/package/network/config/ltq-adsl-app/Makefile +++ b/package/network/config/ltq-adsl-app/Makefile @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=dsl_cpe_control_danube PKG_VERSION:=3.24.4.4 -PKG_RELEASE:=12 +PKG_RELEASE:=13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_BUILD_DIR:=$(BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION) PKG_SOURCE_URL:=@OPENWRT @@ -77,6 +77,7 @@ define Package/ltq-adsl-app/install $(INSTALL_BIN) ./files/10_atm.sh $(1)/etc/hotplug.d/dsl $(INSTALL_BIN) ./files/10_ptm.sh $(1)/etc/hotplug.d/dsl $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin + $(INSTALL_BIN) ./files/dsl_cpe_pipe.sh $(1)/sbin/ endef $(eval $(call BuildPackage,ltq-adsl-app)) diff --git a/package/network/config/ltq-adsl-app/files/dsl_cpe_pipe.sh b/package/network/config/ltq-adsl-app/files/dsl_cpe_pipe.sh new file mode 100755 index 000000000000..9002b7b3164a --- /dev/null +++ b/package/network/config/ltq-adsl-app/files/dsl_cpe_pipe.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +pipe_no=0 + +# use specified pipe no +case "$1" in +0|1|2) +pipe_no=$1; shift; ;; +esac + + +#echo "Call dsl_pipe with $*" +lock /var/lock/dsl_pipe +echo $* > /tmp/pipe/dsl_cpe${pipe_no}_cmd +result=$(cat /tmp/pipe/dsl_cpe${pipe_no}_ack) +lock -u /var/lock/dsl_pipe + +echo "$result"