[From nobody Thu Jun 25 05:55:38 2020
Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541])
 by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux))
 id 1irSSk-0002p0-24
 for openwrt-devel@lists.openwrt.org; Tue, 14 Jan 2020 20:06:58 +0000
Received: by mail-ed1-x541.google.com with SMTP id t17so13143569eds.6
 for &lt;openwrt-devel@lists.openwrt.org&gt;; Tue, 14 Jan 2020 12:06:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=t+NmfzZgZdNhbL0o8hdUJMgM4+2l7WhGXCSPYzom1ng=;
 b=K8497TseaON5GpBnyxodAp6pkIkxEb+jJaz6Zfiq5gPbwJ2Qu4SNgrh47RJ+jrEBH/
 QB/pZeQiw8VgQQ0/n7eLGbzi7nyquZsk1Xdi2PSDH28l2ItGQCj3KHrmeeUw4YBCfhqF
 d5BktC/F6u3/oJB6WcAXBUkzkO3zxvRupdwFxXuI5vR4jUfup2WMQWyMqmcuKHMoObnq
 IjXuw0+/iEfZJdXk1Qs2HNPiO7tzKo+PRIKZwwnbcxYiMB/jzsucK3/4JdVlaxU5sJf8
 Eru/b3xHa4QHq5o4LLmbdHo79ixqBBSDHo/NkfHLGcCW5IkxhzE8ERBXUSC6goRN0w6Z
 wLeA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=t+NmfzZgZdNhbL0o8hdUJMgM4+2l7WhGXCSPYzom1ng=;
 b=qneoHTitEiTPFyR5BD6FCQAr2cGNwNJHS1SUQk1WbN3roItr19QyvBPV0OCwzHqkhA
 IBOMogeLhTcP2NZvIqmDPYYoK6l11a0N9i08GHYdAmcXCXVtoKAiz2ah5pKVM5rV4xUs
 IBL7nRlDZJE+/8/uBp07dlakKMqQQWPCCGXjajAL52sNcM3RObmHcRp4ZpU2I5El2Zq4
 R3eC2WIuFBttMZVlyLG3eSJoDNTrivFrtsyhXukVFI+5SZNXU8beDKgfrcPVbEEU3Kq2
 2vm4Geqz5MOR/QLhFDpRxRhSFifmVrAANmCHhfFjDfq5CfiIVOxIK29Eg9V9aySS//w1
 GJOg==
X-Gm-Message-State: APjAAAXfMc//Zko9wpP3SakR3OgqVQAF68NnRgpEZe3Ox++e8RNwR8FS
 qXD1UnYVRyhiJwWRONNILdnu5sY1HylC9YbN9d0=
X-Google-Smtp-Source: APXvYqzU/S459htYspTX2j9VGyPEZHQWzQzm7UH8Z4fIn6ev28wjLr0LqNp6I3pfR1Yjb/B4WdSc6jqlhKMOHTzjJNE=
X-Received: by 2002:a17:906:604c:: with SMTP id
 p12mr24279298ejj.202.1579032411973; 
 Tue, 14 Jan 2020 12:06:51 -0800 (PST)
MIME-Version: 1.0
References: &lt;90038f66-81fc-6b34-1b85-b47aab83368a@aparcar.org&gt;
 &lt;CAFBinCByt2Jukn5ZgtrABF2OtqduT733LEvvZLqd97j60Vj9dQ@mail.gmail.com&gt;
 &lt;4f4382fd-ab37-cccb-5bca-b20ab13c1f96@aparcar.org&gt;
In-Reply-To: &lt;4f4382fd-ab37-cccb-5bca-b20ab13c1f96@aparcar.org&gt;
From: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Date: Tue, 14 Jan 2020 21:06:40 +0100
Message-ID: &lt;CAFBinCBLNZWy39N+CU7N0Ub=rkRZiQkULkd22SP7+WQDK+gB6A@mail.gmail.com&gt;
Subject: Re: [OpenWrt-Devel] [RFC] commit message in YAML format for new
 devices
To: Paul Spooren &lt;mail@aparcar.org&gt;
Cc: OpenWrt Development List &lt;openwrt-devel@lists.openwrt.org&gt;
Content-Type: text/plain; charset=&quot;UTF-8&quot;
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20200114_120654_127021_911D3AF9 
X-CRM114-Status: GOOD (  22.30  )
X-Spam-Score: -0.2 (/)
X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary:
 Content analysis details:   (-0.2 points)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2a00:1450:4864:20:0:0:0:541 listed in]
 [list.dnswl.org]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (martin.blumenstingl[at]googlemail.com)
 -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
 -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

Hi Paul,

On Mon, Jan 13, 2020 at 9:13 AM Paul Spooren &lt;mail@aparcar.org&gt; wrote:
&gt;
&gt; Hi,
&gt;
&gt; On 1/12/20 1:05 PM, Martin Blumenstingl wrote:
&gt; &gt; Hi Paul,
&gt; &gt;
&gt; &gt; On Sun, Jan 12, 2020 at 10:47 PM Paul Spooren &lt;mail@aparcar.org&gt; wrote:
&gt; &gt;&gt; Hi all,
&gt; &gt;&gt;
&gt; &gt;&gt; some time ago I created a (now outdated) device overview[0] based on
&gt; &gt;&gt; YAML meta data. This approach could simplify maintaining an device
&gt; &gt;&gt; overview and device specific pages[1].
&gt; &gt;&gt;
&gt; &gt;&gt; All commits adding new devices already include most relevant information
&gt; &gt;&gt; for creating the overview. However it would be convenient if developers
&gt; &gt;&gt; would format their commit messages in a generic format, therefore I'd
&gt; &gt;&gt; propose the following:
&gt; &gt;&gt;
&gt; &gt;&gt; Every commit message for newly added devices must contain a number of
&gt; &gt;&gt; hardware information and steps for an initial installation.
&gt; &gt;&gt; The hardware information should contain at least the following
&gt; &gt;&gt; information, maybe more:
&gt; &gt;&gt;
&gt; &gt;&gt; SoC, flash, ram, wifi, LEDs, buttons, USB, serial, vendor, model, device
&gt; &gt;&gt; tree ID, Ethernet ports
&gt; &gt; can we automate this somehow?
&gt; &gt; the device tree files already contain most of that information.
&gt;
&gt; If you have a tool to extract such data or ideas on how to create such,
&gt; that'd be great.
I don't have such a tool
my idea was that most of the data is already available in the .dts
files (or .dtb files, I haven't really thought about the
up-/downsides):
- SoC
- flash size
- RAM size
- (wifi can be detected on some devices where wifi is either part of
the SoC or the PCI(e) wifi chip is described in the .dts)
- buttons
- serial console (existence of such)
- model
- Ethernet ports
- USB controller(s)

this data can be parsed periodically to ensure that the TOH is
up-to-date, for example if a missing LED is added after the initial
submission of the device.
there are probably downsides when going this route, but I have not
thought these through yet (because I don't have time to implement a
tool which would do the parsing)

&gt; As an alternative I could also create a shell script that extracts data
&gt; on a running machine, but that might miss some details.
that would be another solution
the downside I see compared to .dts/.dtb parsing is that you need
access to the device to update the TOH. but I don't know whether this
is relevant for the use-case that we're discussing


Martin

]