Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Branch relocation fixing at Kernel-compiling with Debian-toolchain
@ 2003-05-14 10:31 Achim Hensel
  2003-05-14 10:40 ` Guido Guenther
  2003-05-14 11:02 ` r4k Indigo 1 (was Re: Branch relocation fixing at Kernel-compiling with Debian-toolchain) Robin Humble
  0 siblings, 2 replies; 7+ messages in thread
From: Achim Hensel @ 2003-05-14 10:31 UTC (permalink / raw)
  To: linux-mips

Hello, folks 

[I try to build Linux for a R4k Indigo1. I'm using as and ld of the
debian-toolchain with mips-linux-as/mips-linux-ld 2.13.90.0.18
20030121. At the moment, the kernel just compiles, but is not bootable
due to further adaption.]

As I'm not much into MIPS or gas assembler (most experience with 6502),
I would like to have some hints how to work around some kernel-compiling
errors:

When compiling the linux-mips.org kernel from the CVS-MAIN branch,
compiling stopped, as expected at the two assembler files 
entry.S and scall_o32.S in linux/arch/mips/kernel/ (both recent
versions) with a BFD-RELOC_16_PCREL_S2. 

The fix of combining global/local label, mentioned in 
http://sources.redhat.com/ml/binutils/2003-02/msg00205.htm
and other places, got me around the problem. Not every branch needed the
fix. Just one error remains:

In entry.S rev 1.49, around line 63, the branch target label
resume_kernel is defined by either a line statement
(ENTRY(resume_kernel), l.79) or a #definition from an other label (l.
52), depending on some #Config-options.

As work around I hardwired the branch label to one of them.

Any hints to adapt the fix to this problem? 
Diff/Patch for the rest will be posted if requested.

[Now working on with ELF2ECOFF converting]

CU,
	Achim

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

* Re: Branch relocation fixing at Kernel-compiling with Debian-toolchain
  2003-05-14 10:31 Branch relocation fixing at Kernel-compiling with Debian-toolchain Achim Hensel
@ 2003-05-14 10:40 ` Guido Guenther
  2003-05-14 11:02 ` r4k Indigo 1 (was Re: Branch relocation fixing at Kernel-compiling with Debian-toolchain) Robin Humble
  1 sibling, 0 replies; 7+ messages in thread
From: Guido Guenther @ 2003-05-14 10:40 UTC (permalink / raw)
  To: linux-mips

On Wed, May 14, 2003 at 12:31:44PM +0200, Achim Hensel wrote:
> [I try to build Linux for a R4k Indigo1. I'm using as and ld of the
> debian-toolchain with mips-linux-as/mips-linux-ld 2.13.90.0.18
> 20030121. At the moment, the kernel just compiles, but is not bootable
> due to further adaption.]
The simplest fix probably is to use 2.14.90.0.1. I have debs for mips
here if this is of any use.
 -- Guido

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

* r4k Indigo 1 (was Re: Branch relocation fixing at Kernel-compiling with Debian-toolchain)
  2003-05-14 10:31 Branch relocation fixing at Kernel-compiling with Debian-toolchain Achim Hensel
  2003-05-14 10:40 ` Guido Guenther
@ 2003-05-14 11:02 ` Robin Humble
  2003-05-14 18:00   ` Ralf Baechle
  1 sibling, 1 reply; 7+ messages in thread
From: Robin Humble @ 2003-05-14 11:02 UTC (permalink / raw)
  To: Achim Hensel; +Cc: linux-mips

On Wed, May 14, 2003 at 12:31:44PM +0200, Achim Hensel wrote:
>[I try to build Linux for a R4k Indigo1. I'm using as and ld of the

Please let me know how you go with this... I'd like to try it too.
Are you compiling a generic r4k kernel? Is there much chipset
documentation available?

cheers,
robin

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

* Re: r4k Indigo 1 (was Re: Branch relocation fixing at Kernel-compiling with Debian-toolchain)
  2003-05-14 11:02 ` r4k Indigo 1 (was Re: Branch relocation fixing at Kernel-compiling with Debian-toolchain) Robin Humble
@ 2003-05-14 18:00   ` Ralf Baechle
  2003-05-14 18:32     ` Guido Guenther
  0 siblings, 1 reply; 7+ messages in thread
