From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: ADUXVKKJUUGH/4lwY7cSvnSxui1eSUygy72/Nq0X6/iU0tUECrlCgeZ0FYfeOqh33soFC2NJn8e9dg== 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 Cc: leif.lindholm@linaro.org, Ard Biesheuvel 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: [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: , X-List-Received-Date: Wed, 13 Jun 2018 16:28:32 -0000 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