public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] http client?
Date: Wed, 22 Jul 2009 13:53:25 -0700	[thread overview]
Message-ID: <4A677C45.9050700@gmail.com> (raw)
In-Reply-To: <200907221651.45645.rgetz@blackfin.uclinux.org>

Robin Getz wrote:
> On Wed 22 Jul 2009 16:32, Ben Warren pondered:> Robin Getz wrote:
>   
>>> On Wed 22 Jul 2009 10:04, jeffery palmer pondered:
>>>   
>>>       
>>>> We are looking for an http client now as well. Our major issue revolves 
>>>>     
>>>>         
>>> around the download times for tftp.
>>>   
>>>       
>>>>  
>>>> Can Volkmar Uhlig kindly provide the patches?
>>>>  
>>>> Our units automically update themselves inside of uboot giving us the most
>>>> control over our firmware. The issue is that it takes 20 minutes via a DSL
>>>> line in Africa to update our units. An http test showed that the same
>>>> firmware downloads in 30 seconds. We have also added things like the blksize
>>>> parameter to the uboot tftp client to get it down to 20 minutes, our
>>>> original download times were ~50 minutes.     
>>>>     
>>>>         
>>> Hmm -- I'm assuming that is  http://www.faqs.org/rfcs/rfc1783.html ?
>>>
>>> Do you have a patch to send - or that I can clean up and submit?
>>>
>>>   
>>>       
>> Requesting a bigger blocksize is already implemented and should work if 
>> the server supports it.  It's been a while since I used this, but it was 
>> added along with support for multicast TFTP, probably about a year ago.
>>     
>
> I see:
>
> #define TFTP_MTU_BLOCKSIZE 1468blksize
> static unsigned short TftpBlkSizeOption=TFTP_MTU_BLOCKSIZE;
>
>                 /* try for more effic. blk size */
>                 pkt += sprintf((char *)pkt,"blksize%c%d%c",
>                                 0,TftpBlkSizeOption,0);
>
> but that is it...
>
> No CONFIG_ options for anything else?
>
>   
Right, it's hard-coded to 1468 (maximum TFTP frame that will fit in a 
1500-byte Ethernet frame, due to UDP overhead).  By default, TFTP 
requests a blocksize that will fill the frame.  If not, it uses the 
default TFTP block size (512, I think).

Is this not good enough?

Ben

  reply	other threads:[~2009-07-22 20:53 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <B305AA60-B454-4ECE-BC97-F70B484920AB@astfin.org>
2009-07-22 14:04 ` [U-Boot] http client? jeffery palmer
2009-07-22 15:18   ` Wolfgang Denk
2009-07-22 15:23     ` Alessandro Rubini
2009-07-22 16:00       ` jeffery palmer
2009-07-22 18:55         ` Kenneth Johansson
2009-07-22 20:21   ` Robin Getz
2009-07-22 20:32     ` Ben Warren
2009-07-22 20:51       ` Robin Getz
2009-07-22 20:53         ` Ben Warren [this message]
2009-07-22 21:34           ` Robin Getz
2009-07-22 22:00             ` Alessandro Rubini
2009-07-22 22:42               ` Robin Getz
2009-07-23 13:40                 ` jeffery palmer
2009-07-24  8:11                 ` Alessandro Rubini
2009-07-24 13:15                   ` jeffery palmer
2009-07-24 13:40                   ` Robin Getz
2009-08-11 18:14   ` Robin Getz
     [not found] <200907211237.55476.rgetz@blackfin.uclinux.org>
2009-07-21 18:00 ` Robin Getz
2009-07-21 18:01   ` Ben Warren
2009-07-21 18:45     ` Peter Tyser
2009-07-21 21:09   ` Wolfgang Denk
2009-07-22 12:26     ` Robin Getz
2009-07-22 15:01       ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A677C45.9050700@gmail.com \
    --to=biggerbadderben@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox