Re: NFS not working...


Subject: Re: NFS not working...
From: Avinash Gupta (agupta@mediaone.net)
Date: Thu Jan 03 2002 - 16:12:07 MST


If you REALLY want to compile kernel 2.4.x with gcc 3.0.3 try Franz Sirl's
patch at:

http://source.mvista.com/pipermail/linuxppc-commit/2001-September/000729.html

Basically you need to edit two files:

        /usr/src/linux/arch/ppc/kernel/process.c

Between lines 229 and 230
        (i.e. between the lines that read:

        #endif /* CONFIG_ALTIVEC */
        #endif /* CONFIG_SMP */

        )

add the following lines:

                current_set[smp_processor_id()] = new;
        #else
               current_set[0] = new;

Delete line 232 that reads:
        current_set[smp_processor_id()] = new;

In the file /usr/src/linux/include/asm-ppc/prom.h

Delete Line 109 that reads:

        #define RELOC(x) (*PTRRELOC(&(x)))

and replace it with:

        #define RELOC(x) (*({ typeof(x) * __ptr = PTRRELOC(&(x)); __asm__ (""
: "=r" (__ptr) : "0" (__ptr)); __ptr;}))

Now your kernel should compile fine with gcc 3.0.3 AND boot.

-- Avinash Gupta (agupta@mediaone.net)

On Thursday 03 January 2002 03:34, you wrote:
> > > On Wed Jan 02 2002, Iain Stevenson wrote:
> > >> Well, the Benh kernel builds and seems to work for longer than 2.4.17
> > >> but the ipddp support appears broken so its not much use for me. I
> > >> think I'll sit out the kernel upgrade merry-go-round for a few
> > >> versions ;-)
>
> Just in case you haven't checked this... what compiler are you using to
> build the kernel?
> When I tried building 2.4.17 with gcc 3.0.3, the kernel wouldn't even
> boot and dumped me into Open Firmware instead. 2.4.17 built with gcc
> 2.95.3 does at least boot properly for me, though I haven't used it past
> the booting stage. And I've been running 2.4.8 built with gcc 2.95.3
> with no problems in the past few months.



This archive was generated by hypermail 2a24 : Thu Jan 03 2002 - 16:24:03 MST