[U-Boot-Users] Access global data from standalone application

Wolfgang Denk wd at denx.de
Sat Jun 18 17:18:27 CEST 2005


Hello,

in message <c3d0340b05061717456bc12331 at mail.gmail.com> you wrote:
> 
> > You can export and call in SA apps functions which perform operations
            ^^^^^^     ^^^^            ^^^^^^^^^
> > on flash_info[], but you cannot  access  flash_info[]  or  any  other
> > global variables directly.
> 
> Confused. How do SA apps perform operations on exported data without
> accessing them? Could you elaborate a little bit? I want to write a SA

By calling functions in the U-Boot code which use the data.

> app to print the protection info of all flash banks. I know flinfo can
> do that. I just do some experiments. ;)

Then just export and call the do_flinfo function.

Why reinvent the wheel or duplicate already existing code?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
                                                      -- Isaac Asimov




More information about the U-Boot mailing list