L2-Switch ARP reply

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

L2-Switch ARP reply

1,271 Views
bba
Contributor III

Hello, we want to use the L2-switch on our own hardware and found another problem with missing ARP reply.

After reboot of the iMX28evk it is not reachable from the host-pc and does not respond to arp requests, so the arp table is empty. After ping the pc from the emod, there is an entry in the arp table of the pc and the emod is reachable.

Reading the freescale forum there is a similar request: http://forums.freescale.com/t5/i-MX-Microprocessors/i-MX287-ARP-reply/td-p/67495

Do you have any idea, how to solve the problem?

Kind regards,

Birger

Labels (1)
0 Kudos
2 Replies

634 Views
bba
Contributor III

Hello, our hardware specialist found the reason why the switch does not respond to ARP requests.


The registers HW_ENET_SWI_BCAST_DEFAULT_MASK and HW_ENET_SWI_MCAST_DEFAULT_MASK wasn't set, so broadcast messages (e.g. ARP requests) were not forwarded to the controller.

Together with some other collegues we changes the fec-switch.c code as follows:

Replace inside functions esw_main() switch_set_mac_address():

writel(MCF_ESW_DBCR_P1 | MCF_ESW_DBCR_P2, &fecp->ESW_DBCR);

with

writel(MCF_ESW_DBCR_P0 | MCF_ESW_DBCR_P1 | MCF_ESW_DBCR_P2, &fecp->ESW_DBCR);

Kind regards,

Birger

0 Kudos

634 Views
erickang
Contributor II

Dear Birger,

Thanks for your information.

I confirmed the ARP operation based on your modified file.

Best Regards,

Eric.

0 Kudos