kernel 2.6.3 on JS20

Jake Moilanen moilanen at austin.ibm.com
Sat Mar 6 02:09:38 EST 2004


On Fri, 2004-03-05 at 07:30, Gazelle Jean-Laurent wrote:
> R> What was the NVRAM partition read issue??
> Attached the 2.6.3 kernel boot log on JS20 :
> NVRAM failure, and the boot stops after 'ikconfig' output.

I'm not sure why you are stopping after ikconfig.  But for the nvram
partition read issue make sure you have the patch from Olaf to fix this
problem (posted below).

> I have a problem with this fix. I don't have the body of
> 'irq_offset_up' function, you've used in your patch.

What do you mean by this?

Thanks,
Jake



--- /tmp/linuxppc64-2.5/arch/ppc64/kernel/pSeries_nvram.c
2004-02-12 03:47:53.000000000 +0000
+++ ./arch/ppc64/kernel/pSeries_nvram.c 2004-02-16 20:45:12.000000000
+0000
@@ -29,7 +29,7 @@
 #include <asm/machdep.h>

 static unsigned int nvram_size;
-static unsigned int nvram_fetch, nvram_store;
+static int nvram_fetch, nvram_store;
 static char nvram_buf[NVRW_CNT];       /* assume this is in the first
4GB */
 static spinlock_t nvram_lock = SPIN_LOCK_UNLOCKED;

@@ -41,7 +41,7 @@ static ssize_t pSeries_nvram_read(char *
        unsigned long flags;
        char *p = buf;

-       if (nvram_size == 0 || nvram_fetch)
+       if (nvram_size == 0 || nvram_fetch == RTAS_UNKNOWN_SERVICE)
                return -ENODEV;

        if (*index >= nvram_size)
@@ -83,7 +83,7 @@ static ssize_t pSeries_nvram_write(char
        unsigned long flags;
        const char *p = buf;

-       if (nvram_size == 0 || nvram_store)
+       if (nvram_size == 0 || nvram_store == RTAS_UNKNOWN_SERVICE)
                return -ENODEV;

        if (*index >= nvram_size)


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





More information about the Linuxppc64-dev mailing list