From patchwork Wed Jun 13 16:28:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 138506 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp949131lji; Wed, 13 Jun 2018 09:28:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIw4vGOUbTv2gePQZ9+xC04Q2HZi6MXrIMAvkJ2zHjRqv/jF/CKyDnDRNgCElmdSIRE9wvu X-Received: by 2002:a17:902:7442:: with SMTP id e2-v6mr5994427plt.28.1528907314763; Wed, 13 Jun 2018 09:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528907314; cv=none; d=google.com; s=arc-20160816; b=vjgvOYDb3V7rB5BWvSXNYDMQETAXwJLDHU2Di3glsTL8K+XDFlaDTO1mVeC6+8BdHJ eikvDx9SWNc7oPKYCh1K3oP4vNAzZNyIdO0M9/LsWWT7Vfpsoq9jcjENj1371PSew1L3 rOtAkUyu0cng6NRqHbpM50TqI6CHWRdjdLuAFwV4MXUHGK05MwvC/IQjZqucJ0EojszM MubxjYu5Jvq6zhzR1VLAE4vay5moOuZ2xu9xHgrASSsGuPgao/GFpK7CIjVwjgPAmBjS xsZQKPsiw1VUK+g/+X/KVmcXXIID6Z96byfS6oMJqEwimyyuPcH7eENVjgUXHK5ORHIF o6IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=YenNq0K07Dk/NLYXGyb7Ms1rq2nzaZYpYnsK+gxuNzc=; b=yyJcz+a2ZtxrLbdID7vns1kwhQEV1W/Kl7QmJCs4GwmH0q9uCrSxajK1sRJ6pE19gV l2g0TVs266n7aHI3o+LUkZoBnjqhqrmAToHQdZsL24BliTIT7m8xsLQ1dntZb71sUooT P3wrGhr8cWUu5lk93qiO50TZhwN5YMozZhUEBLEVsNLfHodzTpgwaZiufHmbWJh6YiV9 gl7T1AJBIkWolUptnSKIH1tlmB/AQINbDgQZ8Y5q764MRvzIeBbUahhHkbFvue/6Bn2X HBwTn1WQcTDZbnNvRPOlbqhYi+iRg02kvItkj7CrrhuEKmqz96pZj7iHzxsBEInvzEeR X8uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bfr2UZ0J; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id p25-v6si3209935pfi.345.2018.06.13.09.28.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 09:28:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bfr2UZ0J; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 22885212735D9; Wed, 13 Jun 2018 09:28:34 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::241; helo=mail-wm0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 1F2B521251133 for ; Wed, 13 Jun 2018 09:28:32 -0700 (PDT) Received: by mail-wm0-x241.google.com with SMTP id p126-v6so5812836wmb.2 for ; Wed, 13 Jun 2018 09:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=TTGQA30a7zbgoQGK01LXXLV7IYw70Xxo2N5wGDO4xqI=; b=bfr2UZ0J/TdO0rEFwtx2ZrzxuTtaP2mOt0SaT7C1rwujcj24yEi9HmzhwObcOK/UL4 235ASsCjtL2DBSl/dJxsK4HJWfrGG4BYmmEIj6EcSP0fA2BlZ9zJllhUHoNIrTAdlALZ 235JPlfEEQylty/vNajsHfzsyu4tk+UUjZfMA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TTGQA30a7zbgoQGK01LXXLV7IYw70Xxo2N5wGDO4xqI=; b=N6nPrKwaGkT0v6w+DSnnS3nnd1+9Ap2rJhR4qM82PVe/Sam9mCflWD1sm3okyJ1LAg /gtLU7kz9AyYN/zBuF1PvdfN/k7uXjgwKwYzSEhpdYvc2IwxBbCHMOiWYi4FWLTFzOJj MSlzJYaf5qm8ZIZK+11XPT9M3muR/A1KD1ySc2CRS4MOY5lHeS5sUQE7+3fAvBxdGVIa UedJTXoXoLO2jexAOJ2qSFg+dpa2jTWCz4wvV49FRxUnXguZi6eX/IlB1qMlBETqtHdW 9qJu5uK9CU4yMXEVaq7thBGWqtzQx7zqzXSPO4ubYaSorZde9c/RhRfLWp8yPrmd7Qjq DIQg== X-Gm-Message-State: APt69E2zPxy+oNddEnfFtZAgZlIiNGgn28n5EFGb2DiDLdrwoRpkhQ1x IItC2LFUdUDjcINhtUnzW2obDzXM0Qk= X-Received: by 2002:a1c:9:: with SMTP id 9-v6mr3941474wma.10.1528907309874; Wed, 13 Jun 2018 09:28:29 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:6dfc:b76c:4240:35ff]) by smtp.gmail.com with ESMTPSA id s191-v6sm6234782wmd.27.2018.06.13.09.28.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 09:28:28 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 13 Jun 2018 18:28:24 +0200 Message-Id: <20180613162826.19986-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Subject: [edk2] [PATCH edk2-platforms v2 0/2]DeveloperBox: prepare for expanding the capsule payload X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" We intend to start distributing firmware update capsules that include the SCP firmware partition. In order to allow for more flexibility regarding whether a capsule contains this piece or not, update the flash access routines and the flash partition descriptions so we can update any part of the first 4 MB, consisting of the CM3 bootstrap code, emergency flasher, pseudo EEPROM, SCP firmware, ARM-TF and UEFI. Note that this means we can drop the 'TEMPORARY' patch I proposed a while ago to hack around this limitation. Changes since v1: - use more parentheses in if () condition expression (#1) - use symbolic constants for code and env NOR regions (#2) Ard Biesheuvel (2): Silicon/SynQuacerPlatformFlashAccessLib: relax FV address check Silicon/NorFlashSynQuacerLib: describe entire firmware region as FV .../NorFlashSynQuacerLib/NorFlashSynQuacer.c | 18 ++++-- .../SynQuacerPlatformFlashAccessLib.c | 56 +++++++++---------- 2 files changed, 39 insertions(+), 35 deletions(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm