This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

transfer binary file to EVMK2H12??? Network is unreachable Error??

hello all ;

i use the EVMK2H12 .

linux 3.10.10 .

mcsdk 3_00_03_15 .

i wrote a hello.c file and i execute it in my host PC UBUNTU with the gcc arm:   # arm-linux-gnueabihf-gcc -o hello hello.c 

and it generate a binary file "hello" whitch i put in my tftp root directory ; but when i want to transfer this file to EVM:

EVM K2H#  tftp -r hello -g 192.168.2.9

i get this error :     tftp: sendto: Network is unreachable


i don't know if it is due to the Ethernet driver o somthing else .

thank you;

  • Hi Capitaine,
    Please provide below information to support you on this query.

    1. Are you running below command from target u-boot/linux or host ?
    EVM K2H# tftp -r hello -g 192.168.2.9
    2. Have you installed tftp server and configured on the host?
    3. Are you able to ping host and EVM successfully? If yes, Please post your log here.

    Thank you.
  • thank you Mr Raja :

    1- i run the command : tftp -r hello -g 192.168.2.9 in target linux .
    2- yes i have installed and configured tftp server on my host ubuntu.
    3- no i cannot ping EVM : when i execute this command : ping <EVM eth0 ip> in my host terminal i get this error sequence:
    From 192.168.2.9 icmp_seq=1 Destination Host Unreachable
    From 192.168.2.9 icmp_seq=2 Destination Host Unreachable
    From 192.168.2.9 icmp_seq=3 Destination Host Unreachable
    .....

    when i ping from the other side in target linux : ping <my laptop ip> i get this error :
    Network is unreachable


    thank you Sir;
  • Hi Capitaine,


    1- i run the command : tftp -r hello -g 192.168.2.9 in target linux .

    If you are trying to connect your board through TFTP then you need to run "tftp" daemon in board.
    I hope tftp daemon service is not available.
    So you can get the file from linux host PC to K2H board.


    1) Boot the linux on K2H board
    2) Try to get the file through TFTP command from Linux host machine to K2H board.