[U-Boot] run_command() / do_run() fails in standalone application

Remy Bohmer linux at bohmer.net
Sat Dec 27 10:30:11 CET 2008


Hello Wolfgang,

> In message <3efb10970812260240q4b3c7178nab2e9788a5b7cf8d at mail.gmail.com> you wrote:
>> > when i tftp that application to 0x40000 to Power PC evaluation
>> > board then
>> Is there really RAM located at this address on your board?
>> Address 0x40000 is usually only an example address...
> It is very likely that there is RAM at this address. On PowerPC, RAM
> usually is mapped starting at physical address 0.

This is different per architecture, and not properly explained in the
readme and the faq.
Is the memory there really always free?

>> > i start executing go 40004 command its not doing any thing.
>> You should use the the same address in the 'go' command as to which
>> you load the executable.
> This advise is almost certainly wrong - the entry point is usually not
> the same as the image's start address.

Indeed, it worked in our case on ARM properly, because the examples
are compiled such that there are no symbols before the entry point...
If a routine is added in the same file above the entry point, the
entry point indeed moves.
But, why is this information on the FAQ still not in the README? This
is what most people tend to read first...

Kind Regards,

Remy


> If in doubt, it helps reading the FAQ. See especially section
> "14.2.16. My standalone program does not work" ...
>
> 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 at denx.de
> Real computer scientists don't comment their  code.  The  identifiers
> are so long they can't afford the disk space.
>


More information about the U-Boot mailing list