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.

Keystone II ethernet problem in Arago u-boot

Other Parts Discussed in Thread: 66AK2H12

Hello,

I have some problems trying to start up the Ethernet on our device with 66AK2H12 and u-boot from Arago repository.

 

I’ve connected the network interface to Port 4. I’m able to start the device using Ethernet boot and run U-boot. However, once the U-boot is up, interface becomes non-functional. For example, when I run the DHCP to acquire the IP address, I see that the 66AK2H12 sends proper “DHCP Discover” frames. The DHCP server sends “DHCP Offer” as a response. However, it looks like that the Rx data is not processed by the CPU (packets are dropped?), because after a few seconds the device sends “DHCP Discover” frame again. The same happens with

 

I assume that it has something to do with eth_priv_cfg structure in u-boot. Currently I define the interface as shown below:  

 

eth_priv_t eth_priv_cfg[] = {

        {

                .int_name       = "TCI6638_EMAC1",

                .rx_flow        = 23,

                .phy_addr       = 0,

                .slave_port     = 4,

                .sgmii_link_type = SGMII_LINK_MAC_MAC_AUTONEG,

        },

};

 

Is there any relation between rx_flow value and the port that’s being used?

 Kind regards,

Krzysztof Olejarczyk

  • Hi, Krzysztof,

    The keystone 2 silicon has 4 SGMII ports. 2 of them are routed to RJ45 on the EVM and the other 2 to AMC interface. These 2 Ethernet ports on AMC interface have not been tested and hence are not supported.

    Rex

  • Hello Rex,

    One more thing I'd like to know, I see that the rx_flow has to match the port with its Packet DMA channel. So slave port 1 uses channel 22, port 2 uses channel 23, etc. The linkage is defined in the description of CPSW_CFG_REG. However the Network Coprocessor User Guide available on TI website does not specify the DMA channels linked to ports TX_C and TX_D. Could you tell me which DMA channels are used by those ports?

    Kind regards,

    Krzysztof