Hi,
we were trying to build images for imx8mm-lpddr4-evk. but we facing issues.
$ DISTRO=fsl-imx-wayland MACHINE=imx8mm-lpddr4-evk source imx-setup-release.sh -b <build folder>
$ bitbake core-image-minimal
which we build successfully. but we did modification in u-boot the final image file didnt get modified. Please refer below commands
$ vim /tmp/work/imx8mm_lpddr4_evk-poky-linux/u-boot-imx/2022.04-r0/git/ <made changes>
$ bitbake -c compile u-boot / u-boot-imx / imx-boot
$ bitbake u-boot / u-boot-imx / imx-boot
$ bitbake core-image-minimal
At this point we observe the u-boot file get updated but not the final flash.bin file.
We facing this issue and trying to resolve but end up come to same place. Can you help us what was the extra command to create flash.bin?
Thanks.
Vignesh
Please try to add parameter "-f" while compiling target: bitbake -c compile -f
Best regards
Harvey
Hi @Harvey021,
We tried that, that didnt help.
is there any bitbake command to build flash.bin after u-boot binary images build.
You can refer to 4.5.13 How to build imx-boot image by using imx-mkimage of Linux User guide
using imx-mkimage.
Best regards
Harvey
Hi! I have a trouble with YOCTO imx-mkimage.
I do
bitbake -c compile u-boot-imx
do changes in /tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-imx/2022.04-r0/git/ spl.c and imx8mm-ddr4-evk spl.c+dts
bitbake u-boot-imx
copieng file (refer to 4.5.13 How to build imx-boot image by using imx-mkimage of Linux User guide)
bitbake imx-mkinage
but imx-boot-imx8mm-ddr4-evk-sd.bin-flash_ddr4_evk not include my changes.
What did I do wrong?
We also tried creating patch and adding to sources/meta-imx/meta-bsp/recipes-bsp/u-bootu-boot-imx_2022.04.bb
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += "file://0001-DTB-Makefile.patch"
these were the only changes we made. Please refer below.
From 4a738b4639bb800b3d34aba6f9c3c792feb45ca8 Mon Sep 17 00:00:00 2001
From: Vignesh Baskaran <vigneshbbaskaran@gmail.com>
Date: Thu, 23 Feb 2023 16:24:03 +0530
Subject: [PATCH] DTB & Makefile
Signed-off-by: Vignesh Baskaran <vigneshbbaskaran@gmail.com>
---
Makefile | 2 +-
arch/arm/dts/imx8mm-evk.dts | 17 +++++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 33615b8706..c73f719fe8 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
VERSION = 2022
PATCHLEVEL = 04
SUBLEVEL =
-EXTRAVERSION =
+EXTRAVERSION = "VIgnesh Baskaran"
NAME =
# *DOCUMENTATION*
diff --git a/arch/arm/dts/imx8mm-evk.dts b/arch/arm/dts/imx8mm-evk.dts
index c07eb8be8e..4c72a3f03b 100644
--- a/arch/arm/dts/imx8mm-evk.dts
+++ b/arch/arm/dts/imx8mm-evk.dts
@@ -69,7 +69,24 @@
status = "okay";
};
+&ecspi2 {
+ fsl,spi-num-chipselects = <1>;
+ cs-gpios = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ecspi2>;
+ status = "okay";
+};
+
&iomuxc {
+
+ pinctrl_ecspi2: ecspi2grp {
+ fsl,pins = <
+ MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x00000116
+ MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x00000116
+ MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x00001916
+ MX8MM_IOMUXC_ECSPI2_SS0_ECSPI2_SS0 0x00000116
+ >;
+ };
pinctrl_flexspi: flexspigrp {
fsl,pins = <
MX8MM_IOMUXC_NAND_ALE_QSPI_A_SCLK 0x1c2
but while compile $ bitbake core-image-minmal
" u-boot-imx-2022.04-r0 do_compile " and goes to 99% and in infinite loop.
Thanks
Vignesh