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 5D942C433EF for ; Wed, 1 Dec 2021 06:42:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 86B558305E; Wed, 1 Dec 2021 07:42:29 +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="PuD8zpac"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E19E38306A; Wed, 1 Dec 2021 07:42:27 +0100 (CET) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 EA72E82FA0 for ; Wed, 1 Dec 2021 07:42:23 +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-io1-xd29.google.com with SMTP id p65so5411692iof.3 for ; Tue, 30 Nov 2021 22:42:23 -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=/3VRbj/pY2PJcj+mqM+2GXeuL5srM7V4zWGnOTu6yMs=; b=PuD8zpacC4MJFvR+CJiDd3BpewZOmQZwv8zcvrz7i7/p/nlvDTWnKZxvfNoaU7tNde Na0XCpR6wu78yFEzs8mQFS+SvNpaUm8yiO0pqrlFLmI/36/AKcDFkdsG760NKHLp0ZrW 4s0Y0akgNDq31axoyg6x9lFrqzusHfAlzvY+x4hUfvKERWVZBMO4OGRjc2o644q/PePv 0zulgC7QfFPsw36+VMcEw8IeNDSkFuLRKt2ACPPN+EWMBHlGM/Az0KdKYIsT/Sicof5d U2GIlkHX0HhPU0fg8psy6n2o3ODxFv0NS35zDJOln/QyL6fFmhm08Tcc8ivf4WfDGrqM lE2Q== 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=/3VRbj/pY2PJcj+mqM+2GXeuL5srM7V4zWGnOTu6yMs=; b=CeubuAl8+e6UdjMYPwNmhN5ezHQJt2y9ewY0z/TKOrljFAfKWwov/MqxFWoiJssoYo E3Aayrc9DxJc5bnW9uviWqUM9H18r9sehRcJomkqtkPUN5Dh4XXSOol0OKXlTKoWcySP Xdg6FMwnbi100P73JVhI5BIhMT/K8PAzwsNcETuKD6mEZ6L8LrtYtAVcF+wp2OPqYKsE PIf0Iss+3WoiDasHtXRztzptf37HaRGmskxXm9k6ROWwD3XlUVGZnaQXMA/vjaxx4MfR bl/xFiEMfYJ+Uac1GnkF0ghZYszcc2/uX55K9Dah54zW+IJU/MRna3yXoPR2hdlqscMy czBA== X-Gm-Message-State: AOAM530UcPsAQd9313UWDliRlGulXE0W519vbV9OKP7nnapoCPbSdK5a C8KzrzLnYhGRYjjfNZRBZ9z06Fg4n5hvLY4oSVc7Tw== X-Google-Smtp-Source: ABdhPJz2T8jW+aWlIHNfqvnpbAadPMv8Gvenay447OGa2WnEk0e8yPMeIKyxfr3qur7mup7BicBlvAdA8keqPozu5Lg= X-Received: by 2002:a5e:d602:: with SMTP id w2mr6110312iom.121.1638340942359; Tue, 30 Nov 2021 22:42:22 -0800 (PST) MIME-Version: 1.0 References: <20211125071302.3644-1-sughosh.ganu@linaro.org> <20211125071302.3644-4-sughosh.ganu@linaro.org> In-Reply-To: From: Sughosh Ganu Date: Wed, 1 Dec 2021 12:12:11 +0530 Message-ID: Subject: Re: [RESEND RFC PATCH 03/10] FWU: Add metadata structure and functions for accessing metadata 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.37 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 Simon, On Wed, 1 Dec 2021 at 11:56, Simon Glass wrote: > Hi, > > 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, which is stored on > > a dedicated partition. Add the metadata structure, and functions to > > access the metadata. These are generic API's, and implementations can > > be added based on parameters like how the metadata partition is > > accessed and what type of storage device houses the metadata. > > > > Signed-off-by: Sughosh Ganu > > --- > > include/fwu_metadata.h | 125 +++++++++++++++ > > lib/fwu_updates/fwu_metadata.c | 275 +++++++++++++++++++++++++++++++++ > > 2 files changed, 400 insertions(+) > > create mode 100644 include/fwu_metadata.h > > create mode 100644 lib/fwu_updates/fwu_metadata.c > > What is this, please? Could you add a link to the docs in the commit > message and something in doc/ as well? > This is implementation of the FWU[1] specification from Arm. Some aspects of the DependableBoot[2] specification are also implemented. I had put pointers to the document in the cover letter[3]. I have not added any documentation yet, since this is a rfc. Will do so once the initial reviews are completed. Hope that is fine. -sughosh [1] - https://developer.arm.com/documentation/den0118/a [2] - https://staging-git.codelinaro.org/linaro/firmware-dual-banked-updates/test [3] - https://lists.denx.de/pipermail/u-boot/2021-November/468232.html > > Regards, > Simon >