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.

Cannot TFTP on DM8148 using GMII mode on EMAC[1]

Expert 2220 points
Other Parts Discussed in Thread: DM385

Hello,

I am using an ET1011C Phy in GMII mode on emac 1 and am unable to get it to find an IP address. I am using dm8148 IPNC 3.0. I have tried many configurations with no success, but here is my current setup:

  • GMII_SEL = 0x102 (GMII on port 1 and  RGMII on port 0)
  • I changed all of the pinmuxing to support full GMII, I noticed that there is a if PG1_0 then use full GMII, I copied those pinmux configurations.
  • I successfully get the PHY ID and am able to read and write to the phy.
  • The Phy is set to generate the clock and it does.
  • I changed the phy_id so that it will use port 1 instead of port 0.

When I boot I see:

net: Detected MACID:0:18:32:62:68:2e

cpsw
Hit any key to stop autoboot: 0
Configuring LSI Phy

link up on port 0, speed 1000, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6

...

If I try to ping my computer I see:

TI8148_EVM#ping 10.1.1.155
Configuring LSI Phy

link up on port 0, speed 1000, full duplex
*** ERROR: `ipaddr' not set
ping failed; host 10.1.1.155 is not alive
TI8148_EVM#


Is there some special setup required to get GMII working on 8148? I looked at the 8168 evm.c but everything is handled completely different, instead of using cpsw it uses davinci_emac.c calls

Any help would be appreciated,

-Ben

  • Ben,

    Looks like the IP address for your device is not set. You can do this by running the command "setenv ipaddr 10.1.1.x". Also you've to set "setenv serverip 10.1.1.x" for your TFTP server for TFTP to work.

  • Thank you for the reply,

    You are correct that I do not have an IP address, but it is supposed to be doing DHCP, so something is wrong and I am unable to acquire the IP address. The green light on the ethernet housing never turns on. My boot args are:

    TI8148_EVM#print
    bootdelay=3
    baudrate=115200
    autoload=yes
    verify=yes
    bootfile=uImage
    ramdisk_file=ramdisk.gz
    loadaddr=0x81000000
    script_addr=0x80900000
    loadbootscript=fatload mmc 0 ${script_addr} boot.scr
    bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}
    ethaddr=00:18:32:62:68:2e
    bootargs=console=ttyO0,115200n8 noinitrd mem=136M rootwait vram=16M vmalloc=1024M notifyk.vpssm3_sva=0xBFD00000 root=/dev/nfs rw nfsroot=10.1
    .1.155:/home/benmcgee/RDK_IPNC_3_0/PrivateTI_IPNC_RDK_DM812x_DM385_v3.0.0/Source/ipnc_rdk/target/filesys ip=dhcp cmemk.phys_start=0xA8000000
    cmemk.phys_end=0xAC000000 cmemk.allowOverlap=1 earlyprintk
    bootcmd=ipnc_ff_init 1;dhcp;setenv serverip 10.1.1.155;bootm
    serverip=10.1.1.155
    stdin=serial
    stdout=serial
    stderr=serial
    ethact=cpsw


    Unless I accidentally changes these boot args somehow, they worked fine on the EVM. I will try using a static IP to see if that makes a difference.

    -Ben

  • I changed the strapping on the Phy to run in RGMII mode and it still does not work. The only difference is that I am running on the EMAC[1] instead of EMAC[0]. I have adjusted the phy_id and register offsets. Is there some other change that needs to be made to run off of the second EMAC?

    Thanks,

    Ben

  • Ben,

    Did you try static IP?

  • Ben

    Did you gone through the porting guide for using EMAC1 in U-Boot
    http://processors.wiki.ti.com/index.php/TI81xx_PSP_Porting_Guide#CPSW_EMAC_1_bringup_in_uboot

    Regards
    Mugunthan V N

  • hi BenM,

    Did you slove your problem?I want to use the same phy,but I have no idea with the uboot,can you share the net configure ?

    Thank you

    enson