TechNexion / meta-tn-imx-bsp

TechNexion BSP Layer for i.MX Yocto Project
MIT License
6 stars 11 forks source link

imx-6.1.55-2.2.0.xml / pico-imx6ul: u-boot compilation fails due to missing imx6_spl.h file #24

Open nlarealti opened 8 months ago

nlarealti commented 8 months ago

Based on the configuration made on issue #23 reported here:

repo init -u https://github.com/TechNexion/tn-imx-yocto-manifest.git -b mickledore_6.1.y-next -m imx-6.1.55-2.2.0.xml
repo sync -j4
WIFI_FIRMWARE=n DISTRO=fsl-imx-fb MACHINE=pico-imx6ul BASEBOARD=pi source tn-setup-release.sh -b build

Then tweaking recipes-bsp/u-boot/u-boot-tn-imx/ files to avoid the issue #23.

diff --git a/recipes-bsp/u-boot/u-boot-tn-imx/rescue-fragment-uboot.cfg b/recipes-bsp/u-boot/u-boot-tn-imx/rescue-fragment-uboot.cfg
index c9275e20d9f0..5ec9ebeb5807 100644
--- a/recipes-bsp/u-boot/u-boot-tn-imx/rescue-fragment-uboot.cfg
+++ b/recipes-bsp/u-boot/u-boot-tn-imx/rescue-fragment-uboot.cfg
@@ -1,2 +1,3 @@
+CONFIG_TEXT_BASE=0x0
 CONFIG_BOOTDELAY=0
 # CONFIG_DISTRO_DEFAULTS is not set
diff --git a/recipes-bsp/u-boot/u-boot-tn-imx_2023.04.bb b/recipes-bsp/u-boot/u-boot-tn-imx_2023.04.bb
index d2897151e53e..75c1a8a6bf46 100644
--- a/recipes-bsp/u-boot/u-boot-tn-imx_2023.04.bb
+++ b/recipes-bsp/u-boot/u-boot-tn-imx_2023.04.bb
@@ -24,7 +24,7 @@ SRCBRANCH = "tn-imx_v2023.04_6.1.55_2.2.0-next"
 SRC_URI = "${SRCSERVER};branch=${SRCBRANCH}${SRCOPTIONS}"
 SRCREV = "174e58e79da52505b466ebf38c25a0228058003a"
 SRC_URI:append = " file://splash.bmp"
-SRC_URI:append:rescue = " file://rescue-fragment-uboot.cfg"
+SRC_URI:append = " file://rescue-fragment-uboot.cfg"

Compiling u-boot fails with the following error:

| .../imx6-6.1.55/build/tmp/work/pico_imx6ul-poky-linux-gnueabi/u-boot-tn-imx/2023.04-r0/git/include/configs/pico-imx6ul.h:15:10: fatal error: imx6_spl.h: No such file or directory
|    15 | #include "imx6_spl.h"
|       |          ^~~~~~~~~~~~

Is there any clue to fix it ?

Regards, Nelio