These are the step I do with the last U-boot source code from denx (git clone http://git.denx.de/u-boot.git).
make T1040RDB_config
make CROSS_COMPILE=/opt/fsl-qoriq/1.9/sysroots/i686-fslsdk-linux/usr/bin/powerpc-fsl-linux/powerpc-fsl-linux- all
after some building time I got this error... no idea what it is
LD examples/standalone/hello_world
/opt/fsl-qoriq/1.9/sysroots/i686-fslsdk-linux/usr/bin/powerpc-fsl-linux/powerpc-fsl-linux-ld.bfd: cannot find -lgcc
make[2]: *** [examples/standalone/hello_world] Error 1
make[1]: *** [examples/standalone] Error 2
make: *** [examples] Error 2
Could you give me some hint? Thanks
Another question... to run and debug with GDB this bootloader using qemu... what is the command to use?
Thank you, have a nice day
The following command sequence was used for u-boot compiling for the P1020rdb board. Use the similar command sequence for the P2020rdb board.
QorIQ-SDK-V1.8-20150619-yocto/build_p1020rdb_release/tmp/deploy/sdk
/opt/fsl-networking/QorIQ-SDK-V1.8
QorIQ-SDK-V1.8-20150619-yocto/build_p1020rdb_release/tmp/work/p1020rdb-fsl-linux-gnuspe/u-boot-qoriq/2014.07+fslgit-r0/git
Issue the following commands:
a) export ARCH=powerpc
b) make ARCH=powerpc CROSS_COMPILE=/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-gcc P1020RDB-PC_defconfig
See the configuration files in the /configs folder.
c) make.
Use similar command sequence for SDK 1.9 and your board.
Have a great day,
Pavel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I'm trying those steps... what about emulating u-boot run with qemu? Do you have some tip?
Thank you very much
I did not test qemu for u-boot building.
It looks like this virtual machine should contain tool-chain and environment for u-boot building.
NXP offers VirtualBox machine for SDK 1.9. You can use this possibilitys.
https://nxp.flexnetoperations.com/control/frse/download?agree=Accept&element=7126427
Have a great day,
Pavel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------