configs/imx8mmpico: new defconfig
cover configs/imx8mmpico: new defconfig
This patch series add support for i.MX8M Mini SoC and a new defconfig for the Technexion i.MX8M Mini Pico board.
Julien Olivain (5):
package/freescale-imx: add option for i.MX8MM package/freescale-imx/firmware-imx: add support for i.MX8MM package/imx-mkimage: add support for i.MX8MM board/freescale/common/imx: add support for i.MX8MM configs/imx8mmpico: new defconfig
.gitlab-ci.yml | 1 + DEVELOPERS | 2 + .../common/imx/imx8-bootloader-prepare.sh | 7 ++ board/freescale/common/imx/post-image.sh | 4 + board/technexion/imx8mmpico/readme.txt | 96 +++++++++++++++++++ configs/imx8mmpico_defconfig | 39 ++++++++ package/freescale-imx/Config.in | 6 +- .../firmware-imx/firmware-imx.mk | 2 +- package/imx-mkimage/imx-mkimage.mk | 2 +- 9 files changed, 156 insertions(+), 3 deletions(-) create mode 100644 board/technexion/imx8mmpico/readme.txt create mode 100644 configs/imx8mmpico_defconfig
Signature · 1 line
2.21.0
PATCH 1/5 package/freescale-imx: add option for i.MX8MM
The i.MX8MMini is slightly different from the i.MX8M. The main difference of interrest here is that the i.MX8MMini has no HDMI support. The boot image must not include the HDMI signed firmware, which is why we need this new configuration option.
--- package/freescale-imx/Config.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
package/freescale-imx/Config.in +5 -1
@@ -43,6 +43,9 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M bool "imx8m" +config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM + bool "imx8mm" + config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X bool "imx8x" endchoice
@@ -77,7 +80,8 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6S || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 || \ - BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM source "package/freescale-imx/imx-alsa-plugins/Config.in" source "package/freescale-imx/imx-codec/Config.in"
Signature · 1 line
2.21.0
PATCH 1/5 package/freescale-imx: add option for i.MX8MM
Hi Julien,
Quoted 25 lines · Julien Olivain
The i.MX8MMini is slightly different from the i.MX8M. The main difference of interrest here is that the i.MX8MMini has no HDMI support. The boot image must not include the HDMI signed firmware, which is why we need this new configuration option.
Signed-off-by Julien Olivain <[email protected]>--- package/freescale-imx/Config.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)package/freescale-imx/Config.in +3
-0@@ -43,6 +43,9 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M bool "imx8m" +config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM + bool "imx8mm" + config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X bool "imx8x" endchoice
package/freescale-imx/Config.in config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU · line 84
Quoted 6 lines
package/freescale-imx/Config.in +2
-1@@ -77,7 +80,8 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6S || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 || \ - BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM
Here, you set BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU, but you don't add a value
for BR2_PACKAGE_FREESCALE_IMX_PLATFORM, which will be used by the imx-lib package. Now, I don't think the imx-lib package is even relevant for imx8, but it *can* be built... Or maybe we should revisit the conditions on that package.
Also, in imx-gpu-viv/Config.in, for IMX8M, only the wayland output is enabled,
but now for IMX8MM, you allow all outputs. Is that intended?
Anyway, these things can be fixed up in follow-up patches, if needed, so I've
applied the entire series to master, thanks.
Regards,
Arnout
Quoted 4 lines
package/freescale-imx/Config.in +0
-0source "package/freescale-imx/imx-alsa-plugins/Config.in" source "package/freescale-imx/imx-codec/Config.in"
PATCH 2/5 package/freescale-imx/firmware-imx: add support for i.MX8MM
In reply to Julien Olivain--- package/freescale-imx/firmware-imx/firmware-imx.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/freescale-imx/firmware-imx/firmware-imx.mk +1 -1
@@ -18,7 +18,7 @@ define FIRMWARE_IMX_EXTRACT_CMDS $(call FREESCALE_IMX_EXTRACT_HELPER,$(FIRMWARE_IMX_DL_DIR)/$(FIRMWARE_IMX_SOURCE)) endef -ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M),y) +ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM),y) FIRMWARE_IMX_INSTALL_IMAGES = YES FIRMWARE_IMX_DDRFW_DIR = $(@D)/firmware/ddr/synopsys define FIRMWARE_IMX_PREPARE_LPDDR4_FW
Signature · 1 line
2.21.0
PATCH 3/5 package/imx-mkimage: add support for i.MX8MM
In reply to Julien Olivain--- 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),y) +ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM),y) # i.MX8M needs a different binary define HOST_IMX_MKIMAGE_BUILD_CMDS $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
Signature · 1 line
2.21.0
PATCH 4/5 board/freescale/common/imx: add support for i.MX8MM
In reply to Julien OlivainFor the boot image creation for the i.MX8MM, the main differences with i.MX8M are that there is no HDMI firmware image passed, and the ATF load address is different.
--- board/freescale/common/imx/imx8-bootloader-prepare.sh | 7 +++++++ board/freescale/common/imx/post-image.sh | 4 ++++ 2 files changed, 11 insertions(+)
board/freescale/common/imx/imx8-bootloader-prepare.sh +7 -0
@@ -15,6 +15,13 @@ main () rm -f ${BINARIES_DIR}/u-boot.its ${HOST_DIR}/bin/mkimage_imx8 -fit -signed_hdmi ${BINARIES_DIR}/signed_hdmi_imx8m.bin -loader ${BINARIES_DIR}/u-boot-spl-ddr.bin 0x7E1000 -second_loader ${BINARIES_DIR}/u-boot.itb 0x40200000 0x60000 -out ${BINARIES_DIR}/imx8-boot-sd.bin + elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM=y$" ${BR2_CONFIG}; then + cat ${BINARIES_DIR}/u-boot-spl.bin ${BINARIES_DIR}/lpddr4_pmu_train_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin + BL31=${BINARIES_DIR}/bl31.bin BL33=${BINARIES_DIR}/u-boot.bin ATF_LOAD_ADDR=0x00920000 ${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 -fit -loader ${BINARIES_DIR}/u-boot-spl-ddr.bin 0x7E1000 -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 +4 -0
@@ -34,6 +34,8 @@ genimage_type() { if grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M=y$" ${BR2_CONFIG}; then echo "genimage.cfg.template_imx8" + elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM=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_TARGET_UBOOT_SPL=y$" ${BR2_CONFIG}; then
@@ -47,6 +49,8 @@ imx_offset() { if grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M=y$" ${BR2_CONFIG}; then echo "33K" + elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM=y$" ${BR2_CONFIG}; then + echo "33K" else echo "32K" fi
Signature · 1 line
2.21.0
PATCH 5/5 configs/imx8mmpico: new defconfig
In reply to Julien Olivain--- .gitlab-ci.yml | 1 + DEVELOPERS | 2 + board/technexion/imx8mmpico/readme.txt | 96 ++++++++++++++++++++++++++ configs/imx8mmpico_defconfig | 39 +++++++++++ 4 files changed, 138 insertions(+) create mode 100644 board/technexion/imx8mmpico/readme.txt create mode 100644 configs/imx8mmpico_defconfig
.gitlab-ci.yml +1 -0
@@ -196,6 +196,7 @@ imx6ulevk_defconfig: { extends: .defconfig } imx6ulpico_defconfig: { extends: .defconfig } imx7d-sdb_defconfig: { extends: .defconfig } imx7dpico_defconfig: { extends: .defconfig } +imx8mmpico_defconfig: { extends: .defconfig } imx8mpico_defconfig: { extends: .defconfig } lego_ev3_defconfig: { extends: .defconfig } licheepi_zero_defconfig: { extends: .defconfig }
DEVELOPERS +2 -0
@@ -1259,7 +1259,9 @@ N: Julien Grossholtz <[email protected]> F: package/paho-mqtt-c N: Julien Olivain <[email protected]> +F: board/technexion/imx8mmpico/ F: board/technexion/imx8mpico/ +F: configs/imx8mmpico_defconfig F: configs/imx8mpico_defconfig N: Julien Viard de Galbert <[email protected]>
board/technexion/imx8mmpico/readme.txt new file +96 -0
96 lines not on this page · raw message
configs/imx8mmpico_defconfig new file +39 -0
@@ -0,0 +1,39 @@ +BR2_aarch64=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/freescale/common/imx/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/imx8mm-pico-pi.dtb" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,TechNexion,linux,7ff5de3f5d79c77ab7ecaa6e346ad0e7fb7f0570)/linux-7ff5de3f5d79c77ab7ecaa6e346ad0e7fb7f0570.tar.gz" +BR2_LINUX_KERNEL_DEFCONFIG="tn_imx8" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/imx8mm-pico-pi freescale/imx8mm-pico-pi-ili9881c freescale/imx8mm-pico-pi-sn65dsi84-hj070na" +BR2_PACKAGE_FREESCALE_IMX=y +BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM=y +BR2_PACKAGE_FIRMWARE_IMX=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="120M" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://source.codeaurora.org/external/imx/imx-atf" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="rel_imx_4.14.78_1.0.0_ga" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="imx8mm" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_TARBALL=y +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,TechNexion,u-boot-edm,d3391226ba25b1cc6cba7e6c15a2a7e09319b969)/u-boot-edm-d3391226ba25b1cc6cba7e6c15a2a7e09319b969.tar.gz" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="pico-imx8mm" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_IMX=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-nodtb.bin" +BR2_TARGET_UBOOT_SPL=y +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_IMX_MKIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y +BR2_PACKAGE_HOST_UBOOT_TOOLS=y +BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT=y
Signature · 1 line
2.21.0