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;
}
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel