From patchwork Tue Nov 14 09:25:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 743761 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2075063wrw; Tue, 14 Nov 2023 01:26:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEy+GOWp9TKEEGZoaxr73EpxdQph8y7WG1xhxXFR0+t0pvN0L3T2am6O+GAOURSg9Zj3OUI X-Received: by 2002:a17:907:3608:b0:9de:32bb:faab with SMTP id bk8-20020a170907360800b009de32bbfaabmr8329792ejc.32.1699953999348; Tue, 14 Nov 2023 01:26:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699953999; cv=none; d=google.com; s=arc-20160816; b=r0PQb+BQHCzV7+8G3XjJI3EVAvgnHflGhdojcXfvo/uG6jtQr+bak93NJrmMrG2gv0 XLFCsZAt0S2OuztEj3BDGyCXbDBCk/8AT8G/hHfgunlPWal848NQDxSw2wCwFKxtG5NH sCvXG+z/lpS3nluvTVXQt+qIpDIO/tsVd6KoRm8T26t5uUkLDWaDvtWOozVhuZPenDBL FjxL8r7JTBAtk3fV5z0AIGC2PrdbkDBC2+MHxspmSb+/Dq1lP0juqi24zjclHDX1B0PS W82GH565AZMIT+BvLC4/1D2Tl6UPfT21E+xSvedLVCr1HHwPNi8HziDcodztsN5GI3kB M74g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=U+ZH3F+k+xghG6wIoUX7OP2z4eyS8oScizml+z/15XU=; fh=WO6lTKtGPINN9KZpMhJhgJRkFWf7EvZ6aTaftTHD+5o=; b=m77BzfglJKeJX35LYq4RRcuc2s6VLPEWox89IBuBqdAhk8Dq0G+wUR3SRG3SZaCuYp P4fnk9rdxXhIpco8rsMMnbEIICnHAvCZZ1FS3rn5p1cVy3cyim4ePb3grVZsXesTjU6I OuF3WeAPM0PG2LN124kQhf+m8rTvFdxIrOGJA3GIdHY7JRa5ZMUIoysaGnCy3CmSE9xD +R3XmJ1b/tbwIbQsM1bRrNj9rw4r9+6+DuNv1yqnJGm1vBUrbg4U7UHBQczuWUVPjzy3 gdGVv0zuI7STE7ReTAiG8DVabUeCw5+eWGuN37P4U0ULCA+gZ9ThwJnfIxpI5l209ucX JzrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MCGF3JnK; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ot14-20020a170906ccce00b009befe9106bcsi3986122ejb.117.2023.11.14.01.26.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 01:26:39 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MCGF3JnK; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA53B870BC; Tue, 14 Nov 2023 10:26:37 +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=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="MCGF3JnK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 85543871ED; Tue, 14 Nov 2023 10:26:36 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) (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 3855586FB2 for ; Tue, 14 Nov 2023 10:26:34 +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=masahisa.kojima@linaro.org Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1cc7077d34aso40546265ad.2 for ; Tue, 14 Nov 2023 01:26:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699953992; x=1700558792; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=U+ZH3F+k+xghG6wIoUX7OP2z4eyS8oScizml+z/15XU=; b=MCGF3JnKGYp1W1hdt2TPEmRJRVMi7GEBsZRzU+fDmaeCI0IQ8hC7ooj4YR2RENUQzp 9yPw1CPhYKPcut7b/OFkXORXLJ76x79o6DCIR7wc078lb41aa5um7Bzm2EjvzMTgw9Pp E8p2zjE27M8rWNtWU/SzDvHf+hnfz1NdfshtS0wSY/nn2eC8tc5iUbVCcZkFbmw4cHdS kVmPQdVzIiJbeED1HambNoVTMcJnqqly4EGFcrjkP6nvn5vk7t2fR+8CoT6SV6MXbztb TpP5dDjXw5gEoaPzLYZ4lXuzvRMvKRYRWBrMzalnVu+i214afDEtIwCmDwOSY8ixDazy QibA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699953992; x=1700558792; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U+ZH3F+k+xghG6wIoUX7OP2z4eyS8oScizml+z/15XU=; b=pCYwwZrUy9wJNmzhd/Q4FAFFcm4Ansie8SkjFpVepF0uB3tTQi24MAIQjkD+CAS/M1 KnyM3xkE78bFbvLrhOGUFCKzavveAYen0ETWljlT7g5tfM1SCcH2dGNNkwrdazoblQhj jqhNsDzi1B3LxhabsV5+0ERMuf7FBtNrOo/nwKhPe/HYsoMXOfJTf0fKmIg06EaM+U9k EcTfFWgaVNU8mF55zV//TKI/p890OECqaGQTIB4ck7X4T7P1N80B/rY0IaqmKh/itbo2 Qy8DgEEEZZOm9vmEba8EsX9+WqtMp7fyES9FTyBf9Q+EtcrY8IzlqiJ0mqBh3Vkj7UIz ycaw== X-Gm-Message-State: AOJu0YyGypmbG15LERRXpaFAFXD/PlwT+aftNcqLdYjCHcC1GAPPdY// NnnALkrb/hAuRUhTwggE5M7xVUAVeXdnPW1bCQs= X-Received: by 2002:a17:902:d4c6:b0:1cc:339e:c228 with SMTP id o6-20020a170902d4c600b001cc339ec228mr2102140plg.58.1699953991708; Tue, 14 Nov 2023 01:26:31 -0800 (PST) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id j18-20020a170902759200b001c0ce518e98sm5261199pll.224.2023.11.14.01.26.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 01:26:31 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Sughosh Ganu , Jassi Brar , Masahisa Kojima Subject: [PATCH 0/2] fix FMP versioning for FWU multi bank update Date: Tue, 14 Nov 2023 18:25:06 +0900 Message-Id: <20231114092508.3955838-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean The current FMP versioning does not work when CONFIG_FWU_MULTI_BANK_UPDATE is enabled. This series aims to support FMP versioning for FWU multi bank update. Masahisa Kojima (2): efi_loader: use original image_index for FMP versioning efi_loader: support FMP versioning for FWU multi bank update lib/efi_loader/efi_firmware.c | 65 ++++++++++++++++++++++++++--------- lib/fwu_updates/Kconfig | 1 + 2 files changed, 50 insertions(+), 16 deletions(-)