blob: ff6f01d3b7d9766a8e2cee9088b340e0e351f397 [file] [log] [blame]
Frieder Schrempf199dfd92021-09-29 16:42:42 +02001.. SPDX-License-Identifier: GPL-2.0+
2
Frieder Schrempf3048ecd2022-08-24 15:59:19 +02003Kontron Electronics i.MX8MM SoMs and Boards
4===========================================
Frieder Schrempf199dfd92021-09-29 16:42:42 +02005
Frieder Schrempf3048ecd2022-08-24 15:59:19 +02006The SL i.MX8MM and OSM-S i.MX8MM by Kontron Electronics GmbH are SoM modules
Frieder Schrempf199dfd92021-09-29 16:42:42 +02007with an i.MX8M-Mini SoC, 1/2/4 GB LPDDR4 RAM, SPI NOR, eMMC and PMIC.
8
Frieder Schrempf3048ecd2022-08-24 15:59:19 +02009The matching evaluation boards (Board-Line, BL) have two Ethernet ports,
10USB 2.0, HDMI/LVDS, SD card, CAN, RS485, RS232 and much more.
11
Frieder Schrempf8c906592023-01-19 12:20:34 +010012The OSM-S i.MX8MM is compliant to the Open Standard Module (OSM) 1.1
Frieder Schrempf3048ecd2022-08-24 15:59:19 +020013specification, size S (https://sget.org/standards/osm).
Frieder Schrempf199dfd92021-09-29 16:42:42 +020014
15Quick Start
16-----------
17
18- Get and Build the Trusted Firmware-A (TF-A)
19- Get the DDR firmware
20- Build U-Boot
21- Boot
22
Frieder Schrempf5c49d4b2023-01-19 12:20:35 +010023.. note::
24
25 To build on a x86-64 host machine, you need a GNU cross toolchain for the
26 target architecture (aarch64). Check your distros package manager or
27 download and install the necessary tools (``aarch64-linux-gnu-*``) manually.
28
Frieder Schrempf199dfd92021-09-29 16:42:42 +020029Get and Build the Trusted Firmware-A (TF-A)
30^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31
32Note: builddir is U-Boot build directory (source directory for in-tree builds)
33
34There are two sources for the TF-A. Mainline and NXP. Get the one you prefer
35(support and features might differ).
36
37**NXP's imx-atf**
38
391. Get TF-A from: https://source.codeaurora.org/external/imx/imx-atf, branch: imx_5.4.70_2.3.0
402. Apply the patch to select the correct UART for the console, otherwise the TF-A will lock up during boot.
413. Build
42
43 .. code-block:: bash
44
45 $ make PLAT=imx8mm bl31
46 $ cp build/imx8mm/release/bl31.bin $(builddir)
47
48**Mainline TF-A**
49
501. Get TF-A from: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/, tag: v2.4
512. Build
52
53 .. code-block:: bash
54
55 $ make PLAT=imx8mm CROSS_COMPILE=aarch64-linux-gnu- IMX_BOOT_UART_BASE="0x30880000" bl31
56 $ cp build/imx8mm/release/bl31.bin $(builddir)
57
58Get the DDR firmware
59^^^^^^^^^^^^^^^^^^^^
60
61.. code-block:: bash
62
63 $ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
64 $ chmod +x firmware-imx-8.9.bin
65 $ ./firmware-imx-8.9.bin
66 $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir)
67
68Build U-Boot
69^^^^^^^^^^^^
70
71.. code-block:: bash
72
73 $ make kontron-sl-mx8mm_defconfig
Frieder Schrempf199dfd92021-09-29 16:42:42 +020074 $ make
75
76Burn the flash.bin to SD card at an offset of 33 KiB:
77
78.. code-block:: bash
79
80 $ dd if=flash.bin of=/dev/sd[x] bs=1K seek=33 conv=notrunc
81
82Boot
83^^^^
84
85Put the SD card in the slot on the board and apply power.
86
87Further Information
88-------------------
89
90The bootloader configuration is setup to be used with kernel FIT images. Legacy
91images might not be working out of the box.
92
93Please see https://docs.kontron-electronics.de for further vendor documentation.