imx: add i.MX8M Plus SoC & 8MPlus EVK board support
v2 cover imx: add i.MX8M Plus SoC & 8MPlus EVK board support
This patch set adds support for the NXP i.MX 8MPlus.
Stephane Viau (5):
package/freescale-imx: add option for i.MX8M Plus package/freescale-imx/firmware-imx: add support for i.MX8M Plus package/imx-mkimage: add support for i.MX8M Plus board/freescale/common/imx: add support for i.MX8M Plus configs/freescale_imx8mpevk: new defconfig
DEVELOPERS | 2 + .../common/imx/imx8-bootloader-prepare.sh | 7 ++ board/freescale/common/imx/post-image.sh | 2 + board/freescale/imx8mpevk/readme.txt | 71 +++++++++++++++++++ configs/freescale_imx8mpevk_defconfig | 42 +++++++++++ package/freescale-imx/Config.in | 8 ++- package/freescale-imx/firmware-imx/Config.in | 2 + package/imx-mkimage/imx-mkimage.mk | 2 +- 8 files changed, 134 insertions(+), 2 deletions(-) create mode 100644 board/freescale/imx8mpevk/readme.txt create mode 100644 configs/freescale_imx8mpevk_defconfig
Signature · 1 line
2.29.2
PATCH v2 1/5 package/freescale-imx: add option for i.MX8M Plus
The i.MX Plus focuses on machine learning and vision and industrial automation. It also provides advanced multimedia, including a VPU and the GC7000UL GPU.
--- package/freescale-imx/Config.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
package/freescale-imx/Config.in +7 -1
@@ -52,6 +52,9 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN bool "imx8mn" +config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP + bool "imx8mp" + config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X bool "imx8x" endchoice
@@ -72,6 +75,7 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM default "IMX8MQ" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M default "IMX8MM" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM default "IMX8MN" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN + default "IMX8MP" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP config BR2_PACKAGE_FREESCALE_IMX_HAS_VPU bool
@@ -83,7 +87,8 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VPU config BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO bool default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ - BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU bool
@@ -94,6 +99,7 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X source "package/freescale-imx/imx-alsa-plugins/Config.in"
Signature · 1 line
2.29.2
PATCH v2 1/5 package/freescale-imx: add option for i.MX8M Plus
Hi Stephane,
Quoted 1 line · Stephane Viau
The i.MX Plus focuses on machine learning and vision and industrial
^ 8M
Quoted 2 lines
automation. It also provides advanced multimedia, including a VPU and the GC7000UL GPU.
^
+ GC520L (2D)
Quoted 38 lines
Signed-off-by Stephane Viau <[email protected]>--- package/freescale-imx/Config.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)package/freescale-imx/Config.in +6
-1@@ -52,6 +52,9 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN bool "imx8mn" +config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP + bool "imx8mp" + config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X bool "imx8x" endchoice@@ -72,6 +75,7 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM default "IMX8MQ" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M default "IMX8MM" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM default "IMX8MN" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN + default "IMX8MP" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP config BR2_PACKAGE_FREESCALE_IMX_HAS_VPU bool@@ -83,7 +87,8 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VPU config BR2_PACKAGE_FREESCALE_IMX_HAS_VPU_HANTRO bool default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ - BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU bool
package/freescale-imx/Config.in config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU · line 103
Quoted 5 lines
package/freescale-imx/Config.in +1
-0@@ -94,6 +99,7 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X
Note that I've received a complaint from NXP some time back because the CPU name wasn't spelled correctly, I was told: "there should always be a space between 'i.MX' and the series number like '8M'".
So the title should be "i.MX 8M Plus" ;-)
With those minor changes:
Regards,
Gary
PATCH v2 1/5 package/freescale-imx: add option for i.MX8M Plus
Quoted 8 lines
Note that I've received a complaint from NXP some time back because the CPU name wasn't spelled correctly, I was told: "there should always be a space between 'i.MX' and the series number like '8M'".
So the title should be "i.MX 8M Plus" ;-)With those minor changes:
Reviewed-by Gary Bisson <[email protected]>
Hi Gary,
Good point! ;-)
Thank you for the review and prompt feedback on this patch set! ...v3 is on its way [1].
BR,
Stephane.
[1] http://lists.busybox.net/pipermail/buildroot/2021-March/306645.html
PATCH v2 2/5 package/freescale-imx/firmware-imx: add support for i.MX8M Plus
In reply to Stephane ViauThis SoC requires the same (LP)DDR training binaries as i.MX 8M SoC family.
--- package/freescale-imx/firmware-imx/Config.in | 2 ++ 1 file changed, 2 insertions(+)
package/freescale-imx/firmware-imx/Config.in +2 -0
@@ -24,6 +24,7 @@ config BR2_PACKAGE_FIRMWARE_IMX_SDMA_FW_NAME default "imx7d" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M default "imx7d" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM default "imx7d" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN + default "imx7d" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP config BR2_PACKAGE_FIRMWARE_IMX_VPU_FW_NAME string
@@ -48,6 +49,7 @@ config BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP if BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW
Signature · 1 line
2.29.2
PATCH v2 2/5 package/freescale-imx/firmware-imx: add support for i.MX8M Plus
Hi Stephane,
Quoted 4 lines · Stephane Viau
This SoC requires the same (LP)DDR training binaries as i.MX 8M SoC family.
Signed-off-by Stephane Viau <[email protected]>
Same comment, title should say "i.MX 8M Plus". Otherwise:
Regards,
Gary
PATCH v2 3/5 package/imx-mkimage: add support for i.MX8M Plus
In reply to Stephane ViauThis SoC uses the same tools to generate boot images as the 8M family.
--- package/imx-mkimage/imx-mkimage.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/imx-mkimage/imx-mkimage.mk +1 -1
@@ -11,7 +11,7 @@ IMX_MKIMAGE_LICENSE = GPL-2.0+ IMX_MKIMAGE_LICENSE_FILES = COPYING HOST_IMX_MKIMAGE_DEPENDENCIES = host-zlib -ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN),y) +ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP),y) # i.MX8M needs a different binary define HOST_IMX_MKIMAGE_BUILD_CMDS $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
Signature · 1 line
2.29.2
PATCH v2 3/5 package/imx-mkimage: add support for i.MX8M Plus
Hi Stephane
Quoted 3 lines · Stephane Viau
This SoC uses the same tools to generate boot images as the 8M family.
Signed-off-by Stephane Viau <[email protected]>
Same thing.
Regards,
Gary
PATCH v2 4/5 board/freescale/common/imx: add support for i.MX8M Plus
In reply to Stephane ViauAlmost identical as i.MX8M Nano, with a couple of differences:
- different ATF load address [1]
- different entry point [2]
[1] https://source.denx.de/u-boot/u-boot/-/commit/e8e2703a3050feb8d2e6473d806c5277d5e3236f
[2] https://source.denx.de/u-boot/u-boot/-/blob/v2021.04-rc4/configs/imx8mp_evk_defconfig#L14
--- board/freescale/common/imx/imx8-bootloader-prepare.sh | 7 +++++++ board/freescale/common/imx/post-image.sh | 2 ++ 2 files changed, 9 insertions(+)
board/freescale/common/imx/imx8-bootloader-prepare.sh +7 -0
@@ -29,6 +29,13 @@ main () rm -f ${BINARIES_DIR}/u-boot.its ${HOST_DIR}/bin/mkimage_imx8 -v v2 -fit -loader ${BINARIES_DIR}/u-boot-spl-ddr.bin 0x912000 -second_loader ${BINARIES_DIR}/u-boot.itb 0x40200000 0x60000 -out ${BINARIES_DIR}/imx8-boot-sd.bin + elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP=y$" ${BR2_CONFIG}; then + cat ${BINARIES_DIR}/u-boot-spl.bin ${BINARIES_DIR}/ddr_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin + BL31=${BINARIES_DIR}/bl31.bin BL33=${BINARIES_DIR}/u-boot-nodtb.bin ATF_LOAD_ADDR=0x00970000 ${HOST_DIR}/bin/mkimage_fit_atf.sh ${UBOOT_DTB} > ${BINARIES_DIR}/u-boot.its + ${HOST_DIR}/bin/mkimage -E -p 0x3000 -f ${BINARIES_DIR}/u-boot.its ${BINARIES_DIR}/u-boot.itb + rm -f ${BINARIES_DIR}/u-boot.its + + ${HOST_DIR}/bin/mkimage_imx8 -v v2 -fit -loader ${BINARIES_DIR}/u-boot-spl-ddr.bin 0x920000 -second_loader ${BINARIES_DIR}/u-boot.itb 0x40200000 0x60000 -out ${BINARIES_DIR}/imx8-boot-sd.bin else ${HOST_DIR}/bin/mkimage_imx8 -commit > ${BINARIES_DIR}/mkimg.commit cat ${BINARIES_DIR}/u-boot.bin ${BINARIES_DIR}/mkimg.commit > ${BINARIES_DIR}/u-boot-hash.bin
board/freescale/common/imx/post-image.sh +2 -0
@@ -40,6 +40,8 @@ genimage_type() echo "genimage.cfg.template_imx8" elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN=y$" ${BR2_CONFIG}; then echo "genimage.cfg.template_imx8" + elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP=y$" ${BR2_CONFIG}; then + echo "genimage.cfg.template_imx8" elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X=y$" ${BR2_CONFIG}; then echo "genimage.cfg.template_imx8" elif grep -Eq "^BR2_LINUX_KERNEL_INSTALL_TARGET=y$" ${BR2_CONFIG}; then
Signature · 1 line
2.29.2
PATCH v2 4/5 board/freescale/common/imx: add support for i.MX8M Plus
Hi Stephane,
Quoted 8 lines · Stephane Viau
Almost identical as i.MX8M Nano, with a couple of differences:
- different ATF load address [1]
- different entry point [2][1] https://source.denx.de/u-boot/u-boot/-/commit/e8e2703a3050feb8d2e6473d806c5277d5e3236f
[2] https://source.denx.de/u-boot/u-boot/-/blob/v2021.04-rc4/configs/imx8mp_evk_defconfig#L14Signed-off-by Stephane Viau <[email protected]>
Same thing.
Regards,
Gary
PATCH v2 5/5 configs/freescale_imx8mpevk: new defconfig
In reply to Stephane ViauThis patch adds support for the NXP i.MX 8MPlus EVK board [1].
The final boot image is created from uboot and firmware binaries in post image script board/freescale/common/imx/imx8-bootloader-prepare.sh.
This first support is based on NXP's 5.4.70_2.3.0 BSP.
--- DEVELOPERS | 2 + board/freescale/imx8mpevk/readme.txt | 71 +++++++++++++++++++++++++++ configs/freescale_imx8mpevk_defconfig | 42 ++++++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 board/freescale/imx8mpevk/readme.txt create mode 100644 configs/freescale_imx8mpevk_defconfig
DEVELOPERS +2 -0
@@ -2457,7 +2457,9 @@ F: package/mtdev/ N: Stephane Viau <[email protected]> F: board/freescale/imx8mnevk/ +F: board/freescale/imx8mpevk/ F: configs/freescale_imx8mnevk_defconfig +F: configs/freescale_imx8mpevk_defconfig N: Steve Calfee <[email protected]> F: package/python-pymysql/
board/freescale/imx8mpevk/readme.txt new file +71 -0
71 lines not on this page · raw message
configs/freescale_imx8mpevk_defconfig new file +42 -0
42 lines not on this page · raw message
Signature · 1 line
2.29.2