This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: trouble compiling kernel for ppc405 with crosstool (was: ppc405 linux kernel (EABI))


Alexander Sinsel wrote:
/home/asinsel/kegel/crosstool-0.24/result/powerpc-405-linux-gnu/gcc-3.2.3-glibc-2.2.5/bin/powerpc-405-linux-gnu-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/home/asinsel/diplomarbeit/sources/kernels/linux/include -c -o head_4xx.o head_4xx.S
head_4xx.S: Assembler messages:
head_4xx.S:111: Error: Unrecognized opcode: `tlbwe'

Try


PATH=/home/asinsel/kegel/crosstool-0.24/result/powerpc-405-linux-gnu/gcc-3.2.3-glibc-2.2.5/powerpc-405-linux-gnu/bin:$PATH

before running that command. Maybe it's accidentally running the host's 'as'.

Or maybe you need to add
   CFLAGS_KERNEL=-mcpu=403 -D__PPC405__
in the kernel's Makefile.  (Probaly do anyway to disable floating point.)

By the way, you may need
    CONFIG_IBM405_ERR77=y
in .config to work around some nasty, hard-to-repeat atomic
operation failures.  Similar fixes need to be enabled in
any userspace program with atomic operations (like gcc and glibc).
These problems won't prevent a boot, but they will cause a malfunction
about once a day.

One final note: I haven't actually booted a kernel compiled with this
new compiler yet, but I did use it to compile a lot of small programs
that worked well.
- Dan

--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]