All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Linux w/ML403 PLB TEMAC
@ 2007-04-09 16:35 Jarek
  2007-04-10  5:57 ` Leonid
  0 siblings, 1 reply; 14+ messages in thread
From: Jarek @ 2007-04-09 16:35 UTC (permalink / raw)
  To: linuxppc-embedded

Hello=20folks,

I=20have=20been=20working=20for=20a=20while=20on=20bringing=20up=20PLB=20=
Temac=20on=20ml403.=20I=20have=20followed=20all=20steps=20presented=20by=20=
Glenn,=20but=20unfortunately=20I=20have=20stacked=20in=20one=20place.=20I=
=20hope=20that=20maybe=20one=20of=20you=20due=20to=20your=20experince=20c=
an=20give=20me=20some=20advice.=20I=20use=20systemace=20for=20mounting=20=
rfs=20and=20I=20have=20patched=20my=20kernel=20with=20Paulus=20Temac=20pa=
tches.=20Kernel=20compiles=20without=20any=20problem.=20As=20i=20said=20i=
=20followed=20Glenn's=20steps=20for=20configuring=20kernel=20with=20plb/t=
emac.=20The=20only=20difference=20I=20have=20noticed=20is=20that=20I=20us=
e=20root=20file=20system=20on=20a=20flash=20card.=20After=20booting=20the=
=20kernel=20from=20flash=20card=20I=20got=20the=20following=20output:

loaded=20at:=20=20=20=20=2000400000=200052013C
board=20data=20at:=200051E124=200051E13C
relocated=20to:=20=20004040B8=20004040D0
zimage=20at:=20=20=20=20=2000404E45=200051DFC1
avail=20ram:=20=20=20=20=2000521000=2004000000

Linux/PPC=20load:=20console=3DttyS0,9600=20root=3D/dev/xsa3=20rw=20init=3D=
/sbin/init
Uncompressing=20Linux...done.
Now=20booting=20the=20kernel
[=20=20=20=200.000000]=20Linux=20version=202.6.20=20(butanowi@amandla)=20=
(gcc=20version=204.0.2)=20#3=20Mon=20Apr=209=2016:44:13=20CEST=202007
[=20=20=20=200.000000]=20Xilinx=20ML403=20Reference=20System=20(Virtex-4=20=
FX)
[=20=20=20=200.000000]=20Zone=20PFN=20ranges:
[=20=20=20=200.000000]=20=20=20DMA=20=20=20=20=20=20=20=20=20=20=20=20=20=
0=20->=20=20=20=2016384
[=20=20=20=200.000000]=20=20=20Normal=20=20=20=20=20=2016384=20->=20=20=20=
=2016384
[=20=20=20=200.000000]=20early=5Fnode=5Fmap[1]=20active=20PFN=20ranges
[=20=20=20=200.000000]=20=20=20=20=200:=20=20=20=20=20=20=20=200=20->=20=20=
=20=2016384
[=20=20=20=200.000000]=20Built=201=20zonelists.=20=20Total=20pages:=20162=
56
[=20=20=20=200.000000]=20Kernel=20command=20line:=20console=3DttyS0,9600=20=
root=3D/dev/xsa3=20rw=20init=3D/sbin/init
[=20=20=20=200.000000]=20Xilinx=20INTC=20#0=20at=200x41200000=20mapped=20=
to=200xFDFFE000
[=20=20=20=200.000000]=20PID=20hash=20table=20entries:=20256=20(order:=20=
8,=201024=20bytes)
[=20=20=20=200.000430]=20Console:=20colour=20dummy=20device=2080x25
[=20=20=20=200.001581]=20Dentry=20cache=20hash=20table=20entries:=208192=20=
(order:=203,=2032768=20bytes)
[=20=20=20=200.003395]=20Inode-cache=20hash=20table=20entries:=204096=20(=
order:=202,=2016384=20bytes)
[=20=20=20=200.036070]=20Memory:=2062476k=20available=20(1840k=20kernel=20=
code,=20488k=20data,=2096k=20init,=200k=20highmem)
[=20=20=20=200.221232]=20Mount-cache=20hash=20table=20entries:=20512
[=20=20=20=200.232180]=20NET:=20Registered=20protocol=20family=2016
[=20=20=20=200.269606]=20NET:=20Registered=20protocol=20family=202
[=20=20=20=200.361155]=20IP=20route=20cache=20hash=20table=20entries:=201=
024=20(order:=200,=204096=20bytes)
[=20=20=20=200.363365]=20TCP=20established=20hash=20table=20entries:=2020=
48=20(order:=201,=208192=20bytes)
[=20=20=20=200.363868]=20TCP=20bind=20hash=20table=20entries:=201024=20(o=
rder:=200,=204096=20bytes)
[=20=20=20=200.364143]=20TCP:=20Hash=20tables=20configured=20(established=
=202048=20bind=201024)
[=20=20=20=200.364229]=20TCP=20reno=20registered
[=20=20=20=200.401242]=20JFS:=20nTxBlock=20=3D=20488,=20nTxLock=20=3D=203=
908
[=20=20=20=200.408340]=20SGI=20XFS=20with=20no=20debug=20enabled
[=20=20=20=200.411933]=20io=20scheduler=20noop=20registered
[=20=20=20=200.412037]=20io=20scheduler=20deadline=20registered=20(defaul=
t)
[=20=20=20=200.517700]=20Serial:=208250/16550=20driver=20$Revision:=201.9=
0=20$=201=20ports,=20IRQ=20sharing=20disabled
[=20=20=20=200.524846]=20serial8250.0:=20ttyS0=20at=20MMIO=200x40401003=20=
(irq=20=3D=202)=20is=20a=2016550A
[=20=20=20=202.444102]=20RAMDISK=20driver=20initialized:=201=20RAM=20disk=
s=20of=204096K=20size=201024=20blocksize
[=20=20=20=202.536064]=20=20xsa:=20xsa1=20xsa2=20xsa3
[=20=20=20=202.602624]=20XTemac:=20using=20sgDMA=20mode.
[=20=20=20=202.646747]=20XTemac:=20not=20using=20TxDRE=20mode
[=20=20=20=202.694037]=20XTemac:=20using=20RxDRE=20mode
[=20=20=20=202.737007]=20XTemac:=20buffer=20descriptor=20size:=2032768=20=
(0x8000)
[=20=20=20=202.804113]=20XTemac:=20(buffer=5Fdescriptor=5Finit)=20phy:=20=
0x3c00000,=20virt:=200xff100000,=20size:=200x8000
[=20=20=20=203.004280]=20XTemac:=20Could=20not=20alloc=20TX=20buffer=2016=
8=20(9032=20bytes).=20Cleaning=20up.
[=20=20=20=203.093984]=20XTemac:=20Could=20not=20allocate=20TX=20buffers.=

[=20=20=20=203.156274]=20xilinx=5Ftemac:=20probe=20of=20xilinx=5Ftemac.0=20=
failed=20with=20error=20-5
[=20=20=20=203.236276]=20mice:=20PS/2=20mouse=20device=20common=20for=20a=
ll=20mice
[=20=20=20=203.299587]=20TCP=20cubic=20registered
[=20=20=20=203.338772]=20NET:=20Registered=20protocol=20family=201
[=20=20=20=203.391288]=20NET:=20Registered=20protocol=20family=2017
[=20=20=20=203.495078]=20EXT2-fs=20warning:=20mounting=20unchecked=20fs,=20=
running=20e2fsck=20is=20recommended
[=20=20=20=203.586449]=20VFS:=20Mounted=20root=20(ext2=20filesystem).
[=20=20=20=203.642764]=20Freeing=20unused=20kernel=20memory:=2096k=20init=

serial=20console=20detected.=20=20Disabling=20virtual=20terminals.
init=20started:=20=20BusyBox=20v0.60.2=20(2004.04.30-17:49+0000)=20multi-=
call=20binary

I=20have=20a=20problem=20with=20TxDRE:=20XTemac:=20not=20using=20TxDRE=20=
mode
[=20=20=20=203.004280]=20XTemac:=20Could=20not=20alloc=20TX=20buffer=2016=
8=20(9032=20bytes).=20Cleaning=20up.
[=20=20=20=203.093984]=20XTemac:=20Could=20not=20allocate=20TX=20buffers.=


Is=20it=20a=20problem=20related=20to=20my=20hardware=20design??=20
Looking=20for=20a=20help:-(=20or=20hint.=20I=20do=20not=20know=20what=20i=
s=20the=20problem=20related=20to.

Regards
Jaroslaw=20Butanowicz




>=20I=20have=20just=20learnt=20that=20MDIO=20lines=20are=20not=20connecte=
d=20in=20our=20design...=20that=20explains=20everything...=20thanks=20a=20=
lot.
>=20
>=20Leonid.
>=20
>=20-----Original=20Message-----
>=20From:=20Rick=20Moleres=20[mailto:Rick.Moleres@xilinx.com]=20
>=20Sent:=20Wednesday,=20April=2004,=202007=205:00=20PM
>=20To:=20Leonid;=20linuxppc-embedded@ozlabs.org
>=20Subject:=20RE:=20Linux=20w/ML403=20PLB=20TEMAC
>=20
>=20
>=20Leonid,
>=20
>=20If=20it's=20not=20the=20ML403=20board=20and=20the=20FX=20part=20is=20=
CES4=20or=20later=20(read=20this=20at=20the=20bottom=20of=20the=20FX=20ch=
ip),=20then=20you=20will=20need=20hard=5Ftemac=5Fv3=5F00=5Fb=20to=20get=20=
the=20MDIO=20access=20working=20properly.
>=20
>=20If=20this=20is=20pre-CES4=20silicon,=20then=20hard=5Ftemac=5Fv3=5F00=5F=
a=20is=20the=20right=20version=20and=20there=20may=20be=20an=20issue=20wi=
th=20the=20MDIO=20signal=20connectivity=20in=20your=20design=20(?=20just=20=
guessing).=20=20You=20can=20also=20try=20to=20hardcode=20the=20PHY=20addr=
ess=20(gmii=5Faddr)=20and=20see=20if=20the=20speed=20detection=20works=20=
at=20that=20point=20-=20but=20my=20guess=20is=20it=20won't.
>=20
>=20-Rick
>=20
>=20-----Original=20Message-----
>=20From:=20Leonid=20[mailto:Leonid@a-k-a.net]=20
>=20Sent:=20Wednesday,=20April=2004,=202007=205:50=20PM
>=20To:=20Rick=20Moleres;=20linuxppc-embedded@ozlabs.org
>=20Subject:=20RE:=20Linux=20w/ML403=20PLB=20TEMAC
>=20
>=20Hi,=20Rick:
>=20
>=20We=20have=20both=20in=20our=20design=20and=20both=20are=203.00a.=20I'=
m=20not=20sure=20why=20-=20I'll=20ask=20our=20HW=20folks.=20
>=20
>=20I=20have=20actually=20managed=20(just=2030=20minutes=20ago)=20to=20br=
ing=20up=20network=20interface=20but=20I=20have=20commented=20out=20all=20=
accesses=20to=20PHY=20in=20your=20adapter.c=20and=20I=20set=20speed=20to=20=
1000=20always=20(see=20my=20adapter.c=20attached).=20Without=20these=20ch=
anges=20packets=20are=20not=20transmitted=20out=20of=20board.
>=20
>=20This=20is=20probably=20some=20issue=20in=20my=20EDK=20project.
>=20
>=20I'm=20not=20using=20ML403=20actually=20but=20another=20proprietary=20=
board,=20based=20on=20Virtex
>=204=20(69FX)=20FPGA.
>=20
>=20Thanks,
>=20
>=20Leonid.
>=20
>=20-----Original=20Message-----
>=20From:=20Rick=20Moleres=20[mailto:Rick.Moleres@xilinx.com]=20
>=20Sent:=20Wednesday,=20April=2004,=202007=204:41=20PM
>=20To:=20Leonid;=20Glenn.G.Hart@us.westinghouse.com;=20linuxppc-embedded=
@ozlabs.org
>=20Subject:=20RE:=20Linux=20w/ML403=20PLB=20TEMAC
>=20
>=20Leonid,
>=20
>=20You=20mentioned=20that=20the=20TEMAC=20version=20if=20v3.00a.=20=20Is=
=20this=20the=20plb=5Ftemac=20version=20or=20the=20hard=5Ftemac=20version=
,=20or=20both?
>=20
>=20-Rick
>=20
>=20-----Original=20Message-----
>=20From:=20linuxppc-embedded-bounces+moleres=3Dxilinx.com@ozlabs.org=20[=
mailto:linuxppc-embedded-bounces+moleres=3Dxilinx.com@ozlabs.org]=20On=20=
Behalf=20Of=20Leonid
>=20Sent:=20Wednesday,=20April=2004,=202007=204:14=20PM
>=20To:=20Glenn.G.Hart@us.westinghouse.com;=20linuxppc-embedded@ozlabs.or=
g
>=20Subject:=20RE:=20Linux=20w/ML403=20PLB=20TEMAC
>=20
>=20I=20have=20investigated=20little=20bit=20more.=20Receive=20is=20worki=
ng=20actually,=20but=20transmit=20doesn't.=20What=20can=20it=20be?
>=20
>=20-----Original=20Message-----
>=20From:=20linuxppc-embedded-bounces+leonid=3Da-k-a.net@ozlabs.org=20[ma=
ilto:linuxppc-embedded-bounces+leonid=3Da-k-a.net@ozlabs.org]=20On=20Beha=
lf=20Of=20Leonid
>=20Sent:=20Wednesday,=20April=2004,=202007=2012:06=20PM
>=20To:=20Glenn.G.Hart@us.westinghouse.com;=20linuxppc-embedded@ozlabs.or=
g
>=20Subject:=20RE:=20Linux=20w/ML403=20PLB=20TEMAC
>=20
>=20I=20have=20precisely=20the=20same=20problem=20you=20have=20described:=

>=20
>=20[=20=20=20=200.430515]=20XTemac:=20using=20FIFO=20direct=20interrupt=20=
driven=20mode.
>=20[=20=20=20=200.437461]=20eth%d:=20XTemac:=20No=20PHY=20detected.=20=20=
Assuming=20a=20PHY=20at=20address=200
>=20[=20=20=20=200.445295]=20eth0:=20Xilinx=20TEMAC=20#0=20at=200x0200000=
0=20mapped=20to=200xC3000000,=20irq=3D0
>=20[=20=20=20=200.452256]=20eth0:=20XTemac=20id=201.0f,=20block=20id=205=
,=20type=208
>=20[=20=20=20=200.458665]=20tun:=20Universal=20TUN/TAP=20device=20driver=
,=201.6
>=20[=20=20=20=200.463712]=20tun:=20(C)=201999-2004=20Max=20Krasnyansky=20=
<maxk@qualcomm.com>
>=20[=20=20=20=200.471106]=20mice:=20PS/2=20mouse=20device=20common=20for=
=20all=20mice
>=20[=20=20=20=200.476339]=20TCP=20cubic=20registered
>=20[=20=20=20=200.479615]=20NET:=20Registered=20protocol=20family=201
>=20[=20=20=20=200.484032]=20NET:=20Registered=20protocol=20family=2017
>=20[=20=20=20=200.992599]=20eth0:=20XTemac:=20Options:=200xb8f2
>=20[=20=20=2012.955691]=20eth0:=20XTemac:=20Not=20able=20to=20set=20the=20=
speed=20to=201000=20(status:=200x0)
>=20[=20=20=2022.928615]=20eth0:=20XTemac:=20Not=20able=20to=20set=20the=20=
speed=20to=20100=20(status:=200x0)
>=20[=20=20=2032.901449]=20eth0:=20XTemac:=20Not=20able=20to=20set=20the=20=
speed=20to=2010=20(status:=200x0)
>=20[=20=20=2032.907976]=20eth0:=20XTemac:=20could=20not=20negotiate=20sp=
eed
>=20[=20=20=2033.921626]=20IP-Config:=20Complete:
>=20[=20=20=2033.924635]=20=20=20=20=20=20=20device=3Deth0,=20addr=3D192.=
168.0.223,=20mask=3D255.255.255.0,=20gw=3D192.168.0.1,
>=20[=20=20=2033.932418]=20=20=20=20=20=20host=3DLM200,=20domain=3D,=20ni=
s-domain=3D(none),
>=20[=20=20=2033.937715]=20=20=20=20=20=20bootserver=3D192.168.0.141,=20r=
ootserver=3D192.168.0.141,=20rootpath=3D
>=20[=20=20=2033.946230]=20Looking=20up=20port=20of=20RPC=20100003/2=20on=
=20192.168.0.141
>=20[=20=20=2034.916694]=20eth0:=20XTemac:=20PHY=20Link=20carrier=20lost.=

>=20
>=20My=20TEMAC=20core=20version=20is=203.00.a=20and=20low=20level=20code=20=
I'm=20using=20is=20working=20in=20u-boot=20wi

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: Linux w/ML403 PLB TEMAC
@ 2007-02-14 14:47 Glenn.G.Hart
  2007-02-14 15:10 ` Ming Liu
  2007-04-04 19:05 ` Leonid
  0 siblings, 2 replies; 14+ messages in thread
From: Glenn.G.Hart @ 2007-02-14 14:47 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 4065 bytes --]

Ming/Rick,

I tried setting the speed to 1000 as below, but it did not change the
result.  I also tried Rick's new adapter.c with the same results.  Changing
the hard_temac_v3_b to hard_temac_v3_a was the change I needed.
Unfortunately, the speed of the network is much slower now.  I switched to
DMA and then changed the Linux drivers for the DMA & TEMAC v2 to v3.

I have my own program to test performance.  It seems everything is so slow
it does not every complete to give me the statistics.  My ping are also
slower.  I used to be able to ping my computer and get 0.6-0.7 ms times.
With the DMA and TEMAC v3 I am now getting 1.8 ms times.

I am now not sure if it is my build or my PPC design.  For the PPC design I
have a minimum PPC with OPB-RS232, PLB-DDR, and PLB-TEMAC.  I use all the
defaults from BSB except I check use interrupt on the RS232 and TEMAC.

Any suggestions?

Thanks,
Glenn



                                                                                                     
 (Embedded     "Ming Liu" <eemingliu@hotmail.com>@ozlabs.org                                         
 image moved   02/12/2007 11:48 AM                                                                   
 to file:                                                                                            
 pic04169.pcx)                                                                                       
                                                                                                     
                                                                                                     


Sent by:
       linuxppc-embedded-bounces+glenn.g.hart=us.westinghouse.com@ozlabs.org


To:    Glenn.G.Hart@us.westinghouse.com
cc:    linuxppc-embedded@ozlabs.org
Subject:    RE: Linux w/ML403 PLB TEMAC

Security Level:?              Internal


Dear Glenn,

>3.  The speed of the network was very poor.  I wanted to implement DMA for
>the TEMAC.  I created a new PPC with BSB using DMA on the TEMAC.  Kernel
>recompilied without a problem, but upon starting the kernel I got:

In fact, the old cores of TEMAC(plb_temac 2.00 & hard_temac 1.00) also
support DMA. But of course the 3.00 cores are prefered because of other
improved features.

>6.  I am using busybox 1.2.1 which worked fine previously configuring the
>network.  Now when I execute ifconfig I get the following problem:
>[   12.228721] eth0: XTemac: Options: 0xb8f2
>[   24.197749] eth0: XTemac: Not able to set the speed to 1000 (status:
>0x148)
>[   34.215593] eth0: XTemac: Not able to set the speed to 100 (status:
>0x148)
>[   44.232349] eth0: XTemac: Not able to set the speed to 10 (status:
>0x148)
>[   44.313727] eth0: XTemac: could not negotiate speed
>[   44.372226] eth0: XTemac: Send Threshold = 16, Receive Threshold = 2
>[   44.448421] eth0: XTemac: Send Wait bound = 1, Receive Wait bound = 1
># [   57.180152] eth0: XTemac: PHY Link carrier lost.

I also had such a problem before. To solve such a problem most quickly, you
can just specify a fixed speed (like 1000Mbps) in adapter.c file. In this
file, after the line of "/* Get current link speed */ (around L378) and
"phylinkspeed = (RegValue & MARVELL_88E1111_LINKSPEED_MARK)>>
MARVELL_88E1111_LINKSPEED_SHIFT;", I just add and specify the speed as
"phylinkspeed = MARVELL_88E1111_LINKSPEED_1000M;" Of course with this
method, the speed cannot be auto-negotiated any more.

Another hints: I remember that there is another post from Rick on the
updated "adapter.c" a few days ago. Maybe that could solve your problem. I
didn't try that before. So if you will try, pls let us know the result. :)

BR
Ming

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

_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded











[-- Attachment #2: pic04169.pcx --]
[-- Type: application/octet-stream, Size: 128 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Linux w/ML403 PLB TEMAC
@ 2007-02-12 16:12 Glenn.G.Hart
  2007-02-12 16:33 ` Rick Moleres
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Glenn.G.Hart @ 2007-02-12 16:12 UTC (permalink / raw)
  To: linuxppc-embedded

