From patchwork Fri Nov 10 14:21:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 118553 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2259257edl; Fri, 10 Nov 2017 06:23:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMb+RChNVKS7tJ0IyvQjNDUZahMxntDH+1ONCIQ3+S8WVaPLfY3SoUqfFI6fBsEqh77RgEDR X-Received: by 10.98.89.82 with SMTP id n79mr531049pfb.133.1510323805601; Fri, 10 Nov 2017 06:23:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510323805; cv=none; d=google.com; s=arc-20160816; b=tfMt/50S8QoPpBzRFwAQzopN+9j6ZbIHv1TB0pho1gruYlvNn/0ACdl78KlsbSFjOE SGQ+RuTyf5I51o7EK+RtLnp5URUzitQXT74Hc4N5MgWSJpUWLdkNbz2yzLLS/8llz323 7Rh7ESbMk1osF0LPz5BXwhBA21V0t4RYD8Qlc+gNs+GCBUht+21m/toY1SpHjY9oQWYy PjVaOFNWZgRb4aaPO+I0gRkxo7gjD5+UYwSlbdzHb57spw/EJ5Y493gONPl4/G69sGlK RYgO7snuRecQnKx4d64s0ymaUWMHx+JdVR0v5NeXVZX+pTzySjri+oc+7OpSs+evqcUv 38mg== 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=t8KTGgpyB+VKDdC6W9HFOCgi82RpDdIbNsI2j8gMvQQ=; b=EhHdXoLS8IqPJk2M80kY/cQP03D3D1VoB857YId6llDqFvoFy4c6WYZwGgfp4u7ZdP euePhJEZ/cG75DZLtkb9ZDaH7wKnqgNT7SeD/rWLc0se3uYCUUyqOZZACS5IktUBBuej O7FNCeTijfsqL7KqfKDvMnObjM9IrvMnIKRjstMkdhTP8uCZGE2H3biJhREPf5878fqt eHat5G+WdWDiyJB1XhbjrNdwoEp7/P5nLwb0oFvgQoLxXU6vJh60TwecpHEryjxauE5N tr4E7oKe8wxdoaK951BIKrQSCv4McQpTtb4f5RsoaEAMEWJu1XPfqxvdYltQ49k+Ybme m9VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fmpjCTDb; 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 f8si9074651pgn.420.2017.11.10.06.23.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Nov 2017 06:23:25 -0800 (PST) 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=fmpjCTDb; 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 BA28E2035D0F1; Fri, 10 Nov 2017 06:18:37 -0800 (PST) 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::243; helo=mail-wm0-x243.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (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 20C0621B00DF6 for ; Fri, 10 Nov 2017 06:18:36 -0800 (PST) Received: by mail-wm0-x243.google.com with SMTP id b9so3061662wmh.5 for ; Fri, 10 Nov 2017 06:22:39 -0800 (PST) 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=yte7/lc315mQgJmsxKa22JfVTiRtUcaSwPYvaAcuyVI=; b=fmpjCTDbDXQ/rb7fHwRnsKBe0CS7mxHd8EKqjAyj0Pof7huchDY8WnEDyy0gGtKgcL F1oBtAGTs6BOxAsr43Mm3w8rsjEPh2hdmz9NAJFNoKLVfEORjhXB5iVw2jG20gdnBBzo XEzHwnh0tC4if6bozG5NluR/tJd/b5Wbu/hTc= 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=yte7/lc315mQgJmsxKa22JfVTiRtUcaSwPYvaAcuyVI=; b=rSj2f0Wak/qK+qR8+gADgkwXamR43gLfVaUuMHWyoyh6yXfowBOQGHAUaOMggPMvbQ DXVzGCkizCT4lo4RjSod8m+2IkOdfOQGVF7LtpJbYVSZ+g0yQWkM+U7infUOXkH0EpkY SYUwZpGK2vx9r32qi8DyyEEqmQ5XIGRwmxyBMsSPtZICR9XHwonDMeDHHDl3fWXy/BRQ pOZ+S8QeSLMkKhLvvba83oF0K5939vqkAPhhbgGqVqZFOHFyZ9typREu4p6WtIlJe7UF XN3omCRDTf/f6jr6lQV9zfi0XDPNC14XAzmWgcm8ZZBBvkHTJYGZIW43NONHjK3JGZHy Pk2g== X-Gm-Message-State: AJaThX6U3paviRgbZYF6/v5ljFjsIQJ/iEyPYA9AHQcIYDPKP/zNZ+fC Iuq+QWdrC68l1q2Tthb1PY3m6e0lec0= X-Received: by 10.28.142.20 with SMTP id q20mr352990wmd.37.1510323757592; Fri, 10 Nov 2017 06:22:37 -0800 (PST) Received: from localhost.localdomain ([160.167.170.128]) by smtp.gmail.com with ESMTPSA id e131sm1036477wmg.15.2017.11.10.06.22.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Nov 2017 06:22:36 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, daniel.thompson@linaro.org Date: Fri, 10 Nov 2017 14:21:12 +0000 Message-Id: <20171110142127.12018-20-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171110142127.12018-1-ard.biesheuvel@linaro.org> References: <20171110142127.12018-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-platforms v4 19/34] 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: masahisa.kojima@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 c099c3dd8d2f..80cbcdad18aa 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