From patchwork Tue May 2 13:11:54 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: 678394 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp499272wrs; Tue, 2 May 2023 06:12:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ47VySlMsF3z1mvtCAZTbRyuTlTn64NBIPlwqki4qsxxoOCyp6RqF2LFzDa/aFHFAZUydXm X-Received: by 2002:a17:90b:4a51:b0:24d:ef8a:e892 with SMTP id lb17-20020a17090b4a5100b0024def8ae892mr9286530pjb.15.1683033141944; Tue, 02 May 2023 06:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683033141; cv=none; d=google.com; s=arc-20160816; b=tTK5xt9Ko4ljgGUvzqQhGUmR0PjOMlC3C/ixmPdF60655L98sRKEcPsUGe4liu3g1A khxrqwun0Uupha5cltB+gC0e9Aca5cC47hz1+rG60wZb8b7/5z9/EvV0gy2JyOW1MDy5 Z1YKrhF/w++k9eUj9VKbtipxqM93t25HreaVZt0HG218380pXlVCHevbbOlzXSLprcO9 ZrsP4e0R4v7a5KuX24pfAXI9/BRVthywnYP+dlfn8O4vcq79jPLgxlokCnJ9wAuX6Xe6 baQzT80SRY3HeoEKB7TfRMohi++AEVSqAapL9N6thguIJEnMxEX7kH40NLx9zcoRlohA 6J+Q== 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=OsBjX7TbCZvg/F4AbMEGj2aHfY+GoeyZNBpvaa21rCc=; b=rdk4YwV9f0xyJM37OUosLUVvVqocEgpHrOGE4bvOrQPyud7nHAVUkdwaM5OF0IxmVN 2zfe39pY1WdHEvAGKDkBMRbYAyPaEyCUcqi3RIKdAsx2HNcUrHDCHqX9TjJ7cxVb8ro3 CBdN1aB1Uc1rRhFFOIQZulnWNcu/GpG5mNQTkshInZB7U7WhXM4/DtbXxAMZkOD82xHZ PcAi6PvUEVs4DV7OsGio1y7iMnvZL429SEBbNZugnbVz2F5aXSx8QBBXPRd8GgF8Tu52 QWcZUbfPDsn8PJSrojJOis6sstW2xUVscoAOA6fvzT/w1pnLJ9Y/B8SY1W9B/V/g+ORh dXXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IE4saJWt; 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 w5-20020a17090abc0500b00247b413f4ffsi11370621pjr.185.2023.05.02.06.12.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 May 2023 06:12:21 -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=IE4saJWt; 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 D45C98472B; Tue, 2 May 2023 15:12:16 +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="IE4saJWt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D7A2784737; Tue, 2 May 2023 15:12:15 +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-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 7D73884726 for ; Tue, 2 May 2023 15:12:13 +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-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f182d745deso36638275e9.0 for ; Tue, 02 May 2023 06:12:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683033132; x=1685625132; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OsBjX7TbCZvg/F4AbMEGj2aHfY+GoeyZNBpvaa21rCc=; b=IE4saJWtmEnEmkYtFGc5XUHqxZDWy1S/HPw2wkQFCwr5NvobYone/XTKhBqri8rQM0 FugfbtHgwOnySCbQsYVfE1P5aHM6YDs5pMUf3K3VZwf2F69tuZbaPiplKUMhafSfFlHY TaRxQCUd0TaszAq++EdLKYBiYwIipt3V3U55lWkdl5vZwDsgPCxjTwjDNi+7mrknEM36 wJlN1oPMdOJldSu8FsVVeaId+4f+c89rYHUNOcdgrEyvPthr6XGdfiEHnZQgUPZBUwB5 VgVN574CjYCbOvUy5vjIvdBQyJbDqsMslcaBWN7NR58fP6aJJ2pQFwdQiii5b3o60ESf n5qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683033132; x=1685625132; 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=OsBjX7TbCZvg/F4AbMEGj2aHfY+GoeyZNBpvaa21rCc=; b=CGz46a1W2yQfPqfcKdPeXf1J6tgA4zk5IFuz+NE14xINdcdUVFmJw45k1ZuXLHHGnN y92obe0hFiBkJmjcJ24rYpoWBgM3zpy6qXUro+igee2Ol/OEo6N5m0WUKDGcHJeTWJf5 edP64tznJ7G1rzXxdK0wKRFiYXkEDiNEJ5EUVMCgPyhrgGTgZR6ITV0iYqi6a0vHCih/ leKuPRayHwN84ZenfihwujoGaWeJ/r2lJl32Rv8VHLUTMqS+B5ifrT4TwWmjv+X0pREs lGvLvgYRYHZKIu3Jo3sNGsXaiqoCOGJNFCrWChTWbI3x6v5pjFRz46BbYHkXhkpuqU8U mr4Q== X-Gm-Message-State: AC+VfDxq6HWh/dAm5oEXxBMKyxOQc1ux/2T3J7WrY5X2sNbWxPW95jHt L5EoJTv7JRLuBpxJS3nXV2CaFnmH3vr9WL89MsM= X-Received: by 2002:a7b:ca56:0:b0:3f1:6ec5:3105 with SMTP id m22-20020a7bca56000000b003f16ec53105mr12124766wml.20.1683033131868; Tue, 02 May 2023 06:12:11 -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 c21-20020a7bc855000000b003f17300c7dcsm35277121wml.48.2023.05.02.06.12.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 May 2023 06:12:10 -0700 (PDT) From: Rui Miguel Silva To: u-boot@lists.denx.de Cc: Simon Glass , Tom Rini , Ilias Apalodimas , Rui Miguel Silva Subject: [PATCH 0/6] corstone1000: fwu metadata and GPT Date: Tue, 2 May 2023 14:11:54 +0100 Message-Id: <20230502131200.2551513-1-rui.silva@linaro.org> X-Mailer: git-send-email 2.40.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 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 6 files changed, 95 insertions(+), 15 deletions(-) rename {drivers/mtd/nvmxip => include}/nvmxip.h (100%)