diff --exclude .depend --exclude .hdepend -ur kernel-8.0/arch/mips/Makefile kernel-8.0-w1/arch/mips/Makefile
--- kernel-8.0/arch/mips/Makefile	Thu Nov 15 21:51:58 2001
+++ kernel-8.0-w1/arch/mips/Makefile	Tue Sep 17 16:13:21 2002
@@ -18,7 +18,7 @@
 #
 ifdef CONFIG_CPU_LITTLE_ENDIAN
 tool-prefix	= mipsel-linux-
-output-format	= elf32-littlemips
+output-format	= elf32-tradlittlemips
 else
 tool-prefix	= mips-linux-
 output-format	= elf32-bigmips
@@ -80,7 +80,7 @@
 GCCFLAGS	+= -mcpu=r8000 -mips2 -Wa,--trap
 endif
 ifdef CONFIG_CPU_VR41XX
-CFLAGS		+= -mcpu=r4600 -mips2 -Wa,-m4100,--trap
+CFLAGS		+= -mcpu=r4100 -mips2 -Wa,-m4100,--trap
 endif
 ifdef CONFIG_CPU_R39XX
 # if your toolchain supports this, change to
diff --exclude .depend --exclude .hdepend -ur kernel-8.0/arch/mips/kernel/head.S kernel-8.0-w1/arch/mips/kernel/head.S
--- kernel-8.0/arch/mips/kernel/head.S	Thu Nov 15 21:52:00 2001
+++ kernel-8.0-w1/arch/mips/kernel/head.S	Tue Sep 17 18:22:15 2002
@@ -347,6 +347,7 @@
 	/* Famous last words: unreached */
 	mfc0	a1,CP0_ERROREPC
 	PRINT("Cache error exception: c0_errorepc == %08x\n")
+	nop
 1:
 	j	1b
 	 nop
diff --exclude .depend --exclude .hdepend -ur kernel-8.0/arch/mips/vr41xx/prom.c kernel-8.0-w1/arch/mips/vr41xx/prom.c
--- kernel-8.0/arch/mips/vr41xx/prom.c	Thu Nov 15 21:52:01 2001
+++ kernel-8.0-w1/arch/mips/vr41xx/prom.c	Sun Sep 15 15:56:05 2002
@@ -38,7 +38,12 @@
 	ramsize = ((unsigned long)&_end + 0x000fffff) & 0x1ff00000;
 
 	// probe sequential 1MB areas, looking for a lack of RAM
-	while (ramsize < 0x04000000) {
+#ifdef CONFIG_AGENDA_VR3 /* not right; it has to be VR4181 CPU test */
+	while (ramsize < 0x01000000)
+#else
+	while (ramsize < 0x04000000)
+#endif
+	{
 		// save val at a spot  and replace it with a pattern
 		p1 = (unsigned int *)(KSEG1 + ramsize + 0x000ffff0);
 		d1 = *p1;
diff --exclude .depend --exclude .hdepend -ur kernel-8.0/arch/mips/vr41xx/rom.lds kernel-8.0-w1/arch/mips/vr41xx/rom.lds
--- kernel-8.0/arch/mips/vr41xx/rom.lds	Thu Nov 15 21:52:00 2001
+++ kernel-8.0-w1/arch/mips/vr41xx/rom.lds	Sun Sep 15 16:48:48 2002
@@ -3,7 +3,7 @@
  * No warranty.  Not even a little one.
  */
 
-OUTPUT_FORMAT("elf32-littlemips")
+OUTPUT_FORMAT("elf32-tradlittlemips")
 OUTPUT_ARCH(mips)
 ENTRY(kernel_entry)
 SECTIONS
