From patchwork Mon Jun 12 08:09:14 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: 1793799 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=PtRTD0hg; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QfkwQ1Fttz20X6 for ; Mon, 12 Jun 2023 18:13:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D992786129; Mon, 12 Jun 2023 10:13:26 +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="PtRTD0hg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2BB9D86068; Mon, 12 Jun 2023 10:13:23 +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-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 1FC9384780 for ; Mon, 12 Jun 2023 10:13:20 +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-x42e.google.com with SMTP id ffacd0b85a97d-30fbf253dc7so626128f8f.0 for ; Mon, 12 Jun 2023 01:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686557599; x=1689149599; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gIaZNHX9gV9BRJPYSG/g5A+hyw/GWkVS1HVASZY0XDI=; b=PtRTD0hg3QWutJAi5YQnQoBaWh6LcdRvXG5OUXE7Qbvn/c5w0mqmaZblh74xxplP3b keCKHEY6a6c+32pfygaR2OplmEYbQbtoE8s1s3n4wIdzByZL9Ddk29KJohNhQKtl40i/ XkqhvQrU5CpgjkA419rTTgJlhk7ISWTylF9cRhotPQV+hk588MsBdCYcezABwpf6XZUT HNC1job9LSr9PxM+LVExID7LP+wWArg00UoXzd6w0rpKuqL1dU+PiGlgdVz28ZJ02kZ2 EgN6yqSak1xbhM0P10DcBnwVmRmLLLwYcbZwg3ajcsl5Q/lbQbdfjf99kuHmxOWgd1Tm F8Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686557599; x=1689149599; 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=gIaZNHX9gV9BRJPYSG/g5A+hyw/GWkVS1HVASZY0XDI=; b=V3bTeuZiA38Lo0SXZqXFB8WEhNlzjC4pmJDWVUXpmSo+dFsQXgb0qXRbFd/aGgV6g6 y+134CW0j25r/IGB9Abd8xysRrm2mjpvoo6oOpF0YnnGxujWnjnHPLeVJG40bQh0OXLg IORD6nktHpN2ROiR79q38aUhUsOsmGIi3bUeZJUUAU2slsw+lR38s4vq/AWSWVoI1hmy rZCZUVzXAbbmrHBLlxU/O0UksGjc1PGs7I6MaayLZtlKKZf9zMzpUNXNGusA0CV52sEF Qwb/d41A1/B7lOMMd8isv7mniVZH9+J/DM/tTqkn5Pf93yXL9s1y5gleqxnmX/L7mHM2 9RgA== X-Gm-Message-State: AC+VfDyVWjhAr4asLR6toqZ8LZT0+k8t1Dq/UNM3693ZytYfPOeMrFxq rTjZy/j3nGSxHqVKdavv7YI/wKmD0G5UKDpOeus= X-Google-Smtp-Source: ACHHUZ49DzitpPedYcgbmGwTmGyJClH2MPfN7FAYNWKThf+WeKsIE162MJUR2YuY9nx0ZMvJkXsKOg== X-Received: by 2002:adf:e4d2:0:b0:30a:c681:fd2e with SMTP id v18-20020adfe4d2000000b0030ac681fd2emr4031668wrm.22.1686557599161; Mon, 12 Jun 2023 01:13:19 -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 m9-20020a056000008900b0030ae499da59sm11637390wrx.111.2023.06.12.01.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 01:13:18 -0700 (PDT) From: Rui Miguel Silva To: u-boot@lists.denx.de Cc: Simon Glass , Tom Rini , Ilias Apalodimas , Rui Miguel Silva Subject: [PATCH v3 0/6] corstone1000: fwu metadata and GPT Date: Mon, 12 Jun 2023 09:09:14 +0100 Message-ID: <20230612081314.723786-1-rui.silva@linaro.org> X-Mailer: git-send-email 2.41.0 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 v2 [1]-> v3: Tom Rini: - fix definition of __packed compilation issue after merge of mkfwumdata tool. 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/ [1]: https://lore.kernel.org/u-boot/20230529140229.3225090-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 | 7 ++- {drivers/mtd/nvmxip => include}/nvmxip.h | 0 test/dm/nvmxip.c | 2 +- 7 files changed, 97 insertions(+), 16 deletions(-) rename {drivers/mtd/nvmxip => include}/nvmxip.h (100%)