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 928AEC433EF for ; Fri, 3 Dec 2021 05:43:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4188F80F6E; Fri, 3 Dec 2021 06:43:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="YIKkQNJ7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4132C80FD9; Fri, 3 Dec 2021 06:43:44 +0100 (CET) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (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 2B37980F56 for ; Fri, 3 Dec 2021 06:43:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sughosh.ganu@linaro.org Received: by mail-il1-x131.google.com with SMTP id r2so1657525ilb.10 for ; Thu, 02 Dec 2021 21:43:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=szZI7jm12pHL2XTqjjjVHqnB+XN220GhNoxB+4ju/c4=; b=YIKkQNJ73JDiTZAyfzFMk8A+DyqovscYAckW5pnm6h9lb+vAEzCNyOgvK3aDXRpVhL qAx9eQDj3BzfUiE8z/DmwqobW9FGoQrdeGPEqfHr/KisYY50T/Iwvt182/WJ6TfUkRUr +LuqcRcJzxelA49aagAN0XkMvsxvK4Bf2iGbi61oMOOoO2cPESaVULGsxCh+gzyxaByU qmnWroH1Fip8fLNPWdlgQsN8ao3MrIXQy2zg9PCSIaDUIdDtSHryKJXbXXJSDVcTiJXI bEKRHgBKAETR9dYclOKiqmZDBfCNvofGbvvFbWUa5pJmXunxiqlE8EYREuXm9i0f6kZu Jlyw== 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=szZI7jm12pHL2XTqjjjVHqnB+XN220GhNoxB+4ju/c4=; b=4P9POiJZHxqOkboH5v7MTUDPUN8jpUNB1fgT8Lir8UbTy8ErnTPKsIdO8G/9jK1wlC 0/geoipYH69GTJrKFPAPL/HYwMGm7hj1P0/OumU7fo6EVJqr1ZTNB37O99poxZO9wY2Q hLajt/iupfkPa0bds7cBlFbWa8qQe5K6s3osD4zqZAc69vXkZtez3P8Vox5xfjah8FP+ 58C+ggh0Tw1StkSgeEnPYRATWo+2K3xikRuF9Asi6kjQ3zT3ehpQ1kjaH4OrjCC8z04Z Q8f2prZDbzs46hIKQQjXf7GaNwb75izjQAfsquIS1H9GWsCESyFSSTP0lMb7AHZoDPaA f9cw== X-Gm-Message-State: AOAM530yBqR3z4gr8Aqh6eMWk3PLCxFIhWVoG+STs7vBN5heMiliOued VtfwsNozTiqFWNq29fIR1URhsZBOtBdS4+NijDMXyw== X-Google-Smtp-Source: ABdhPJz7lqtOF1nG26QSMhXyJzKAIYtkXPHoetzjEpZQxFtwSNcjBtZ8oA4ejAhlnUircxXEXxDkVKXFlJTuv0A0HII= X-Received: by 2002:a05:6e02:1ba8:: with SMTP id n8mr19323072ili.254.1638510218721; Thu, 02 Dec 2021 21:43:38 -0800 (PST) MIME-Version: 1.0 References: <20211125071302.3644-1-sughosh.ganu@linaro.org> <20211125071302.3644-5-sughosh.ganu@linaro.org> In-Reply-To: From: Sughosh Ganu Date: Fri, 3 Dec 2021 11:13:27 +0530 Message-ID: Subject: Re: [RESEND RFC PATCH 04/10] FWU: Add metadata access functions for GPT partitioned block devices To: Simon Glass 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-Content-Filtered-By: Mailman/MimeDel 2.1.38 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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 Simon, On Thu, 2 Dec 2021 at 19:04, Simon Glass wrote: > Hi Sughosh, > > On Thu, 2 Dec 2021 at 01:05, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Wed, 1 Dec 2021 at 23:32, Simon Glass wrote: > >> > >> 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. > > > > > > The specification calls it metadata. And the functions in this file are > for accessing the metadata on a GPT partitioned block device. Do you have > any alternate name for this? > > Well lots of things call their metadata "metadata". That doesn't mean > it is a good name for the code base. Which specification? Do you have > a link? > I am referring to the FWU specification[1]. Please refer to section 4 in the document. -sughosh [1] - https://developer.arm.com/documentation/den0118/a