From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98BB4C4338F for ; Fri, 13 Aug 2021 01:43:49 +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 8A85F610CC for ; Fri, 13 Aug 2021 01:43:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8A85F610CC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nic.cz 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 C304B82DE8; Fri, 13 Aug 2021 03:43:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nic.cz 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=nic.cz header.i=@nic.cz header.b="RlGVrg6U"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7AD9882DE4; Fri, 13 Aug 2021 03:43:44 +0200 (CEST) Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2279582DE4 for ; Fri, 13 Aug 2021 03:43:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nic.cz Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.behun@nic.cz Received: from thinkpad (unknown [172.20.6.87]) by mail.nic.cz (Postfix) with ESMTPSA id 304601411AB; Fri, 13 Aug 2021 03:43:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1628819019; bh=m+117Mke2ruPdxXFXBChN+YfSGThlZILK9UVguZ3U1s=; h=Date:From:To; b=RlGVrg6UE/FPRAfbGIaNM7PSvO1w8XNegp/vEsXrhVrUnsrQrNamoYlEzT3+5haTG yvkSYJl4em+3nTzMN5yhquSQ7fArR8ifPO9MxsaGWST5QWVfHPizYkMWpol6RL8qdC yCTjssna7HDsyrb3zS8VEutJvsaaBShC4L92vAAU= Date: Fri, 13 Aug 2021 03:43:38 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Luka Kovacic Cc: u-boot@lists.denx.de, robert.marko@sartura.hr, luka.perkov@sartura.hr, pali@kernel.org, sr@denx.de, sjg@chromium.org, patrick.delaunay@foss.st.com, xypron.glpk@gmx.de Subject: Re: [PATCH v3 1/3] arm: mvebu: mvebu_armada-37xx: Implement the mac command (Marvell hw_info) Message-ID: <20210813034338.4676a571@thinkpad> In-Reply-To: <20210812233938.11633-2-luka.kovacic@sartura.hr> References: <20210812233938.11633-1-luka.kovacic@sartura.hr> <20210812233938.11633-2-luka.kovacic@sartura.hr> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 Fri, 13 Aug 2021 01:39:36 +0200 Luka Kovacic wrote: > The mac command is implemented to enable parsing Marvell hw_info formatted > environments. This format is often used on Marvell Armada A37XX based > devices to store parameters like the board serial number, factory > MAC addresses and some other information. > These parameters are usually written to the flash in the factory. > > Currently the mac command supports reading/writing parameters and dumping > the current hw_info parameters. > EEPROM config pattern and checksum aren't supported. > > This functionality has been tested on the GST ESPRESSOBin-Ultra board > successfully, both reading the stock U-Boot parameters in mainline U-Boot > and reading the parameters written by this command in the stock U-Boot. > > Usage example: > => mac read > => saveenv I think the mac/fuse commands should be killed and nvmem API should be implemented as is in Linux, with a corresponding nvmem command. Marek