linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MPC8555CDS ELDK build issue
@ 2007-04-04 19:43 Clint Thomas
  2007-04-04 20:09 ` Scott Murray
  2007-04-05  0:30 ` Wolfgang Denk
  0 siblings, 2 replies; 3+ messages in thread
From: Clint Thomas @ 2007-04-04 19:43 UTC (permalink / raw)
  To: linuxppc-embedded

Hey,

Using the ELDK 4.1, I am trying to compile the linux sources for the
MPC8555CDS. I installed the source tree provided with ELDK 4.1 (2.6.19)
and the associated crosstools. The only factors I changed in the kernel
config were to set the processor arch to e500 and the platform to
8555CDS. When I run make, this is where it fails.

CC      arch/ppc/syslib/mpc85xx_devices.o
arch/ppc/syslib/mpc85xx_devices.c:99: error: 'F1_RXCLK' undeclared here
(not in a function)
arch/ppc/syslib/mpc85xx_devices.c:99: error: 'F1_TXCLK' undeclared here
(not in a function)
arch/ppc/syslib/mpc85xx_devices.c:117: error: 'F2_RXCLK' undeclared here
(not in a function)
arch/ppc/syslib/mpc85xx_devices.c:117: error: 'F2_TXCLK' undeclared here
(not in a function)
arch/ppc/syslib/mpc85xx_devices.c:135: error: 'F3_RXCLK' undeclared here
(not in a function)
arch/ppc/syslib/mpc85xx_devices.c:135: error: 'F3_TXCLK' undeclared here
(not in a function)
make[1]: *** [arch/ppc/syslib/mpc85xx_devices.o] Error 1
make: *** [arch/ppc/syslib] Error 2


This is the exact same build error I get when compiling with the same
cross-tools, using several other version of the Linux kernel. Any of the
Freescale guys know why this is? Thanks

Clint Thomas

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

* Re: MPC8555CDS ELDK build issue
  2007-04-04 19:43 MPC8555CDS ELDK build issue Clint Thomas
@ 2007-04-04 20:09 ` Scott Murray
  2007-04-05  0:30 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Scott Murray @ 2007-04-04 20:09 UTC (permalink / raw)
  To: Clint Thomas; +Cc: linuxppc-embedded

On Wed, 4 Apr 2007, Clint Thomas wrote:

> Hey,
> 
> Using the ELDK 4.1, I am trying to compile the linux sources for the
> MPC8555CDS. I installed the source tree provided with ELDK 4.1 (2.6.19)
> and the associated crosstools. The only factors I changed in the kernel
> config were to set the processor arch to e500 and the platform to
> 8555CDS. When I run make, this is where it fails.
> 
> CC      arch/ppc/syslib/mpc85xx_devices.o
> arch/ppc/syslib/mpc85xx_devices.c:99: error: 'F1_RXCLK' undeclared here
> (not in a function)
> arch/ppc/syslib/mpc85xx_devices.c:99: error: 'F1_TXCLK' undeclared here
> (not in a function)
> arch/ppc/syslib/mpc85xx_devices.c:117: error: 'F2_RXCLK' undeclared here
> (not in a function)
> arch/ppc/syslib/mpc85xx_devices.c:117: error: 'F2_TXCLK' undeclared here
> (not in a function)
> arch/ppc/syslib/mpc85xx_devices.c:135: error: 'F3_RXCLK' undeclared here
> (not in a function)
> arch/ppc/syslib/mpc85xx_devices.c:135: error: 'F3_TXCLK' undeclared here
> (not in a function)
> make[1]: *** [arch/ppc/syslib/mpc85xx_devices.o] Error 1
> make: *** [arch/ppc/syslib] Error 2
>
> This is the exact same build error I get when compiling with the same
> cross-tools, using several other version of the Linux kernel. Any of the
> Freescale guys know why this is? Thanks

I saw this, but forgot to report it, oops.  Adding a:

#include <platforms/85xx/mpc85xx_ads_common.h>

at the top of the file gets it to compile, and seemed to result in a 
working image on our MPC8555CDS, but it didn't seem like an overly clean 
fix to me.  On 2.6.19, I also needed this fix:

--- 1.18/include/asm-ppc/cpm2.h 2006-08-19 17:44:31 -04:00
+++ 1.18.1.1/include/asm-ppc/cpm2.h     2006-12-04 18:42:00 -05:00
@@ -1186,7 +1186,7 @@
 #define FCC_MEM_OFFSET(x) (CPM_FCC_SPECIAL_BASE + (x*128))
 #define FCC1_MEM_OFFSET FCC_MEM_OFFSET(0)
 #define FCC2_MEM_OFFSET FCC_MEM_OFFSET(1)
-#define FCC2_MEM_OFFSET FCC_MEM_OFFSET(2)
+#define FCC3_MEM_OFFSET FCC_MEM_OFFSET(2)
 
 #endif /* __CPM2__ */
 #endif /* __KERNEL__ */

This typo is fixed in newer kernels.

Scott


-- 
Scott Murray
SOMA Networks, Inc.
Toronto, Ontario
e-mail: scottm@somanetworks.com

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

* Re: MPC8555CDS ELDK build issue
  2007-04-04 19:43 MPC8555CDS ELDK build issue Clint Thomas
  2007-04-04 20:09 ` Scott Murray
@ 2007-04-05  0:30 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2007-04-05  0:30 UTC (permalink / raw)
  To: Clint Thomas; +Cc: linuxppc-embedded

In message <3C02138692C13C4BB675FE7EA2409529327F9A@bluefin.Soneticom.local> you wrote:
> 
> Using the ELDK 4.1, I am trying to compile the linux sources for the
> MPC8555CDS. I installed the source tree provided with ELDK 4.1 (2.6.19)
> and the associated crosstools. The only factors I changed in the kernel

Try using a more recent kernel version.

> config were to set the processor arch to e500 and the platform to
> 8555CDS. When I run make, this is where it fails.

You should not change anything but just use the mpc8555_cds_defconfig
file for a start.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
1000 pains                                              = 1 Megahertz

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

end of thread, other threads:[~2007-04-05  0:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-04 19:43 MPC8555CDS ELDK build issue Clint Thomas
2007-04-04 20:09 ` Scott Murray
2007-04-05  0:30 ` Wolfgang Denk

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