[rhype] error booting 2.6.11

Muli Ben-Yehuda mulix at mulix.org
Sat Mar 19 04:53:46 EST 2005


On Thu, Mar 17, 2005 at 05:04:35PM -0500, Jimi Xenidis wrote:
> >>>>> "SS" == Sushant Sharma <sushant at cs.unm.edu> writes:
> 
>  SS> was the latest update to CVS aimed to help kernel 2.6.11 boot on x-86?
> 
> It was the first part, I still have no time to bring back my x86
> testing environment, so I'm glad you got that far :)

I can't test it right now, but lboot is CVS is missing the hack to
limit initial memory to 64MB. Sushant, you might want to try this
patch:

Index: lboot/x86/lboot.c
===================================================================
RCS file: /u/kitchawa/cvsroot/rhype/lboot/x86/lboot.c,v
retrieving revision 1.1
diff -u -r1.1 lboot.c
--- lboot/x86/lboot.c	16 Mar 2005 16:51:26 -0000	1.1
+++ lboot/x86/lboot.c	18 Mar 2005 15:12:12 -0000
@@ -39,6 +39,8 @@
 
 #define	LOADADDR	0x100000
 
+#define MAX_CONTROLLER_MEMORY 64
+
 /*
  * Linux initially maps 4MB and assumes everything it needs
  * is contained in that. The bootparams are stored in the
@@ -126,6 +128,11 @@
 		}
 	}
 	hprintf(" = %ld MB\n", memsize >> 20);
+	if ((memsize >> 20) > MAX_CONTROLLER_MEMORY) { 
+		memsize = MAX_CONTROLLER_MEMORY * 1024 * 1024;
+		printf("Limiting memory size to %dMB.\n", 
+		MAX_CONTROLLER_MEMORY);
+	}
 }
 
 /*


-- 
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/rhype/attachments/20050318/a7ef0254/attachment.pgp>


More information about the rhype mailing list