linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Regarding P2020 in AMP mode
@ 2011-05-07 12:20 Prasanna Khanapur
  2011-05-09 20:22 ` Hollis Blanchard
  0 siblings, 1 reply; 4+ messages in thread
From: Prasanna Khanapur @ 2011-05-07 12:20 UTC (permalink / raw)
  To: linuxppc-dev

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

Hi,
I'm running P2020 in AMP mode, each core running its linux os.
Ethernet 1(@25000) and Ethernet 2(@26000) assigned to Core0 are working
fine.
I'm facing problems with Ethernet interface(@24000) assigned to Core1, its
not working.

I'm using dts file which were added by :
http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-September/075594.html

Looks either there is some mistake in the dts file or my understanding is
wrong.

MDIO @24000 is defined in core0 dts file though the Ethernet is assigned to
Core 1.

DTS files :
http://web.mornfall.net/repos/linux-2.6/git/arch/powerpc/boot/dts/p2020rdb_camp_core0.dts
http://web.mornfall.net/repos/linux-2.6/git/arch/powerpc/boot/dts/p2020rdb_camp_core1.dts

		mdio@24520 {
			#address-cells = <1>;
			#size-cells = <0>;
			compatible = "fsl,gianfar-mdio";
			reg = <0x24520 0x20>;

			phy0: ethernet-phy@0 {
				interrupt-parent = <&mpic>;
				interrupts = <3 1>;
				reg = <0x0>;
			};
			phy1: ethernet-phy@1 {
				interrupt-parent = <&mpic>;
				interrupts = <3 1>;
				reg = <0x1>;
			};
		};

Also, MDIO for 25520 has wrong register value:

		mdio@25520 {
			#address-cells = <1>;
			#size-cells = <0>;
			compatible = "fsl,gianfar-tbi";
			reg = <0x26520 0x20>;

			tbi0: tbi-phy@11 {
				reg = <0x11>;
				device_type = "tbi-phy";
			};
		};



Please correct me if  I'm wrong.  Has freescale released a working dts files
for P2020 in AMP mode ? as this seems to be not working.

Best Regards
Prasanna Khanapur.

[-- Attachment #2: Type: text/html, Size: 3019 bytes --]

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

* Re: Regarding P2020 in AMP mode
  2011-05-07 12:20 Regarding P2020 in AMP mode Prasanna Khanapur
@ 2011-05-09 20:22 ` Hollis Blanchard
  2011-05-10  7:50   ` Aggrwal Poonam-B10812
  0 siblings, 1 reply; 4+ messages in thread
From: Hollis Blanchard @ 2011-05-09 20:22 UTC (permalink / raw)
  To: Prasanna Khanapur; +Cc: linuxppc-dev

On 05/07/2011 05:20 AM, Prasanna Khanapur wrote:
> Hi,
> I'm running P2020 in AMP mode, each core running its linux os.
> Ethernet 1(@25000) and Ethernet 2(@26000) assigned to Core0 are working
> fine.
> I'm facing problems with Ethernet interface(@24000) assigned to Core1,
> its not working.
>
> I'm using dts file which were added by :
> http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-September/075594.html
>
> Looks either there is some mistake in the dts file or my understanding
> is wrong.
>
> MDIO @24000 is defined in core0 dts file though the Ethernet is assigned
> to Core 1.
>
> DTS files :
> http://web.mornfall.net/repos/linux-2.6/git/arch/powerpc/boot/dts/p2020rdb_camp_core0.dts
> http://web.mornfall.net/repos/linux-2.6/git/arch/powerpc/boot/dts/p2020rdb_camp_core1.dts

The fixed-link property in core1.dts indicates enet0 should use 1Gb 
link. Is that device connected to a 1Gb network?

-- 
Hollis Blanchard
Mentor Graphics, Embedded Systems Division

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

* RE: Regarding P2020 in AMP mode
  2011-05-09 20:22 ` Hollis Blanchard
@ 2011-05-10  7:50   ` Aggrwal Poonam-B10812
  2011-05-11 11:23     ` Prasanna Khanapur
  0 siblings, 1 reply; 4+ messages in thread
From: Aggrwal Poonam-B10812 @ 2011-05-10  7:50 UTC (permalink / raw)
  To: Hollis Blanchard, Prasanna Khanapur; +Cc: linuxppc-dev@lists.ozlabs.org

