Re: Kernel 2.1.125 on PowerPC 601.

Olivier Aubert (Olivier.Aubert@enst-bretagne.fr)
15 Feb 1999 15:13:33 +0100


"Andres A. Buss" <abuss@rex.ujavcali.edu.co> writes:

> I have a IBM PowerPC 601, and I'm worried about if it
> can run kernels 2.1.x, I already have compiled one...
> and it didn't boot up. Actually none of the images that I could
> get passed the decompress sequence. They just frezzes up.

I had the same symptoms (here on a Motorola PReP board (604e/133MHz),
booted via network and NFS-rooted). The following fix (in fact, only
the last part is important, the previous ones are cosmetic fixes)
solved my problem. Maybe it will work for you too.

Olivier

-- misc.c.ORI Sun Nov 29 21:05:26 1998
+++ misc.c Tue Dec 1 19:32:58 1998
@@ -309,7 +309,9 @@
s.zfree = zfree;
r = inflateInit2(&s, -MAX_WBITS);
if (r != Z_OK) {
- puts("inflateInit2 returned %d\n");
+ puts("inflateInit2 returned ");
+ puthex ((unsigned long)r);
+ puts("\n");
exit();
}
s.next_in = src + i;
@@ -318,7 +320,9 @@
s.avail_out = dstlen;
r = inflate(&s, Z_FINISH);
if (r != Z_OK && r != Z_STREAM_END) {
- puts("inflate returned %d\n");
+ puts("inflate returned ");
+ puthex ((unsigned long)r);
+ puts ("\n");
exit();
}
*lenp = s.next_out - (unsigned char *) dst;
@@ -448,10 +452,10 @@
* don't relocate the zimage if it was loaded above 16M since
* things get weird if we try to relocate -- Cort
* We don't relocate zimage on a base MBX board because of
- * insufficient memory. In this case we don't have initrd either,
- * so use that as an indicator. -- Dan
+ * insufficient memory.
*/
- if (( (unsigned long)zimage_start <= 0x01000000 ) && initrd_start)
+#ifndef CONFIG_MBX
+ if ( (unsigned long)zimage_start <= 0x01000000 )
{
memcpy ((void *)PAGE_ALIGN(-PAGE_SIZE+(unsigned long)end_avail-z
image_size),
(void *)zimage_start, zimage_size );
@@ -462,6 +466,7 @@
puthex((unsigned long)zimage_size+(unsigned long)zimage_start);
puts("\n");
}
+#endif

/* relocate initrd */
if ( initrd_start )

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/