public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Re-use TFTP client from RedBoot into eCos Kernel
@ 2011-01-13  9:21 Elad Yosef
  2011-01-15 20:10 ` Sergei Gavrikov
  0 siblings, 1 reply; 4+ messages in thread
From: Elad Yosef @ 2011-01-13  9:21 UTC (permalink / raw)
  To: ecos-discuss

Hi all,
Has anyone exported the TFTP client from RedBoot as a standalone
package in eCos Kernel (like the ftp client)?

Thanks
Elad

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] Re-use TFTP client from RedBoot into eCos Kernel
  2011-01-13  9:21 [ECOS] Re-use TFTP client from RedBoot into eCos Kernel Elad Yosef
@ 2011-01-15 20:10 ` Sergei Gavrikov
       [not found]   ` <AANLkTik+8Anrpck-k4cXMaGNCCV2_DNnhp40xPyYEVr8@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Sergei Gavrikov @ 2011-01-15 20:10 UTC (permalink / raw)
  To: Elad Yosef; +Cc: ecos-discuss

On Thu, 13 Jan 2011, Elad Yosef wrote:

> Has anyone exported the TFTP client from RedBoot as a standalone
> package in eCos Kernel (like the ftp client)?

Just wondering... Why do not use  CYGPKG_NET_TFTP component from eCos
CYGPKG_NET? The TFTP support is active by default in NET package.

Sergei

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] Re-use TFTP client from RedBoot into eCos Kernel
       [not found]   ` <AANLkTik+8Anrpck-k4cXMaGNCCV2_DNnhp40xPyYEVr8@mail.gmail.com>
@ 2011-01-16 10:14     ` Elad Yosef
  2011-01-16 11:36       ` Sergei Gavrikov
  0 siblings, 1 reply; 4+ messages in thread
From: Elad Yosef @ 2011-01-16 10:14 UTC (permalink / raw)
  To: Sergei Gavrikov; +Cc: ecos-discuss

Hi,
Had to Check again with my HW guys the final RAM amout.
Not enough RAM for CYGPKG_NET.
I'll have to use LwIP, Do you think It is easy to export just the
client from CYGPKG_NET_TFTP?

Thanks

Elad





On Sun, Jan 16, 2011 at 7:41 AM, Elad Yosef <elad.yosef@gmail.com> wrote:
>
> Thanks
> That good for me
> Elad
>
> On Sat, Jan 15, 2011 at 10:10 PM, Sergei Gavrikov <sergei.gavrikov@gmail.com> wrote:
>>
>> On Thu, 13 Jan 2011, Elad Yosef wrote:
>>
>> > Has anyone exported the TFTP client from RedBoot as a standalone
>> > package in eCos Kernel (like the ftp client)?
>>
>> Just wondering... Why do not use  CYGPKG_NET_TFTP component from eCos
>> CYGPKG_NET? The TFTP support is active by default in NET package.
>>
>> Sergei
>

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] Re-use TFTP client from RedBoot into eCos Kernel
  2011-01-16 10:14     ` Elad Yosef
@ 2011-01-16 11:36       ` Sergei Gavrikov
  0 siblings, 0 replies; 4+ messages in thread
From: Sergei Gavrikov @ 2011-01-16 11:36 UTC (permalink / raw)
  To: Elad Yosef; +Cc: eCos Discuss

Please, do not top post.

Hi,

On Sun, 16 Jan 2011, Elad Yosef wrote:

> Hi,
> Had to Check again with my HW guys the final RAM amout.  Not enough
> RAM for CYGPKG_NET.
> I'll have to use LwIP, Do you think It is easy to export just the
> client from CYGPKG_NET_TFTP?

IMO, that would be quite straightforward if LWIP_COMPAT_SOCKETS is
active. As you can see TFTP stuff uses the classic BSD stack

% nm  net/common/current/src/net_common_tftp_client.o | grep U
         U bind
         U close
         U diag_printf
         U freeaddrinfo
         U getaddrinfo
         U inet_ntop
         U memcpy
         U recvfrom
         U select
         U sendto
         U socket

It seems only INET_NTOP(3) is something absent in lwIP.

Unfortunately, CYGPKG_NET_LWIP does not provide a needed interface
CYGPKG_NET_STACK, so, it seems for me you cannot just replace BSD stack
by lwIP stuff and get a built-in TFTP support from net/common via CDLs,
but, I want to believe that you can get the TFTP client on a user-land
side your lwIP project and that can be in 99%  'net/common' TFTP code.


Sergei

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-16 11:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-13  9:21 [ECOS] Re-use TFTP client from RedBoot into eCos Kernel Elad Yosef
2011-01-15 20:10 ` Sergei Gavrikov
     [not found]   ` <AANLkTik+8Anrpck-k4cXMaGNCCV2_DNnhp40xPyYEVr8@mail.gmail.com>
2011-01-16 10:14     ` Elad Yosef
2011-01-16 11:36       ` Sergei Gavrikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).