All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Barada <pbarada@mail.wm.sps.mot.com>
To: linuxppc-embedded@lists.linuxppc.org
Subject: Re: walnut configuration
Date: Mon, 17 Sep 2001 17:15:12 -0400	[thread overview]
Message-ID: <200109172115.f8HLFCc20783@hyper.wm.sps.mot.com> (raw)


Has *anyone* gotten the linuxppc_2_4_devel tree to build for a walnut board?
If so, what did you have to do... I've tried the following:

I've gotten a BK resync of the linuxppc_2_4_devel tree as of today and
attempted to:

1) edit top level makefile to redefine ARCH to ppc, set CROSS_COMPILE
   to my tool prefix
2) make mkproper
3) make walnut_config
4) make oldconfig
5) make dep
6) make

This fails while trying to build head_4xx.S since
CONFIG_PPC601_SYCN_FIX is set in .config when it shouldn't be.


After getting past that, it fails next while trying to compile
ppc4xx_pic.c with:

powerpc-linux-gcc -D__KERNEL__ -I/home/pbarada/work/penguinppc/linuxppc_2_4_devel.export.3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -mcpu=403    -c -o ppc4xx_pic.o ppc4xx_pic.c
{standard input}: Assembler messages:
{standard input}:83: Error: unsupported relocation type
{standard input}:84: Error: unsupported relocation type
{standard input}:111: Error: unsupported relocation type
{standard input}:128: Error: unsupported relocation type
{standard input}:145: Error: unsupported relocation type
{standard input}:149: Error: unsupported relocation type
{standard input}:64: Error: unsupported relocation type
make[1]: *** [ppc4xx_pic.o] Error 1
make[1]: Leaving directory `/home/pbarada/work/penguinppc/linuxppc_2_4_devel.export.3/arch/ppc/kernel'

This is caused by in include/asm-ppc/processor.h, the following needs
to be change from:

#include <asm/mpc8xx.h>

to:

#ifdef CONFIG_4xx
#include <asm/ppc4xx.h>
#endif
#ifdef CONFIG_8xx
#include <asm/mpc8xx.h>
#endif


Now it gets past ppc4xx_pic.c, and now blows up compilling walnut_setup.c
with:

powerpc-linux-gcc -D__KERNEL__ -I/home/pbarada/work/penguinppc/linuxppc_2_4_devel.export.3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -mcpu=403    -c -o walnut_setup.o walnut_setup.c
In file included from walnut_setup.c:22:
/home/pbarada/work/penguinppc/linuxppc_2_4_devel.export.3/include/linux/interrupt.h: In function `tasklet_disable_nosync':
/home/pbarada/work/penguinppc/linuxppc_2_4_devel.export.3/include/linux/interrupt.h:174: warning: implicit declaration of function `smp_mb'
/home/pbarada/work/penguinppc/linuxppc_2_4_devel.export.3/include/linux/interrupt.h: At top level:
/home/pbarada/work/penguinppc/linuxppc_2_4_devel.export.3/include/linux/interrupt.h:224: parse error before `global_bh_lock'
/home/pbarada/work/penguinppc/linuxppc_2_4_devel.export.3/include/linux/interrupt.h:224: warning: type defaults to `int' in declaration of `global_bh_lock'
/home/pbarada/work/penguinppc/linuxppc_2_4_devel.export.3/include/linux/interrupt.h:224: warning: data definition has no type or storage class
walnut_setup.c: In function `walnut_init':
walnut_setup.c:115: warning: assignment from incompatible pointer type
walnut_setup.c: In function `walnut_setup_residual':
walnut_setup.c:170: structure has no member named `bi_intfreq'
walnut_setup.c:171: structure has no member named `bi_busfreq'
walnut_setup.c: At top level:
walnut_setup.c:234: conflicting types for `walnut_time_init'
walnut_setup.h:43: previous declaration of `walnut_time_init'
walnut_setup.c: In function `walnut_calibrate_decr':
walnut_setup.c:286: structure has no member named `bi_intfreq'
walnut_setup.c:288: `decrementer_count' undeclared (first use in this function)
walnut_setup.c:288: (Each undeclared identifier is reported only once
walnut_setup.c:288: for each function it appears in.)
walnut_setup.c:289: `count_period_num' undeclared (first use in this function)
walnut_setup.c:290: `count_period_den' undeclared (first use in this function)
make[1]: *** [walnut_setup.o] Error 1
make[1]: Leaving directory `/home/pbarada/work/penguinppc/linuxppc_2_4_devel.export.3/arch/ppc/kernel'

At this point I thought I'd ask.


--
Peter Barada                                   Peter.Barada@motorola.com
Wizard                                         781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola)   781-270-0193 (fax)

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

             reply	other threads:[~2001-09-17 21:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-17 21:15 Peter Barada [this message]
2001-09-17 21:24 ` walnut configuration Matthew Locke
2001-09-17 21:25 ` John Tyner
2001-09-17 23:22 ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200109172115.f8HLFCc20783@hyper.wm.sps.mot.com \
    --to=pbarada@mail.wm.sps.mot.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.