[Etherboot-developers] Porting report
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Yannis M. <gm...@te...> - 2003-02-26 14:16:06
|
Hi all,
The "porting" of the etherboot is proceeding smoothly, I have managed
to overcome some problems. I have also studied the COFF file format and
based on the aout_loader I am able to download the minimum needed
sections, namely, the .text and .data.
One question that I have is the following (always refering to version
5.0.8):
Inside the tftp function I had to add in two different places some small
delays. namely:
Quoted from the main.c:
----------------------------
udelay(10000); <------------1st
664: for (;;)
{
long timeout;
#ifdef CONGESTED
timeout = rfc2131_sleep_interval(block?TFTP_REXMT: TIMEOUT, retry);
#else
timeout = rfc2131_sleep_interval(TIMEOUT, retry);
#endif
udelay(2000); <------------2st
if (!await_reply(AWAIT_TFTP, iport, NULL, timeout))
{
----------------------------
If I omit the udelays, from the tcpdump I can see that the processor
sends a lot of tftp requests before it gets an aknowledge from the server.
Any ideas on this ?
Regards
Yannis
--
Research Associate
National Technical University of Athens
Electrical & Computers Engineering Department
Computer Science Division, Telecommunications Laboratory
Heroon Polytechneiou 9, Zographou Campus, 157 73, Athens, Greece
E-mail:gm...@te...
Tel.: (+30)-210- 772 3939
Fax: (+30)-210- 772 2534
|