From patchwork Tue Oct 31 10:52:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 117554 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp3794728edm; Tue, 31 Oct 2017 03:54:15 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TZwwwKdJ/QjPLPDXnNwjuPH+OZvYX60aO0FDvLSiWP0a9gylo9Tnr+jgHyNxbg/dkLISQ9 X-Received: by 10.98.35.18 with SMTP id j18mr1636837pfj.37.1509447255519; Tue, 31 Oct 2017 03:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509447255; cv=none; d=google.com; s=arc-20160816; b=w/UHUOkxCz/nhRhH26hAVEhWl1d33ccKDwkQuDKeRH7GpTx5/8hquJAg07vEXwrwgS /oFMg26VCMq3kyp1ygPPN8K99YrKwaXmMMDmfV7M10r/pYuuGZOm9EDXfVUSMyCdohe7 Whfal9jglqjcSAvRPDbfZ7JX7zDGyOUKeUh+RttnV+YEAYq2gqUaEe7UP/zKk+fTaf1q cC7buCZuhk6YUUyu1wODwd801PtKxu7UzIqb+bBi3j8guvTEdYTlcgViXahS76zzYPRJ qC10yl69/T3BOuTe74UWBj1JOLAv4nJNeKldPJswybrjm5ZRuRqckOVOsTd/K0ultL5R EN2Q== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=I00SOEdnEsO92EHez+dxFudWECy+4ZTqltupWlaaJE4=; b=Gm3oJ7DPW2ilVNMzXVn5vcilea/hJ1jwbmc+IZVJzMfB8NVLImQxgqTHOEZtSCG2hg hCX4z1XhyH3hbNpQw/CWq9O85jnmkFJAdwy93STtHdlrHvO5NXDkaPrDuUX4kvRjTI8Q pRr1FgvwNOqqdJ6bluhqj+MzZB+u6Mnfk1RtFfK5EKcGZh+8l94S28lK4cF2LWXL4lEa AkPcWqJDoGj11zeA+KCuZtTDh5jxwGL1BcYOLFmc/RGvqeTwr8rpC2Jizc50zn+/Nzct 02jYdg2i/zniMg+rZ8bZ4pL9JMgKuJPttxO7wtXNKBdRAiwinM87TuIxHtIr35xrqm9d uAFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SxGluYE1; 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 i71si1371727pfd.67.2017.10.31.03.54.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 03:54:15 -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=SxGluYE1; 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 C0DC72035D103; Tue, 31 Oct 2017 03:49:31 -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:c0c::241; helo=mail-wr0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::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 6EFE72035D103 for ; Tue, 31 Oct 2017 03:49:30 -0700 (PDT) Received: by mail-wr0-x241.google.com with SMTP id k62so15481358wrc.9 for ; Tue, 31 Oct 2017 03:53:22 -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:in-reply-to:references; bh=0JRYcofyjcIcmnCjLfJUN36c7wd2TgPnpAs/aZAjRWQ=; b=SxGluYE1BB7zvSOybkO9h0/DNbVqfVl1Wq3H1LwXX8++gQXxRAJn7E+68lmyCNzk+o ZQMViMiRlt6S6cisZ6lfYKgN/X4ZYMVVnWRoaoqYN9U0DK+Y9U5IRZQGhavgmIT4pRmS JYLzm1K+lKcZ/ZXp3Gs2Pa8kkZaAq0ZtxRiPo= 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:in-reply-to :references; bh=0JRYcofyjcIcmnCjLfJUN36c7wd2TgPnpAs/aZAjRWQ=; b=bBYII3G60olJl0LxC4Qy7lLp/NPtBz+/0B8fXZzwbAoAthTQyq065K62XLQCGzkZh7 sJy1MHI0FhzH9oL1Uw4BXsatdT4luHTVhPl+i2lvyh22nJQKxbP4H4+8f6c0oj0TCAsO OLi3yBeUX/Bwq2W9OOKrksp68VxmVGcFQmRlGs9ZOP115SPGcIGHFCjUSPDCo4Pn6x9C hS62k4RI07dDV75MLbZ8EAaGCp4sgp7fkQuwcXh1B30UfBdfAfmRfC8i6sF/dENhGEkL 1oKYp83QMCM7wsCteuwVBmD2ptGtAvbejI9TryY5VQH3cEWXwHn9+UGQZF4krBBHdaj6 Mu5w== X-Gm-Message-State: AMCzsaVW/yz9Q0J4MjoxzaquLtyd8EWgXcA6juNW2aKBUB3rApkvfZzg WpV/z2EnqHAPGBaY5bJiSxGuzwPAP90= X-Received: by 10.223.153.45 with SMTP id x42mr1409133wrb.212.1509447200542; Tue, 31 Oct 2017 03:53:20 -0700 (PDT) Received: from localhost.localdomain ([105.129.222.2]) by smtp.gmail.com with ESMTPSA id o14sm460985wra.54.2017.10.31.03.53.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 03:53:19 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Date: Tue, 31 Oct 2017 10:52:11 +0000 Message-Id: <20171031105218.30208-21-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171031105218.30208-1-ard.biesheuvel@linaro.org> References: <20171031105218.30208-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-platforms v3 20/27] Socionext/SynQuacerEvalBoard: switch to execute in place X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: daniel.thompson@linaro.org, masami.hiramatsu@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Now that we switched to PrePeiCore, we can execute the firmware image in place, using a stack and temporary heap in non-secure SRAM. This allows us to query the secure firmware for the size and placement of DRAM, and also allows the use of capsules for firmware update. NOTE: this requires ARM Trusted Firmware to be built with PRELOADED_BL33_BASE set to the base of UEFI in the NOR flash, 0x820_0000 in our case. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- Platform/Socionext/SynQuacerEvalBoard/SynQuacerEvalBoard.fdf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Socionext/SynQuacerEvalBoard/SynQuacerEvalBoard.fdf b/Platform/Socionext/SynQuacerEvalBoard/SynQuacerEvalBoard.fdf index f39f67f053be..53f5fef96466 100644 --- a/Platform/Socionext/SynQuacerEvalBoard/SynQuacerEvalBoard.fdf +++ b/Platform/Socionext/SynQuacerEvalBoard/SynQuacerEvalBoard.fdf @@ -26,7 +26,7 @@ ################################################################################ [FD.BL33_AP_UEFI] -BaseAddress = 0xE0000000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in NOR Flash. +BaseAddress = 0x08200000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in NOR Flash. Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device ErasePolarity = 1