From patchwork Mon May 29 14:02:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 686703 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp250129wru; Mon, 29 May 2023 07:02:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ55zFnVKY6e5GgCa7SuA4JRESH5GWHdtRVJj0SAp9g4SvZTTzILuFU3cQnKewufNlcnIREa X-Received: by 2002:a17:90b:806:b0:256:1fd3:b593 with SMTP id bk6-20020a17090b080600b002561fd3b593mr10492794pjb.38.1685368965608; Mon, 29 May 2023 07:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685368965; cv=none; d=google.com; s=arc-20160816; b=HWWusHDWmrbVMB7jeVUXFwO+dB6YVtL/QYDkLsW87LKcBLzZc+j1anKWvUPrPmuCkR AGA66mR/DAqjcsATLZ40eThbnFN0jzqymxM3zUG2WptULLXBfx+77a4hLpFqxDNygva8 DQi8WZ93g4TjJuNX25Z6zwZDS5q1Q6sAct+yBrCum833NulVhaUQePJj2onah5sQdF8U zfuvEYsqlJ0yAtzTqyvhzpWEn9mjUmucAW3Ym9/Ewv4PHNwDo6XG7tYoH3DtTZoeJD26 AWX8DDv7GJ6MGFqY8W0tJM/zuz+FPkY5cav418UGz9veNozvIYk8BC+Q/Pd1WhxkXmkR IYYQ== 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=lsRa66bMGPpujUwELJVBbkREJQy0RJHs1fDeKhN3Ys0=; b=NBO4f17CXDuQ8gfus81CjofJ7XNoFJkh/Cv+BYflzyD2xgyUZ89pZxcXp2YKgtPUen T2bh3drmYF8Nl8I6jmdAw1/MF6N00m8/l4nV6t0svC4dlapZlmnCm2ANaTKZB53fICDT cd7p/hzYn+7hk8YeRjLrG9ijyTxXGu5y18O/K4AI8nC6igh8tECvxLHhpLha57X67ZQK BDCRvm3z5RXIV7OTg2F9NdlhMrhKPLBYK7jfiJdJgqL4P/FN4KE9l6hSnvrzV2LJJ5fv ccUL2xCqPcqlBS7UEmhy4dE77f6jRQjAVfMJP3WzZkPvteYhTJ/JjBDv7tvt9skkuePV fMcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eL0v8SCU; 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 x186-20020a6386c3000000b0053f2803af48si9736672pgd.581.2023.05.29.07.02.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 07:02:45 -0700 (PDT) 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=eL0v8SCU; 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 559AC84791; Mon, 29 May 2023 16:02:39 +0200 (CEST) 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="eL0v8SCU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7D00585B31; Mon, 29 May 2023 16:02:37 +0200 (CEST) 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-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 762EE8215F for ; Mon, 29 May 2023 16:02:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rui.silva@linaro.org Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-30ae69ef78aso981685f8f.1 for ; Mon, 29 May 2023 07:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685368953; x=1687960953; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lsRa66bMGPpujUwELJVBbkREJQy0RJHs1fDeKhN3Ys0=; b=eL0v8SCU3Ed3TNkhrDpjFljtdvB5MTP7WBwOGe6p2+DjeyELjTWHl813BEShxvFanU LF44i+dHqyLplE5X+dqTKDEsLcK9IbOr29G2loAWIyg/NrYy50Ar3wRNynPijeSRRjbM mdVRpBrn83Ghf6dHX5d4MigbDt+KmMD+VIo5IOtl/niw2IyaDvacjGK8LsEjDmxdTb9F 1s4rt7czouQNhSqTC1x9R9IkuDlflajiJofdyM7HUjHN66nbmsHXB1ewAVIe4w297Dpg sN7LRpDMAhTESZFB5imT21T1BkLE3JdSjlthWRwe1BuGgDj/8qoYODmCJtHn729Yhvs7 jDxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685368953; x=1687960953; 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=lsRa66bMGPpujUwELJVBbkREJQy0RJHs1fDeKhN3Ys0=; b=lY309nCcJFu7aFX8/qszzsofja0luzl4B4mDMHoUfjc2zB69Nxb9626kQjMQnEjuYE yGSRuga2Dv0aTQK4s4OX89aCGK9GwmwrIGgNq1R6gNuEULBvdC+bQhJ7OxvEJhwwyKCJ jHwkEAEBmY2xDXQySyxKJJhLwVxvQFUg1NQhe3wdhryMQHyjFbz9/8QF2KHqGNR07KQq bjqzownU3XfbXus48LwLb7yGVtvhW1xR8J3NayZL4T42EV/hXgmKkFKXtJt0SRWXD4et 2S4rr2BLW3BZ2GHUH+x+6MWwjWzDpwavFDUCx9+K5k88poU5xZ6yGG3563rdO//or91z CcuA== X-Gm-Message-State: AC+VfDzcH25/xke5jcDxRgCZ8QY9B0p/6opBzkmJB6d0Z0XKSuDJ8xzJ ic8M3xFKu3DEFv10VeR4w7zz5tYjqlGhhnbVrlY= X-Received: by 2002:a5d:6283:0:b0:30a:e70d:8022 with SMTP id k3-20020a5d6283000000b0030ae70d8022mr4659342wru.26.1685368953446; Mon, 29 May 2023 07:02:33 -0700 (PDT) Received: from arch-thunder.local (a109-49-33-111.cpe.netcabo.pt. [109.49.33.111]) by smtp.gmail.com with ESMTPSA id w12-20020a5d544c000000b002fed865c55esm54123wrv.56.2023.05.29.07.02.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 07:02:33 -0700 (PDT) From: Rui Miguel Silva To: u-boot@lists.denx.de Cc: Simon Glass , Tom Rini , Ilias Apalodimas , Rui Miguel Silva Subject: [PATCH v2 0/6] corstone1000: fwu metadata and GPT Date: Mon, 29 May 2023 15:02:23 +0100 Message-Id: <20230529140229.3225090-1-rui.silva@linaro.org> X-Mailer: git-send-email 2.40.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 Now that the nvmxip block driver is merged we can add on top of it the platform code to use GPT and FWU metadata in the Corstone1000. But first, push 2 fixes that are needed to make all this work: - move nvmxip header to include - setup fwu metadata structures as packed (we have a 32bit writer - Secure enclave Cortex-M0 and a 64bit reader host Cortex-A35) Cheers, Rui v1 [0]-> v2: Ilias: - add Reviewed-by tag in patch 1/6 Heinrich: - fix test include nvmxip header after the move to include/ in patch 2/6 [0]: https://lore.kernel.org/u-boot/20230502131200.2551513-1-rui.silva@linaro.org/ Rui Miguel Silva (6): fwu_metadata: make sure structures are packed nvmxip: move header to include corstone1000: add fwu-metadata store info corstone1000: add boot index corstone1000: set kernel_addr based on boot_idx corstone1000: add nvmxip, fwu-mdata and gpt options arch/arm/dts/corstone1000.dtsi | 7 ++- board/armltd/corstone1000/corstone1000.c | 73 +++++++++++++++++++++- board/armltd/corstone1000/corstone1000.env | 10 +-- configs/corstone1000_defconfig | 14 ++++- include/fwu_mdata.h | 6 +- {drivers/mtd/nvmxip => include}/nvmxip.h | 0 test/dm/nvmxip.c | 2 +- 7 files changed, 96 insertions(+), 16 deletions(-) rename {drivers/mtd/nvmxip => include}/nvmxip.h (100%)