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 07A16EB64D8 for ; Wed, 14 Jun 2023 12:49:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 47BF1860C3; Wed, 14 Jun 2023 14:49:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=phytec.de header.i=@phytec.de header.b="Ef5bbN6/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 95A8785EEF; Wed, 14 Jun 2023 09:12:34 +0200 (CEST) Received: from mickerik.phytec.de (mickerik.phytec.de [91.26.50.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 51A2F85FE5 for ; Wed, 14 Jun 2023 09:12:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Y.Moog@phytec.de DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1686726750; x=1689318750; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xymHK+dDhhBXCGN6BnlIWtH4HtesZ5OeX6XIV9zUS+4=; b=Ef5bbN6/R/TwIjB8ghcbi+nbzJAYoK7+inc2zbQM37FuBk7nUFrEmXdNiW/Wxq1H ROWY0EIxx0igdVyuF64q6QMqfKJHml1und2DUndezdHCp8/GK9FGLpDbr8Pv1KRs a4DktqPtC+hFW+6wC9qBAHvU63qzI75Fw8TVbnfXCts=; X-AuditID: ac14000a-923ff70000007ecb-92-6489685d7a8a Received: from berlix.phytec.de (Unknown_Domain [172.25.0.12]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id AF.2F.32459.D5869846; Wed, 14 Jun 2023 09:12:30 +0200 (CEST) Received: from lws-moog.phytec.de (172.25.0.11) by Berlix.phytec.de (172.25.0.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Wed, 14 Jun 2023 09:12:29 +0200 From: Yannic Moog To: Stefano Babic , Fabio Estevam CC: "NXP i . MX U-Boot Team" , Teresa Remmet , , Subject: [PATCH 1/2] doc: board: phytec: add phycore_imx8mm Date: Wed, 14 Jun 2023 09:12:19 +0200 Message-ID: <20230614071220.49605-1-y.moog@phytec.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.25.0.11] X-ClientProxiedBy: Berlix.phytec.de (172.25.0.12) To Berlix.phytec.de (172.25.0.12) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPLMWRmVeSWpSXmKPExsWyRpKBRzcuozPF4JCzxcOr/hbtp3ws3u7t ZLeY8ng9u0X3O3UHVo95s06weOycdZfd4+ydHYwe/d0trB4b3+1gCmCN4rJJSc3JLEst0rdL 4MpomTSJreCSSMWGmYeZGxhfC3QxcnJICJhIfPh0nLGLkYtDSGAJk8Sklj4WCOcRo0TToUmM IFVsAioSj1/cYwWxRQTcJLY8OcMMUsQMNEPi5PvdzCAJYQFriVuTmsFsFgFViZVPZ4E18wqY SlzdPZ8RYp28xP6DZ5kh4oISJ2c+YQGxmYHizVtnM0PYEhIHX7wAs4UEZCVenO9lh+mddu41 M4QdKrH1y3amCYwCs5CMmoVk1CwkoxYwMq9iFMrNTM5OLcrM1ivIqCxJTdZLSd3ECApkEQau HYx9czwOMTJxMB5ilOBgVhLhfarRniLEm5JYWZValB9fVJqTWnyIUZqDRUmc934PU6KQQHpi SWp2ampBahFMlomDU6qBceWO7ZzR/Edjb7kGWBRcXDu1+27fee/8O/EXlc7+DG8+otmj68jQ VDMn62v7If2Tkw994rHJeOtr838/b9ux+4JvT6i+Z17yrv9SQStfroLBgnW7RLdFmqbMOCrX LVzfuWkL316bf5+dD/0o+WM/dVvslNZF1jq/0+YIX9XSffPv5GGG+mOKvEosxRmJhlrMRcWJ AHTp5bRSAgAA X-Mailman-Approved-At: Wed, 14 Jun 2023 14:49:30 +0200 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.8 at phobos.denx.de X-Virus-Status: Clean Add documentation on how to build a bootable U-Boot image for the PHYTEC phyCORE-i.MX 8M Mini. Signed-off-by: Yannic Moog --- doc/board/index.rst | 1 + doc/board/phytec/index.rst | 9 +++++ doc/board/phytec/phycore-imx8mm.rst | 60 +++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 doc/board/phytec/index.rst create mode 100644 doc/board/phytec/phycore-imx8mm.rst diff --git a/doc/board/index.rst b/doc/board/index.rst index 9ef25b1091..ce1fbe2fff 100644 --- a/doc/board/index.rst +++ b/doc/board/index.rst @@ -32,6 +32,7 @@ Board-specific doc nokia/index nxp/index openpiton/index + phytec/index purism/index qualcomm/index renesas/index diff --git a/doc/board/phytec/index.rst b/doc/board/phytec/index.rst new file mode 100644 index 0000000000..30292d0d76 --- /dev/null +++ b/doc/board/phytec/index.rst @@ -0,0 +1,9 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +PHYTEC +====== + +.. toctree:: + :maxdepth: 2 + + phycore-imx8mm diff --git a/doc/board/phytec/phycore-imx8mm.rst b/doc/board/phytec/phycore-imx8mm.rst new file mode 100644 index 0000000000..e9dc225990 --- /dev/null +++ b/doc/board/phytec/phycore-imx8mm.rst @@ -0,0 +1,60 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +phyCORE-i.MX 8M Mini +==================== + +The phyCORE-i.MX 8M Mini with 2GB of main memory is supported. + +Quick Start +----------- + +- Build the ARM Trusted firmware binary +- Get ddr firmware +- Build U-Boot +- Boot + +Build the ARM Trusted firmware binary +------------------------------------- + +.. code-block:: bash + + $ git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git + $ cd trusted-firmware-a + $ export CROSS_COMPILE=aarch64-linux-gnu + $ export IMX_BOOT_UART_BASE=0x30880000 + $ make PLAT=imx8mm bl31 + +Get the ddr firmware +-------------------- + +.. code-block:: bash + + $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.19.bin + $ chmod +x firmware-imx-8.19.bin + $ ./firmware-imx-8.19.bin + +Build U-Boot for SD card +------------------------ + +Copy binaries +^^^^^^^^^^^^^ + +.. code-block:: bash + + $ cp /build/imx8mm/release/bl31.bin . + $ cp firmware-imx-8.19/firmware/ddr/synopsys/lpddr4*.bin . + +Build U-Boot +^^^^^^^^^^^^ + +.. code-block:: bash + + $ make phycore-imx8mm_defconfig + $ make flash.bin + +Flash SD card +^^^^^^^^^^^^^ + +.. code-block:: bash + + $ sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=sync -- 2.34.1