Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4B3AC00A5A for ; Thu, 19 Jan 2023 10:53:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EF58485650; Thu, 19 Jan 2023 11:53:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=fris.de 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=fris.de header.i=@fris.de header.b="Ev7kIuxN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B77858565F; Thu, 19 Jan 2023 11:53:04 +0100 (CET) Received: from mail.fris.de (mail.fris.de [IPv6:2a01:4f8:c2c:390b::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0C70685669 for ; Thu, 19 Jan 2023 11:53:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=fris.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=frieder@fris.de Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 6A620C02B9; Thu, 19 Jan 2023 11:52:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1674125579; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=2qCREypyLWHfvtFStqf0qHe+NHmgHJFItgibVGwmc1s=; b=Ev7kIuxNXRj8PxzEaYwcf/if1I6U7rVjTk9HSiDfAsXQTTMx409rzNd9CzPPhdQIRriiAq bz0W6JxIBgNu7yMEq9zUFR/rLWuwXtcmEkIObgktHV8hWLEyjlg2gjA6H0v5zj55rX+sRf lbF3twCsV2ZflP3d69rTqtoEVPF40TWTQMsKKD91bNmKWv8uyCFPR/UFq5VWCnxv6BYmvF NdFiw2XeVe7mNL4hxrVaEJwvInfdLxaEgY8Hb8ZhggSGf0RwXUkrVwYoTTfQJxgwndFNUn adfXHeQo82bDFWRzNx7nvr0o94g34bbupOD6PGtuDXNMPJTTrk+5Kn8qdFp1XA== From: Frieder Schrempf To: Frieder Schrempf , u-boot@lists.denx.de Cc: Fabio Estevam , Patrick Wildt Subject: [PATCH 3/6] doc: sl-mx8mm: Update the NXP TF-A source reference Date: Thu, 19 Jan 2023 11:52:46 +0100 Message-Id: <20230119105250.43140-3-frieder@fris.de> In-Reply-To: <20230119105250.43140-1-frieder@fris.de> References: <20230119105250.43140-1-frieder@fris.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 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.6 at phobos.denx.de X-Virus-Status: Clean From: Frieder Schrempf Use the latest version of the NXP TF-A code and add a note about quirks with GCC 12. Signed-off-by: Frieder Schrempf --- doc/board/kontron/sl-mx8mm.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/board/kontron/sl-mx8mm.rst b/doc/board/kontron/sl-mx8mm.rst index ff6f01d3b7..63b14230e4 100644 --- a/doc/board/kontron/sl-mx8mm.rst +++ b/doc/board/kontron/sl-mx8mm.rst @@ -34,15 +34,20 @@ Note: builddir is U-Boot build directory (source directory for in-tree builds) There are two sources for the TF-A. Mainline and NXP. Get the one you prefer (support and features might differ). +.. note:: + + If you are using GCC 12 and you get compiler/linker errors, try to add the + following arguments to your make command as workaround: + ``CFLAGS="-Wno-array-bounds" LDFLAGS="--no-warn-rwx-segments"`` + **NXP's imx-atf** -1. Get TF-A from: https://source.codeaurora.org/external/imx/imx-atf, branch: imx_5.4.70_2.3.0 -2. Apply the patch to select the correct UART for the console, otherwise the TF-A will lock up during boot. -3. Build +1. Get TF-A from: https://github.com/nxp-imx/imx-atf.git, branch: lf_v2.6 +2. Build .. code-block:: bash - $ make PLAT=imx8mm bl31 + $ make PLAT=imx8mm CROSS_COMPILE=aarch64-linux-gnu- IMX_BOOT_UART_BASE="0x30880000" bl31 $ cp build/imx8mm/release/bl31.bin $(builddir) **Mainline TF-A** -- 2.39.0