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.

Ethernet Is having trouble while copying using tftp from u-boot prompt.

Other Parts Discussed in Thread: AM3352

HI all,

We have out custom board, that uses am3352 processor. I could able to copy the u-boot.img file use tera term by following the below url:

http://processors.wiki.ti.com/index.php/AM335x_U-Boot_User's_Guide#Flashing_images_to_NAND_in_UART_boot_mode

Now when I am trying to copy the RFS from the server pc using TFTP server from the boot prompt, The communication is very slow and it is disconnecting after some seaconds.

Our Ethernet port supports 10/100 Mb/s.

Below is the steps I followed:

#set ipaddr 192.168.6.14

#set serverip 192.168.6.13

When I am pinging I am getting as follows

#ping 192.168.6.13
link up on port 0, speed 100, full duplex
Using cpsw device
host 192.168.6.13 is alive

Then When I am trying to copy from TFTP it is coming as follows:

#tftp $loadaddr core-image-minimal-mtdutils-agappe-20151015173507.rootfs.ubi

link up on port 0, speed 100, full duplex
Using cpsw device
TFTP from server 192.168.6.13; our IP address is 192.168.6.14
Filename 'core-image-minimal-mtdutils-agappe-20151015173507.rootfs.ubi'.
Load address: 0x82000000
Loading: #T T T #T ##T T #T T T #T #T T #T #T T T T #T #T ###T

Then it is disconnecting after a few seconds. How ever if it is very small file(1MB) it is getting transferred but slowly. But more then 1 MB files are having the issue.

Please assist me how to proceed.

 

Regards

Sudipta.

  • Hi,

    What SDK version are you using?
  • First of all sorry, as by mistake I clicked Verify Answer,
    We have build the BSP using, Yocto Projects. That automatically downloads the required packages from ti daisy branch repository. How ever with the same BSP when I tried with am335x-evm kit, I could able to copy the big files very fast. But Here I am not able to transfer the files at all.
  • The 'T' sign means Timeout. I would like to suggest you first to examine the network connection.
  • Network connection is proper. Because when i am using the am335x-evm kit that time it is working fine when I am trying to copy the file from TFTP in U-boot prompt. Only when I am trying to copy to my device I am getting this issue.

    Do I need to modify in the U-Boot Source Code for my PHYconfiguration.
    regards
    Sudipta.
  • Yes, this is the second step. You should check your schematic and configure the U-Boot accordingly.
  • Hi All,

         Thanks for the support. I could able to Identify the problem and solved it, As we are using the same Ethernet  transceiver in our custom board that  is being used in Beaglebone, so I modified the  int board_eth_init(bd_t *bis) in "u-boot/board/ti/am335x/board.c" file. As our transceiver is same as Beaglebone so I forced the Ethernet configuration for Beaglebone and bypassed all other configuration applicable for other boards.

    I have highlighted the commented section.

    Modification in board.c:

    *******************************

    The Modifications at Line No 460::

    //if (board_is_bone() || board_is_bone_lt() || board_is_idk()) {

    writel(MII_MODE_ENABLE, &cdev->miisel);

    cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if =

    PHY_INTERFACE_MODE_MII;

    //} else {

    // writel(RGMII_MODE_ENABLE, &cdev->miisel);

    // cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if =

    // PHY_INTERFACE_MODE_RGMII;

    //}

    Modifications at Line no 488

    #if 0

    if (board_is_evm_sk() || board_is_gp_evm()) {

    const char *devname;

    devname = miiphy_get_current_dev();

    miiphy_write(devname, 0x0, AR8051_PHY_DEBUG_ADDR_REG,

    AR8051_DEBUG_RGMII_CLK_DLY_REG);

    miiphy_write(devname, 0x0, AR8051_PHY_DEBUG_DATA_REG,

    AR8051_RGMII_TX_CLK_DLY);

    }

    #endif

    I also modified in  "u-boot/board/ti/am335x/mux.c"

    In "void enable_board_pin_mux(struct am335x_baseboard_id *header)" function, I added "configure_module_pin_mux(mii1_pin_mux);" for my custom board which is same as beagle bone. If we will not add this line it will not work.

    Then I compiled my u-boot and TFTP started working.

    Thanks Every one for Supporting.