2008-10-15 00:16:39     Bf537 Ez-kit - Can't get Tftp working

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2008-10-15 00:16:39     Bf537 Ez-kit - Can't get Tftp working

Josh Skills (UNITED STATES)

Message: 63674   

 

Help....

 

I am running coLinux on Windows XP.

 

The problem:

 

It looks like I am so close to getting the tftp working. Anyone have any ideas why I can't xfer the simple foo.txt from /ttfpboot to 0x1000 in memory.

 

Backukp info:

 

I have turned off my firewall via McAfee on my XP Machine.

 

 

 

Windows Info:

Ethernet adapter Local Area Connection 2:

 

        IP Address. . . . . . . . . . . . : 192.168.1.104

        Subnet Mask . . . . . . . . . . . : 255.255.255.0

        Default Gateway . . . . . . . . . : 192.168.1.1

 

 

CoLinux Info:

 

debian:/etc# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:FF:31:10:00:00 

          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:932 errors:0 dropped:0 overruns:0 frame:0

          TX packets:513 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:70818 (69.1 KiB)  TX bytes:30447 (29.7 KiB)

          Interrupt:2

 

lo        Link encap:Local Loopback 

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:4 errors:0 dropped:0 overruns:0 frame:0

          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:166 (166.0 b)  TX bytes:166 (166.0 b)

 

debian:/etc#ls /tftpboot

foo.txt

foo1.txt

 

I ran:

 

/etc/init.d/xinetd start

 

 

BF537 board in u-boot:

 

bfin> tftpboot 0x1000 foo.txt

Using Blackfin EMAC device

TFTP from server 192.168.1.104; our IP address is 192.168.1.15

Filename 'foo.txt'.

Load address: 0x1000

Loading: T T T T T T T T T T

Retry count exceeded; starting again

Using Blackfin EMAC device

TFTP from server 192.168.1.104; our IP address is 192.168.1.15

Filename 'foo.txt'.

Load address: 0x1000

Loading: T

 

 

 

Any help would be greatly appreciated.

 

Thanks in advance,

 

AJ

 

 

 

 

QuoteReplyEditDelete

 

 

2008-10-15 20:07:16     Re: Bf537 Ez-kit - Can't get Tftp working

Frank Van Hooft (CANADA)

Message: 63730   

 

There was a similar posting only about a week or two ago. See:

 

https://blackfin.uclinux.org/gf/project/u-boot/forum/?action=ForumBrowse&forum_id=51&_forum_action=ForumMessageBrowse&thread_id=30246

 

It seems the most common problem with tftp is a firewall or other "tftp server machine" setup problem, rather than a u-boot problem.  You might find it easiest to try accessing your tftp server from another PC on your local network first, to ensure it really is available.  This might also help you:

 

See if your tftp server is running:

$ netstat -l -u

 

 

Go copy a file into the /tftpboot directory, set its permissions accordingly if necessary, then see if you can grab it:

$ tftp 192.168.1.104      (ie your own ip address)

tftp> get <filename>    (whatever your file name was)

tftp> quit

 

 

If this works, you can try grabbing the file from another PC.

QuoteReplyEditDelete

 

 

2008-10-16 03:05:23     Re: Bf537 Ez-kit - Can't get Tftp working

Andreas Bellgardt (GERMANY)

Message: 63754   

 

Josh,

 

did you try the ip address 10.0.2.15 as stated by your co-linux eth0 configuration?

Be sure to set up the correct serverip in u-boot with setenv serverip 10.0.2.15.

TranslateQuoteReplyEditDelete

 

 

2008-10-16 03:09:35     Re: Bf537 Ez-kit - Can't get Tftp working

Andreas Bellgardt (GERMANY)

Message: 63755   

 

I forgot to say that the ip 10.0.2.15 is clearly not the same subnet as 192.168.1.104. So you have to enable routing or change the ip for fitting that subnet.

Attachments

    Outcomes