Subject: Re: trouble compiling arm32 kernels
To: Edwin Foo <efoo@crl.dec.com>
From: Mark Brinicombe <mark@causality.com>
List: current-users
Date: 04/11/2000 01:52:01
On Mon, 10 Apr 2000, Edwin Foo wrote:

> Hello all,
> 
> I've been trying to get my CATS board to boot a -current kernel without
> success for a while. Originally, it was running 1.4.2, and then I downloaded
> a -current source tarball into /usr/src. I then built a -current kernel with
> my 1.4.2 toolchain, rebooted, and ran a make build.
> 
> The system boots fine with my -current built under 1.4.2 toolchain, but all
> subsequent attempts to build a working kernel with a -current toolchain have
> failed. Essentially, the boot stops and complains that the kernel format is
> wrong (not ZMAGIC). I've tried using -z flags to ld to produce a.out
> kernels, and inserted a OBJECT_FMT=a.out line into /etc/mk.conf, then
> rebuilt all of /usr/src/gnu and re-installed in an effort to produce a
> toolchain that will create working kernels, all without success.
> 
> Am I barking up the wrong tree in thinking that issue is elf vs. a.out? Any
> assistance would be greatly appreciated.
Hi,
  This should not be an a.out vs elf problem. The toolchain should still
produce a.out and still generates the correct magic numbers etc.

However when linking a kernel with -current the linker is not using the
addresses specified with the -Ttext option to the linker which is problem
the source of the duff kernels.
I'm just about to take a look at this.

Cheers,
				Mark