compile error u-boot-fw-utils under yocto zeus

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

compile error u-boot-fw-utils under yocto zeus

4,112 Views
nikhil_sahu2
Contributor III

I am trying to compile the u-boot-fw-utils under yocto zeus. Earlier i was getting compilation error but somehow imanages to replace my config with mx6sxsabresd_optee_defconfig as defined in default configuration.

below are steps for compilation.

  1. repo init -u https://source.codeaurora.org/external/imx/imx-manifest  -b imx-linux-zeus -m imx-5.4.3-1.0.0.xml
  2. repo sync
  3. Rename my config with mx6sxsabresd_optee_defconfig
  4. DISTRO=fsl-imx-fb MACHINE=imx6sxsabresd source imx-setup-release.sh -b build_sabres
  5. bitbake u-boot-fw-utils

I am getting below error 

=================================================

rm -f .tmp_quiet_recordmcount

make -f ./scripts/Makefile.build obj=scripts/kconfig syncconfig

mkdir -p include/config include/generated

scripts/kconfig/conf --syncconfig Kconfig

.config:160:warning: symbol value '' invalid for SYS_TEXT_BASE

*
* Restart config...
*
*
* Boot images
*
Enable support for Android Boot Images (ANDROID_BOOT_IMAGE) [Y/n/?] y
Support Flattened Image Tree (FIT) [N/y/?] n
Enable support for the legacy image format (IMAGE_FORMAT_LEGACY) [Y/n/?] y
Set up board-specific details in device tree before boot (OF_BOARD_SETUP) [N/y/?] n
Set up system-specific details in device tree before boot (OF_SYSTEM_SETUP) [N/y/?] n
Update the device-tree stdout alias from U-Boot (OF_STDOUT_VIA_ALIAS) [N/y/?] n
Extra Options (DEPRECATED) (SYS_EXTRA_OPTIONS) [IMX_CONFIG=board/freescale/mx6sxsabresd/imximage.cfg] IMX_CONFIG=board/freescale/mx6sxsabresd/imximage.cfg
Text Base (SYS_TEXT_BASE) [] (NEW)
Error in reading or end of file.

Text Base (SYS_TEXT_BASE) [] (NEW)
Error in reading or end of file.

Text Base (SYS_TEXT_BASE) [] (NEW)
Error in reading or end of file.

Text Base (SYS_TEXT_BASE) [] (NEW)
Error in reading or end of file.

<stuck in Infinite loop>

================================================

Default script flag is not setting here. Anyone suggested how to overcome with this.

Also if anyone compiled standalone u-boot-fw-utils just like kernel and u-boot. Please suggest.

Thanks,

Nikhil

Labels (1)
0 Kudos
4 Replies

3,875 Views
karangajjar
Senior Contributor II

Hi Nikhil sahu ,

We suggested to try a couple of things on the old thread. However, can you please let us know what is happening after you change the UBOOT_SRC link from uboot to uboot-imx?

If there is any error can you send us the log?

Regards,

Karan Gajjar

0 Kudos

3,875 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Nikhil sahu & karan gajjar

   please follow these steps to add u-boot-fw-utils for i.mx to yocto!

1. copy 2 files in attacments to ~/imx-yocto-bsp-5.4.3_1.0.0/sources/meta-imx/meta-bsp/recipes-bsp/u-boot

2. cd ~/imx-yocto-bsp-5.4.3_1.0.0

3. run below comands

# DISTRO=fsl-imx-fb MACHINE=imx6sxsabresd source imx-setup-release.sh -b build_sabresd
# bitbake u-boot-imx-fw-utils -c compile

# bitbake u-boot-imx-fw-utils -c install

then you will get fw_printenv & fw_setenv

pastedImage_1.png

Have a nice day!

B.R,

Weidong

0 Kudos

3,876 Views
nikhil_sahu2
Contributor III

Hi Weidong,

Getting below response if followed the above mentioned steps by you.

ERROR: ParseError at /home/ubuntu/zeus/sources/meta-imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx-fw-utils_2019.04.bb:1: Could not include required file u-boot-imx-common_2019.04.inc

Thanks,

Nikhil

0 Kudos

3,876 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Nikhil,

  I have ever written a document for the compilation.

  https://community.nxp.com/docs/DOC-346846 

Hope it is helpful for you.

Have a nice day!

B.R,

Weidong

0 Kudos