Due to the U.S. Thanksgiving holiday, please expect delayed responses during the week of 11/22.

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.

Linux/PHYTC-3P-PHYCORE-AM335X: Link speed

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !
link up on port 0, speed 10, half duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10

i have to set 10 mbps full duplex can any one have idea how to set ??

i am applying command mii write 1 0 <data> .

in <data> feild what should i put to get 10 mbps full duplex ??

  • You are using a third-party board. TI does not have information about this board schematics, esp. what PHY is used, what Linux version, etc. Please contact Phytec for support.
  • i think i entered wrong part number but this board has am335x processor !!
  • Part Number: PROCESSOR-SDK-AM335X

    Tool/software: Linux

    PRCHECK# dhcp
    link up on port 0, speed 10, half duplex
    link up on port 0, speed 10, half duplex
    BOOTP broadcast 1
    BOOTP broadcast 2

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

    PRCHECK# mii dump 1 0
    0. (3100) -- PHY control register --
    (8000:0000) 0.15 = 0 reset
    (4000:0000) 0.14 = 0 loopback
    (2040:2000) 0. 6,13 = b01 speed selection = 100 Mbps
    (1000:1000) 0.12 = 1 A/N enable
    (0800:0000) 0.11 = 0 power-down
    (0400:0000) 0.10 = 0 isolate
    (0200:0000) 0. 9 = 0 restart A/N
    (0100:0100) 0. 8 = 1 duplex = full
    (0080:0000) 0. 7 = 0 collision test enable
    (003f:0000) 0. 5- 0 = 0 (reserved)

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

    IP is not getting to board , i have to set it for speed 10, full duplex, how to set it ??

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

    LOG :

    [ 111.895312] libphy: PHY not found
    [ 111.898758] net eth0: phy "" not found on slave 1, err -19
    [ 111.910950] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 121.912955] Waiting up to 110 more seconds for network.
    [ 131.912961] Waiting up to 100 more seconds for network.
    [ 141.922957] Waiting up to 90 more seconds for network.
    [ 151.922961] Waiting up to 80 more seconds for network.
    [ 152.883719] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [ 152.891916] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [ 152.906653] Sending DHCP requests .
    [ 154.883608] cpsw 4a100000.ethernet eth0: Link is Down
    [ 155.592915] ..
    [ 164.883718] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [ 166.883624] cpsw 4a100000.ethernet eth0: Link is Down
    [ 168.512911] ..
    [ 203.883700] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [ 205.883584] cpsw 4a100000.ethernet eth0: Link is Down
    [ 208.052918] .
    [ 220.883699] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [ 222.883581] cpsw 4a100000.ethernet eth0: Link is Down
    [ 225.883719] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [ 227.883578] cpsw 4a100000.ethernet eth0: Link is Down
    [ 238.052918] timed out!
    [ 238.090149] IP-Config: Retrying forever (NFS root)...
    [ 238.095529] net eth0: initializing cpsw version 1.12 (0)
    [ 238.100891] net eth0: initialized cpsw ale version 1.4
    [ 238.106165] net eth0: ALE Table size 1024
    [ 238.183312] net eth0: phy found : id is : 0x20005c90



  • Please post what Linux version you are using. Also complete this checklist and post the results here: processors.wiki.ti.com/.../5x_CPSW
  • Kernel version 4.4.32-gadde2ca9f8
    Arago based filesytem

    i have to boot from nfs
    i used this commands
    -------------------------------------------------------------------
    setenv netboot 'echo Booting from network ...; setenv autoload no; run netloadimage; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}';
    setenv netargs 'setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=<SERVERIP>:${rootpath},${nfsopts} rw ip=dhcp';
    setenv bootfile zImage; setenv fdtfile am335x-prcheck.dtb;
    setenv serverip <SERVERIP>;
    setenv rootpath <FileSystem>;
    run netboot
    -------------------------------------------------------------------

    to enter these commands i have to get IP of the device through "dhcp" command and it shows


    -------------------------------------------------------------------
    U-Boot 2016.05-g9c1d5f2-dirty (Nov 09 2018 - 16:17:20 -0500)

    CPU : AM335X-GP rev 2.1
    Model: TI AM335x EVM
    Watchdog enabled
    DRAM: 512 MiB
    NAND: 512 MiB
    MMC: initializing MMC : 0
    probing MMCs
    Probing MMC 2
    return from mmc device -19
    OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Doing preinit
    Card did not respond to voltage select!
    ** Bad device mmc 0 **
    Using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net: RMII mode configure for PHY 1
    cpsw, usb_ether
    Press SPACE to abort autoboot in 2 seconds
    PRCHECK# dhcp
    cpsw Waiting for PHY auto negotiation to complete.. done
    link up on port 0, speed 100, full duplex
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    BOOTP broadcast 5
    BOOTP broadcast 6
    BOOTP broadcast 7
    BOOTP broadcast 8
    BOOTP broadcast 9
    BOOTP broadcast 10
    BOOTP broadcast 11
    BOOTP broadcast 12
    BOOTP broadcast 13
    BOOTP broadcast 14
    BOOTP broadcast 15
    BOOTP broadcast 16
    BOOTP broadcast 17
    BOOTP broadcast 18
    BOOTP broadcast 19
    BOOTP broadcast 20
    BOOTP broadcast 21
    BOOTP broadcast 22
    BOOTP broadcast 23
    BOOTP broadcast 24
    BOOTP broadcast 25
    BOOTP broadcast 26
    BOOTP broadcast 27
    BOOTP broadcast 28
    BOOTP broadcast 29

    Retry time exceeded; starting again
    -------------------------------------------------------------------
    PRCHECK# mii info
    PHY 0x01: OUI = 0x80017, Model = 0x09, Rev = 0x00, 10baseT, HDX
    -------------------------------------------------------------------
    PRCHECK# mii dump 1 0
    0. (3100) -- PHY control register --
    (8000:0000) 0.15 = 0 reset
    (4000:0000) 0.14 = 0 loopback
    (2040:2000) 0. 6,13 = b01 speed selection = 100 Mbps
    (1000:1000) 0.12 = 1 A/N enable
    (0800:0000) 0.11 = 0 power-down
    (0400:0000) 0.10 = 0 isolate
    (0200:0000) 0. 9 = 0 restart A/N
    (0100:0100) 0. 8 = 1 duplex = full
    (0080:0000) 0. 7 = 0 collision test enable
    (003f:0000) 0. 5- 0 = 0 (reserved)
    -------------------------------------------------------------------

    I have to set it 10 mbps with full duplex
  • Hi,

    The PHY is Auto-negotiating to 100Mbps. What is the need for 10Mbps?

    You may be able to set the bit rate to 10Mbps but you will have do that configuration in the PHY driver code depending on the PHY you are using and have to restart the auto-negotiation process.

    You could also redo the HW strapping that sets the configuration on the PHY.

    Best Regards,
    Schuyler
  • thank you Schuyler Patton !!!

  • Hi,
    Were you able to solve the issue?
    Best Regards,
    Schuyler
  • yes
    I used one command at uboot
    mii write 1 0x00 0x4100
    mii write 1 0x04 0x0061

    Regards
    Amol chor