Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E0EAC433F5 for ; Mon, 15 Nov 2021 15:15:41 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E3FE861AA2 for ; Mon, 15 Nov 2021 15:15:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E3FE861AA2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 878FE8373B; Mon, 15 Nov 2021 16:15:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=walle.cc header.i=@walle.cc header.b="Q+OHSNsS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5F8ED83765; Mon, 15 Nov 2021 16:15:36 +0100 (CET) Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0959083762 for ; Mon, 15 Nov 2021 16:15:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id E59C622221; Mon, 15 Nov 2021 16:15:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1636989332; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wZovJQEHmVNUSkxSgW5FoBnCtTJ1oC3dcLQWM/sVOiA=; b=Q+OHSNsSr6pZtDQzYhjJ9Sc8JpAxPGOvuiT7vf8vEUyFQMAL/MMGG5EjasEKXiEwRLCAXd VB3ikuvqMYzDLy560f/9MzzaWq0JsS+S1rnmiqmh6k4LgoEgMzspXn5HQntASwYMYWoWoi nJZMTH2nEOIsuapPyh18a8WRtRiUaJw= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 15 Nov 2021 16:15:31 +0100 From: Michael Walle To: Tom Rini Cc: Wolfgang Denk , Marek Vasut , u-boot@lists.denx.de, Grygorii Strashko , Michal Simek , fried.dev@gmail.com, joe.hershberger@ni.com, sjg@chromium.org Subject: Re: [PATCH RFC] cmd: fix net list command In-Reply-To: <20211115151220.GM24579@bill-the-cat> References: <20211115121152.3470910-1-michael@walle.cc> <32aff992-c84b-7b71-b412-7594c2a7d20e@denx.de> <257391f0-9d69-62cc-2353-8f4fc0751d7d@denx.de> <1646331.1636986670@gemini.denx.de> <20211115151220.GM24579@bill-the-cat> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: michael@walle.cc X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Am 2021-11-15 16:12, schrieb Tom Rini: > On Mon, Nov 15, 2021 at 03:52:51PM +0100, Michael Walle wrote: >> Hi, >> >> Am 2021-11-15 15:31, schrieb Wolfgang Denk: >> > In message you wrote: >> > > >> > > And again you're masking the error and possible fixes by linux itself. >> > > Seems like this isn't an argument. >> > >> > Respecting the explicit will of the user (i. e using what he >> > configured in U-Boot and passed to the kernel) is not an error. it >> > is intended and documented behaviour. >> >> What is the will of the user in this case? It is the will of the >> developer to make the board more robust. That is, if there is >> for whatever reason no valid ethernet address found, then there >> will be one generated. That is the sole purpose of the config >> option in question (or maybe I used it completely wrong). So from >> a user perspective, this shouldn't even happen and I doubt he is >> even aware that there will be a random one. (I saw Tom's mail and >> I'm not talking about the USB adapters where this might be the >> normal case.) I might come from a different perspective, but >> users ususally don't look at the serial output. Instead they >> look at the kernel log. And there will be not the slightest >> error, because u-boot will happily fix the missing MAC address >> with a random one. > > So one thing I don't know is what's the situation on (I assume) the > kontron boards? I see both NXP reference platforms for layerscape and > imx8 enabling NET_RANDOM_ETHADDR but I don't know what the expectation > is for on-device MAC addresses, and I recall other threads talking > about how complex the layerscape physical layout can get. Thanks! Kontron boards are fine, well at least if I disable the random mac address config option, usually there is a serial console. board/buffalo/lsxl.c needs it definetly (and was actually the first user). -michael