Project

General

Profile

Updating devkit to latest MDK tftp issue

Added by Jorden Luke almost 3 years ago

Hello I am new to the embedded linux world. I don't have too much experience with loading kernels using Uboot and tfpt. I was working on updating a MityDSP L138F to latest kernel. I followed the instructions in the wiki but once I ran the command to start pulling things of the the VM on to the target it won't load.I get the following output over serial.
U-Boot >setenv bootcmd "run flashargs; sf probe 0; sf read 0xc0700000 0x100000 0x300000;bootm 0xc0700000"
U-Boot > saveenv
Saving Environment to SPI Flash...
Erasing SPI flash...Writing to SPI flash...done
U-Boot > tftp
Unknown command 'tftp' - try 'help'
U-Boot > tftp 0xc0700000 UBL_SPI_MEM.ais ;
Using device
TFTP from server 192.168.0.183; our IP address is 192.168.0.142
Filename 'UBL_SPI_MEM.ais'.
Load address: 0xc0700000
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 device
TFTP from server 192.168.0.183; our IP address is 192.168.0.142
Filename 'UBL_SPI_MEM.ais'.
Load address: 0xc0700000
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

I have made sure the VM's tfpt server was setup correctly. I even made sure the target and the VM could ping one another. I ran a command that showed that ftp was getting hits for the correct file, but I am still not sure why it was unable to send. I also ran the command searching for a file I new wasn't in the folder and got a message tell it me was unable to locate the file. I feel like everything is setup correctly I am just not sure why it is timing out. Any hints?


Replies (3)

RE: Updating devkit to latest MDK tfpt issue - Added by Jonathan Cormier almost 3 years ago

Certainly seems like the transfer is somehow being interrupted.

How is the L138 connected to your computer's network?
Direct cross-over cable or through a network switch? How much traffic on the network switch if applicable?
Does the VM show any network errors in ifconfig (https://unix.stackexchange.com/q/184604)?
What network configurations did you set in u-boot? It is very helpful to see a full console log from power on instead of just a snippet.
How did you test the VM's tftp server?

RE: Updating devkit to latest MDK tfpt issue - Added by Jorden Luke almost 3 years ago

I figured it out by doing the config. The VM has two eth interfaces. I was using eth1 when I switch to eth0 it worked fine.

RE: Updating devkit to latest MDK tfpt issue - Added by Jonathan Cormier almost 3 years ago

Jorden Luke wrote:

I figured it out by doing the config. The VM has two eth interfaces. I was using eth1 when I switch to eth0 it worked fine.

Awesome thanks for the update.

    (1-3/3)
    Add picture from clipboard (Maximum size: 500 MB)