grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1) too big kernel on 1.92. 2) unrecognized: %lex-param.


From: Jeff Chua
Subject: Re: 1) too big kernel on 1.92. 2) unrecognized: %lex-param.
Date: Thu, 20 Apr 2006 08:50:07 +0800 (SGT)


On Wed, 19 Apr 2006, Yoshinori K. Okuji wrote:
Can you debug it yourself a bit? I cannot afford buying so much memory. ;)

error: tog big kernel (0x187a58 > 0xa7825100)

Wait a second, it's obviously wrong, huh?

Thanks for pointing this out. 0xa7825100 has a leading "1", so needs to cast as unsigned.


Thank you,
Jeff.


Here's a patch to fix the problem ...

--- ./loader/i386/pc/linux.c.org        2006-04-20 08:39:51 +0800
+++ ./loader/i386/pc/linux.c    2006-04-20 08:33:39 +0800
@@ -81,9 +81,10 @@
   if (! file)
     goto fail;

-  if (grub_file_size (file) > (grub_ssize_t) grub_os_area_size)
+  if ((unsigned) grub_file_size (file) > (unsigned) (grub_ssize_t) 
grub_os_area_size)
     {
-      grub_error (GRUB_ERR_OUT_OF_RANGE, "too big kernel");
+      grub_error (GRUB_ERR_OUT_OF_RANGE, "too big kernel (0x%x > 0x%x)",
+       grub_file_size (file), (grub_ssize_t) grub_os_area_size);
       goto fail;
     }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]