The code looks to be correct in upstream,
Can u mention the AMP boot steps you are using.


5.5.2.4 Test Procedure
1. Power on the board
2. Follow the command below at U-boot prompt=20
=3D> setenv <serverip>
=3D> setenv <ipaddr>
=3D> setenv ethact eTSEC2
=3D> setenv bootargs root=3D/dev/ram rw console=3DttyS0,115200
3. Bring up core1's kernel first:=20
=3D> setenv bootm_low 0x10000000
=3D> setenv bootm_size 0x8000000
=3D> tftp 11000000 uImage.core1
=3D> tftp 12000000 rootfs_min.ext2.gz.uboot
=3D> tftp 10c00000 p1020rdb_camp_core1.dtb
=3D> interrupts off=20
=20
=3D> bootm start 11000000 12000000 10c00000
=3D> bootm loados
=3D> bootm ramdisk
=3D> bootm fdt
=3D> fdt boardsetup
=3D> fdt chosen $initrd_start $initrd_end
=3D> bootm prep
=3D> cpu 1 release $bootm_low - $fdtaddr -

As soon as, when you run the cpu 1 release $bootm_low - $fdtaddr - command,=
 Core-1 starts booting=20
and boot-up log can be observed on the UART#2 console.
4. Bring up core0's kernel(on the same u-boot console -UART#1):
=3D> setenv bootm_low 0x0
=3D> setenv bootm_size 0x10000000
=3D> tftp 1000000 uImage.core0
=3D> tftp 2000000 rootfs_min.ext2.gz.uboot
=3D> tftp c00000 p1020rdb_camp_core0.dtb
=3D> bootm 1000000 2000000 c00000


The main catch  here is to use eTSEC2 as active port at u-boot. I think I r=
emember we also  faced similar issue.
Regards
Poonam

> -----Original Message-----
> From: linuxppc-dev-bounces+poonam.aggrwal=3Dfreescale.com@lists.ozlabs.or=
g
> [mailto:linuxppc-dev-
> bounces+poonam.aggrwal=3Dfreescale.com@lists.ozlabs.org] On Behalf Of
> Hollis Blanchard
> Sent: Tuesday, May 10, 2011 1:53 AM
> To: Prasanna Khanapur
> Cc: linuxppc-dev@lists.ozlabs.org
> Subject: Re: Regarding P2020 in AMP mode
>=20
> On 05/07/2011 05:20 AM, Prasanna Khanapur wrote:
> > Hi,
> > I'm running P2020 in AMP mode, each core running its linux os.
> > Ethernet 1(@25000) and Ethernet 2(@26000) assigned to Core0 are
> > working fine.
> > I'm facing problems with Ethernet interface(@24000) assigned to Core1,
> > its not working.
> >
> > I'm using dts file which were added by :
> > http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-September/075594.h
> > tml
> >
> > Looks either there is some mistake in the dts file or my understanding
> > is wrong.
> >
> > MDIO @24000 is defined in core0 dts file though the Ethernet is
> > assigned to Core 1.
> >
> > DTS files :
> > http://web.mornfall.net/repos/linux-2.6/git/arch/powerpc/boot/dts/p202
> > 0rdb_camp_core0.dts
> > http://web.mornfall.net/repos/linux-2.6/git/arch/powerpc/boot/dts/p202
> > 0rdb_camp_core1.dts
>=20
> The fixed-link property in core1.dts indicates enet0 should use 1Gb link.
> Is that device connected to a 1Gb network?
>=20
> --
> Hollis Blanchard
> Mentor Graphics, Embedded Systems Division
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev

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

* Re: Regarding P2020 in AMP mode
  2011-05-10  7:50   ` Aggrwal Poonam-B10812
@ 2011-05-11 11:23     ` Prasanna Khanapur
  0 siblings, 0 replies; 4+ messages in thread
From: Prasanna Khanapur @ 2011-05-11 11:23 UTC (permalink / raw)
  To: linuxppc-dev@lists.ozlabs.org; +Cc: Aggrwal Poonam-B10812, Hollis Blanchard

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

I tried the suggestion of setting eTSEC2 as active port for the u-boot .
Ethernet  of Core1 (connected to 1G) is working now.

Thanks for the inputs , they really helped !

Best Regards
Prasanna Khanapur


