L2-Switch ARP reply

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

L2-Switch ARP reply

2,241 次查看
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

标签 (1)
0 项奖励
回复
2 回复数

1,604 次查看
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 项奖励
回复

1,604 次查看
erickang
Contributor II

Dear Birger,

Thanks for your information.

I confirmed the ARP operation based on your modified file.

Best Regards,

Eric.

0 项奖励
回复