bigger than the actual flash (512K) in Loongson machines. 512K is also
the biggest chip supported by them.
+2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * util/grub-mkimage.c (generate_image): Refuse to create the images
+ bigger than the actual flash (512K) in Loongson machines. 512K is also
+ the biggest chip supported by them.
+
2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
grub_util_warn ("fwstart.img doesn't match the known good version. "
"Proceed at your own risk");
- rom_size = ALIGN_UP (core_size + boot_size, 512 * 1024);
+ if (core_size + boot_size > 512 * 1024)
+ grub_util_error ("firmware image is too big");
+ rom_size = 512 * 1024;
rom_img = xmalloc (rom_size);
memset (rom_img, 0, rom_size);