linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE : minor progress with plb_temac v3.00a, EDK 8.2, & 2.6.18.1
  2006-11-02 22:20 robert corley
@ 2006-11-03 13:39 ` alayrac
  0 siblings, 0 replies; 3+ messages in thread
From: alayrac @ 2006-11-03 13:39 UTC (permalink / raw)
  To: 'robert corley', 'linux linuxppc-embedded'

Hi Robert,

Thanks for your contribution.
I would like to know where did you get the kernel source 2.6.18.1?

I've tried from kernel.org, but then temac drivers is not included.
I've then download the temac patch from mvista at following address :
http://source.mvista.com/~ank/paulus-powerpc/20060309/temac.paulus-power
pc.20060309.tgz

When I try to pacth the kernel with following command :
	patch -i ppc32_xilinx_edk_temac.patch
the process ask me the file to pacth.

I've try to get the kernel source code from mvista with cg-clone
commande from=20
cg-clone git://source.mvista.com/git/linux-xilinx-26.git=20

and patch command give same message.

Any track to properly applying patch?

Kinds regards

Chris

CRESITT INDUSTRIE
12 Rue de Blois, BP6744
45067 ORLEANS Cedex 2
Tel : 02.38.49.45.59
Fax :02.38.49.45.55
Email : christophe.alayrac@cresitt.com=20
Web : http://www.cresitt.com


<----> -----Message d'origine-----
<----> De=A0: linuxppc-embedded-
<----> bounces+christophe.alayrac=3Dcresitt.com@ozlabs.org
[mailto:linuxppc-
<----> embedded-bounces+christophe.alayrac=3Dcresitt.com@ozlabs.org] De =
la
<----> part de robert corley
<----> Envoy=E9=A0: jeudi 2 novembre 2006 23:21
<----> =C0=A0: linux linuxppc-embedded
<----> Objet=A0: minor progress with plb_temac v3.00a, EDK 8.2, & =
2.6.18.1
<---->=20
<----> For those interested, I have acheived some measure of success
with
<----> the plb_temac driver.
<---->=20
<----> I have attached a txt file of what I had to do to get it working
<----> under 2.6.18.1
<---->=20
<----> I am using the plb_temac in DMA mode 3
<---->=20
<----> Below you will see the boot dump.
<---->=20
<----> For those able to help, can anyone provide insight as to the
failure
<----> of setting PHY link speed?
<---->=20
<----> -cy
<---->=20
<---->=20
<---->=20
<----> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
<---->
---------------------------------------------------------------------
<----> -
<----> 2.6.18.1 kernel with all patches
<----> 11/02/2006    15:30
<----> plb_temac v3.00a
<----> hard_temac v3.00b
<---->=20
<---->=20
<----> loaded at:     00400000 009F1138
<----> board data at: 009EF120 009EF138
<----> relocated to:  004040B4 004040CC
<----> zimage at:     00404EC7 0057C1F2
<----> initrd at:     0057D000 009EE6FE
<----> avail ram:     009F2000 04000000
<---->=20
<---->=20
<----> Linux/PPC load: console=3DttyUL0 single
<----> ip=3D192.168.1.100:192.168.1.144:192.168.1.1:255.255.255.0:nab::
<----> ramdisk_size=3D4660000 root=3D/dev/ram rw
<---->=20
<----> Uncompressing Linux...done.
<---->=20
<----> Now booting the kernel
<---->=20
<----> [    0.000000] Linux version 2.6.18.1 (rdcorle@athena) (gcc
version
<----> 3.4.2) #2 Thu Nov 2 21:56:32 UTC 2006
<----> [    0.000000] Xilinx ML403 Reference System (Virtex-4 FX)
<----> [    0.000000] Built 1 zonelists.  Total pages: 16384
<----> [    0.000000] Kernel command line: console=3DttyUL0 single
<----> ip=3D192.168.1.100:192.168.1.144:192.168.1.1:255.255.255.0:nab::
<----> ramdisk_size=3D4660000 root=3D/dev/ram rw
<----> [    0.000000] Xilinx INTC #0 at 0xD1000FC0 mapped to 0xFDFFFFC0
<----> [    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
<----> [    0.000158] Console: colour dummy device 80x25
<----> [    0.000568] Dentry cache hash table entries: 8192 (order: 3,
32768
<----> bytes)
<----> [    0.001277] Inode-cache hash table entries: 4096 (order: 2,
16384
<----> bytes)
<----> [    0.012895] Memory: 57060k available (2548k kernel code, 640k
<----> data, 96k init, 0k highmem)
<----> [    0.104378] Mount-cache hash table entries: 512
<----> [    0.106721] checking if image is initramfs...it isn't (no cpio
<----> magic); looks like an initrd
<----> [    2.414242] Freeing initrd memory: 4549k freed
<----> [    2.418712] NET: Registered protocol family 16
<----> [    2.427313] NET: Registered protocol family 2
<----> [    2.464244] IP route cache hash table entries: 512 (order: -1,
<----> 2048 bytes)
<----> [    2.465037] TCP established hash table entries: 2048 (order:
1,
<----> 8192 bytes)
<----> [    2.465205] TCP bind hash table entries: 1024 (order: 0, 4096
<----> bytes)
<----> [    2.465296] TCP: Hash tables configured (established 2048 bind
<----> 1024)
<----> [    2.465324] TCP reno registered
<----> [    2.474633] NTFS driver 2.1.27 [Flags: R/O].
<----> [    2.475046] JFS: nTxBlock =3D 481, nTxLock =3D 3854
<----> [    2.477623] SGI XFS with no debug enabled
<----> [    2.479001] io scheduler noop registered
<----> [    2.479109] io scheduler anticipatory registered
<----> [    2.479197] io scheduler deadline registered
<----> [    2.479402] io scheduler cfq registered (default)
<----> [    2.517627] uartlite.0: ttyUL0 at MMIO 0xa0000000 (irq =3D 1) =
is
a
<----> uartlite
<----> [    2.691029] RAMDISK driver initialized: 16 RAM disks of
4660000K
<----> size 1024 blocksize
<----> [    2.703933] loop: loaded (max 8 devices)
<----> [    2.709698] XTemac: using sgDMA mode.
<----> [    2.713493] XTemac: using TxDRE mode
<----> [    2.717081] XTemac: using RxDRE mode
<----> [    2.720678] XTemac: buffer descriptor size: 32768 (0x8000)
<----> [    2.726622] XTemac: (buffer_descriptor_init) phy: 0x580000,
virt:
<----> 0xff100000, size: 0x8000
<----> [    2.741073] eth0: Xilinx TEMAC #0 at 0x60000000 mapped to
<----> 0xC5050000, irq=3D0
<----> [    2.748080] eth0: XTemac id 1.0f, block id 5, type 8
<----> [    2.753636] mice: PS/2 mouse device common for all mice
<----> [    2.759529] TCP bic registered
<----> [    3.264317] eth0: XTemac: Options: 0xb8f2
<----> [   15.227339] eth0: XTemac: Not able to set the speed to 1000
<----> (status: 0x148)
<----> [   25.200394] eth0: XTemac: Not able to set the speed to 100
<----> (status: 0x148)
<----> [   35.173357] eth0: XTemac: Not able to set the speed to 10
(status:
<----> 0x148)
<----> [   35.180122] eth0: XTemac: could not negotiate speed
<----> [   35.187740] eth0: XTemac: Send Threshold =3D 16, Receive
Threshold =3D
<----> 2
<----> [   35.194116] eth0: XTemac: Send Wait bound =3D 1, Receive Wait
bound
<----> =3D 1
<----> [   36.205399] IP-Config: Complete:
<----> [   36.208459]       device=3Deth0, addr=3D192.168.1.100,
<----> mask=3D255.255.255.0, gw=3D192.168.1.1,
<----> [   36.216339]      host=3Dnab, domain=3D, nis-domain=3D(none),
<----> [   36.221487]      bootserver=3D192.168.1.144,
<----> rootserver=3D192.168.1.144, rootpath=3D
<----> [   36.229826] RAMDISK: Compressed image found at block 0
<----> [   37.200498] eth0: XTemac: PHY Link carrier lost.
<----> [   39.097820] VFS: Mounted root (ext2 filesystem).
<----> [   39.102751] Freeing unused kernel memory: 96k init
<----> [   39.108356] ulite_startup: UART status =3D 0x0014
<----> [   39.124619] ulite_startup: UART status =3D 0x0014
<----> [   39.134313] ulite_startup: UART status =3D 0x0014
<---->=20
<---->=20
<----> BusyBox v1.00-pre9 (2004.04.18-19:53+0000) Built-in shell (ash)
<----> Enter 'help' for a list of built-in commands.
<---->=20
<----> -sh: can't access tty; job control turned off
<---->=20

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

* RE : minor progress with plb_temac v3.00a, EDK 8.2, & 2.6.18.1
@ 2006-11-03 16:14 alayrac
  0 siblings, 0 replies; 3+ messages in thread
From: alayrac @ 2006-11-03 16:14 UTC (permalink / raw)
  To: linuxppc-embedded

Hi Robert,

Thanks for your contribution.
I would like to know where did you get the kernel source 2.6.18.1?

I've tried from kernel.org, but then temac drivers is not included.
I've then download the temac patch from mvista at following address :
http://source.mvista.com/~ank/paulus-powerpc/20060309/temac.paulus-power
pc.20060309.tgz

When I try to pacth the kernel with following command :
	patch -i ppc32_xilinx_edk_temac.patch
the process ask me the file to pacth.

I've try to get the kernel source code from mvista with cg-clone
commande from 
cg-clone git://source.mvista.com/git/linux-xilinx-26.git 

and patch command give same message.

Any track to properly applying patch?

Kinds regards

Chris

CRESITT INDUSTRIE
12 Rue de Blois, BP6744
45067 ORLEANS Cedex 2
Tel : 02.38.49.45.59
Fax :02.38.49.45.55
Email : christophe.alayrac@cresitt.com 
Web : http://www.cresitt.com

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

* RE : minor progress with plb_temac v3.00a, EDK 8.2, & 2.6.18.1
@ 2006-11-04 15:08 robert corley
  0 siblings, 0 replies; 3+ messages in thread
From: robert corley @ 2006-11-04 15:08 UTC (permalink / raw)
  To: alayrac; +Cc: linux linuxppc-embedded

Chris;=0A=0AI obtained the linux tree from kernels.org and patched it using=
 the same patches you have.=0A=0AThe updated drivers for the TEMAC, however=
, I pulled from the EDK-generated files.  My notes describe what files and =
from =0Awhere.=0A=0AI used David B.'s uartlite drivers to get the uartlite =
to work.  There was some xparameters.h editing for that to work.  I don't k=
now if he has posted his latest work or not.=0A=0AI use the following comma=
nd to patch:=0A=0Apatch -p 1 --backup --verbose <file> <patch file>=0A=0Awh=
ere <file> is the first file to patch as per the patch file and=0A<patch fi=
le> is self-explanatory=0A=0A-cy=0A=0A----- Original Message ----=0AFrom: a=
layrac <christophe.alayrac@cresitt.com>=0ATo: robert corley <rdcorle@yahoo.=
com>; linux linuxppc-embedded <linuxppc-embedded@ozlabs.org>=0ASent: Friday=
, November 3, 2006 8:39:23 AM=0ASubject: RE : minor progress with plb_temac=
 v3.00a, EDK 8.2, & 2.6.18.1=0A=0AHi Robert,=0A=0AThanks for your contribut=
ion.=0AI would like to know where did you get the kernel source 2.6.18.1?=
=0A=0AI've tried from kernel.org, but then temac drivers is not included.=
=0AI've then download the temac patch from mvista at following address :=0A=
http://source.mvista.com/~ank/paulus-powerpc/20060309/temac.paulus-power=0A=
pc.20060309.tgz=0A=0AWhen I try to pacth the kernel with following command =
:=0A    patch -i ppc32_xilinx_edk_temac.patch=0Athe process ask me the file=
 to pacth.=0A=0AI've try to get the kernel source code from mvista with cg-=
clone=0Acommande from =0Acg-clone git://source.mvista.com/git/linux-xilinx-=
26.git =0A=0Aand patch command give same message.=0A=0AAny track to properl=
y applying patch?=0A=0AKinds regards=0A=0AChris=0A=0ACRESITT INDUSTRIE=0A12=
 Rue de Blois, BP6744=0A45067 ORLEANS Cedex 2=0ATel : 02.38.49.45.59=0AFax =
:02.38.49.45.55=0AEmail : christophe.alayrac@cresitt.com =0AWeb : http://ww=
w.cresitt.com=0A=0A=0A<----> -----Message d'origine-----=0A<----> De : linu=
xppc-embedded-=0A<----> bounces+christophe.alayrac=3Dcresitt.com@ozlabs.org=
=0A[mailto:linuxppc-=0A<----> embedded-bounces+christophe.alayrac=3Dcresitt=
.com@ozlabs.org] De la=0A<----> part de robert corley=0A<----> Envoy=E9 : j=
eudi 2 novembre 2006 23:21=0A<----> =C0 : linux linuxppc-embedded=0A<----> =
Objet : minor progress with plb_temac v3.00a, EDK 8.2, & 2.6.18.1=0A<----> =
=0A<----> For those interested, I have acheived some measure of success=0Aw=
ith=0A<----> the plb_temac driver.=0A<----> =0A<----> I have attached a txt=
 file of what I had to do to get it working=0A<----> under 2.6.18.1=0A<----=
> =0A<----> I am using the plb_temac in DMA mode 3=0A<----> =0A<----> Below=
 you will see the boot dump.=0A<----> =0A<----> For those able to help, can=
 anyone provide insight as to the=0Afailure=0A<----> of setting PHY link sp=
eed?=0A<----> =0A<----> -cy=0A<----> =0A<----> =0A<----> =0A<----> =3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A<---->=0A---------=
------------------------------------------------------------=0A<----> -=0A<=
----> 2.6.18.1 kernel with all patches=0A<----> 11/02/2006    15:30=0A<----=
> plb_temac v3.00a=0A<----> hard_temac v3.00b=0A<----> =0A<----> =0A<----> =
loaded at:     00400000 009F1138=0A<----> board data at: 009EF120 009EF138=
=0A<----> relocated to:  004040B4 004040CC=0A<----> zimage at:     00404EC7=
 0057C1F2=0A<----> initrd at:     0057D000 009EE6FE=0A<----> avail ram:    =
 009F2000 04000000=0A<----> =0A<----> =0A<----> Linux/PPC load: console=3Dt=
tyUL0 single=0A<----> ip=3D192.168.1.100:192.168.1.144:192.168.1.1:255.255.=
255.0:nab::=0A<----> ramdisk_size=3D4660000 root=3D/dev/ram rw=0A<----> =0A=
<----> Uncompressing Linux...done.=0A<----> =0A<----> Now booting the kerne=
l=0A<----> =0A<----> [    0.000000] Linux version 2.6.18.1 (rdcorle@athena)=
 (gcc=0Aversion=0A<----> 3.4.2) #2 Thu Nov 2 21:56:32 UTC 2006=0A<----> [  =
  0.000000] Xilinx ML403 Reference System (Virtex-4 FX)=0A<----> [    0.000=
000] Built 1 zonelists.  Total pages: 16384=0A<----> [    0.000000] Kernel =
command line: console=3DttyUL0 single=0A<----> ip=3D192.168.1.100:192.168.1=
.144:192.168.1.1:255.255.255.0:nab::=0A<----> ramdisk_size=3D4660000 root=
=3D/dev/ram rw=0A<----> [    0.000000] Xilinx INTC #0 at 0xD1000FC0 mapped =
to 0xFDFFFFC0=0A<----> [    0.000000] PID hash table entries: 512 (order: 9=
, 2048 bytes)=0A<----> [    0.000158] Console: colour dummy device 80x25=0A=
<----> [    0.000568] Dentry cache hash table entries: 8192 (order: 3,=0A32=
768=0A<----> bytes)=0A<----> [    0.001277] Inode-cache hash table entries:=
 4096 (order: 2,=0A16384=0A<----> bytes)=0A<----> [    0.012895] Memory: 57=
060k available (2548k kernel code, 640k=0A<----> data, 96k init, 0k highmem=
)=0A<----> [    0.104378] Mount-cache hash table entries: 512=0A<----> [   =
 0.106721] checking if image is initramfs...it isn't (no cpio=0A<----> magi=
c); looks like an initrd=0A<----> [    2.414242] Freeing initrd memory: 454=
9k freed=0A<----> [    2.418712] NET: Registered protocol family 16=0A<----=
> [    2.427313] NET: Registered protocol family 2=0A<----> [    2.464244] =
IP route cache hash table entries: 512 (order: -1,=0A<----> 2048 bytes)=0A<=
----> [    2.465037] TCP established hash table entries: 2048 (order:=0A1,=
=0A<----> 8192 bytes)=0A<----> [    2.465205] TCP bind hash table entries: =
1024 (order: 0, 4096=0A<----> bytes)=0A<----> [    2.465296] TCP: Hash tabl=
es configured (established 2048 bind=0A<----> 1024)=0A<----> [    2.465324]=
 TCP reno registered=0A<----> [    2.474633] NTFS driver 2.1.27 [Flags: R/O=
].=0A<----> [    2.475046] JFS: nTxBlock =3D 481, nTxLock =3D 3854=0A<---->=
 [    2.477623] SGI XFS with no debug enabled=0A<----> [    2.479001] io sc=
heduler noop registered=0A<----> [    2.479109] io scheduler anticipatory r=
egistered=0A<----> [    2.479197] io scheduler deadline registered=0A<---->=
 [    2.479402] io scheduler cfq registered (default)=0A<----> [    2.51762=
7] uartlite.0: ttyUL0 at MMIO 0xa0000000 (irq =3D 1) is=0Aa=0A<----> uartli=
te=0A<----> [    2.691029] RAMDISK driver initialized: 16 RAM disks of=0A46=
60000K=0A<----> size 1024 blocksize=0A<----> [    2.703933] loop: loaded (m=
ax 8 devices)=0A<----> [    2.709698] XTemac: using sgDMA mode.=0A<----> [ =
   2.713493] XTemac: using TxDRE mode=0A<----> [    2.717081] XTemac: using=
 RxDRE mode=0A<----> [    2.720678] XTemac: buffer descriptor size: 32768 (=
0x8000)=0A<----> [    2.726622] XTemac: (buffer_descriptor_init) phy: 0x580=
000,=0Avirt:=0A<----> 0xff100000, size: 0x8000=0A<----> [    2.741073] eth0=
: Xilinx TEMAC #0 at 0x60000000 mapped to=0A<----> 0xC5050000, irq=3D0=0A<-=
---> [    2.748080] eth0: XTemac id 1.0f, block id 5, type 8=0A<----> [    =
2.753636] mice: PS/2 mouse device common for all mice=0A<----> [    2.75952=
9] TCP bic registered=0A<----> [    3.264317] eth0: XTemac: Options: 0xb8f2=
=0A<----> [   15.227339] eth0: XTemac: Not able to set the speed to 1000=0A=
<----> (status: 0x148)=0A<----> [   25.200394] eth0: XTemac: Not able to se=
t the speed to 100=0A<----> (status: 0x148)=0A<----> [   35.173357] eth0: X=
Temac: Not able to set the speed to 10=0A(status:=0A<----> 0x148)=0A<----> =
[   35.180122] eth0: XTemac: could not negotiate speed=0A<----> [   35.1877=
40] eth0: XTemac: Send Threshold =3D 16, Receive=0AThreshold =3D=0A<----> 2=
=0A<----> [   35.194116] eth0: XTemac: Send Wait bound =3D 1, Receive Wait=
=0Abound=0A<----> =3D 1=0A<----> [   36.205399] IP-Config: Complete:=0A<---=
-> [   36.208459]       device=3Deth0, addr=3D192.168.1.100,=0A<----> mask=
=3D255.255.255.0, gw=3D192.168.1.1,=0A<----> [   36.216339]      host=3Dnab=
, domain=3D, nis-domain=3D(none),=0A<----> [   36.221487]      bootserver=
=3D192.168.1.144,=0A<----> rootserver=3D192.168.1.144, rootpath=3D=0A<---->=
 [   36.229826] RAMDISK: Compressed image found at block 0=0A<----> [   37.=
200498] eth0: XTemac: PHY Link carrier lost.=0A<----> [   39.097820] VFS: M=
ounted root (ext2 filesystem).=0A<----> [   39.102751] Freeing unused kerne=
l memory: 96k init=0A<----> [   39.108356] ulite_startup: UART status =3D 0=
x0014=0A<----> [   39.124619] ulite_startup: UART status =3D 0x0014=0A<----=
> [   39.134313] ulite_startup: UART status =3D 0x0014=0A<----> =0A<----> =
=0A<----> BusyBox v1.00-pre9 (2004.04.18-19:53+0000) Built-in shell (ash)=
=0A<----> Enter 'help' for a list of built-in commands.=0A<----> =0A<----> =
-sh: can't access tty; job control turned off=0A<----> =0A=0A=0A___________=
____________________________________=0ALinuxppc-embedded mailing list=0ALin=
uxppc-embedded@ozlabs.org=0Ahttps://ozlabs.org/mailman/listinfo/linuxppc-em=
bedded=0A=0A=0A

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

end of thread, other threads:[~2006-11-04 15:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03 16:14 RE : minor progress with plb_temac v3.00a, EDK 8.2, & 2.6.18.1 alayrac
  -- strict thread matches above, loose matches on Subject: below --
2006-11-04 15:08 robert corley
2006-11-02 22:20 robert corley
2006-11-03 13:39 ` RE : " alayrac

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).