linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Tri-mode or gigebit ethernet support problem in ML403
@ 2006-05-23  8:22 Ming Liu
  2006-05-23 12:53 ` Grant Likely
  0 siblings, 1 reply; 4+ messages in thread
From: Ming Liu @ 2006-05-23  8:22 UTC (permalink / raw)
  To: grant.likely; +Cc: linuxppc-embedded

Hi Grant,
I want to ask you a problem about the 1000M ethernet support. Now I am 
trying to integrate a linux (2.4 or 2.6) in my ML403 platform, with 
tri-mode ethernet support. And I have downloaded many versions of linux, 
including linuxppc_2_4_devel, MontaVista linux 3.1 Preview 
Kit(v2.4.20_mvl31-ml300), and linux-xilinx-26. Unfortunately, I didn't find 
any option in the menuconfig item Network Device Support->ethernet 
(1000Mbit) for me to enable the 1000M ethernet in all three versions. So I 
have the following questions to ask.

1. With Xilinx Virtex 4 tri-mode ethernet MAC support, which version of 
Linux shall I use? I think I should choose a version with Xilinx On-chip 
Ethernet supported in the 1000M ethernet item in menuconfig. 

2. Assume that you can provide me a proper version. Shall I use Xilinx EDK 
to generate the BSP for my platform and copy the source code to overwrite 
the drivers in the original version. Then configure the kernel and enable 
1000M ethernet (choose Xilinx on-chip ethernet). Then compile the 
kernel...... Are these steps correct? 

Thanks for your help. I am really confused about this problem. Also others 
who can help me are welcome. :)

Best Regards
Ming

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tri-mode or gigebit ethernet support problem in ML403
  2006-05-23  8:22 Tri-mode or gigebit ethernet support problem in ML403 Ming Liu
@ 2006-05-23 12:53 ` Grant Likely
  2006-05-23 13:25   ` Ming Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Likely @ 2006-05-23 12:53 UTC (permalink / raw)
  To: Ming Liu; +Cc: linuxppc-embedded

On 5/23/06, Ming Liu <eemingliu@hotmail.com> wrote:
> Hi Grant,
> I want to ask you a problem about the 1000M ethernet support. Now I am
> trying to integrate a linux (2.4 or 2.6) in my ML403 platform, with
> tri-mode ethernet support. And I have downloaded many versions of linux,
> including linuxppc_2_4_devel, MontaVista linux 3.1 Preview
> Kit(v2.4.20_mvl31-ml300), and linux-xilinx-26. Unfortunately, I didn't fi=
nd
> any option in the menuconfig item Network Device Support->ethernet
> (1000Mbit) for me to enable the 1000M ethernet in all three versions.

I hate to be the bearer of bad news, but AFAIK non of the public trees
have a driver for the TEMAC.  Xilinx EDK 8.1 does include drivers for
the TEMAC and it *should* generate a working BSP for MontaVista Linux
3.1 (patched 2.4 kernel).  It should also work with the linuxppc-2.4
tree.

If you want it on a 2.6, you'll need to port the driver.  Regardless,
the Xilinx driver code is NOT GPL'd, so beware.

> So I have the following questions to ask.
>
> 1. With Xilinx Virtex 4 tri-mode ethernet MAC support, which version of
> Linux shall I use? I think I should choose a version with Xilinx On-chip
> Ethernet supported in the 1000M ethernet item in menuconfig.

Both Linux 2.4 and 2.6 are usable.  You've got some work to do to port
the driver in either case.

> 2. Assume that you can provide me a proper version. Shall I use Xilinx ED=
K
> to generate the BSP for my platform and copy the source code to overwrite
> the drivers in the original version. Then configure the kernel and enable
> 1000M ethernet (choose Xilinx on-chip ethernet). Then compile the
> kernel...... Are these steps correct?

The TEMAC and EMAC are totally different devices, and I haven't looked
to see if TEMAC driver uses the same API, but it is probably a good
starting point.

Cheers,
g.

--=20
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tri-mode or gigebit ethernet support problem in ML403
  2006-05-23 12:53 ` Grant Likely
@ 2006-05-23 13:25   ` Ming Liu
  2006-05-23 13:32     ` Grant Likely
  0 siblings, 1 reply; 4+ messages in thread
From: Ming Liu @ 2006-05-23 13:25 UTC (permalink / raw)
  To: grant.likely; +Cc: linuxppc-embedded

Dear Grant,
First, thanks for your help on my problem. 