From: Ralf Baechle @ 2003-05-14 18:00 UTC (permalink / raw)
  To: Robin Humble; +Cc: Achim Hensel, linux-mips

On Wed, May 14, 2003 at 07:02:27AM -0400, Robin Humble wrote:

> On Wed, May 14, 2003 at 12:31:44PM +0200, Achim Hensel wrote:
> >[I try to build Linux for a R4k Indigo1. I'm using as and ld of the
> 
> Please let me know how you go with this... I'd like to try it too.
> Are you compiling a generic r4k kernel? Is there much chipset
> documentation available?

Little; however it's know that the machine is relativly similar to the
Indy for example so it seems doable for somebody with enough time.

  Ralf

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

* Re: r4k Indigo 1 (was Re: Branch relocation fixing at Kernel-compiling with Debian-toolchain)
  2003-05-14 18:00   ` Ralf Baechle
@ 2003-05-14 18:32     ` Guido Guenther
  2003-05-14 18:42       ` Guido Guenther
  0 siblings, 1 reply; 7+ messages in thread
From: Guido Guenther @ 2003-05-14 18:32 UTC (permalink / raw)
  To: linux-mips

On Wed, May 14, 2003 at 08:00:34PM +0200, Ralf Baechle wrote:
> Little; however it's know that the machine is relativly similar to the
> Indy for example so it seems doable for somebody with enough time.
Maybe I'm stating the obvious but good look into Irix's /usr/include
helps a lot. It seems to have almost everything in it to get the Indigo
going (without serial consoel of course).
 -- Guido

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

* Re: r4k Indigo 1 (was Re: Branch relocation fixing at Kernel-compiling with Debian-toolchain)
  2003-05-14 18:32     ` Guido Guenther
@ 2003-05-14 18:42       ` Guido Guenther
  2003-05-14 19:30         ` Ralf Baechle
  0 siblings, 1 reply; 7+ messages in thread
From: Guido Guenther @ 2003-05-14 18:42 UTC (permalink / raw)
  To: linux-mips

On Wed, May 14, 2003 at 08:32:18PM +0200, Guido Guenther wrote:
> On Wed, May 14, 2003 at 08:00:34PM +0200, Ralf Baechle wrote:
> > Little; however it's know that the machine is relativly similar to the
> > Indy for example so it seems doable for somebody with enough time.
> Maybe I'm stating the obvious but good look into Irix's /usr/include
> helps a lot. It seems to have almost everything in it to get the Indigo
> going (without serial consoel of course).
_without_ fb and _with_ serial console only is what I wanted to say.
 -- Guido

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

* Re: r4k Indigo 1 (was Re: Branch relocation fixing at Kernel-compiling with Debian-toolchain)
  2003-05-14 18:42       ` Guido Guenther
@ 2003-05-14 19:30         ` Ralf Baechle
  0 siblings, 0 replies; 7+ messages in thread
From: Ralf Baechle @ 2003-05-14 19:30 UTC (permalink / raw)
  To: Guido Guenther, linux-mips

On Wed, May 14, 2003 at 08:42:24PM +0200, Guido Guenther wrote:

> > > Little; however it's know that the machine is relativly similar to the
> > > Indy for example so it seems doable for somebody with enough time.
> > Maybe I'm stating the obvious but good look into Irix's /usr/include
> > helps a lot. It seems to have almost everything in it to get the Indigo
> > going (without serial consoel of course).
> _without_ fb and _with_ serial console only is what I wanted to say.
>  -- Guido

Thta still leaves alot of details open - but yes, it's certainly a step
into the right direction.  And there's always the hope once there is a
start somebody at SGI will throw real docs into our direction ...

  Ralf

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

end of thread, other threads:[~2003-05-14 19:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-14 10:31 Branch relocation fixing at Kernel-compiling with Debian-toolchain Achim Hensel
2003-05-14 10:40 ` Guido Guenther
2003-05-14 11:02 ` r4k Indigo 1 (was Re: Branch relocation fixing at Kernel-compiling with Debian-toolchain) Robin Humble
2003-05-14 18:00   ` Ralf Baechle
2003-05-14 18:32     ` Guido Guenther
2003-05-14 18:42       ` Guido Guenther
2003-05-14 19:30         ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox