ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] LPC32xx Network Driver code help.. lpc32xx_mii.c


From: Ayewin Oung
Subject: [Ltib] LPC32xx Network Driver code help.. lpc32xx_mii.c
Date: Tue, 18 May 2010 18:25:11 +0100

Hi list

I'm hacking existing networking code to work for our LPC3240 board, which connect to FPGA via RMII interface, instead of directly connecting to external PHY chip.

Its suppose to be simple change, since we have 16bytes of extra header and CRC checking is done in FPGA, and CRC bytes are stripped before sending to LPC32x0 chip.

However, when I modify the lpc32xx_mii.c codes, receive side "seems" to completely drop the packet.  Recived packet is successfully arrived to "__lpc32xx_handle_recv(..)", and all looks good and upper layer interface "netif_rx(skb)" is called as well. 

However, nothing "happens" after that.. its stucked in getting DHCP "Sending DHCP requests..", I've checked with WireShark, DHCP Discover is sent from board, DHCP Offer is recived in network driver, but looks like "kernel protocol layer" does not reconize it !!!!

Print out of packet protocol via "eth_type_trans(skb, ndev)", suggest the alignment of bytes is correct such that, it returns ARP & IP..

Any pointers much appreciated ?


Thanks in advance..

Ayewin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]