I am trying to get Linux up on my ML403 board with the PLB TEMAC with
SGDMA.  I am almost there and am not sure where to go now.  I have seen
many posts on this from Robert, Ming, and Rick.  Hopefully somebody know
the answer.  Since I am going to detail how I got to where I am it can be
somewhat of a guide for others (unless I am doing something really wrong).

1.  I started with Linux 2.6.19 from kernel.org.  I copied over the
xparameters_ml40x.h file to xparameters_ml403.h in
arch/ppc/platforms/4xx/xparameters.  Setting up my kernel configuration and
downloading to the board everything worked OK.  ** I did not have the TEMAC
configured or as part of my PPC project.

2.  Next I created a new PPC with the PLB TEMAC and applied all four kernel
patches from PAULUS
(http://source.mvista.com/~ank/paulus-powerpc/20060309/).  A couple of the
files did not patch completely, so I had to do it by hand.  Recompiling the
kernel (with the TEMAC configured to on) I now had network support.

3.  The speed of the network was very poor.  I wanted to implement DMA for
the TEMAC.  I created a new PPC with BSB using DMA on the TEMAC.  Kernel
recompilied without a problem, but upon starting the kernel I got:
[    3.813223] Oops: machine check, sig: 7 [#1]
[    3.864368] NIP: C00E7B08 LR: C00E1640 CTR: 00000000
[    3.923854] REGS: c01c4f50 TRAP: 0202   Not tainted  (2.6.19)
[    3.992778] MSR: 00029030 <EE,ME,IR,DR>  CR: 88000028  XER: 20000000
[    4.069670] TASK = c052ab70[1] 'swapper' THREAD: c052e000
[    4.132247] GPR00: C00E1640 C052FE10 C052AB70 00000000 00000068 C5002200
C04A242C 00000001
[    4.233281] GPR08: 00000000 C04A2304 C5002010 11111111 28000028 FFFFCD64
FFFF0000 FFFF0000
[    4.334318] GPR16: 0B6654D8 FFFF0000 FFFF0000 FFFF0000 FFFF0000 FFFF0000
FFFF0000 FFFF0000
[    4.435353] GPR24: C017E890 00000000 C04A22D8 C017EA00 C017E9C8 C017E888
C04A2260 C04A22D8
[    4.538579] NIP [C00E7B08] XPacketFifoV200a_Initialize+0x74/0x7c
[    4.610762] LR [C00E1640] XTemac_ConfigureFifoAccess+0x28/0x9c
[    4.680752] Call Trace:
[    4.710037] [C052FE10] [C000ADD8] __ioremap+0xe8/0x14c (unreliable)
[    4.785448] [C052FE20] [C00E1640] XTemac_ConfigureFifoAccess+0x28/0x9c
[    4.863880] [C052FE30] [C00DFCF8] Initialize+0x3c/0xd0
[    4.925647] [C052FE40] [C00DF354] xtenet_probe+0x14c/0x5fc
[    4.991581] [C052FEB0] [C00D6B38] really_probe+0x84/0x154
[    5.056472] [C052FED0] [C00D6D04] driver_probe_device+0xdc/0xfc
[    5.127613] [C052FEF0] [C00D6E68] __driver_attach+0x88/0xf4
[    5.194588] [C052FF10] [C00D5CC0] bus_for_each_dev+0x54/0x94
[    5.262604] [C052FF40] [C00D6EF8] driver_attach+0x24/0x34
[    5.327496] [C052FF50] [C00D63E8] bus_add_driver+0x68/0x1b8
[    5.394471] [C052FF70] [C00D744C] driver_register+0x98/0xac
[    5.461446] [C052FF80] [C01BBC00] xtenet_init+0x18/0x28
[    5.524358] [C052FF90] [C0002454] init+0xb0/0x288
[    5.580917] [C052FFF0] [C0004EA0] kernel_thread+0x44/0x60
[    5.645794] Instruction dump:
[    5.681427] 38000000 901f3694 91690004 90a90008 91490000 3800000a
7c0004ac 900a0000
[    5.775062] 80010014 38600000 83e1000c 7c0803a6 <38210010> 4e800020
2c030000 7c0802a6
[    5.875957] Kernel panic - not syncing: Attempted to kill init!

Going back through previous posts I found that I need to upgrade the kernel
driver for the DMA and TEMAC to V3.

4.  From EDK 8.2.02i  SP2.4+0 I copied the files from the BSP to the kernel
using the following steps.
      a.  Copied the files from linux\drivers\net\xilinx_temac of the BSP
to drivers/net/xilinx_temac of the kernel preserving the Makefile from the
kernel.
      b.  To adapter.c I remove the #include xilinx_devices.h and added
#include linux/platform_devices.h and #include platforms/4xx/virtex.h
      c.  To adapter.c I changed all instances of CHECKSUM_HW to
CHECKSUM_PARTIAL
      d.  To the Makefile in linux/drivers/net/xilinux_temac I added
xtemac_stats.o
      e.  I removed the #include xparameters.h from xtemac.h

      f.  Copied the files from linux\drivers\xilinx_common of the BSP to
drivers/xilinx_edk of the kernel.
      g.  In the drivers/xililnx_edk Makefile I removed the line containing
xdma_channel.o xdma_channel_sg.o
      h.  In the drivers/xililnx_edk Makefile I commented out the line with
xlinx_syms.o

5.  Recompiled the kernel I everything was OK.  Starting the kernel
everything looked OK:
[    3.758994] XTemac: using sgDMA mode.
[    3.803211] XTemac: using TxDRE mode
[    3.846160] XTemac: using RxDRE mode
[    3.889186] XTemac: buffer descriptor size: 32768 (0x8000)
[    3.956476] XTemac: (buffer_descriptor_init) phy: 0x4a8000, virt:
0xff100000, size: 0x8000
[    4.069678] eth0: Xilinx TEMAC #0 at 0x81200000 mapped to 0xC5000000,
irq=0
[    4.153560] eth0: XTemac id 1.0f, block id 5, type 8

6.  I am using busybox 1.2.1 which worked fine previously configuring the
network.  Now when I execute ifconfig I get the following problem:
[   12.228721] eth0: XTemac: Options: 0xb8f2
[   24.197749] eth0: XTemac: Not able to set the speed to 1000 (status:
0x148)
[   34.215593] eth0: XTemac: Not able to set the speed to 100 (status:
0x148)
[   44.232349] eth0: XTemac: Not able to set the speed to 10 (status:
0x148)
[   44.313727] eth0: XTemac: could not negotiate speed
[   44.372226] eth0: XTemac: Send Threshold = 16, Receive Threshold = 2
[   44.448421] eth0: XTemac: Send Wait bound = 1, Receive Wait bound = 1
# [   57.180152] eth0: XTemac: PHY Link carrier lost.

Anybody have an suggestions?

Thanks,
Glenn

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

end of thread, other threads:[~2007-04-10  5:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <406A31B117F2734987636D6CCC93EE3C013E20B0@ehost011-3.exch011.intermedia.net>
2007-04-05  0:00 ` Linux w/ML403 PLB TEMAC Rick Moleres
2007-04-05 18:04   ` Leonid
2007-04-09 16:35 Jarek
2007-04-10  5:57 ` Leonid
  -- strict thread matches above, loose matches on Subject: below --
2007-02-14 14:47 Glenn.G.Hart
2007-02-14 15:10 ` Ming Liu
2007-04-04 19:05 ` Leonid
2007-04-04 22:13   ` Leonid
2007-04-04 23:40     ` Rick Moleres
2007-02-12 16:12 Glenn.G.Hart
2007-02-12 16:33 ` Rick Moleres
2007-02-12 16:48 ` Ming Liu
2007-04-04  7:19 ` Leonid
2007-04-04  8:21   ` Andrei Konovalov

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.