All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] ARP Retries
@ 2003-06-05 13:39 Raghu
  2003-06-05 13:54 ` Pantelis Antoniou
  2003-06-05 14:21 ` Wolfgang Denk
  0 siblings, 2 replies; 4+ messages in thread
From: Raghu @ 2003-06-05 13:39 UTC (permalink / raw)
  To: u-boot

Dear All,

I am observig this on u-boot 0.3.0 I have a the
following setup

MPC8245 based board with Intel 82559ER ethernet
controller.

I am using the "tftpload" command to load a file from
the tftpserver. But if I type a wrong filename its
reports a TFTP_ERROR as "File not Found". 

And for the very next "tftpload" command with a
correct file name it make ARP broadcast and loads the
file only after the 5 th retry. 

I am attaching the sequence of comands I am running. 
Is this a feature or a bug :-) ??
****************************************************
=> version 

U-Boot 0.3.0 (May 30 2003 - 11:29:53)
=> printenv
baudrate=38400
clocks_in_mhz=1
hostname=F-30
con_conf=console=ttyS0,38400
bootcmd=bootm 0xffc00000
bootdelay=5
bootargs=root=/dev/ram rw
stdin=serial
stdout=serial
stderr=serial
filesize=100ace
gatewayip=10.208.1.1
ipaddr=10.208.1.247
serverip=10.208.1.139
netmask=255.255.255.0

Environment size: 279/4092 bytes
=> tftpload 1000000 uImageTest 
ARP broadcast 1
TFTP from server 10.208.1.139; our IP address is
10.208.1.247
Filename 'uImageTest'.
Load address: 0x1000000
Loading:
#######################################################done
Bytes transferred = 1051342 (100ace hex)

=> tftpload 2000000 abc
ARP broadcast 1
TFTP from server 10.208.1.139; our IP address is
10.208.1.247
Filename 'abc'.
Load address: 0x2000000
Loading: *
TFTP error: 'File not found' (1)
Starting again

ARP broadcast 1

Abort
=> tftpload 2000000 ramdisk_test
ARP broadcast 1
ARP broadcast 2
ARP broadcast 3
ARP broadcast 4
ARP broadcast 5

Retry count exceeded; starting again
ARP broadcast 1
TFTP from server 10.208.1.139; our IP address is
10.208.1.247
Filename 'ramdisk_test'.
Load address: 0x2000000
Loading:
###########################################################################################
done
Bytes transferred = 4509481 (44cf29 hex)
=> 
*****************************************************


Warm reagrds,
Raghu




__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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

* [U-Boot-Users] ARP Retries
  2003-06-05 13:39 [U-Boot-Users] ARP Retries Raghu
@ 2003-06-05 13:54 ` Pantelis Antoniou
  2003-06-05 14:21 ` Wolfgang Denk
  1 sibling, 0 replies; 4+ messages in thread
From: Pantelis Antoniou @ 2003-06-05 13:54 UTC (permalink / raw)
  To: u-boot

Raghu wrote:

>Dear All,
>
>I am observig this on u-boot 0.3.0 I have a the
>following setup
>
>MPC8245 based board with Intel 82559ER ethernet
>controller.
>
>I am using the "tftpload" command to load a file from
>the tftpserver. But if I type a wrong filename its
>reports a TFTP_ERROR as "File not Found". 
>
>And for the very next "tftpload" command with a
>correct file name it make ARP broadcast and loads the
>file only after the 5 th retry. 
>
>I am attaching the sequence of comands I am running. 
>Is this a feature or a bug :-) ??
>****************************************************
>=> version 
>
>U-Boot 0.3.0 (May 30 2003 - 11:29:53)
>=> printenv
>baudrate=38400
>clocks_in_mhz=1
>hostname=F-30
>con_conf=console=ttyS0,38400
>bootcmd=bootm 0xffc00000
>bootdelay=5
>bootargs=root=/dev/ram rw
>stdin=serial
>stdout=serial
>stderr=serial
>filesize=100ace
>gatewayip=10.208.1.1
>ipaddr=10.208.1.247
>serverip=10.208.1.139
>netmask=255.255.255.0
>
>Environment size: 279/4092 bytes
>=> tftpload 1000000 uImageTest 
>ARP broadcast 1
>TFTP from server 10.208.1.139; our IP address is
>10.208.1.247
>Filename 'uImageTest'.
>Load address: 0x1000000
>Loading:
>#######################################################done
>Bytes transferred = 1051342 (100ace hex)
>
>=> tftpload 2000000 abc
>ARP broadcast 1
>TFTP from server 10.208.1.139; our IP address is
>10.208.1.247
>Filename 'abc'.
>Load address: 0x2000000
>Loading: *
>TFTP error: 'File not found' (1)
>Starting again
>
>ARP broadcast 1
>
>Abort
>=> tftpload 2000000 ramdisk_test
>ARP broadcast 1
>ARP broadcast 2
>ARP broadcast 3
>ARP broadcast 4
>ARP broadcast 5
>
>Retry count exceeded; starting again
>ARP broadcast 1
>TFTP from server 10.208.1.139; our IP address is
>10.208.1.247
>Filename 'ramdisk_test'.
>Load address: 0x2000000
>Loading:
>###########################################################################################
>done
>Bytes transferred = 4509481 (44cf29 hex)
>=> 
>*****************************************************
>
>
>Warm reagrds,
>Raghu
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
>http://calendar.yahoo.com
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
>thread debugger on the planet. Designed with thread debugging features
>you've never dreamed of, try TotalView 6 free at www.etnus.com.
>_______________________________________________
>U-Boot-Users mailing list
>U-Boot-Users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
>
>
Are you on a switch or a hub?

