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.
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
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
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
Have a nice day!
B.R,
Weidong
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
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