Help with Uboot and tftp

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

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,.,

Did you refer to this page:

http://elinux.org/Building_BBB_Kernel#Transferring_the_image_to_the_BBB_via_TFTP

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

Are you certain there's a dhcp server running on your local network?

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

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.

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.

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 :slight_smile:

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

Thanks…

Hemant Kapoor