I would like to generate u-boot.elf file along with other images in yocto build.
i need the .elf for debugging, can anyone let me know what changes needed to be added to recipes/config file so that i get ".elf" when we do Bitbake.
I haven’t tested but it’s possible that these files are not being generated because you do not have the debug build flag turned on. You should be able to activate it on the local.conf file (or on your image) with the command:
DEBUG_BUILD = “1”
I hope this helps!
Please note that u-boot elf containing the full debug symbols is u-boot file (not u-boot.elf) and this is already built/generated when u-boot is built.
My commands for patching/cleaning/deploying u-boot:
1. clean the existing u-boot build
bitbake -c cleanall u-boot-imx
2. Unpack the u-boot source code
bitbake -c unpack u-boot-imx
3. now you can write the code/updating the u-boot
4. just build u-boot
bitbake -c deploy u-boot-imx
u-boot not stripped file (for debugging purpose) is in the work directory, not in images (here are kept only the binaries files).
b32331@fsr-ub1664-133:/work/mcu/stash/fsl-release-bsp/imx7dsabresd/tmp/work/imx7dsabresd-poky-linux-gnueabi/u-boot-imx/2016.03-r0/build/mx7dsabresd_config$ pwd/work/mcu/stash/fsl-release-bsp/imx7dsabresd/tmp/work/imx7dsabresd-poky-linux-gnueabi/u-boot-imx/2016.03-r0/build/mx7dsabresd_configb32331@fsr-ub1664-133:/work/mcu/stash/fsl-release-bsp/imx7dsabresd/tmp/work/imx7dsabresd-poky-linux-gnueabi/u-boot-imx/2016.03-r0/build/mx7dsabresd_config$ file u-bootu-boot: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /usr/lib/ld.so.1, not stripped
found u-boot file at below directory
Hi Marius Grigoras,
How to write the code/updating the u-boot?
I'm using iMX7ULP board, how to customize U-boot, Karnel, rootfilesystem by using Yocto build ?
Marius Grigoras Vanessa Maegima
imx7ulp yoctosumo yocto uboot imx rootfs
Retrieving data ...