Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHi,
I'm also trying to get a 4SGX230 to talk to the 88E111 over SGMII. However, I cannot even compile the current atse.h/c driver because of:#ifndef na_tse_mac_control_port
# error "**** This build has not been configured with Alteras example design of TSE-SGDMA."
# error "**** You need to do: make vendor_hwselect SYSPTF=<your_path>/NiosII_stratixII_2s60_RoHS_TSE_SGDMA_sopc.ptf"
# error "**** Or, You need to unselect ATSE ethernet driver with make menuconfig"
# endif
Which "make vendor_hwselect" isn't used / doesn't work anymore, so it's way out of date. Using altera_tse.c/h doesn't seem to work for me. Negotiation fails and the kernel outputs: Trying 10/HALF I've tried specifying the SGMII mode in the atl_tse_config struct, but nothing seems to work: static struct alt_tse_config tsemac0_config = {
.mii_id = 0,
.phy_addr = 0,
.tse_supported_modes = PHY_GBIT_FEATURES,
/*
supported modes can be
SUPPORTED_10baseT_Half
SUPPORTED_10baseT_Full
SUPPORTED_100baseT_Half
SUPPORTED_100baseT_Full
SUPPORTED_Autoneg
SUPPORTED_TP
SUPPORTED_MII ---------- Up to here is PHY_BASIC_FEATURES
SUPPORTED_1000baseT_Half
SUPPORTED_1000baseT_Full -- here PHY_GBIT_FEATURES
*/
.interface = PHY_INTERFACE_MODE_SGMII,
/* Interfaces can be
PHY_INTERFACE_MODE_MII
PHY_INTERFACE_MODE_GMII
PHY_INTERFACE_MODE_SGMII
PHY_INTERFACE_MODE_TBI
PHY_INTERFACE_MODE_RMII
PHY_INTERFACE_MODE_RGMII
PHY_INTERFACE_MODE_RGMII_ID
PHY_INTERFACE_MODE_RGMII_RXID
PHY_INTERFACE_MODE_RGMII_TXID
PHY_INTERFACE_MODE_RTBI
*/
.flags = 0, /* these are apparently phy specific... */
.autoneg = AUTONEG_ENABLE,
/* speed and duplex only valid if autoneg is AUTONED_DISABLE */
.speed = SPEED_100, /* SPEED_10, SPEED_100, SPEED_1000 */
.duplex = DUPLEX_HALF, /* DUPLEX_HALF, DUPLEX_FULL */
.rx_fifo_depth = ALT_TSE_TX_RX_FIFO_DEPTH,
.tx_fifo_depth = ALT_TSE_TX_RX_FIFO_DEPTH,
.ethaddr = {0x00 , 0x70 , 0xed , 0x11 , 0x12 , 0x12},
};
Is there an updated atse driver? I've updated my local git repository, but the log for the atse.h shows it was last touched in 2008. Edit: Ethtool output: root:/> ethtool eth0
Settings for eth0:
Supported ports:
Supported link modes:
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: external
Auto-negotiation: off
Current message level: 0x00000000 (0)
Link detected: yes