* plb_temac, ML403, linux 2.4.26, EDK 7.1
@ 2006-10-11 16:14 robert corley
2006-10-11 20:24 ` Ming Liu
0 siblings, 1 reply; 7+ messages in thread
From: robert corley @ 2006-10-11 16:14 UTC (permalink / raw)
To: linuxppc-embedded
Some background:=0A ML403 devel board=0A EDK 7.1=0A compilation of=
reference design xapp902, modified to use linux and without loopback=0A =
use of linux_2_4_devel obtained from montavista via rsync=0A=0AI am trying=
to use the plb_temac rather than the ll_temac. In the long run, I'd prefe=
r to stick with linux 2.4. In addition, I will need to get both embedded E=
MAC's up and running, but first I just wanna get the xapp902 working. Also=
, I will need gigE support.=0A=0ASo, right now I am trying to get the plb_t=
emac to compile and get errors about the defines XPAR_XTEMAC_* within the l=
inux directories ../drivers/net/xilinx_enet. I see that the edk gets the d=
efines within the xparameters.h file of the xapp902 project. I also see th=
at my C:\EDK\sw\ThirdParty\bsp\linux_mvl31_v1_01_a\drivers don't have anyth=
ing for a plb_temac.=0A=0AQ: Is my error related to an incorrect setup o=
f the linux or with the EDK?=0A=0AQ: t is stated that the plb_temac driv=
ers are in EDK 8.1. Can I stick=0Awith 7.1 or must I ugprade?=0A=0AQ: W=
here in the linux tree should I look for the xtemac=0Astuff? Is this what =
the EDK pushes on to the tree or is it released=0Awithin the MVL distro?=0A=
=0AQ Based on posts by David and Ming, it=0Aappears that I must use xili=
nx_gige to get up to gigE speeds. Will the=0Aplb_temac support this data r=
ate and, if so, is this a transparent=0Asupport or do I need to go the rout=
e suggested to Ming and=0Aoverwrite files in xilinx_enet?=0A=0AR. Corley=0A=
=0A=0A=0A=0A
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: plb_temac, ML403, linux 2.4.26, EDK 7.1
2006-10-11 16:14 plb_temac, ML403, linux 2.4.26, EDK 7.1 robert corley
@ 2006-10-11 20:24 ` Ming Liu
2006-10-13 0:18 ` Pradeep Sampath
2006-10-13 0:18 ` Pradeep Sampath
0 siblings, 2 replies; 7+ messages in thread
From: Ming Liu @ 2006-10-11 20:24 UTC (permalink / raw)
To: rdcorle, linuxppc-embedded
Hi,
>So, right now I am trying to get the plb_temac to compile and get errors
about the defines XPAR_XTEMAC_* within the linux directories
../drivers/net/xilinx_enet. I see that the edk gets the defines within the
xparameters.h file of the xapp902 project. I also see that my
C:\EDK\sw\ThirdParty\bsp\linux_mvl31_v1_01_a\drivers don't have anything
for a plb_temac.
Yes. In MV3.1, there is no gige enet supported. You should include the
patch for TEMAC by yourself.
>Q: Is my error related to an incorrect setup of the linux or with the
EDK?
Try to check your xparameters.h file and find if there are the definations.
>Q: t is stated that the plb_temac drivers are in EDK 8.1. Can I stick
>with 7.1 or must I ugprade?
I don't think that's the problem of 7.1, if you can make sure you use a
correct core for TEMAC and generated correct BSP files.
>Q: Where in the linux tree should I look for the xtemac
>stuff? Is this what the EDK pushes on to the tree or is it released
>within the MVL distro?
Try to find the patch for TEMAC in this list.
>Q Based on posts by David and Ming, it
>appears that I must use xilinx_gige to get up to gigE speeds. Will the
>plb_temac support this data rate and, if so, is this a transparent
>support or do I need to go the route suggested to Ming and
>overwrite files in xilinx_enet?
Temac is tri-mode including 1000M/s speed. sorry that i cannot understand
this question very well.
Ming
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: plb_temac, ML403, linux 2.4.26, EDK 7.1
@ 2006-10-11 20:46 robert corley
2006-10-12 12:46 ` Andrei Konovalov
0 siblings, 1 reply; 7+ messages in thread
From: robert corley @ 2006-10-11 20:46 UTC (permalink / raw)
To: linuxppc-embedded
Ming;=0A=0AHere is what the EDK generates in this file:=0A=0AC:\EDK\project=
s\startup_network\ppc405_0\libsrc\linux_mvl31_v1_01_a\linux\arch\ppc\platfo=
rms\xilinx_ocp\xparameters_ml300.h=0A=0A<snip>=0A#define XPAR_XTEMAC_NUM_IN=
STANCES 1=0A#define XPAR_PLB_TEMAC_0_BASEADDR 0x60000000=0A#define XPAR_PLB=
_TEMAC_0_HIGHADDR 0x60003FFF=0A#define XPAR_PLB_TEMAC_0_DEVICE_ID 0=0A#defi=
ne XPAR_PLB_TEMAC_0_IPIF_RDFIFO_DEPTH 131072=0A#define XPAR_PLB_TEMAC_0_IPI=
F_WRFIFO_DEPTH 131072=0A#define XPAR_PLB_TEMAC_0_MAC_FIFO_DEPTH 64=0A#defin=
e XPAR_PLB_TEMAC_0_DMA_TYPE 3=0A#define XPAR_PLB_TEMAC_0_TEMAC_DCR_HOST 0=
=0A#define XPAR_PLB_TEMAC_0_INCLUDE_DRE 1=0A<snip>=0A=0A=0AWhich is fine. =
However, the file in the linux distribution: linux_2_4_devel/drivers/net/xi=
linx_enet/adapter.c is looking for "XEMAC" instead of "XTEMAC" as above.=0A=
=0AAlso, when I look at the EDK project directory =0A=0A"C:\EDK\projects\st=
artup_network\ppc405_0\libsrc\linux_mvl31_v1_01_a\linux\drivers\net\"=0A=0A=
I see that it is empty. Which means that nothing in the MVL tree will be o=
verwritten (specifically the adapter.c file, which uses the above defines).=
=0A=0ASo, it appears that the driver is not being properly insterted into t=
he tree as expected. Would you agree?=0A=0A-R=0A=0A
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: plb_temac, ML403, linux 2.4.26, EDK 7.1
2006-10-11 20:46 robert corley
@ 2006-10-12 12:46 ` Andrei Konovalov
0 siblings, 0 replies; 7+ messages in thread
From: Andrei Konovalov @ 2006-10-12 12:46 UTC (permalink / raw)
To: robert corley; +Cc: linuxppc-embedded
Robert,
There is no support for TEMAC in MontaVista Linux 3.1. It has been added in MVL 4.0.1.
In 3.1 there is the gige driver, but gige is for ML300's optical gigabit ethernet, not for TEMAC.
Thanks,
Andrei
robert corley wrote:
> Ming;
>
> Here is what the EDK generates in this file:
>
> C:\EDK\projects\startup_network\ppc405_0\libsrc\linux_mvl31_v1_01_a\linux\arch\ppc\platforms\xilinx_ocp\xparameters_ml300.h
>
> <snip>
> #define XPAR_XTEMAC_NUM_INSTANCES 1
> #define XPAR_PLB_TEMAC_0_BASEADDR 0x60000000
> #define XPAR_PLB_TEMAC_0_HIGHADDR 0x60003FFF
> #define XPAR_PLB_TEMAC_0_DEVICE_ID 0
> #define XPAR_PLB_TEMAC_0_IPIF_RDFIFO_DEPTH 131072
> #define XPAR_PLB_TEMAC_0_IPIF_WRFIFO_DEPTH 131072
> #define XPAR_PLB_TEMAC_0_MAC_FIFO_DEPTH 64
> #define XPAR_PLB_TEMAC_0_DMA_TYPE 3
> #define XPAR_PLB_TEMAC_0_TEMAC_DCR_HOST 0
> #define XPAR_PLB_TEMAC_0_INCLUDE_DRE 1
> <snip>
>
>
> Which is fine. However, the file in the linux distribution: linux_2_4_devel/drivers/net/xilinx_enet/adapter.c is looking for "XEMAC" instead of "XTEMAC" as above.
>
> Also, when I look at the EDK project directory
>
> "C:\EDK\projects\startup_network\ppc405_0\libsrc\linux_mvl31_v1_01_a\linux\drivers\net\"
>
> I see that it is empty. Which means that nothing in the MVL tree will be overwritten (specifically the adapter.c file, which uses the above defines).
>
> So, it appears that the driver is not being properly insterted into the tree as expected. Would you agree?
>
> -R
>
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: plb_temac, ML403, linux 2.4.26, EDK 7.1
@ 2006-10-12 15:55 Rick Moleres
0 siblings, 0 replies; 7+ messages in thread
From: Rick Moleres @ 2006-10-12 15:55 UTC (permalink / raw)
To: Robert Corley; +Cc: linuxppc-embedded
Robert,
(I copied the list)
Linux 2.4 support for plb_temac was not added until EDK 8.1.1. This
driver is not available in the MV Linux 2.4 tree. So if you want
something (the driver) to show up in libsrc/linux_mvl31_v1_01_b/linux
then you would need to upgrade.
Note also that checksum offload was added to the plb_temac core in EDK
8.1.2 (v3.00a of the core), so using that EDK or later will provide much
better GigE throughput (I think we measured somewhere around 650Mbps TCP
traffic using netperf on Linux 2.4 with checksum offload).
In Linux 2.4 we place the plb_temac driver in drivers/net/xilinx_gige
during the BSP generation process of EDK 8.1.1 or later in order to take
advantage of the jumbo frame config option. I looked at
source.mvista.com and this directory does appear in the Linux 2.4
repository (rsync://source.mvista.com/linuxppc-2.4).
Hope that helps,
Rick
-----Original Message-----
From: Robert Corley [mailto:rcorley@aegis-inc.net]=20
Sent: Wednesday, October 11, 2006 10:16 AM
To: Rick Moleres
Subject: Fw: plb_temac, ML403, linux 2.4.26, EDK 7.1
Rick,
Apologies for some potentially confusing parts of my last email to you.
Here is what I just posted if you care to reply.
----- Forwarded Message ----
From: robert corley <rdcorle@yahoo.com>
To: linuxppc-embedded@ozlabs.org
Sent: Wednesday, October 11, 2006 12:14:51 PM
Subject: plb_temac, ML403, linux 2.4.26, EDK 7.1
Some background:
ML403 devel board
EDK 7.1
compilation of reference design xapp902, modified to use linux and
without loopback
use of linux_2_4_devel obtained from montavista via rsync
I am trying to use the plb_temac rather than the ll_temac. In the long
run, I'd prefer to stick with linux 2.4. In addition, I will need to
get both embedded EMAC's up and running, but first I just wanna get the
xapp902 working. Also, I will need gigE support.
So, right now I am trying to get the plb_temac to compile and get errors
about the defines XPAR_XTEMAC_* within the linux directories
../drivers/net/xilinx_enet. I see that the edk gets the defines within
the xparameters.h file of the xapp902 project. I also see that my
C:\EDK\sw\ThirdParty\bsp\linux_mvl31_v1_01_a\drivers don't have anything
for a plb_temac.
Q: Is my error related to an incorrect setup of the linux or with the
EDK?
Q: t is stated that the plb_temac drivers are in EDK 8.1. Can I
stick
with 7.1 or must I ugprade?
Q: Where in the linux tree should I look for the xtemac
stuff? Is this what the EDK pushes on to the tree or is it released
within the MVL distro?
Q Based on posts by David and Ming, it
appears that I must use xilinx_gige to get up to gigE speeds. Will the
plb_temac support this data rate and, if so, is this a transparent
support or do I need to go the route suggested to Ming and
overwrite files in xilinx_enet?
R. Corley
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: plb_temac, ML403, linux 2.4.26, EDK 7.1
2006-10-11 20:24 ` Ming Liu
@ 2006-10-13 0:18 ` Pradeep Sampath
2006-10-13 0:18 ` Pradeep Sampath
1 sibling, 0 replies; 7+ messages in thread
From: Pradeep Sampath @ 2006-10-13 0:18 UTC (permalink / raw)
To: Ming Liu; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1226 bytes --]
Guys,
I need your help on this, i am stuck for over a week now. I am currently using
ML403 Virtex-4 FX12 board, linux kernel 2.6.17.1, EDK 8.1.2i, and Ameet's sysace and TEMAC driver patch. With your help I was able to get the Kernel to boot on the ML403 board. But kernel crashes at xsysace_init function call.
[ 3.995416] Call Trace:
[ 4.024581] [C04A1D20] [FFFFFFFF] 0xffffffff (unreliable)
[ 4.089156] [C04A1D40] [C021D358] xsysace_init+0x50/0x330
[ 4.153726] [C04A1F90] [C0002448] init+0xa4/0x27c
[ 4.209968] [C04A1FF0] [C000509C] kernel_thread+0x44/0x60
Since I am using 8.1.2i to generate the BSP, i suspect that the xparamater_ml300.h file the EDK generates for the ML403 board is not compatible with the sysace driver patch. I suspect that if i include a xparameters_ml300.h file that was generated using EDK 7.1 it would run.
Ming, would it be possible for you to send me a xparameters.h file using EDK 7.1 (or the version you are using) with very basic IP cores that will work with the sysace and TEMAC drivers. Thanks in advance.
I need to get the sysace driver and TEMAC driver's up and running for the project. Any suggestions will be very helpful...
-Pradeep
[-- Attachment #2: Type: text/html, Size: 1480 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: plb_temac, ML403, linux 2.4.26, EDK 7.1
2006-10-11 20:24 ` Ming Liu
2006-10-13 0:18 ` Pradeep Sampath
@ 2006-10-13 0:18 ` Pradeep Sampath
1 sibling, 0 replies; 7+ messages in thread
From: Pradeep Sampath @ 2006-10-13 0:18 UTC (permalink / raw)
To: Ming Liu; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1226 bytes --]
Guys,
I need your help on this, i am stuck for over a week now. I am currently using
ML403 Virtex-4 FX12 board, linux kernel 2.6.17.1, EDK 8.1.2i, and Ameet's sysace and TEMAC driver patch. With your help I was able to get the Kernel to boot on the ML403 board. But kernel crashes at xsysace_init function call.
[ 3.995416] Call Trace:
[ 4.024581] [C04A1D20] [FFFFFFFF] 0xffffffff (unreliable)
[ 4.089156] [C04A1D40] [C021D358] xsysace_init+0x50/0x330
[ 4.153726] [C04A1F90] [C0002448] init+0xa4/0x27c
[ 4.209968] [C04A1FF0] [C000509C] kernel_thread+0x44/0x60
Since I am using 8.1.2i to generate the BSP, i suspect that the xparamater_ml300.h file the EDK generates for the ML403 board is not compatible with the sysace driver patch. I suspect that if i include a xparameters_ml300.h file that was generated using EDK 7.1 it would run.
Ming, would it be possible for you to send me a xparameters.h file using EDK 7.1 (or the version you are using) with very basic IP cores that will work with the sysace and TEMAC drivers. Thanks in advance.
I need to get the sysace driver and TEMAC driver's up and running for the project. Any suggestions will be very helpful...
-Pradeep
[-- Attachment #2: Type: text/html, Size: 1480 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-10-13 0:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-11 16:14 plb_temac, ML403, linux 2.4.26, EDK 7.1 robert corley
2006-10-11 20:24 ` Ming Liu
2006-10-13 0:18 ` Pradeep Sampath
2006-10-13 0:18 ` Pradeep Sampath
-- strict thread matches above, loose matches on Subject: below --
2006-10-11 20:46 robert corley
2006-10-12 12:46 ` Andrei Konovalov
2006-10-12 15:55 Rick Moleres
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).