From mboxrd@z Thu Jan 1 00:00:00 1970 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 AA362C00A5A for ; Thu, 19 Jan 2023 11:21:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5A01685656; Thu, 19 Jan 2023 12:21:22 +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="f8bh83UD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2F33D85667; Thu, 19 Jan 2023 12:21:13 +0100 (CET) Received: from mail.fris.de (mail.fris.de [116.203.77.234]) (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 D2AC885665 for ; Thu, 19 Jan 2023 12:21: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=frieder@fris.de Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 3EDB4C02FC; Thu, 19 Jan 2023 12:21:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1674127268; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=7y/sGosT+sZoMotw9NQWLkJxz40dHnxacYJBGxYa8BA=; b=f8bh83UDvwJN0tOo/nzVGPu+Rz+hmY7RyVjM1e+SLNFPZMp5Mv8x9hQuFs+1hNW6bSnMf1 1XbfqBuSVi18USrczp52RJ2E8fKkM+JQAxgVufBSwDgtCYc3IhKVvfKYCtIIjb6iwsb67Y LhMo2uI1waTtXnSdv7rXtQ5T78yvxyZcrgBxNvTS7Z1Ya0T+zEfvOcRb0BUVQ/WC8XJmvF Vz/Y91z5KeUm6i4b0ZZt0ZdY7cAz5Fgrolq7x07H9M0cybB+L+ctvZ27nzGQdJsWq3VFez m8jeg1FWIOKz7mPSOoZWHpzxQ6LrDTWERS5Sujnu94fSjEXcCT8yUVyg6eUnQg== From: Frieder Schrempf To: Frieder Schrempf , u-boot@lists.denx.de Cc: Fabio Estevam , Marcel Ziswiler , Oliver Graute , Patrick Wildt Subject: [PATCH v2 3/6] doc: sl-mx8mm: Update the NXP TF-A source reference Date: Thu, 19 Jan 2023 12:20:36 +0100 Message-Id: <20230119112040.47574-4-frieder@fris.de> In-Reply-To: <20230119112040.47574-1-frieder@fris.de> References: <20230119112040.47574-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 bcaf5de4e7..bb718f104c 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://github.com/nxp-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, 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