how to change u-boot 2018.03 source in yocto?

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change u-boot 2018.03 source in yocto?

610 Views
csoapy
Contributor III

I'm using official bsp imx-4.14.98-2.0.1_patch.

Our u-boot has been migrated from this bsp and generated .config. It works on our board.

Now we want to compile u-boot in offical bsp. Here is my .bbappend:

UBOOT_SRC = "git://ip/project/imx-uboot-sumo.git;protocol=http"
SRCBRANCH = "develop"
SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}"
SRCREV = "${AUTOREV}"

UBOOT_CONFIG = "nand"

do_configure () {
}

do_compile () {
      oe_runmake -C ${S} O=${B} ${UBOOT_MAKE_TARGET}
}

do_patch() {
}

And I got error:

| mkdir -p include/config include/generated
| test -e include/generated/autoksyms.h || \
| touch include/generated/autoksyms.h
| scripts/kconfig/conf --silentoldconfig Kconfig
| ***
| *** Configuration file ".config" not found!
| ***
| *** Please run some configurator (e.g. "make oldconfig" or
| *** "make menuconfig" or "make xconfig").

But in official bsp imx-4.1.15-2.0.2_ga, u-boot 2016.03 works in this way:

UBOOT_SRC = "git://ip/project/imx-uboot-sumo.git;protocol=http"
SRCBRANCH = "develop"
SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}"
SRCREV = "${AUTOREV}"
UBOOT_CONFIG = "nand"

do_compile () {
     oe_runmake clean
     oe_runmake

if [ -d ${S}/mx6qsabreauto_nand_config ]; then
     rm -rf ${S}/mx6qsabreauto_nand_config
fi
     mkdir ${S}/mx6qsabreauto_nand_config/
     cp ${S}/${UBOOT_BINARY} ${S}/mx6qsabreauto_nand_config/u-boot-nand.imx

}

do_patch() {
}

Labels (2)
0 Kudos
1 Reply

116 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello 计龙 杨,

Are you still encountering this error?

Make is not being able to get the .config file for the bootloader. You do mention this .config file but the make script is not finding it. I would recommend making sure that the makefile is pointing to the .config file. If it’s not you may change the make file to reflect this directly or indirectly (if a variable is used to setup this file).

I hope this helps!

Regards,

0 Kudos