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.

tftp error + dm368

Hi,

       I am trying to set up my custom dm368 board.  When trying to flash the kernel image on to the dm368 board through tftp, it fails because of not able to establish connection/link with tftp server.

Debug Log:

 ###### UBL VERSION: xx . xx.x #######

                                       Flash: 16 MB

 --- u-boot for DM368 version XX.XX (2011-09-07) ---
In:    serial
Out:   serial
Err:   serial
Ethernet PHY: GENERIC @ 0x00
Hit any key to stop autoboot:  0
TFTP from server 10.60.3.60; our IP address is 10.60.3.222
Filename 'uImage_16'.
Load address: 0x80700000
Loading: send option "timeout 5"
WARN: emac_send_packet: No link
T send option "timeout 5"
T send option "timeout 5"
T send option "timeout 5"

Environment variables:

COMMAND PROMPT:>printenv

bootdelay=1
baudrate=115200
ethaddr=02:81:00:00:00:00
verify=no
bootfile=uImage_16
ipaddr=10.60.3.222
bootargs=console=ttyS0,115200n8 ip=10.60.3.225:10.60.3.78:10.60.3.78:255.255.255.0 root=/dev/mtdblock4 rw mem=100M lpj=741376 init=bin/pan
bootcmd=tftpboot 0x80700000 uImage_16;bootm 0x80700000
serverip=10.60.3.60
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 1.3.4 (Jan  4 2012 - 08:16:49)

Environment size: 399/1020 bytes

I cross checked the tftp connection , it is working fine.

It is also observed that i am not able to ping to my target board from my host pc.

can any one tell me what went wrong and how to correct it.

Thanks in advance,

Kiran.

  • Hi Kiran,

    Did you try pinging from your board to your target PC ?

    Did you check the file 'uImage_16' exists ?

    Regards,

    --Prabhakar Lad

  • Hi Prabhakar,

    Thank you for the reply.

    [Prabhakar] Did you try pinging from your board to your target PC ?

    [Kiran] how to ping from my target board?

    i tried  by typing

    ping serverip  in the uboot command prompt. The above command resulted in following error:

    In:    serial
    Out:   serial
    Err:   serial
    Ethernet PHY: GENERIC @ 0x00
    Hit any key to stop autoboot:  0
    COMMAND PROMPT :>ping 10.60.3.83
    Unknown command 'ping' - try 'help'

    The following are the commands available for me in uboot.

    COMMAND PROMPT :>help

    ?       - alias for 'help'
    base     - print or set address offset
    boot    - boot default, i.e., run 'bootcmd'
    bootd   - boot default, i.e., run 'bootcmd'
    bootm   - boot application image from memory
    bootp   - boot image via network using BootP/TFTP protocol
    cmp      - memory compare
    coninfo - print console devices and information
    cp       - memory copy
    crc32    - checksum calculation
    echo    - echo args to console
    erase   - erase FLASH memory
    flinfo  - print FLASH memory information
    go      - start application at address 'addr'
    help    - print online help
    iminfo  - print header information for application image
    imls    - list all images found in flash
    loop     - infinite loop on address range
    md       - memory display
    mii     - MII utility commands
    mm       - memory modify (auto-incrementing)
    mtest    - simple RAM test
    mw       - memory write (fill)
    nfs     - boot image via network using NFS protocol
    nm       - memory modify (constant address)
    printenv- print environment variables
    protect - enable or disable FLASH write protection
    rarpboot- boot image via network using RARP/TFTP protocol
    reset   - Perform RESET of the CPU
    run     - run commands in an environment variable
    saveenv - save environment variables to persistent storage
    setenv  - set environment variables
    tftpboot- boot image via network using TFTP protocol
    version - print monitor version

    [Prabhakar] Did you check the file 'uImage_16' exists ?

    [Kiran] Yes, the kernel image uImage_16 exists in my /tftp folder of my pc.

    Is there any other apporach (other than tptp) to load the kernel image into the target board.

    Note: I have serial port with me.

  • Hi,

    what is the source of you uboot? did you build it ?

    Regards,

    --PRabhakar Lad

  • i have both an pre built working dm368 binary and a binary obtained by compiling and building a uboot dm365 source code. (with modifications necessary for dm368 made )

  • Hi,

    i have both an pre built working dm368 binary and a binary obtained by compiling and building a uboot dm365 source code. (with modifications necessary for dm368 made )

    what is the source from where did you take the source of uboot?

    how did you build it?

    did you enable CONFIG_DRIVER_TI_EMAC?

    did you enable CONFIG_CMD_PING?

    Regards,

    --Prabhakar Lad

  • source is from Texas Instruments   DVSDK  software for DM365 evm