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 9959AC433F5 for ; Mon, 15 Nov 2021 12:15:54 +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 8DA8363251 for ; Mon, 15 Nov 2021 12:15:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8DA8363251 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de 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 6A2B2836F8; Mon, 15 Nov 2021 13:15:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1636978551; bh=wB8dZFRA6vymX0OgcS5ZnKBPr69aFkfPckVls144n54=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=xSuc3t4O9hM4RQTC6HXqNK39/ZjEu/SegRYk6pNXBZzCPGDp+6A5J50BgYqgnDGRN ynTN5SXpKykOPZQ9EH05JntN9ohY0pLz/59U3i+jap63k0+gwSIAY2iNCF36YpYUPW DkfcYq+fVAwNVFWkUW+nFRvd6JvQIFztB1eyIWoPPw6E57bDbbUE9SbtF0tcFMAoNT aCVrMd4DZtofe3ppTxVl5RlwN7DirN1A7mFS4yI1QQ7pU26DRQpr3vilWl3XM2aPWp +nfN1ajexopMdOjckVJAYkA0vmdtXgu3zP/g3w3HiriqoyivMaZIzzG9aiyyjcWgsj aCan6xrf+Jw9g== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 15ADD836E2; Mon, 15 Nov 2021 13:15:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1636978549; bh=wB8dZFRA6vymX0OgcS5ZnKBPr69aFkfPckVls144n54=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=0AyCAPeKmlybeu/+7eEs2ptfjOm1Evz7kbyPf02VG5olSJz6muYUd1tAFOAqNOutU jQcb9zQy8j1lQhMW0usvG+80xXsqiDa6GQ9GRyq4xEXlOmN4g6XDHJi1bSBsqxQAXq PuN/YYlsCEUcvEwtsYQVDm54ZIicoRGyiIi8ycbDDMfaOiFkUBtjBpeZvjiMSUTerB 1tm/5PKgbqqmlm1Dz9sSQyr6aVlm/084fIw/zoepEneTg3o8Ktyz1DU5T5RdbSLxWQ s+9ZOVZ3wjPCp/G94vAnXEf6T/J9OVRcMdSqn9yyAroNc302OZfbNdmLteI4aAuM7l I7qmWQKFs+gmg== Subject: Re: [PATCH RFC] cmd: fix net list command To: Michael Walle , u-boot@lists.denx.de Cc: Grygorii Strashko , Michal Simek , fried.dev@gmail.com, joe.hershberger@ni.com, sjg@chromium.org References: <20211115121152.3470910-1-michael@walle.cc> From: Marek Vasut Message-ID: <32aff992-c84b-7b71-b412-7594c2a7d20e@denx.de> Date: Mon, 15 Nov 2021 13:15:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211115121152.3470910-1-michael@walle.cc> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 On 11/15/21 1:11 PM, Michael Walle wrote: > Don't get the MAC address by the environment, but by the platform data > of the udevice. This will fix "net list" if the MAC address is randomly > generated and won't change behavior when linux is booted. > > Signed-off-by: Michael Walle > --- > > Hi, > > this is a proposal to fix the "net list" in a way that linux still can have > its own fallback mechanism of MAC addresses even if the bootloader has > CONFIG_NET_RANDOM_ETHADDR enabled. > > The intention is to replace [1], where if I understood correctly, the > intention was to fix "net list". > > [1] https://lore.kernel.org/u-boot/3996ba2ee4e6ac136c0802dc0df4ef9b1750157c.1635506067.git.michal.simek@xilinx.com/ Does that mean U-Boot and Linux will possibly each have different MAC address on the same device ? That is clearly wrong and not how it is supposed to work, U-Boot passes its ethaddr/ethNaddr settings to Linux so that they would have the same MAC address on the same device.