Skip to contentSkip to conversation

configs/imx8mqevk_defconfig: new defconfig

PATCH Superseded Fabio Estevam 2 participants 2 messages Sep 14, 2020 – Sep 20, 2020 Arm i.MX and Layerscape

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 configs/imx8mqevk_defconfig: new defconfig

Add support for imx8mqevk_defconfig that allows booting a mainline kernel.

This defconfig still relies on NXP ATF and U-Boot, but in the long term the plan is to switch to mainline ATF and U-Boot as well.

---
Hi,

There was an attempt from Xavier to allow generating a Buildroot image with mainline U-Boot for i.MX8M:
http://lists.buildroot.org/pipermail/buildroot/2020-July/287144.html

As this effort seems to have stalled, let's a give the first step and use mainline kernel only for now.

 DEVELOPERS                           |  1 +
 board/freescale/imx8mqevk/readme.txt |  6 +++++
 configs/imx8mqevk_defconfig          | 40 ++++++++++++++++++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100644 configs/imx8mqevk_defconfig
DEVELOPERS +1 -0
index 884c79cfdf..cfecb219d9 100644
@@ -823,6 +823,7 @@ F:	configs/imx6ullevk_defconfig
 F:	configs/imx6ulpico_defconfig
 F:	configs/imx7d-sdb_defconfig
 F:	configs/imx7dpico_defconfig
+F:	configs/imx8mqevk_defconfig
 F:	configs/mx25pdk_defconfig
 F:	configs/mx51evk_defconfig
 F:	configs/mx53loco_defconfig
board/freescale/imx8mqevk/readme.txt +6 -0
index e60eba4cb6..61fb2bc80b 100644
@@ -10,8 +10,14 @@ Build
 
 First, configure Buildroot for the i.MX8MQ EVK board:
 
+If you want to use the NXP kernel:
+
   make freescale_imx8mqevk_defconfig
 
+Or if you want to use a mainline kernel:
+
+  make imx8mqevk_defconfig
+
 Build all components:
 
   make
configs/imx8mqevk_defconfig new file +40 -0
new file mode 100644
index 0000000000..1981fa06c8
@@ -0,0 +1,40 @@
+BR2_aarch64=y
+BR2_ARM_FPU_VFPV3=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
+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/imx8mq-evk.dtb"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.8.7"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/imx8mq-evk"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+BR2_PACKAGE_FREESCALE_IMX=y
+BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M=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_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_5.4.24_2.1.0"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="imx8mq"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://source.codeaurora.org/external/imx/uboot-imx"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="rel_imx_5.4.24_2.1.0"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx8mq_evk"
+BR2_TARGET_UBOOT_NEEDS_DTC=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.17.1
#1 lore raw

PATCH 1/1 configs/imx8mqevk_defconfig: new defconfig

Quoted 9 lines · On Mon, 14 Sep 2020 18:12:13 -0300 Fabio Estevam <[email protected]> wrote:

Add support for imx8mqevk_defconfig that allows booting a mainline kernel.

This defconfig still relies on NXP ATF and U-Boot, but in the long term the plan is to switch to mainline ATF and U-Boot as well.

---
Hi,

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com