If you are on a switch it is possible for the switch to take some
time to "learn" your MAC address if you have spanning tree activated.

If you have access to the switch disable the spanning tree algorithm.

Regards

Pantelis

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

* [U-Boot-Users] ARP Retries
  2003-06-05 13:39 [U-Boot-Users] ARP Retries Raghu
  2003-06-05 13:54 ` Pantelis Antoniou
@ 2003-06-05 14:21 ` Wolfgang Denk
  2003-06-06  3:40   ` Raghu
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2003-06-05 14:21 UTC (permalink / raw)
  To: u-boot

In message <20030605133901.91671.qmail@web40402.mail.yahoo.com> you wrote:
> 
> I am observig this on u-boot 0.3.0 I have a the
> following setup
> 
> MPC8245 based board with Intel 82559ER ethernet
> controller.
> 
> I am using the "tftpload" command to load a file from
> the tftpserver. But if I type a wrong filename its
> reports a TFTP_ERROR as "File not Found". 
> 
> And for the very next "tftpload" command with a
> correct file name it make ARP broadcast and loads the
> file only after the 5 th retry. 

Do you have CONFIG_NET_MULTI defined in your board config file?
If yes, disable it, and try again.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
There comes to all races an ultimate crisis which  you  have  yet  to
face  ....  One  day  our  minds became so powerful we dared think of
ourselves as gods.
	-- Sargon, "Return to Tomorrow", stardate 4768.3

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

* [U-Boot-Users] ARP Retries
  2003-06-05 14:21 ` Wolfgang Denk
@ 2003-06-06  3:40   ` Raghu
  0 siblings, 0 replies; 4+ messages in thread
From: Raghu @ 2003-06-06  3:40 UTC (permalink / raw)
  To: u-boot

> Do you have CONFIG_NET_MULTI defined in your board
> config file?
> If yes, disable it, and try again.


HI, 

Yes, I had the  CONFIG_NET_MULTI define. 

Now I have modified to, 

#undef CONFIG_NET_MULTI
#define CONFIG_EEPRO100         1
#define CONFIG_COMMANDS   (   CONFIG_CMD_DFL  | \
                              CFG_CMD_FLASH   | \
                              CFG_CMD_SDRAM   | \
                              CFG_CMD_ENV     | \
                              CFG_CMD_PCI     | \
                              CFG_CMD_NET )

But undefining this breaking the build. 

I get the following unresolved errors. 

/home/raghu/u-boot-0.3.0/net/net.c:149: undefined
reference to `eth_halt'
/home/raghu/u-boot-0.3.0/net/net.c:150: undefined
reference to `eth_init'
/home/raghu/u-boot-0.3.0/net/net.c:252: undefined
reference to `eth_rx'
/home/raghu/u-boot-0.3.0/net/net.c:294: undefined
reference to `eth_halt'
/home/raghu/u-boot-0.3.0/net/net.c:258: undefined
reference to `eth_halt'
net/libnet.a(net.o): In function `NetSendPacket':
/home/raghu/u-boot-0.3.0/net/net.c:376: undefined
reference to `eth_send'

These functions in net/etc.c file are defined under
the macro, 
#if (CONFIG_COMMANDS & CFG_CMD_NET)  &&
defined(CONFIG_NET_MULTI)

Warm regards,
Raghu.




__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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

end of thread, other threads:[~2003-06-06  3:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-05 13:39 [U-Boot-Users] ARP Retries Raghu
2003-06-05 13:54 ` Pantelis Antoniou
2003-06-05 14:21 ` Wolfgang Denk
2003-06-06  3:40   ` Raghu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.