imx: add i.MX8MNano / Nitrogen8MNano support
cover imx: add i.MX8MNano / Nitrogen8MNano support
Hi,
This series adds support for the Boundary Devices Nitrogen8MNano board.
Since the i.MX8M Nano CPU wasn't supported, the first half of the series adds said support (close to i.MX8M Mini with a few differences).
Then the second half add Boundary Devices Nitrogen8M Nano platform. I also bumped the kernel/u-boot revision for all Nitrogen defconfig so they are all aligned.
Let me know if you have any questions.
Regards,
Gary
Gary Bisson (7):
package/freescale-imx: add option for i.MX8M Nano package/freescale-imx/firmware-imx: add support for i.MX8M Nano package/imx-mkimage: add support for i.MX8M Nano board/freescale/common/imx: add support for i.MX8M Nano configs/nitrogen*: bump kernel revision configs/nitrogen*: bump u-boot revision configs/nitrogen8mn: new defconfig
.gitlab-ci.yml | 1 +
board/boundarydevices/common/readme.txt | 4 ++++
.../common/imx/imx8-bootloader-prepare.sh | 7 +++++++
configs/nitrogen6sx_defconfig | 4 ++--
configs/nitrogen6x_defconfig | 4 ++--
configs/nitrogen7_defconfig | 4 ++--
configs/nitrogen8m_defconfig | 4 ++--
configs/nitrogen8mm_defconfig | 4 ++--
...itrogen8m_defconfig => nitrogen8mn_defconfig} | 16 ++++++++--------
package/freescale-imx/Config.in | 5 +++++
.../freescale-imx/firmware-imx/firmware-imx.mk | 2 +-
package/imx-mkimage/imx-mkimage.mk | 2 +-
12 files changed, 37 insertions(+), 20 deletions(-)
copy configs/{nitrogen8m_defconfig => nitrogen8mn_defconfig} (75%)Signature · 1 line
2.25.1
PATCH 1/7 package/freescale-imx: add option for i.MX8M Nano
The i.MX8M Nano is slightly different from the i.MX8M Mini but very close (pin to pin compatible).
Mainly the Nano version has no VPU and another GPU (GC7000UL).
--- package/freescale-imx/Config.in | 5 +++++ 1 file changed, 5 insertions(+)
package/freescale-imx/Config.in +5 -0
@@ -49,6 +49,9 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM bool "imx8mm" +config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN + bool "imx8mn" + config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X bool "imx8x" endchoice
@@ -68,6 +71,7 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM default "IMX8" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 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 config BR2_PACKAGE_FREESCALE_IMX_HAS_VPU bool
@@ -89,6 +93,7 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8 || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X source "package/freescale-imx/imx-alsa-plugins/Config.in"
Signature · 1 line
2.25.1
PATCH 2/7 package/freescale-imx/firmware-imx: add support for i.MX8M Nano
In reply to Gary BissonThis CPU requires the same (LP)DDR training binaries as i.MX8M Mini.
--- 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)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM),y) +ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN),y) FIRMWARE_IMX_INSTALL_IMAGES = YES FIRMWARE_IMX_DDRFW_DIR = $(@D)/firmware/ddr/synopsys define FIRMWARE_IMX_PREPARE_LPDDR4_FW
Signature · 1 line
2.25.1
PATCH 3/7 package/imx-mkimage: add support for i.MX8M Nano
In reply to Gary BissonThis CPU uses the same tools to generate boot images as 8MQ/8MMini.
--- 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),y) +ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN),y) # i.MX8M needs a different binary define HOST_IMX_MKIMAGE_BUILD_CMDS $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
Signature · 1 line
2.25.1
PATCH 4/7 board/freescale/common/imx: add support for i.MX8M Nano
In reply to Gary BissonAlmost identical as i.MX8M Mini, here are the differences:
- different ATF load address [1]
- different entry point [2]
- different ROM version (v2) [3]
[1] https://gitlab.denx.de/u-boot/u-boot/-/blob/v2020.04/board/freescale/imx8mn_evk/README
[2] https://gitlab.denx.de/u-boot/u-boot/-/blob/v2020.04/configs/imx8mn_ddr4_evk_defconfig#L22
[3] https://gitlab.denx.de/u-boot/u-boot/-/commit/b8f16834
--- board/freescale/common/imx/imx8-bootloader-prepare.sh | 7 +++++++ 1 file changed, 7 insertions(+)
board/freescale/common/imx/imx8-bootloader-prepare.sh +7 -0
@@ -22,6 +22,13 @@ main () 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 + elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN=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-nodtb.bin ATF_LOAD_ADDR=0x00960000 ${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 0x912000 -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
Signature · 1 line
2.25.1
PATCH 5/7 configs/nitrogen*: bump kernel revision
In reply to Gary BissonChangelog:
- fix PMIC issue for i.MX8MMini
- add support for MCP25xxFD SPI to CAN chip
- fix external module build issue for GCC >= 9
- add BD Nano board support
--- configs/nitrogen6sx_defconfig | 2 +- configs/nitrogen6x_defconfig | 2 +- configs/nitrogen7_defconfig | 2 +- configs/nitrogen8m_defconfig | 2 +- configs/nitrogen8mm_defconfig | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
configs/nitrogen6sx_defconfig +1 -1
@@ -35,7 +35,7 @@ BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="board/boundarydevices/common/boot.cmd" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y # Last version of branch boundary-imx_4.14.x_2.0.0_ga -BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/linux-imx6/archive/208127fd.tar.gz" +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/linux-imx6/archive/519c6839.tar.gz" BR2_LINUX_KERNEL_DEFCONFIG="boundary" BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_LINUX_KERNEL_DTS_SUPPORT=y
configs/nitrogen6x_defconfig +1 -1
@@ -35,7 +35,7 @@ BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="board/boundarydevices/common/boot.cmd" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y # Last version of branch boundary-imx_4.14.x_2.0.0_ga -BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/linux-imx6/archive/208127fd.tar.gz" +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/linux-imx6/archive/519c6839.tar.gz" BR2_LINUX_KERNEL_DEFCONFIG="boundary" BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_LINUX_KERNEL_DTS_SUPPORT=y
configs/nitrogen7_defconfig +1 -1
@@ -34,7 +34,7 @@ BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="board/boundarydevices/common/boot.cmd" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y # Last version of branch boundary-imx_4.14.x_2.0.0_ga -BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/linux-imx6/archive/208127fd.tar.gz" +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/linux-imx6/archive/519c6839.tar.gz" BR2_LINUX_KERNEL_DEFCONFIG="boundary" BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_LINUX_KERNEL_DTS_SUPPORT=y
configs/nitrogen8m_defconfig +1 -1
@@ -49,7 +49,7 @@ BR2_TARGET_UBOOT_SPL=y BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y # Latest revision of branch boundary-imx_4.14.x_2.0.0_ga -BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/linux-imx6/archive/208127fd.tar.gz" +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/linux-imx6/archive/519c6839.tar.gz" BR2_LINUX_KERNEL_DEFCONFIG="boundary" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INSTALL_TARGET=y
configs/nitrogen8mm_defconfig +1 -1
@@ -49,7 +49,7 @@ BR2_TARGET_UBOOT_SPL=y BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y # Latest revision of branch boundary-imx_4.14.x_2.0.0_ga -BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/linux-imx6/archive/208127fd.tar.gz" +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/linux-imx6/archive/519c6839.tar.gz" BR2_LINUX_KERNEL_DEFCONFIG="boundary" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INSTALL_TARGET=y
Signature · 1 line
2.25.1
PATCH 6/7 configs/nitrogen*: bump u-boot revision
In reply to Gary BissonChangelog:
- fix serial# variable creation for i.MX8MQ/MM/MN
- improve display selection
- fix fastboot support for boards with 1GB of RAM only
- add BD Nano board support
--- configs/nitrogen6sx_defconfig | 2 +- configs/nitrogen6x_defconfig | 2 +- configs/nitrogen7_defconfig | 2 +- configs/nitrogen8m_defconfig | 2 +- configs/nitrogen8mm_defconfig | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
configs/nitrogen6sx_defconfig +1 -1
@@ -25,7 +25,7 @@ BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_TARBALL=y # Last version of branch boundary-v2018.07 -BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/u-boot-imx6/archive/26bfd1de.tar.gz" +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/u-boot-imx6/archive/bd4e3154.tar.gz" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nitrogen6sx" BR2_TARGET_UBOOT_FORMAT_IMX=y BR2_TARGET_UBOOT_BOOT_SCRIPT=y
configs/nitrogen6x_defconfig +1 -1
@@ -25,7 +25,7 @@ BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_TARBALL=y # Last version of branch boundary-v2018.07 -BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/u-boot-imx6/archive/26bfd1de.tar.gz" +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/u-boot-imx6/archive/bd4e3154.tar.gz" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nitrogen6q" BR2_TARGET_UBOOT_FORMAT_IMX=y BR2_TARGET_UBOOT_BOOT_SCRIPT=y
configs/nitrogen7_defconfig +1 -1
@@ -24,7 +24,7 @@ BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_TARBALL=y # Last version of branch boundary-v2018.07 -BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/u-boot-imx6/archive/26bfd1de.tar.gz" +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/u-boot-imx6/archive/bd4e3154.tar.gz" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nitrogen7" BR2_TARGET_UBOOT_FORMAT_IMX=y BR2_TARGET_UBOOT_BOOT_SCRIPT=y
configs/nitrogen8m_defconfig +1 -1
@@ -39,7 +39,7 @@ BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nitrogen8m" BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_TARBALL=y # Latest revision of branch boundary-imx_v2018.07 -BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/u-boot-imx6/archive/26bfd1de.tar.gz" +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/u-boot-imx6/archive/bd4e3154.tar.gz" BR2_TARGET_UBOOT_FORMAT_CUSTOM=y BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-nodtb.bin" BR2_TARGET_UBOOT_NEEDS_DTC=y
configs/nitrogen8mm_defconfig +1 -1
@@ -39,7 +39,7 @@ BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nitrogen8mm_2g" BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_TARBALL=y # Latest revision of branch boundary-imx_v2018.07 -BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/u-boot-imx6/archive/26bfd1de.tar.gz" +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/boundarydevices/u-boot-imx6/archive/bd4e3154.tar.gz" BR2_TARGET_UBOOT_FORMAT_CUSTOM=y BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-nodtb.bin" BR2_TARGET_UBOOT_NEEDS_DTC=y
Signature · 1 line
2.25.1
PATCH 7/7 configs/nitrogen8mn: new defconfig
In reply to Gary BissonNXP i.MX8MNano based SBC with 1GB of LPDDR4 and 16GB eMMC.
More details on the platform here:
https://boundarydevices.com/product/nitrogen8m-nano/
--- .gitlab-ci.yml | 1 + board/boundarydevices/common/readme.txt | 4 ++ configs/nitrogen8mn_defconfig | 56 +++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 configs/nitrogen8mn_defconfig
.gitlab-ci.yml +1 -0
@@ -234,6 +234,7 @@ nitrogen6x_defconfig: { extends: .defconfig } nitrogen7_defconfig: { extends: .defconfig } nitrogen8m_defconfig: { extends: .defconfig } nitrogen8mm_defconfig: { extends: .defconfig } +nitrogen8mn_defconfig: { extends: .defconfig } odroidxu4_defconfig: { extends: .defconfig } olimex_a10_olinuxino_lime_defconfig: { extends: .defconfig } olimex_a13_olinuxino_defconfig: { extends: .defconfig }
board/boundarydevices/common/readme.txt +4 -0
@@ -27,6 +27,10 @@ Here is the list of targeted platforms per defconfig: - Nitrogen8MMini - Nitrogen8MMini_SOM +- nitrogen8mn_defconfig + - Nitrogen8MNano + - Nitrogen8MNano_SOM + To install, simply copy the image to your storage (SD, eMMC, USB): $ sudo dd if=output/images/sdcard.img of=/dev/sdX
configs/nitrogen8mn_defconfig new file +56 -0
56 lines not on this page · raw message
Signature · 1 line
2.25.1
cover imx: add i.MX8MNano / Nitrogen8MNano support
In reply to Gary BissonQuoted 8 lines · On Wed, 15 Apr 2020 18:18:24 +0200 Gary Bisson…
Gary Bisson (7):
package/freescale-imx: add option for i.MX8M Nano package/freescale-imx/firmware-imx: add support for i.MX8M Nano package/imx-mkimage: add support for i.MX8M Nano board/freescale/common/imx: add support for i.MX8M Nano configs/nitrogen*: bump kernel revision configs/nitrogen*: bump u-boot revision configs/nitrogen8mn: new defconfig
Thanks, series applied!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com