linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Linux 2.6.2 & MPC8260
@ 2004-02-11 14:16 stefano.gaiotto
  2004-02-12  0:15 ` [PATCH] Fix MPC82xx thinko (Was: Re: Linux 2.6.2 & MPC8260) Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: stefano.gaiotto @ 2004-02-11 14:16 UTC (permalink / raw)
  To: linuxppc-embedded


Dear colleagues,

I'm trying to build Linux kernel 2.6.2 for some evaluation board with Motorola
'8260, e.g. est8260.
I'm using the following environment:

- Linux kernel 2.6.2
- gcc 3.3.2
- glibc 2.3.2
- binutils 2.14.90.0.7

After having expanded the linux kernel archive, I have only modified the
makefile as follow:

- ARCH := ppc
- CROSS_COMPILE = powerpc-linux-

Then, using "make menuconfig", I have loaded from /arch/ppc/configs the
configuration file ?est8260_defconfig?
After that, I have started the compilation with the command "make zImage"
hoping to see the compiler to reach the end of the makefile...

But after a few minutes the compiler stopps reporting the error:

  AS      arch/ppc/kernel/head.o
arch/ppc/kernel/head.S: Assembler messages:
arch/ppc/kernel/head.S:1660: Error: unsupported relocation against MSR_
make[1]: *** [arch/ppc/kernel/head.o] Error 1
make: *** [arch/ppc/kernel] Error 2


Thanks in advance for your advice.


With best regards,

	Stefano


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

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

* [PATCH] Fix MPC82xx thinko (Was: Re: Linux 2.6.2 & MPC8260)
  2004-02-11 14:16 Linux 2.6.2 & MPC8260 stefano.gaiotto
@ 2004-02-12  0:15 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2004-02-12  0:15 UTC (permalink / raw)
  To: stefano.gaiotto, Andrew Morton; +Cc: linuxppc-embedded


On Wed, Feb 11, 2004 at 03:16:12PM +0100, stefano.gaiotto@tin.it wrote:

> I'm trying to build Linux kernel 2.6.2 for some evaluation board with Motorola
> '8260, e.g. est8260.
> I'm using the following environment:
[snip]
> But after a few minutes the compiler stopps reporting the error:
>
>   AS      arch/ppc/kernel/head.o
> arch/ppc/kernel/head.S: Assembler messages:
> arch/ppc/kernel/head.S:1660: Error: unsupported relocation against MSR_
> make[1]: *** [arch/ppc/kernel/head.o] Error 1
> make: *** [arch/ppc/kernel] Error 2

Andrew, can you please apply the following patch?  Thanks.

--- 1.40/arch/ppc/kernel/head.S	Wed Feb  4 20:44:27 2004
+++ edited/arch/ppc/kernel/head.S	Wed Feb 11 17:14:53 2004
@@ -1657,7 +1657,7 @@
 	andc	r11, r11, r10
 	mtspr	HID0, r11
 	isync
-	li	r5, MSR_
+	li	r5, MSR_ME|MSR_RI
 	lis	r6,2f@h
 	addis	r6,r6,-KERNELBASE@h
 	ori	r6,r6,2f@l

--
Tom Rini
http://gate.crashing.org/~trini/

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

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

end of thread, other threads:[~2004-02-12  0:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-11 14:16 Linux 2.6.2 & MPC8260 stefano.gaiotto
2004-02-12  0:15 ` [PATCH] Fix MPC82xx thinko (Was: Re: Linux 2.6.2 & MPC8260) Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).