So you mean, because there is no specific driver for TEMAC included in all 
versions of linux, I must port the driver from the BSP generated by EDK 
into the linux kernel by myself, right? I am sorry that I am a novice in 
linux field and I cannot understand you very well. Could you please give me 
more guidance on what shall I do to port the driver, in detail? Do you have 
some reference documents for me to do this? 

I really appreciate a lot for your kindly help on my work. Thank you so 
much.

Regards
Ming


>From: "Grant Likely" <grant.likely@secretlab.ca>
>To: "Ming Liu" <eemingliu@hotmail.com>
>CC: linuxppc-embedded@ozlabs.org
>Subject: Re: Tri-mode or gigebit ethernet support problem in ML403
>Date: Tue, 23 May 2006 06:53:34 -0600
>
>On 5/23/06, Ming Liu <eemingliu@hotmail.com> wrote:
>>Hi Grant,
>>I want to ask you a problem about the 1000M ethernet support. Now I 
>>am
>>trying to integrate a linux (2.4 or 2.6) in my ML403 platform, with
>>tri-mode ethernet support. And I have downloaded many versions of 
>>linux,
>>including linuxppc_2_4_devel, MontaVista linux 3.1 Preview
>>Kit(v2.4.20_mvl31-ml300), and linux-xilinx-26. Unfortunately, I 
>>didn't find
>>any option in the menuconfig item Network Device Support->ethernet
>>(1000Mbit) for me to enable the 1000M ethernet in all three 
>>versions.
>
>I hate to be the bearer of bad news, but AFAIK non of the public 
>trees
>have a driver for the TEMAC.  Xilinx EDK 8.1 does include drivers 
>for
>the TEMAC and it *should* generate a working BSP for MontaVista 
>Linux
>3.1 (patched 2.4 kernel).  It should also work with the linuxppc-2.4
>tree.
>
>If you want it on a 2.6, you'll need to port the driver.  
>Regardless,
>the Xilinx driver code is NOT GPL'd, so beware.
>
>>So I have the following questions to ask.
>>
>>1. With Xilinx Virtex 4 tri-mode ethernet MAC support, which 
>>version of
>>Linux shall I use? I think I should choose a version with Xilinx 
>>On-chip
>>Ethernet supported in the 1000M ethernet item in menuconfig.
>
>Both Linux 2.4 and 2.6 are usable.  You've got some work to do to 
>port
>the driver in either case.
>
>>2. Assume that you can provide me a proper version. Shall I use 
>>Xilinx EDK
>>to generate the BSP for my platform and copy the source code to 
>>overwrite
>>the drivers in the original version. Then configure the kernel and 
>>enable
>>1000M ethernet (choose Xilinx on-chip ethernet). Then compile the
>>kernel...... Are these steps correct?
>
>The TEMAC and EMAC are totally different devices, and I haven't 
>looked
>to see if TEMAC driver uses the same API, but it is probably a good
>starting point.
>
>Cheers,
>g.
>
>--
>Grant Likely, B.Sc. P.Eng.
>Secret Lab Technologies Ltd.
>grant.likely@secretlab.ca
>(403) 399-0195

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tri-mode or gigebit ethernet support problem in ML403
  2006-05-23 13:25   ` Ming Liu
@ 2006-05-23 13:32     ` Grant Likely
  0 siblings, 0 replies; 4+ messages in thread
From: Grant Likely @ 2006-05-23 13:32 UTC (permalink / raw)
  To: Ming Liu; +Cc: linuxppc-embedded

On 5/23/06, Ming Liu <eemingliu@hotmail.com> wrote:
> Dear Grant,

Hey Ming, I just saw your repy to Rick from Xilinx.  His advice is
better than mine.  Listen to him.  :)

> First, thanks for your help on my problem.
>
> So you mean, because there is no specific driver for TEMAC included in al=
l
> versions of linux, I must port the driver from the BSP generated by EDK
> into the linux kernel by myself, right? I am sorry that I am a novice in
> linux field and I cannot understand you very well. Could you please give =
me
> more guidance on what shall I do to port the driver, in detail? Do you ha=
ve
> some reference documents for me to do this?

You need some background on writing Linux device drivers:

http://lwn.net/Kernel/LDD3/

Cheers,
g.

--=20
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-23 13:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-23  8:22 Tri-mode or gigebit ethernet support problem in ML403 Ming Liu
2006-05-23 12:53 ` Grant Likely
2006-05-23 13:25   ` Ming Liu
2006-05-23 13:32     ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).