[ECOS] Speed up TFTP download time in RedBoot

Gary Thomas gary@mlbassoc.com
Mon Mar 19 18:50:00 GMT 2012


On 2012-03-19 12:11, Stanislav Meduna wrote:
> On 19.03.2012 18:44, Elad Yosef wrote:
>
>> I get 108 KBytes/sec after lowering the CYGDBG_REDBOOT_TICK_GRANULARITY to 50.
>> I'm downloading SREC image to my target.
>> I'm using MIPS32 4Kec.
>> Does any changes to - hal_delay_us(int us) will improve the time?
>
> Only if the hal_delay_us does not work as expected. If the throughput
> significantly depends on the TICK_GRANULARITY in this range
> I'd check whether the hal_delay_us really waits the time
> it should.
>
> FWIW, I am getting around 200 KB/s using an 80 MHz Cortex-M3
> processor and the TICK_GRANULARITY of 250 us. I have no experience
> with MIPS32 but from the description the CPU power shouldn't
> be an issue here.
>
> Note that it can also be the server that is introducing
> the latencies, especially if it runs on a loaded machine.
> Or a network driver bug - people usually don't really test
> the polled mode much.
>
> A Wireshark could tell whether it is the client or the
> server who is introducing latencies and also whether there
> are any lost packets.

Also, the performance will vary greatly, depending on the actual
networking hardware.  I get 1MB/sec on a reasonably fast PowerPC
(MPC8379), without any special tuning.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

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



More information about the Ecos-discuss mailing list