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.

AM4378: Ping test the ethernet.

Part Number: AM4378
Other Parts Discussed in Thread: DP83620

Hi,

In our custom board, we are using the DP83620 MII Ethernet phy transceiver. So we configured the ethernet,


+static struct cpsw_slave_data cpsw_slaves[] = {
+ {
+ .slave_reg_ofs = 0x208,
+ .sliver_reg_ofs = 0xd80,
+ .phy_addr = 8,
+ },
+ {
+ .slave_reg_ofs = 0x308,
+ .sliver_reg_ofs = 0xdc0,
+ .phy_addr = 4,
+ },
+};
+
+static struct cpsw_platform_data cpsw_data = {
+ .mdio_base = CPSW_MDIO_BASE,
+ .cpsw_base = CPSW_BASE,
+ .mdio_div = 0xff,
+ .channels = 8,
+ .cpdma_reg_ofs = 0x800,
+ .slaves = 1,
+ .slave_data = cpsw_slaves,
+ .ale_reg_ofs = 0xd00,
+ .ale_entries = 1024,
+ .host_port_reg_ofs = 0x108,
+ .hw_stats_reg_ofs = 0x900,
+ .bd_ram_ofs = 0x2000,
+ .mac_control = (1 << 5),
+ .control = cpsw_control,
+ .host_port_num = 0,
+ .version = CPSW_CTRL_VERSION_2,
+};

Ethernet 1 PHY address is 8 and Ethernet 2 PHY address is 4. From the I reference Ethernet System Software on Sitara AM-Class Processors document, I found that to perform ping test in u-boot, only phy address need to be properly configured correctly. Any changes need to be done for the configurations.

Regards,

Monish P

  • Hi,

    - What version of SDK are you using?

    - I am not sure if I understand what you are saying about MAC address configuring correctly. Please described which port is connected with the external link partner.

    - Please attach the console log of the DHCP command?

    - Have you tried booting to Linux to see if the pings works at that level?

    Best Regards,

    Schuyler