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..