public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* 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-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
* 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

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 20:46 plb_temac, ML403, linux 2.4.26, EDK 7.1 robert corley
2006-10-12 12:46 ` Andrei Konovalov
  -- strict thread matches above, loose matches on Subject: below --
2006-10-12 15:55 Rick Moleres
2006-10-11 16:14 robert corley
2006-10-11 20:24 ` Ming Liu
2006-10-13  0:18   ` Pradeep Sampath
2006-10-13  0:18   ` Pradeep Sampath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox