From patchwork Fri Oct 6 14:05:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: enki X-Patchwork-Id: 1844516 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (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 4S29F44Phyz1yqD for ; Sat, 7 Oct 2023 01:05:42 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 62C278174C; Fri, 6 Oct 2023 14:05:40 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 62C278174C X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bhxSoIiDIbEf; Fri, 6 Oct 2023 14:05:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id A0AE181765; Fri, 6 Oct 2023 14:05:38 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A0AE181765 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id ED41E1BF34F for ; Fri, 6 Oct 2023 14:05:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id C36988174C for ; Fri, 6 Oct 2023 14:05:36 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org C36988174C X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8mTCtiCE40dS for ; Fri, 6 Oct 2023 14:05:35 +0000 (UTC) Received: from sender4-of-o51.zoho.com (sender4-of-o51.zoho.com [136.143.188.51]) by smtp1.osuosl.org (Postfix) with ESMTPS id 20B9E81570 for ; Fri, 6 Oct 2023 14:05:34 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 20B9E81570 Delivered-To: enki@fsck.pl ARC-Seal: i=1; a=rsa-sha256; t=1696601130; cv=none; d=zohomail.com; s=zohoarc; b=iDvz6gvTrMjj1UULAtsAiIetNiZQcCKF6e4mX5Vs12WG4JXZRu4Omk1ZdiFFOnUWuvbkaw+1WOgWJ00chFQpQn3DRjHn+ygiDg8xwiZJn2C7k2myCCAXpqyB9N30lZbr6r+I8E3RyZ3mmnfhjM1eqE/by44zAOxZvpnXvZmq9Y8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1696601130; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=DM9ixt3C6Efe5A95/IxxgCNTXLPzdkQGRRi4AEfClLc=; b=RxUYlgxE5jE3gqttYtf7SRERPIJA2GD584+augJY3qPqdHzwJSMPyMcNHknai31cZr3vW0y1iH8YC6ALbOCZ2sXeUYfQPeJBHOVEzlmm5OgZ64+gjxxuyh1k+6zyxASzMg4zVZRccYBZt5OZVnjSKX4dTzDeWQsspVjpoXELUiA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=fsck.pl; spf=pass smtp.mailfrom=enki@fsck.pl; dmarc=pass header.from= Received: from newton.shill.gq (193.93.205.86 [193.93.205.86]) by mx.zohomail.com with SMTPS id 1696601127223253.36128356706377; Fri, 6 Oct 2023 07:05:27 -0700 (PDT) From: Maciej Grela To: buildroot@buildroot.org Message-ID: <20231006140511.3840643-1-enki@fsck.pl> Date: Fri, 6 Oct 2023 16:05:08 +0200 X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231004131256.2113233-2-enki@fsck.pl> References: <20231004131256.2113233-2-enki@fsck.pl> MIME-Version: 1.0 X-ZohoMailClient: External X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1696601130; s=zoho; d=fsck.pl; i=enki@fsck.pl; h=From:From:To:To:Cc:Cc:Message-ID:Subject:Subject:Date:Date:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=DM9ixt3C6Efe5A95/IxxgCNTXLPzdkQGRRi4AEfClLc=; b=YGIVKTC27Yl8j47U1s2K1FsHi0ibAo9sb/M7yK6tNf6WSTw7F6QUU2cM7h7PplM2 lq4X1/5USNk8GIQuVf9DV44xUUr0V5GPSX32gkFpADZ2IFgw+NtAKUP6DrmGvXSq7oq dM9RVese1r998UINdatYzlqpUGDT2t12/ZtW5mu4= X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=fsck.pl header.i=enki@fsck.pl header.a=rsa-sha256 header.s=zoho header.b=YGIVKTC2 Subject: [Buildroot] [PATCH v3 0/3] Support for D-Link DNS-320L X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maciej Grela Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Hello, This is a short patchset to support a D-Link DNS-320L NAS. There are two device-specific packages which are required for proper system management on the device as well as a out-of-tree DTS. I am going to send it upstream when I learn more about device trees. I have added myself as a maintainer to the DEVELOPERS file for all relevant parts. The packages have been checked with no issues detected: ➜ buildroot git:(master) ✗ utils/docker-run make check-package 389271 lines processed 0 warnings generated An example boot log is presented below: https://gist.github.com/enkiusz/482fab68ef7a630c8cfaad6f13f63919 The packages build successfully using test-pkg: ➜ buildroot git:(master) ✗ cat iniparser.config BR2_PACKAGE_INIPARSER=y ➜ buildroot git:(master) ✗ utils/test-pkg --config iniparser.config -p iniparser bootlin-armv5-uclibc [1/6]: OK bootlin-armv7-glibc [2/6]: OK bootlin-armv7m-uclibc [3/6]: OK bootlin-x86-64-musl [4/6]: OK br-arm-full-static [5/6]: OK sourcery-arm [6/6]: OK 6 builds, 0 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed ➜ buildroot git:(master) ✗ ➜ buildroot git:(master) ✗ cat dns320l-daemon.config BR2_PACKAGE_DNS320L_DAEMON=y ➜ buildroot git:(master) ✗ utils/test-pkg --config dns320l-daemon.config -p dns320l-daemon bootlin-armv5-uclibc [1/6]: OK bootlin-armv7-glibc [2/6]: OK bootlin-armv7m-uclibc [3/6]: SKIPPED bootlin-x86-64-musl [4/6]: OK br-arm-full-static [5/6]: OK sourcery-arm [6/6]: OK 6 builds, 1 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed ➜ buildroot git:(master) ✗ --- changes v1 -> v2: - don't build iniparser on the host - properly handle building static and shared iniparser in all combos - disable dns320l-daemon on platforms without fork() - DNS-320L is manufactured by D-Link not Netgear, change commit summaries to reflect that changes v2 -> v3: - use SIGTERM to restart dns320l-daemon not to trigger a device poweroff when the daemon is restarted - add a special 'poweroff' verb to the dns320l-daemon init script to trigger device poweroff - patch the default dns320l-daemon configuration to listen on localhost only Maciej Grela (3): package/iniparser: new package package/dns320l-daemon: new package board/d-link/dns320l: new board DEVELOPERS | 6 + board/d-link/dns320l/dts/kirkwood-dns320l.dts | 218 ++++++++++++++++++ configs/dns320l_defconfig | 16 ++ package/Config.in | 2 + .../0001-listen-on-localhost.patch | 21 ++ package/dns320l-daemon/Config.in | 8 + package/dns320l-daemon/S50dns320l-daemon | 42 ++++ package/dns320l-daemon/dns320l-daemon.hash | 1 + package/dns320l-daemon/dns320l-daemon.mk | 32 +++ package/iniparser/Config.in | 6 + package/iniparser/iniparser.hash | 2 + package/iniparser/iniparser.mk | 56 +++++ 12 files changed, 410 insertions(+) create mode 100644 board/d-link/dns320l/dts/kirkwood-dns320l.dts create mode 100644 configs/dns320l_defconfig create mode 100644 package/dns320l-daemon/0001-listen-on-localhost.patch create mode 100644 package/dns320l-daemon/Config.in create mode 100644 package/dns320l-daemon/S50dns320l-daemon create mode 100644 package/dns320l-daemon/dns320l-daemon.hash create mode 100644 package/dns320l-daemon/dns320l-daemon.mk create mode 100644 package/iniparser/Config.in create mode 100644 package/iniparser/iniparser.hash create mode 100644 package/iniparser/iniparser.mk