MPC8555CDS ELDK build issue
Scott Murray
scottm at somanetworks.com
Thu Apr 5 06:09:16 EST 2007
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 at somanetworks.com
More information about the Linuxppc-embedded
mailing list