* Help needed with porting ether-net driver from ADS5121 to TWR-MPC5125
@ 2011-12-16 0:38 G.H.Lee
2011-12-19 8:08 ` Anatolij Gustschin
0 siblings, 1 reply; 2+ messages in thread
From: G.H.Lee @ 2011-12-16 0:38 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]
Hello, all
I am a new user of the board TWR-MPC5125 made by freescale. Now I am trying to porting the new kernel, i.e. the version 3.0.4, to this board. I have porting the serial driver and the nand flash driver successfully. And I can also mount the root file system. But I can not use the ether-net interface now. I have tried to port the ether-net driver based on the ether-net driver for ADS 5121, which is provided by the new kernel 3.0.4. The only thing I have to do in the porting is that I should change the MII mode in ADS5121 board to RMII mode in my board. And I find that I can send packages out if I use the "ping" command. But I can not receive any package for responding. And I also found that the interrupt routine for sending packages was running but the interrupt routine for receiving message was not called by the kernel. I don't know why.
Can anyone help me? Should I change some other codes beyond the ether-net driver? Someone told me that I should regulate the kernel because of the differences among the different kerenl versions if the MAC was integrated inside the SOC, which was the fatto in my board. But I don't know how to regulate.
B.T.W. : The hardware is good enough because I can use the ether net interface in u-boot and if using the kernel provided by freescale. Moreover, the u-boot is also good and I have not change it. So the ether net pins are configured correctly. But I have not porting the driver for DMA. But I think it is Ok because the "ping" command can be used correctly if using the kernel provided by freescale when I cancel the DMA driver when configuring the kernel.
Thanks.
Guohu Li
[-- Attachment #2: Type: text/html, Size: 2965 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Help needed with porting ether-net driver from ADS5121 to TWR-MPC5125
2011-12-16 0:38 Help needed with porting ether-net driver from ADS5121 to TWR-MPC5125 G.H.Lee
@ 2011-12-19 8:08 ` Anatolij Gustschin
0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2011-12-19 8:08 UTC (permalink / raw)
To: liguohu; +Cc: linuxppc-dev
Hi,
On Fri, 16 Dec 2011 08:38:58 +0800
G.H.Lee <liguohu@live.com> wrote:
...
> I am a new user of the board TWR-MPC5125 made by freescale. Now I am trying to porting the new kernel, i.e. the version 3.0.4, to this board. I have porting the serial driver and the nand flash driver successfully. And I can also mount the root file system. But I can not use the ether-net interface now. I have tried to port the ether-net driver based on the ether-net driver for ADS 5121, which is provided by the new kernel 3.0.4. The only thing I have to do in the porting is that I should change the MII mode in ADS5121 board to RMII mode in my board. And I find that I can send packages out if I use the "ping" command. But I can not receive any package for responding. And I also found that the interrupt routine for sending packages was running but the interrupt routine for receiving message was not called by the kernel. I don't know why.
>
> Can anyone help me? Should I change some other codes beyond the ether-net driver? Someone told me that I should regulate the kernel because of the differences among the different kerenl versions if the MAC was integrated inside the SOC, which was the fatto in my board. But I don't know how to regulate.
Please try following patch for fs_enet driver:
http://patchwork.ozlabs.org/patch/87320/
There are also other patches for TWR-MPC5125 support:
http://patchwork.ozlabs.org/patch/87925/
http://patchwork.ozlabs.org/patch/87926/
http://patchwork.ozlabs.org/patch/87321/
Thanks,
Anatolij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-19 8:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-16 0:38 Help needed with porting ether-net driver from ADS5121 to TWR-MPC5125 G.H.Lee
2011-12-19 8:08 ` Anatolij Gustschin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.