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.

K2H EVM TFTP Troubleshooting

Customer is using a Windows TFTP Server but when trying to load code into memory, the TFTP server just times out. Any suggestion? Uboot Evnironment variables

 

Here’s the boot environment:

 

TCI6638 EVM # env print

addr_fdt=0x87000000

addr_fs=0x82000000

addr_kern=0x88000000

addr_mon=0x0c5f0000

addr_ubi=0x82000000

addr_uboot=0x87000000

args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1

args_net=setenv bootargs ${bootargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp

args_ramfs=setenv bootargs ${bootargs} earlyprintk rdinit=/sbin/init rw root=/dev/ram0 initrd=0x802000000,9M

args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=2,2048

args_uinitrd=setenv bootargs ${bootargs} earlyprintk rdinit=/sbin/init rw root=/dev/ram0

baudrate=115200

boot=ubi

bootargs=netcp(0,0)host:vxWorks h=172.25.41.194 e=172.25.41.195:fffffe00 g=172.25.41.193 u=demo pw=demo f=0x0

bootcmd=run init_${boot} get_fdt_${boot} get_mon_${boot} get_kern_${boot} run_mon run_kern

bootdelay=3

bootfile=uImage

burn_ubi=nand erase.part ubifs; nand write ${addr_ubi} ubifs ${filesize}

burn_uboot=sf probe; sf erase 0 0x100000; sf write ${addr_uboot} 0 ${filesize}

eth1addr=172.25.41.195

ethact=TCI6638_EMAC

ethaddr=b4:99:4c:bb:20:80

fdt_high=0xffffffff

gatewayip=172.25.41.193

get_fdt_net=dhcp ${addr_fdt} ${tftp_root}/${name_fdt}

get_fdt_ramfs=dhcp ${addr_fdt} ${tftp_root}/${name_fdt}

get_fdt_ubi=ubifsload ${addr_fdt} ${name_fdt}

get_fdt_uinitrd=dhcp ${addr_fdt} ${tftp_root}/${name_fdt}

get_fs_ramfs=dhcp ${addr_fs} ${tftp_root}/${name_fs}

get_fs_uinitrd=dhcp ${addr_fs} ${tftp_root}/${name_uinitrd}

get_kern_net=dhcp ${addr_kern} ${tftp_root}/${name_kern}

get_kern_ramfs=dhcp ${addr_kern} ${tftp_root}/${name_kern}

get_kern_ubi=ubifsload ${addr_kern} ${name_kern}

get_kern_uinitrd=dhcp ${addr_kern} ${tftp_root}/${name_kern}

get_mon_net=dhcp ${addr_mon} ${tftp_root}/${name_mon}

get_mon_ramfs=dhcp ${addr_mon} ${tftp_root}/${name_mon}

get_mon_ubi=ubifsload ${addr_mon} ${name_mon}

get_mon_uinitrd=dhcp ${addr_mon} ${tftp_root}/${name_mon}

get_ubi_net=dhcp ${addr_ubi} ${tftp_root}/${name_ubi}

get_uboot_net=dhcp ${addr_uboot} ${tftp_root}/${name_uboot}

has_mdio=0

init_net=run set_fs_none args_all args_net

init_ramfs=run set_fs_none args_all args_ramfs get_fs_ramfs

init_ubi=run set_fs_none args_all args_ubi; ubi part ubifs; ubifsmount boot

init_uinitrd=run set_fs_uinitrd args_all args_uinitrd get_fs_uinitrd

initrd_high=0xffffffff

ipaddr=172.25.41.195

mem_lpae=1

mem_reserve=512M

mtdparts=mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(params)ro,129536k(ubifs)

name_fdt=uImage-k2hk-evm.dtb

name_fs=arago-console-image.cpio.gz

name_kern=uImage-keystone-evm.bin

name_mon=skern-keystone-evm.bin

name_ubi=keystone-evm-ubifs.ubi

name_uboot=u-boot-spi-keystone-evm.gph

name_uinitrd=uinitrd.bin

netmask=255.255.255.0

nfs_options=v3,tcp,rsize=4096,wsize=4096

nfs_root=/export

no_post=1

run_kern=bootm ${addr_kern} ${addr_uinitrd} ${addr_fdt}

run_mon=mon_install ${addr_mon}

serverip=172.25.41.194

set_fs_none=setenv addr_uinitrd -

set_fs_uinitrd=setenv addr_uinitrd ${addr_fs}

stderr=serial

stdin=serial

stdout=serial

ver=U-Boot 2013.01-00004-g0c2f8a2 (Aug 16 2013 - 19:04:15)

 

Environment size: 3170/262140 bytes

TCI6638 EVM #

  • Hi Lawrence,
    Are they able to ping the server from u-boot prompt?
    I would suggest them to connect ethernet cable directly from K2H to windows bases TFTP server and check the connectivity.

    Thank you.
  • Hi Lawrence,

    Yes, it is possible to load the images in the windows environment provided the tftp server is running on the windows.

    Hardware Setup:

    Connect the Ethernet cable, UART-USB and power cable to K2H EVM.

    Steps:

    0. On windows side, run the tftp server. ( Attached the zip file)

    1. Power on reset ( For me, I have choosen the SPI boot mode)

    2. Observe the boot messages on the teraterm

    3. Hit any key to stop the auto boot

    4. Set the ip address for the target board

        K2HK EVM # dhcp

    ( Note down the ip address )

        K2HK EVM # setenv ipaddr 10.100.1.9

    5. Set the server ip address.

        K2HK EVM # setenv ipaddr 10.100.1.62

    6. Using ping command check the connectivity.

        K2HK EVM # ping 10.100.1.62

    7. Copy the binary image into the folder from which you are running the tftp server.

    8. Uisng tftpboot, transfer theimage.

        K2HK EVM # tftpboot 0x8800000 uImage-keystone-evm.bin

    9. You are done!!!!!

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • The customer is still having problems.  This is what they are seeing:

    TCI6638 EVM # setenv ipaddr 172.25.41.200

    TCI6638 EVM # setenv netmask 255.255.255.0

    TCI6638 EVM # setenv serverip 172.25.41.195

    TCI6638 EVM # setenv gatewayip 172.25.41.193

    TCI6638 EVM # saveenv

    Saving Environment to NAND...

    Erasing Nand...

    Erasing at 0x120000 -- 100% complete.

    Writing to Nand... done

     

     

    TCI6638 EVM # ping 172.25.41.193

    Using TCI6638_EMAC1 device

    host 172.25.41.193 is alive

     

     

    TCI6638 EVM # ping 172.25.41.195              

    Using TCI6638_EMAC1 device

    host 172.25.41.195 is alive

     

     

    TCI6638 EVM # tftp 0xc300000 u-boot.img   

    Using TCI6638_EMAC device

    TFTP from server 172.25.41.195; our IP address is 172.25.41.200

    Filename 'u-boot.img'.

    Load address: 0xc300000

    Loading: T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T 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 TCI6638_EMAC1 device

    TFTP from server 172.25.41.195; our IP address is 172.25.41.200

    Filename 'u-boot.img'.

    Load address: 0xc300000

    Loading: T T T T T T T T T T T T T T T T T T T T T T T T T

    Any suggestion?

    Regards,

    Lawrence

  • Here is screenshot on TFTP server

  • Hi,
    Have customer tried to use "tftpd32" server as Shankari attached on windows ?
    Did they try and got success on Linux host machine instead of Windows ?
    Are they using any Virtual box setup for server or stand alone machine ?

    Ask them to try to test the TFTP server from some other windows or Linux machine to connect TFTP client ?
    i.e, To confirm that TFTP server doesn't have a any problem and setup is fine.
  • Customer has tried using tftpd64 on another machine.  They have used TFTP on other non-TI boards.  So I believe thier setup is correct.  This is their first TI board.   Would there be a reason for TFTP to fail due to the file it recieve? Customer is trying to run VxWorks so they need to change uboot file.

    Regards,

    Lawrence

  • Hi,
    Which MCSDK version customer is using ?
    Ask them to use latest MCSDK and prebuilt images.
  • Hi, Lawrence,

    Tftpd64 server needs to have PXE compatibility enabled.

    Rex

     

     

  • Hi Lawrence,
    After "PXE compatibility enabled", solved the problem ?

    Thanks Rex for your help on this.
  • Hi Lawrence,
    Sounds good.
    Thanks for your update.