From: Wadim Egorov <w.egorov@phytec.de>
To: Garrett Giordano <ggiordano@phytec.com>, <trini@konsulko.com>,
<t.remmet@phytec.de>, <sumit.garg@linaro.org>,
<kever.yang@rock-chips.com>, <marex@denx.de>, <festevam@denx.de>,
<jonas@kwiboo.se>, <Oliver.Gaskell@analog.com>,
<aford173@gmail.com>, <prasad.kummari@amd.com>,
<neil.armstrong@linaro.org>, <mibodhi@gmail.com>,
<n-francis@ti.com>, <d-gole@ti.com>, <afd@ti.com>,
<sjg@chromium.org>, <bb@ti.com>, <nm@ti.com>,
<d.schultz@phytec.de>, <nmorrisson@phytec.com>,
<francesco.dolcini@toradex.com>, <vishalm@ti.com>,
<vigneshr@ti.com>, <y.moog@phytec.de>, <othacehe@gnu.org>,
<m-chawdhry@ti.com>, <j-humphreys@ti.com>, <j-choudhary@ti.com>
Cc: <u-boot@lists.denx.de>, <upstream@lists.phytec.de>
Subject: Re: [PATCH 2/2] doc: board: phytec: Add phyCORE-AM62ax
Date: Mon, 18 Nov 2024 10:41:24 +0100 [thread overview]
Message-ID: <2f7bc755-2df9-4432-9de5-388ab58ae0de@phytec.de> (raw)
In-Reply-To: <20241115195055.3023365-3-ggiordano@phytec.com>
Hi Garrett,
When building the docs, I get
Warning, treated as error:
doc/board/phytec/phycore-am62ax.rst:5:Title underline too short.
Warning, treated as error:
doc/board/phytec/phycore-am62ax.rst:66:Problem with "start-after"
option of "include" directive:
Please make sure "make htmldocs" is working.
Am 15.11.24 um 20:50 schrieb Garrett Giordano:
> Add documentation for PHYTEC phyCORE-AM62ax SoM.
>
> Signed-off-by: Garrett Giordano <ggiordano@phytec.com>
With that fixed,
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
> ---
> doc/board/phytec/index.rst | 1 +
> doc/board/phytec/phycore-am62ax.rst | 161 ++++++++++++++++++++++++++++
> doc/board/ti/k3.rst | 1 +
> 3 files changed, 163 insertions(+)
> create mode 100644 doc/board/phytec/phycore-am62ax.rst
>
> diff --git a/doc/board/phytec/index.rst b/doc/board/phytec/index.rst
> index 99848a9e958..697aec30512 100644
> --- a/doc/board/phytec/index.rst
> +++ b/doc/board/phytec/index.rst
> @@ -9,6 +9,7 @@ PHYTEC
> imx8mm-phygate-tauri-l
> imx93-phyboard-segin
> phycore-am62x
> + phycore-am62ax
> phycore-am64x
> phycore-imx8mm
> phycore-imx8mp
> diff --git a/doc/board/phytec/phycore-am62ax.rst b/doc/board/phytec/phycore-am62ax.rst
> new file mode 100644
> index 00000000000..baa26b5a7ce
> --- /dev/null
> +++ b/doc/board/phytec/phycore-am62ax.rst
> @@ -0,0 +1,161 @@
> +.. SPDX-License-Identifier: GPL-2.0+
> +.. sectionauthor:: Garrett Giordano <ggiordano@phytec.com>
> +
> +phyCORE-AM62Ax
> +=============
> +
> +The `phyCORE-AM62Ax <https://www.phytec.com/product/phycore-am62a>`_ is a
> +SoM (System on Module) featuring TI's AM62Ax SoC. It can be used in combination
> +with different carrier boards. This module can come with different sizes and
> +models for DDR, eMMC, SPI NOR Flash and various SoCs from the AM62Ax family.
> +
> +A development Kit, called `phyBOARD-Lyra <https://www.phytec.com/product/phyboard-am62x>`_
> +is used as a carrier board reference design around the AM62Ax SoM.
> +
> +Quickstart
> +----------
> +
> +* Download sources and TI firmware blobs
> +* Build Trusted Firmware-A
> +* Build OP-TEE
> +* Build U-Boot for the R5
> +* Build U-Boot for the A53
> +* Create bootable uSD Card
> +* Boot
> +
> +Sources
> +-------
> +
> +.. include:: ../ti/k3.rst
> + :start-after: .. k3_rst_include_start_boot_sources
> + :end-before: .. k3_rst_include_end_boot_sources
> +
> +.. include:: ../ti/k3.rst
> + :start-after: .. k3_rst_include_start_boot_firmwares
> + :end-before: .. k3_rst_include_end_tifsstub
> +
> +Build procedure
> +---------------
> +
> +Setup the environment variables:
> +
> +.. include:: ../ti/k3.rst
> + :start-after: .. k3_rst_include_start_common_env_vars_desc
> + :end-before: .. k3_rst_include_end_common_env_vars_desc
> +
> +.. include:: ../ti/k3.rst
> + :start-after: .. k3_rst_include_start_board_env_vars_desc
> + :end-before: .. k3_rst_include_end_board_env_vars_desc
> +
> +Set the variables corresponding to this platform:
> +
> +.. include:: ../ti/k3.rst
> + :start-after: .. k3_rst_include_start_common_env_vars_defn
> + :end-before: .. k3_rst_include_end_common_env_vars_defn
> +.. code-block:: bash
> +
> + $ export UBOOT_CFG_CORTEXR=phycore_am62ax_r5_defconfig
> + $ export UBOOT_CFG_CORTEXA=phycore_am62ax_a53_defconfig
> + $ export TFA_BOARD=lite
> + $ # we dont use any extra TFA parameters
> + $ unset TFA_EXTRA_ARGS
> + $ export OPTEE_PLATFORM=k3-am62ax
> + $ # we dont use any extra OPTEE parameters
> + $ unset OPTEE_EXTRA_ARGS
> +
> +.. include:: ../ti/am62ax_sk.rst
> + :start-after: .. am62ax_evm_rst_include_start_build_steps
> + :end-before: .. am62ax_evm_rst_include_end_build_steps
> +
> +uSD Card creation
> +-----------------
> +
> +Use fdisk to partition the uSD card. The layout should look similar to:
> +
> +.. code-block:: bash
> +
> + $ sudo fdisk -l /dev/mmcblk0
> + Disk /dev/mmcblk0: 15 GB, 15913189376 bytes, 31080448 sectors
> + 242816 cylinders, 4 heads, 32 sectors/track
> + Units: sectors of 1 * 512 = 512 bytes
> +
> + Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
> + /dev/mmcblk0p1 * 128,0,1 1023,3,32 16384 278527 262144 128M c Win95 FAT32 (LBA)
> + /dev/mmcblk0p2 1023,3,32 1023,3,32 278528 1693883 1415356 691M 83 Linux
> +
> +
> +Once partitioned, the boot partition has to be formatted with a FAT filesystem.
> +Assuming the uSD card is `/dev/mmcblk0`:
> +
> +.. code-block:: bash
> +
> + $ mkfs.vfat /dev/mmcblk0p1
> +
> +To boot from a micro SD card on a HSFS device simply copy the following
> +artifacts to the FAT partition:
> +
> +* tiboot3.bin from R5 build
> +* tispl.bin from Cortex-A build
> +* u-boot.img from Cortex-A build
> +
> +Boot
> +----
> +
> +Put the uSD card in the slot on the board and apply power. Check the serial
> +console for output.
> +
> +UART based boot
> +---------------
> +
> +To boot the board via UART, set the switches to UART mode and connect to the
> +micro USB port labeled as "Debug UART". After power-on the build artifacts
> +needs to be uploaded one by one with a tool like sz.
> +
> +Example bash script sequence for running on a Linux host PC feeding all boot
> +artifacts needed to the device. Assuming the host uses /dev/ttyUSB0 as
> +the main domain serial port:
> +
> +.. prompt:: bash $
> +
> + stty -F /dev/ttyUSB0 115200
> + sb --xmodem tiboot3.bin > /dev/ttyUSB0 < /dev/ttyUSB0
> + sb --ymodem tispl.bin > /dev/ttyUSB0 < /dev/ttyUSB0
> + sb --ymodem u-boot.img > /dev/ttyUSB0 < /dev/ttyUSB0
> +
> +Boot Modes
> +----------
> +
> +The phyCORE-AM62x development kit supports booting from many different
> +interfaces. By default, the development kit is set to boot from the micro-SD
> +card. To change the boot device, DIP switches S5 and S6 can be used.
> +Boot switches should be changed with power off.
> +
> +.. list-table:: Boot Modes
> + :widths: 16 16 16
> + :header-rows: 1
> +
> + * - Switch Label
> + - SW5: 12345678
> + - SW6: 12345678
> +
> + * - uSD
> + - 11000010
> + - 01000000
> +
> + * - eMMC
> + - 11010010
> + - 00000000
> +
> + * - OSPI
> + - 11010000
> + - 10000000
> +
> + * - UART
> + - 11011100
> + - 00000000
> +
> +Further Information
> +-------------------
> +
> +Please see :doc:`../ti/am62ax_sk` chapter for further AM62Ax SoC related documentation
> +and https://docs.phytec.com/projects/yocto-phycore-am62ax/en/latest/ for vendor documentation.
> diff --git a/doc/board/ti/k3.rst b/doc/board/ti/k3.rst
> index 5d01f487622..0deb4d768f9 100644
> --- a/doc/board/ti/k3.rst
> +++ b/doc/board/ti/k3.rst
> @@ -46,6 +46,7 @@ K3 SoC based boards in other sections
> * :doc:`../beagle/am62x_beagleplay`
> * :doc:`../beagle/j721e_beagleboneai64`
> * :doc:`../phytec/phycore-am62x`
> +* :doc:`../phytec/phycore-am62ax`
> * :doc:`../toradex/verdin-am62`
>
> Boot Flow Overview
prev parent reply other threads:[~2024-11-18 9:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-15 19:50 [PATCH 0/2] Add phyCORE AM62Ax Garrett Giordano
2024-11-15 19:50 ` [PATCH 1/2] board: phytec: am62a7: Add PHYTEC phyCORE-AM62A7 SoM Garrett Giordano
2024-11-18 10:02 ` Wadim Egorov
2024-11-18 14:10 ` Tom Rini
2024-11-18 22:16 ` Garrett Giordano
2024-11-18 19:32 ` Bryan Brattlof
2024-11-18 22:28 ` Garrett Giordano
2024-11-15 19:50 ` [PATCH 2/2] doc: board: phytec: Add phyCORE-AM62ax Garrett Giordano
2024-11-18 9:41 ` Wadim Egorov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2f7bc755-2df9-4432-9de5-388ab58ae0de@phytec.de \
--to=w.egorov@phytec.de \
--cc=Oliver.Gaskell@analog.com \
--cc=afd@ti.com \
--cc=aford173@gmail.com \
--cc=bb@ti.com \
--cc=d-gole@ti.com \
--cc=d.schultz@phytec.de \
--cc=festevam@denx.de \
--cc=francesco.dolcini@toradex.com \
--cc=ggiordano@phytec.com \
--cc=j-choudhary@ti.com \
--cc=j-humphreys@ti.com \
--cc=jonas@kwiboo.se \
--cc=kever.yang@rock-chips.com \
--cc=m-chawdhry@ti.com \
--cc=marex@denx.de \
--cc=mibodhi@gmail.com \
--cc=n-francis@ti.com \
--cc=neil.armstrong@linaro.org \
--cc=nm@ti.com \
--cc=nmorrisson@phytec.com \
--cc=othacehe@gnu.org \
--cc=prasad.kummari@amd.com \
--cc=sjg@chromium.org \
--cc=sumit.garg@linaro.org \
--cc=t.remmet@phytec.de \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=upstream@lists.phytec.de \
--cc=vigneshr@ti.com \
--cc=vishalm@ti.com \
--cc=y.moog@phytec.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox