[U-Boot] Problem Booting RTEMS with u-boot on Phycore LPC3250

Hello
I have built an RTEMS 4.10.2 elf image for Phycore LPC3250. I am using u-boot as my bootloader. Although I can boot the image in binary format, unfortunately there is a problem to boot elf image with bootelf command. after executing bootelf command u-boot get stuck in an infinite loop with the following messages:
Loading .start @ 0x80000000 (1120 bytes)
Clearing .vector @ 0x80000000 (5952 bytes)
Loading .text @ 0x80000460 (68576 bytes)
Loading .rodata @ 0x80011040 (6208 bytes)
Clearing .robarrier @ 0x800012880 (972672 bytes)
Loading .data @ 0x80100000 (2016 bytes)
Clearing .bss @ 0x801007e0 (5504 bytes)
Clearing .work @ 0x80101d60( 66036384 bytes)
I have tried both u-boot 1.3.3 and u-boot 2009.03 and have not found any improvements.
RAM address info is located in range of 0x8000000 to 0x83ffffff; U-boot is located in 0x83fc0000. bootelf is called with argument 0x81000000. Any idea, hint, and advice on how to solve the problem would be appreciated.
Thanks. SAeeD

Dear SAeeD,
In message CAEdVrmO=+AbWHnXtoG9RKwspnpqq8uZQtQOT+_MtLeU3-HRtJg@mail.gmail.com you wrote:
I have built an RTEMS 4.10.2 elf image for Phycore LPC3250. I am using
...
I have tried both u-boot 1.3.3 and u-boot 2009.03 and have not found any improvements.
These are two very old versions. Forthermore, it appears that the Phycore LPC3250 is not supported in mainline U-Boot (mr what would the exact board name be?).
Where exactly did you get the U-Boot source code from?
Best regards,
Wolfgang Denk

Dear Wolfgang,
Where exactly did you get the U-Boot source code from?
Various sources in fact: http://bitshrine.org/gpp/u-boot-1.3.3-lpc32xx.patch http://git.lpclinux.com/?p=uboot-2009.03-lpc32xx.git;a=summary http://git.lpclinux.com/?p=uboot-2011.12-lpc32xx.git;a=summary https://github.com/sobczyk/u-boot
I think the problem might be related to the big size of .Work section. (About 63 MB while board's SRAM is 64 MB!) Is it possible that clearing .Work, collapses U-Boot which is stored in SRAM at 0x83fc0000? BTW, it is a little weird that U-Boot loads .start @ 0x80000000 and then clears .vector at the same address: Loading .start @ 0x80000000 (1120 bytes)
Clearing .vector @ 0x80000000 (5952 bytes) Might the problem be related to the wrong structure of my ELF file?
Thanks, SAeeD
On Mon, Sep 17, 2012 at 9:47 AM, Wolfgang Denk wd@denx.de wrote:
Dear SAeeD,
In message <CAEdVrmO=+ AbWHnXtoG9RKwspnpqq8uZQtQOT+_MtLeU3-HRtJg@mail.gmail.com> you wrote:
I have built an RTEMS 4.10.2 elf image for Phycore LPC3250. I am using
...
I have tried both u-boot 1.3.3 and u-boot 2009.03 and have not found any improvements.
These are two very old versions. Forthermore, it appears that the Phycore LPC3250 is not supported in mainline U-Boot (mr what would the exact board name be?).
Where exactly did you get the U-Boot source code from?
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de If A equals success, then the formula is A = X + Y + Z. X is work. Y is play. Z is keep your mouth shut. - Albert Einstein
participants (2)
-
SAeeD
-
Wolfgang Denk