Re: Linux kernel and u-boot for mpc8540

3 messages, 3 authors, 2004-02-06 · open the first message on its own page

Re: Linux kernel and u-boot for mpc8540

From: Matt Porter <mporter@kernel.crashing.org>
Date: 2004-02-05 16:12:32

On Thu, Feb 05, 2004 at 10:32:48AM +0100, eric lescouet wrote:
Michele,

Support for mpc8540 is already in linuxppc-2.4 tree.
see ppc.bkbits.net
Actually, the linuxppc-2.4 support is incomplete, there's no TSEC/FEC
driver or other on-chip peripheral drivers in that tree to make it
really useful. You could just use a PCI network card to nfsroot a
filesystem and get started, though.

http://www.metrowerks.com/MW/Develop/Embedded/Linux/BSP.htm has
an 8560ADS BSP for download...it probably has some drivers for
on-chip peripherals included.

BTW, you'll need the following patch to linuxppc-2.4 to fix outbound
PCI mem cycles:

===== arch/ppc/platforms/mpc85xx_ads_common.c 1.3 vs edited =====
--- 1.3/arch/ppc/platforms/mpc85xx_ads_common.c Thu Jan 22 12:58:25 2004
+++ edited/arch/ppc/platforms/mpc85xx_ads_common.c      Thu Feb  5 09:10:34 2004@@ -316,8 +316,8 @@
        pci->piwar2 = 0;
        pci->piwar3 = 0;

-       /* Setup 128M outbound mem window @ 0xe0000000 */
-       pci->potar1 = 0x00000000;
+       /* Setup 128M Phys:PCI 1:1 outbound mem window @ 0xe0000000 */
+       pci->potar1 = (MPC85XX_ADS_PCI_LOWER_MEM >> 12) & 0x000fffff;
        pci->potear1 = 0x00000000;
        pci->powbar1 = (MPC85XX_ADS_PCI_LOWER_MEM >> 12) & 0x000fffff;
        pci->powar1 = 0x8004401a;       /* Enable, Mem R/W, 128M */

-Matt
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: Linux kernel and u-boot for mpc8540

From: <hidden>
Date: 2004-02-05 16:36:03

I try to download from ppc.bkbits.net, but I have a proxy problem.
About the metrowerks I'll try to contact.

Thanks
    Michele

Matt Porter wrote:
quoted hunk
On Thu, Feb 05, 2004 at 10:32:48AM +0100, eric lescouet wrote:
quoted
Michele,

Support for mpc8540 is already in linuxppc-2.4 tree.
see ppc.bkbits.net
Actually, the linuxppc-2.4 support is incomplete, there's no TSEC/FEC
driver or other on-chip peripheral drivers in that tree to make it
really useful. You could just use a PCI network card to nfsroot a
filesystem and get started, though.

http://www.metrowerks.com/MW/Develop/Embedded/Linux/BSP.htm has
an 8560ADS BSP for download...it probably has some drivers for
on-chip peripherals included.

BTW, you'll need the following patch to linuxppc-2.4 to fix outbound
PCI mem cycles:

===== arch/ppc/platforms/mpc85xx_ads_common.c 1.3 vs edited =====
--- 1.3/arch/ppc/platforms/mpc85xx_ads_common.c Thu Jan 22 12:58:25 2004
+++ edited/arch/ppc/platforms/mpc85xx_ads_common.c      Thu Feb  5 09:10:34 2004@@ -316,8 +316,8 @@
        pci->piwar2 = 0;
        pci->piwar3 = 0;

-       /* Setup 128M outbound mem window @ 0xe0000000 */
-       pci->potar1 = 0x00000000;
+       /* Setup 128M Phys:PCI 1:1 outbound mem window @ 0xe0000000 */
+       pci->potar1 = (MPC85XX_ADS_PCI_LOWER_MEM >> 12) & 0x000fffff;
        pci->potear1 = 0x00000000;
        pci->powbar1 = (MPC85XX_ADS_PCI_LOWER_MEM >> 12) & 0x000fffff;
        pci->powar1 = 0x8004401a;       /* Enable, Mem R/W, 128M */

-Matt

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: Linux kernel and u-boot for mpc8540

From: Kumar Gala <hidden>
Date: 2004-02-06 06:00:57

Matt's fix is now part of the linuxppc-2.4 tree.  Thanks matt.

- kumar

On Feb 5, 2004, at 10:12 AM, Matt Porter wrote:
quoted hunk
On Thu, Feb 05, 2004 at 10:32:48AM +0100, eric lescouet wrote:
quoted
Michele,

Support for mpc8540 is already in linuxppc-2.4 tree.
see ppc.bkbits.net
Actually, the linuxppc-2.4 support is incomplete, there's no TSEC/FEC
driver or other on-chip peripheral drivers in that tree to make it
really useful. You could just use a PCI network card to nfsroot a
filesystem and get started, though.

http://www.metrowerks.com/MW/Develop/Embedded/Linux/BSP.htm has
an 8560ADS BSP for download...it probably has some drivers for
on-chip peripherals included.

BTW, you'll need the following patch to linuxppc-2.4 to fix outbound
PCI mem cycles:

===== arch/ppc/platforms/mpc85xx_ads_common.c 1.3 vs edited =====
--- 1.3/arch/ppc/platforms/mpc85xx_ads_common.c Thu Jan 22 12:58:25
2004
+++ edited/arch/ppc/platforms/mpc85xx_ads_common.c      Thu Feb  5
09:10:34 2004@@ -316,8 +316,8 @@
        pci->piwar2 = 0;
        pci->piwar3 = 0;

-       /* Setup 128M outbound mem window @ 0xe0000000 */
-       pci->potar1 = 0x00000000;
+       /* Setup 128M Phys:PCI 1:1 outbound mem window @ 0xe0000000 */
+       pci->potar1 = (MPC85XX_ADS_PCI_LOWER_MEM >> 12) & 0x000fffff;
        pci->potear1 = 0x00000000;
        pci->powbar1 = (MPC85XX_ADS_PCI_LOWER_MEM >> 12) & 0x000fffff;
        pci->powar1 = 0x8004401a;       /* Enable, Mem R/W, 128M */

-Matt

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help