[U-Boot] Can a standalone application send data via Ethernet in U-Boot?

Wolfgang Denk wd at denx.de
Fri Nov 29 23:27:32 CET 2013


Dear rvijay435,

In message <1385728248832-168658.post at n7.nabble.com> you wrote:
> > Hm... I'm notr sure what exactly you are trying to do here - I cannot 
> > find the string "tsec_miiphy_write" anywhere in the U-Boot source 
> > code. 
> 
> Hi Wolfgang,
> tsec_miiphy_write function is present in drivers/net/tsec.c of the
> U-Boot-201009 version which I downloaded.

I have no idea what you are talking about.

U-Boot-201009 is not an official version, nor is there any such file
on the FTP server.

Assuming you mean trhe releas tag "v2010.09" ...

...then this code is > 3 years old, so it is hopelessly obsolete and
not worth any discussion.

> Booting an OS is not possible as per the client requirement.
> What does this sentence means, 'Stay within U-Boot'? After tftp'ing the
> application image, we will use go command to a particular address to execute
> the application.

Stay within U-Boot means to compile and link your code to be part of
the U-Boot binary, instead of an external standalone application.
Asintegral part of U-Boot you have access to all capabilities of
U-Boot.  As a standalone app, you are limited to the exported
interface.

> Please help me to get the networking concepts done in application, by which
> I can send and receive the data.

You are not supposed to do network stuff in standalone code.  We do
not export the interfaces to do that.  If you need networking, then
either compile your code into U-Boot, or write your own network
drivers.

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
He had been eight years upon a project for extracting sunbeams out of
cucumbers, which were to be put in vials hermetically sealed, and let
out to warm the air in raw inclement summers.        - Jonathan Swift
              _Gulliver's Travels_ ``A Voyage to Laputa, etc.'' ch. 5


More information about the U-Boot mailing list