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.

DM365 TFTP Download Problem

I am using the most recent DM365 RDK with problems trying to do TFTP download of U-Boot image.

At "DVR" prompt, it shows the following after typing printenv:

ip=192.168.1.200:192.168.1.60:192.168.1.1:255.255.255.0::eth0:off

bootfile=u-boot-1.3.4-dm368_dvr.bin

 

my host , where the TFTP server runs, has the ip of 192.168.2.100 and my gateway is 192.168.2.1 (which is also the DHCP server).

After running TFTP server on my host (Ubuntu 10.10), I then do the following on the DVR:

setenv ip 192.168.2.100:192.168.2.100:192.168.2.1:255.255.255.0::eth0:0n

setenv ipaddr 192.168.2.101

tftpboot 0x82000000 u-boot-1.3.4-dm368_dvr.bin

 

Nothing seems to be happening - the PING does not work

Am I missing something?  Your help would be appreciated.

 

One thing I have in question, I am not sure why the board came with eth0 set to off in the beginning.  Setting it to 'on' does not help anyway.

 

CC Lin

  • is there a serverip env variable? It has to be set to 192.168.2.100.

  • Thank you for your kind reply.

    However, I did set up all needed parameters.  When I do printenv, I have the following set up:

    ipaddr=192.168.2.102

    serverip=192.168.2.101

    ip=192.168.2.101:192.168.2.101:192.168.2.1:255.255.255.0

    eth0=on

    bootfile=u-boot-1.3.4-dm365_dvr.bin

     

    after doing tftpboot 0x82000000 u-boot-1.3.4-dm368_dvr.bin

    Nothing happened ~

     

    Are there hardware jumpers or switches I forgot to set??

     

     

  • How about setting up "ethaddr"? Is the MAC address set? If it is not set, then your ping operation or tftp operation would not work. BTW, i hope you have ensured that the physical link is active and the LEDs are glowing on the network interface.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.

  • Thanks for getting back....

    Here are the DVR's initial configuration upon power-on:

    bootargs=mem=35M console=ttyS0,115200n8 root=/dev/mtdblock3 rw rootfstype=yaffs2 ip=192.168.1.200:192.168.1.60:192.168.1.1:255.255.255.0::eth0:off video=davincifb:osd0=720x576x8,2500K:osd1=off:vid0=off:vid1=off  
    bootcmd=setenv setboot setenv bootargs \$(bootargs) davinci_enc_mngr.ch0_mode=\$(videostd); run setboot;nboot 80700000 0 680000;bootm 80700000
    bootdelay=1
    baudrate=115200
    stdin=serial
    stdout=serial
    stderr=serial
    videostd=ntsc ethaddr=00:11:a1:98:a8:e9

    (the following is added after coming up)
    rootpath=/home/welson/DM368DVR_RDK/DM368_RDK/dvr/target/filesys
    ipaddr=192.168.2.102
    eth0=on
    bootfile=u-boot-1.3.4-dm365_dvr.bin
    serverip=192.168.2.101
    nfshost=192.168.2.101
    ip=192.168.2.101:192.168.2.101:192.168.2.1:255.255.255.0

    ver=U-Boot 1.3.4 (Jan 26 2011 - 00:07:15)

    Then, I do

    "PING 192.168.2.1" --> alive, as the DHCP server is 192.168.2.1

    "PING 192.168.2.100" , trying to PING host, --> alive

     

    However, when I do "PING 192.168.2.102" (try to PING DVR from host), there are no ICMP packets coming back.  PING does not reach DVR.

    The ethernet port on the DVR does have both LEDs glowing and the cable is good.

     

    Anything I have missed?

    Thanks for any reply....

     

     

     

     

  • Your board IP address seems to be 192.168.1.200. Can you try pinging it from your host machine? Your bootargs do not look good. You should set the correct ip address that you want to statically allocate to the DM36x board or should use DHCP.

    Can you try the following commands once your DM36x board boots?

    # printenv

    #dhcp

    #ping 192.168.2.1

    Regards,

    Anshuman

     

  • Dear Anshuman, 


     Thanks for getting back.

     Like you suggested, once I did dhcp on DVR, 192.168.2.102 will be assigned to the DVR and "PING 192.168.2.1" surely works, as this is the DHCP server.

    My host is configured (DHCP configured) with 192.168.2.101.  "PING 192.168.2.102" only gets responses at the same time I issue "dhcp" or "tftpboot 0x820000 u-boot-1.3.4-dm365_dvr.bin" at DVR.

    When neither command is issued at DVR side, "PING 192.168.2.102" will never gets responses.  I suppose the PING should always work whether either command is issued or not as long as DVR has an IP, which it does.

     

    Something not quite working here....  The DVR is brought up with 192.168.1.200 as its IP but somehow it takes 192.168.2.102 temporarily (to respond to ICMP) and never changes its IP to 192.168.2.102 even when dhcp is issued.  I guess this is why it never gets TFTP download from the host to work.

    I am really stuck.... I am trying to reduce boot time by optimizing U-boot & Kernel iamges.  Without TFTP download working, are there any other ways I can get around to load new image onto the DVR?

    Any help would be greatly appreciated.

     

  • The IP address for U-Boot and Linux can be different. Your settings are 192.168.2.102 for U-Boot and 192.168.1.200 for Linux. Only a few environment variables are used by tftp. U-Boot documentation is here.

    http://www.denx.de/wiki/view/DULG/UBootEnvVariables

    Since you can ping from DVR to host, the network must be working. A ping from host to DVR will probably not work because I think U-Boot does not have a ping daemon. When the DVR is running dhcp or tftpboot, those commands must be answering the ping messages as a side effect. I suggest looking at you TFTP setup. U-Boot has some instructions here.

    http://www.denx.de/wiki/view/DULG/SystemSetup#Section_4.6.

     

  • Dear Norman,

      Thanks for your suggestion which leads to our double-check effort on TFTP installation.  It turned out, for some unknown reason, we did not have /etc/xinet.d/tftp file created.  By adding it and we were able to do TFTP from DVR to host.

      We appreciate your advice on checking U-Boot & TFTP installation.