I'm trying to build u-boot so that I can debug it with CodeWarrior 10.3 and I'm having no luck building an elf file. I followed the directions below but I cannot locate an elf file. I'm using v1.4 of the SDK for the p1010rdb. Everything builds with no errors but there is no elf file in the release>temp>work>p1010rdb-fsl_networking-linux-gnuspe location or any other location that I have found showing dates modified during my build.
Any ideas what I'm missing here?
Thanks
Q: How to build u-boot/kernel with debugger (CodeWarrior support)?
A: For u-boot:
- $ cd <yocto_install_path>
- $ bitbake -c cleansstate u-boot
- Modify the u-boot_git.bb file and add following content:
- $ cd meta-fsl-ppc/recipes-kernel/u-boot
- $ add 'EXTRA_OEMAKE += "CONFIG_CW=1"' in u-boot_git.bb file
- Rebuild u-boot:
- $ bitbake u-boot
Solved! Go to Solution.
Hi,
Fist you should set the build environment with: source ./fsl-setup-poky -m p1010rdb and not use the -l option (lite mode). This will remove building files once the package is build. After build is complete use should search in build folder after u-boot (find -name u-boot) and then try to find the elf file (u-boot file don't have .elf extension) with file ./tmp/.../u-boot.
Usually u-boot executable is placed in (exemple for p4080ds board) ./tmp/work/p4080ds-fsl_networking-linux/u-boot/git-r33/git/P4080DS/
Adrian
Hi,
Fist you should set the build environment with: source ./fsl-setup-poky -m p1010rdb and not use the -l option (lite mode). This will remove building files once the package is build. After build is complete use should search in build folder after u-boot (find -name u-boot) and then try to find the elf file (u-boot file don't have .elf extension) with file ./tmp/.../u-boot.
Usually u-boot executable is placed in (exemple for p4080ds board) ./tmp/work/p4080ds-fsl_networking-linux/u-boot/git-r33/git/P4080DS/
Adrian
Thanks for your help Adrian. I was able to use the debugger to download the code.