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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B5FA2C433EF for ; Wed, 1 Dec 2021 18:02:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8BBED8309F; Wed, 1 Dec 2021 19:02:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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; unprotected) header.d=chromium.org header.i=@chromium.org header.b="eKIbBDCb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E39A8830AF; Wed, 1 Dec 2021 19:02:33 +0100 (CET) Received: from mail-ua1-x92f.google.com (mail-ua1-x92f.google.com [IPv6:2607:f8b0:4864:20::92f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3F666830B3 for ; Wed, 1 Dec 2021 19:02:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ua1-x92f.google.com with SMTP id y5so50784321ual.7 for ; Wed, 01 Dec 2021 10:02:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DABBcXjzstgqmKQji6cBgq/0r17i0kdQISvPSprr8dM=; b=eKIbBDCbCAy8fnwoi/kD1AB/7DhIlUYbwUJvS0Ll8Hx3xW0hAVvkxD9A/S5qUYuaaK ev+P2iPfjQpyKAInlwPKlGU0OiXij4YkncStjRn+Qck0XxFTMw5Q23ed+54UGGmMnl48 yED+zcAB13JQ7gm6vUsFc1hsog60VcpcR7G/U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DABBcXjzstgqmKQji6cBgq/0r17i0kdQISvPSprr8dM=; b=4MkZPZ6aFHMbI/fB8GIMpH+K/guju3Up76PPYc5HRzZ/fmpX2pciUH2W1qEI6AHg37 8Vp1ZZ5pbx3cMZXfaAiSSL+jRkB/wL0LIQvrm1xUPjOsqk57Vry4Kr53WJUaxK+8O54s hMmP/crTYGXt7NUCSLf1fNPIouPDCh7kD5szMysQf279iht9aqNj2z0gPrIvzC1iIbN0 egt7AjaE76FAkK3n3XTu3Sif+gEa0HuB2jzMTpOorgpUfqeOqSnWbxhDJNuQrEd5Oe8P OAEk4/8ihuaaWd+32sui4yvVBnKifrOb/pr0gBFpiWjBzf10KJ0vRO+ID/A4+hhfOuL6 DljA== X-Gm-Message-State: AOAM531H8rQ14JDKeP50A2Wbmor13eov8oVLWKXubbpL+pKTGVuUL3rl hIN4R4neZyKEMtSCNNlL8f43Ttw0FJwCa+jbcO8fRQ== X-Google-Smtp-Source: ABdhPJwxcSyL3oj7e+4ULCF9aIhQDj0JcU4MV3sp9Z3LaFPxOPiZRcubcL0/yqdMiumzgDJrdSTc5w8e7G/Z/oo4qLA= X-Received: by 2002:a05:6102:c4e:: with SMTP id y14mr10249733vss.61.1638381744726; Wed, 01 Dec 2021 10:02:24 -0800 (PST) MIME-Version: 1.0 References: <20211125071302.3644-1-sughosh.ganu@linaro.org> <20211125071302.3644-5-sughosh.ganu@linaro.org> In-Reply-To: <20211125071302.3644-5-sughosh.ganu@linaro.org> From: Simon Glass Date: Wed, 1 Dec 2021 11:02:13 -0700 Message-ID: Subject: Re: [RESEND RFC PATCH 04/10] FWU: Add metadata access functions for GPT partitioned block devices To: Sughosh Ganu Cc: u-boot@lists.denx.de, Patrick Delaunay , Patrice Chotard , Heinrich Schuchardt , Alexander Graf , Bin Meng , Peng Fan , AKASHI Takahiro , Ilias Apalodimas , Jose Marinho , Grant Likely , Jason Liu Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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 Hi Sughosh, On Thu, 25 Nov 2021 at 00:13, Sughosh Ganu wrote: > > In the FWU Multi Bank Update feature, the information about the > updatable images is stored as part of the metadata, on a separate > partition. Add functions for reading from and writing to the metadata > when the updatable images and the metadata are stored on a block > device which is formated with GPT based partition scheme. > > Signed-off-by: Sughosh Ganu > --- > lib/fwu_updates/fwu_metadata_gpt_blk.c | 716 +++++++++++++++++++++++++ > 1 file changed, 716 insertions(+) > create mode 100644 lib/fwu_updates/fwu_metadata_gpt_blk.c Can we pick a better name than metadata? It is just so vague...everything is metadata. Regards, Simon