ls1021atwr chip use ethtool to set sgmii net 1000Mpbs speed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ls1021atwr chip use ethtool to set sgmii net 1000Mpbs speed

926 Views
jokerzhou
Contributor I

 my board is ls1021atwr chip,and input ethtool -s eth0 speed 1000 duplex full autoneg off,but it not successed.eth0 alwags link down.but input ethtool -s eth0 speed 100 duplex full autoneg off or ethtool -s eth0 speed 10 duplex full autoneg off , it can success. And  input ethtool -s eth0 autoneg on, it can link on and speed is 1000.eth0 used sgmii.

I do not kown what is wrong with this. can you help me?

0 Kudos
1 Reply

699 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Joker ZHOU,

Which version Linux SDK do you use?

I used Linux SDK 2.0 pre_built images, didn't reproduce your problem, please refer to the following.

root@ls1021atwr:~# ifconfig eth0 up

root@ls1021atwr:~# ethtool -s eth0 speed 1000 duplex full autoneg off
root@ls1021atwr:~# ethtool eth0
Settings for eth0:
        Supported ports: [ MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Advertised link modes:  1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 2
        Transceiver: external
        Auto-negotiation: off
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: no
root@ls1021atwr:~#

Linux Kernel boot up:

libphy: Freescale PowerQUICC MII Bus: probed
fsl-gianfar soc:ethernet@2d10000: enabled errata workarounds, flags: 0x4
fsl-gianfar soc:ethernet@2d10000 eth0: mac: 00:04:9f:04:13:50
fsl-gianfar soc:ethernet@2d10000 eth0: Running with NAPI enabled
fsl-gianfar soc:ethernet@2d10000 eth0: RX BD ring size for Q[0]: 256
fsl-gianfar soc:ethernet@2d10000 eth0: RX BD ring size for Q[1]: 256
fsl-gianfar soc:ethernet@2d10000 eth0: TX BD ring size for Q[0]: 256
fsl-gianfar soc:ethernet@2d10000 eth0: TX BD ring size for Q[1]: 256
fsl-gianfar soc:ethernet@2d50000: enabled errata workarounds, flags: 0x4
fsl-gianfar soc:ethernet@2d50000 eth1: mac: 00:04:9f:04:13:51
fsl-gianfar soc:ethernet@2d50000 eth1: Running with NAPI enabled
fsl-gianfar soc:ethernet@2d50000 eth1: RX BD ring size for Q[0]: 256
fsl-gianfar soc:ethernet@2d50000 eth1: RX BD ring size for Q[1]: 256
fsl-gianfar soc:ethernet@2d50000 eth1: TX BD ring size for Q[0]: 256
fsl-gianfar soc:ethernet@2d50000 eth1: TX BD ring size for Q[1]: 256
fsl-gianfar soc:ethernet@2d90000: enabled errata workarounds, flags: 0x4
fsl-gianfar soc:ethernet@2d90000 eth2: mac: 00:04:9f:04:13:52
fsl-gianfar soc:ethernet@2d90000 eth2: Running with NAPI enabled
fsl-gianfar soc:ethernet@2d90000 eth2: RX BD ring size for Q[0]: 256
fsl-gianfar soc:ethernet@2d90000 eth2: RX BD ring size for Q[1]: 256
fsl-gianfar soc:ethernet@2d90000 eth2: TX BD ring size for Q[0]: 256
fsl-gianfar soc:ethernet@2d90000 eth2: TX BD ring size for Q[1]: 256

u-boot log:

U-Boot 2016.012.0+ga9b437f (May 15 2016 - 05:05:17 +0800)

CPU:   Freescale LayerScape LS1021E, Version: 2.0, (0x87081120)
Clock Configuration:
       CPU0(ARMV7):1000 MHz,
       Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),
Reset Configuration Word (RCW):
       00000000: 0608000a 00000000 00000000 00000000
       00000010: 30000000 00007900 e0025a00 21046000
       00000020: 00000000 00000000 00000000 18000000
       00000030: 00080000 481b7340 00000000 00000000
I2C:   ready
Model: LS1021A TWR Board
Board: LS1021ATWR
CPLD:  V3.0
PCBA:  V2.0
VBank: 0
DRAM:  1 GiB
Using SERDES1 Protocol: 48 (0x30)
Firmware 'Microcode version 0.0.1 for LS1021a r1.0' for 1021 V1.0
QE: uploading microcode 'Microcode for LS1021a r1.0' version 0.0.1
Flash: 128 MiB
MMC:   FSL_SDHC: 0
EEPROM: NXID v16777216
PCIe1: Root Complex x1 gen1, regs @ 0x3400000
PCI:
     01:00.0    - 8086:107d - Network controller
PCIe1: Bus 00 - 01
PCIe2: disabled
In:    serial@21c0500
Out:   serial@21c0500
Err:   serial@21c0500
SEC0: RNG instantiated
Target spinup took 0 ms.
AHCI 0001.0300 1 slots 1 ports ? Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc
Found 1 device(s).
SCSI:  Net:   eTSEC1 is in sgmii mode.
eTSEC2 is in sgmii mode.
e1000: 00:15:17:80:af:43
       eTSEC1, eTSEC2, eTSEC3 [PRIME], e1000#0
Warning: e1000#0 MAC addresses don't match:
Address in SROM is         00:15:17:80:af:43
Address in environment is  00:1b:21:68:5e:d1

=>


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos