configs/freescale_imx8mpevk: new defconfig
PATCH 1/1 configs/freescale_imx8mpevk: new defconfig
This 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 + .../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 + .../freescale-imx/imx-vpu-hantro/Config.in | 2 +- package/imx-mkimage/imx-mkimage.mk | 2 +- 9 files changed, 135 insertions(+), 3 deletions(-) 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/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
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
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"
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
package/freescale-imx/imx-vpu-hantro/Config.in +1 -1
@@ -12,7 +12,7 @@ config BR2_PACKAGE_IMX_VPU_HANTRO help Library of userspace helpers specific for the NXP i.MX SoC integrating a Hantro Video Processing Unit (VPU) such as the - i.MX8MQ/i.MX8MM. + i.MX8MQ/i.MX8MM/i.MX8MP. It requires a kernel that includes the i.MX specific headers to be built.
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 1/1 configs/freescale_imx8mpevk: new defconfig
Quoted 11 lines
This 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.shThis first support is based on NXP's 5.4.70_2.3.0 BSP.
Signed-off-by Stephane Viau <[email protected]>---
PATCH 1/1 configs/freescale_imx8mpevk: new defconfig
Hi Stephane,
Thanks for this, I've been looking forward 8MP support in Buildroot!
Quoted 7 lines · Stephane Viau (OSS)
Quoted 7 lines
This 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.shThis first support is based on NXP's 5.4.70_2.3.0 BSP.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Stephane Viau <[email protected]>---
[Stephane: tested on i.MX8MP EVK]Tested-by Stephane Viau <[email protected]>
However, can you split your patch? It changes many files/packages which aren't related to the NXP EVK but the i.MX 8M Plus support in general.
You can have a look at my Nano series [1] for comparison.
Regards,
Gary
[1] http://patchwork.ozlabs.org/project/buildroot/list/?series=170477&archive=both&state=*
PATCH 1/1 configs/freescale_imx8mpevk: new defconfig
Hi Gary,
Thanks for your feedback.
Quoted 18 lines
Hi Stephane,
Thanks for this, I've been looking forward 8MP support in Buildroot!
Quoted 12 lines · Stephane Viau (OSS)
Quoted 11 lines
This 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.shThis first support is based on NXP's 5.4.70_2.3.0 BSP.
Signed-off-by Stephane Viau <[email protected]>---
Quoted 7 lines
Quoted 2 lines
[Stephane: tested on i.MX8MP EVK]Tested-by Stephane Viau <[email protected]>However, can you split your patch? It changes many files/packages which aren't related to the NXP EVK but the i.MX 8M Plus support in general.
You can have a look at my Nano series [1] for comparison.
Will do.
BR,
Stephane.
Quoted 5 lines
Regards,
Gary[1] http://patchwork.ozlabs.org/project/buildroot/list/?series=170477&archive=both&state=*