On Wed, Feb 12, 2020 at 11:14 PM Igor Opaniuk <igor.opan...@gmail.com> wrote: > > From: Igor Opaniuk <igor.opan...@toradex.com> > > Convert README to reStructuredText format. > > Signed-off-by: Igor Opaniuk <igor.opan...@toradex.com> > --- > > board/toradex/verdin-imx8mm/README | 88 ---------------------- > doc/board/toradex/index.rst | 1 + > doc/board/toradex/verdin-imx8mm.rst | 112 ++++++++++++++++++++++++++++ > 3 files changed, 113 insertions(+), 88 deletions(-) > delete mode 100644 board/toradex/verdin-imx8mm/README > create mode 100644 doc/board/toradex/verdin-imx8mm.rst > > diff --git a/board/toradex/verdin-imx8mm/README > b/board/toradex/verdin-imx8mm/README > deleted file mode 100644 > index 1dac969476..0000000000 > --- a/board/toradex/verdin-imx8mm/README > +++ /dev/null > @@ -1,88 +0,0 @@ > -U-Boot for the Toradex Verdin iMX8M Mini Module > - > -Quick Start > -=========== > - > -- Build the ARM trusted firmware binary > -- Get the DDR firmware > -- Build U-Boot > -- Flash to eMMC > -- Boot > - > -Get and Build the ARM Trusted Firmware (Trusted Firmware A) > -=========================================================== > - > -$ echo "Downloading and building TF-A..." > -$ git clone -b imx_4.14.98_2.3.0 > https://source.codeaurora.org/external/imx/imx-atf > -$ cd imx-atf > - > -Please edit `plat/imx/imx8mm/include/platform_def.h` so it contains proper > -values for UART configuration and BL31 base address (correct values listed > -below): > -#define BL31_BASE 0x910000 > -#define IMX_BOOT_UART_BASE 0x30860000 > -#define DEBUG_CONSOLE 1 > - > -Then build ATF (TF-A): > -$ make PLAT=imx8mm bl31 > - > -Get the DDR Firmware > -==================== > - > -$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.4.1.bin > -$ chmod +x firmware-imx-8.4.1.bin > -$ ./firmware-imx-8.4.1.bin > -$ cp firmware-imx-8.4.1/firmware/ddr/synopsys/lpddr4*.bin ./ > - > -Build U-Boot > -============ > - > -$ export CROSS_COMPILE=aarch64-linux-gnu- > -$ make verdin-imx8mm_defconfig > -$ make flash.bin > - > -Flash to eMMC > -============= > - > -> tftpboot ${loadaddr} flash.bin > -> setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200 > -> mmc dev 0 1 && mmc write ${loadaddr} 0x2 ${blkcnt} > - > -As a convenience, instead of the last two commands one may also use the > update > -U-Boot wrapper: > -> run update_uboot > - > -Boot > -==== > - > -ATF, U-boot proper and u-boot.dtb images are packed into FIT image,
nits: U-Boot > -which is loaded and parsed by SPL. > - > -Boot sequence is: > -SPL ---> ATF (TF-A) ---> U-boot proper nits: U-Boot > - > -Output: Reviewed-by: Bin Meng <bmeng...@gmail.com> Will fix the nits when applying