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: 1787135 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=eL0v8SCU; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QVHKb74zWz20Py for ; Tue, 30 May 2023 00:02:43 +1000 (AEST) 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-Google-Smtp-Source: ACHHUZ5TsCR9ho7fgPg63Jbwsh6XWws/UX7BAXTCdUSyEq9HHXbdvS4wepiZ+5R35mJrz0lSxRnEGQ== 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%)