On Tue, May 10, 2011 at 9:50 AM, Aggrwal Poonam-B10812 <B10812@freescale.com
> wrote:

> The code looks to be correct in upstream,
> Can u mention the AMP boot steps you are using.
>
>
> 5.5.2.4 Test Procedure
> 1. Power on the board
> 2. Follow the command below at U-boot prompt
> => setenv <serverip>
> => setenv <ipaddr>
> => setenv ethact eTSEC2
> => setenv bootargs root=/dev/ram rw console=ttyS0,115200
> 3. Bring up core1's kernel first:
> => setenv bootm_low 0x10000000
> => setenv bootm_size 0x8000000
> => tftp 11000000 uImage.core1
> => tftp 12000000 rootfs_min.ext2.gz.uboot
> => tftp 10c00000 p1020rdb_camp_core1.dtb
> => interrupts off
>
> => bootm start 11000000 12000000 10c00000
> => bootm loados
> => bootm ramdisk
> => bootm fdt
> => fdt boardsetup
> => fdt chosen $initrd_start $initrd_end
> => bootm prep
> => cpu 1 release $bootm_low - $fdtaddr -
>
> As soon as, when you run the cpu 1 release $bootm_low - $fdtaddr - command,
> Core-1 starts booting
> and boot-up log can be observed on the UART#2 console.
> 4. Bring up core0's kernel(on the same u-boot console -UART#1):
> => setenv bootm_low 0x0
> => setenv bootm_size 0x10000000
> => tftp 1000000 uImage.core0
> => tftp 2000000 rootfs_min.ext2.gz.uboot
> => tftp c00000 p1020rdb_camp_core0.dtb
> => bootm 1000000 2000000 c00000
>
>
> The main catch  here is to use eTSEC2 as active port at u-boot. I think I
> remember we also  faced similar issue.
> Regards
> Poonam
>
> > -----Original Message-----
> > From: linuxppc-dev-bounces+poonam.aggrwal=freescale.com@lists.ozlabs.org
> > [mailto:linuxppc-dev-
> > bounces+poonam.aggrwal=freescale.com@lists.ozlabs.org] On Behalf Of
> > Hollis Blanchard
> > Sent: Tuesday, May 10, 2011 1:53 AM
> > To: Prasanna Khanapur
> > Cc: linuxppc-dev@lists.ozlabs.org
> > Subject: Re: Regarding P2020 in AMP mode
> >
> > On 05/07/2011 05:20 AM, Prasanna Khanapur wrote:
> > > Hi,
> > > I'm running P2020 in AMP mode, each core running its linux os.
> > > Ethernet 1(@25000) and Ethernet 2(@26000) assigned to Core0 are
> > > working fine.
> > > I'm facing problems with Ethernet interface(@24000) assigned to Core1,
> > > its not working.
> > >
> > > I'm using dts file which were added by :
> > > http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-September/075594.h
> > > tml
> > >
> > > Looks either there is some mistake in the dts file or my understanding
> > > is wrong.
> > >
> > > MDIO @24000 is defined in core0 dts file though the Ethernet is
> > > assigned to Core 1.
> > >
> > > DTS files :
> > > http://web.mornfall.net/repos/linux-2.6/git/arch/powerpc/boot/dts/p202
> > > 0rdb_camp_core0.dts
> > > http://web.mornfall.net/repos/linux-2.6/git/arch/powerpc/boot/dts/p202
> > > 0rdb_camp_core1.dts
> >
> > The fixed-link property in core1.dts indicates enet0 should use 1Gb link.
> > Is that device connected to a 1Gb network?
> >
> > --
> > Hollis Blanchard
> > Mentor Graphics, Embedded Systems Division
> > _______________________________________________
> > Linuxppc-dev mailing list
> > Linuxppc-dev@lists.ozlabs.org
> > https://lists.ozlabs.org/listinfo/linuxppc-dev
>
>
>

[-- Attachment #2: Type: text/html, Size: 4975 bytes --]

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

end of thread, other threads:[~2011-05-11 11:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-07 12:20 Regarding P2020 in AMP mode Prasanna Khanapur
2011-05-09 20:22 ` Hollis Blanchard
2011-05-10  7:50   ` Aggrwal Poonam-B10812
2011-05-11 11:23     ` Prasanna Khanapur

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