Help with Uboot and tftp

646 views
Skip to first unread message

Hemant Kapoor

unread,
Mar 13, 2015, 10:50:30 AM3/13/15
to beagl...@googlegroups.com
Hello All,

It's been a month now and I have tried everything to transfer a simple file to BBB using TFTP and it seems that BBB can't find the server.


I am unable to download anything via tftp: below is the snapshot:

U-Boot# setenv ipaddr 192.168.0.100
U
-Boot# setenv serverip 192.168.0.1
U
-Boot# tftp 0x81000000 hemant.txt
link up on port
0, speed 10, half duplex
Using cpsw device
TFTP
from server 192.168.0.1; our IP address is 192.168.0.100
Filename 'hemant.txt'.
Load address: 0x81000000
Loading: T T T T T T T T T T T T T T T T T T T T
Retry count exceeded; starting again
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC d0
:39:72:6b:eb:11
HOST MAC de
:ad:be:af:00:00
RNDIS ready
musb
-hdrc: peripheral reset irq lost!
high speed config
#2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up
!
Using usb_ether device



Thanks for reading the message,.,,

Regards,
Hemant Kapoor

Bill Traynor

unread,
Mar 13, 2015, 11:03:43 AM3/13/15
to beagl...@googlegroups.com
Did you refer to this page:

http://elinux.org/Building_BBB_Kernel#Transferring_the_image_to_the_BBB_via_TFTP


>
> Regards,
> Hemant Kapoor
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Hemant Kapoor

unread,
Mar 16, 2015, 7:23:00 AM3/16/15
to beagl...@googlegroups.com
Hello Bill,

Thanks for your response. I looked into the link but when I enter the below command

dhcp

I can below issue:
U-Boot# dhcp

link up on port
0, speed 10,
half duplex
BOOTP broadcast
1
BOOTP broadcast
2
BOOTP broadcast
3
BOOTP broadcast
4
BOOTP broadcast
5
BOOTP broadcast
6
BOOTP broadcast
7
BOOTP broadcast
8
BOOTP broadcast
9
BOOTP broadcast
10


Retry count exceeded; starting again
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC d0
:39:72:6b:eb:11
HOST MAC de
:ad:be:af:00:00
RNDIS ready
musb
-hdrc: peripheral reset irq lost!
high speed config
#2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up
!

BOOTP broadcast
1
BOOTP broadcast
2
BOOTP broadcast
3
BOOTP broadcast
4
BOOTP broadcast
5
BOOTP broadcast
6
BOOTP broadcast
7
BOOTP broadcast
8
BOOTP broadcast
9
BOOTP broadcast
10

Retry count exceeded; starting again
link up on port
0, speed 10, half duplex
BOOTP broadcast
1
BOOTP broadcast
2
BOOTP broadcast
3
BOOTP broadcast
4
BOOTP broadcast
5
BOOTP broadcast
6
BOOTP broadcast
7
BOOTP broadcast
8
BOOTP broadcast
9
BOOTP broadcast
10


So not sure where to go from here.

Regards,
Hemant Kapoor

Bill Traynor

unread,
Mar 16, 2015, 10:12:34 AM3/16/15
to beagl...@googlegroups.com
Are you certain there's a dhcp server running on your local network?

Hemant Kapoor

unread,
Mar 16, 2015, 10:34:42 AM3/16/15
to beagl...@googlegroups.com

I checked and I dont have dhcp server installed or running :(

But do we need to do it or we can use tftp server (tftpd-hpa) to do simple file transfer.

Also I realized that I am missing one vital information, which is that the host system is actually running on VirtualBox.

Any help.


Bill Traynor

unread,
Mar 16, 2015, 10:54:50 AM3/16/15
to beagl...@googlegroups.com
You need a dhcp server for the dhcp command to get an ip. I've done
this two ways before. One, I've let my router hand out an ip to the
board and two, I've set up a dhcp server on the tftp server but handed
out ips in a completely different, and fixed range.

Hemant Kapoor

unread,
Mar 16, 2015, 2:45:47 PM3/16/15
to beagl...@googlegroups.com
Hello Bill,

Thanks for your suggestion. In my virtualbox, I had two network card and your reply made me think which card is used by tftp-hpa.
Since I didn't find anything, I simply disabled one of the network card not in use and this worked like a charm :)

After one month of frustration, I am really happy :) :)

Thanks...

Hemant Kapoor
Reply all
Reply to author
Forward
0 new messages