Displaying 1 result from an estimated 1 matches for "grub2_core_img".
2010 Dec 21
2
[PATCH] chain.c32: support chainloading GRUB2 core.img
...stage2;
- if (data[ndata].size < sizeof(struct grub_stage2_patch_area)) {
- error
- ("The file specified by grub=<loader> is to small to be stage2 of
GRUB Legacy.\n");
- goto bail;
- }
+ /* Layout of GRUB2 core.img file (from byte 0x0 to 0x25c) */
+ struct grub2_core_img_patch_area {
+ /* 0x0 - 0x207 */
+ char unknown[0x208];
+ /* 0x208 - 0x20b: GRUB2 total module size */
+ uint32_t grub2_total_module_size;
+ /* 0x20c - 0x20f: GRUB2 kernel image size */
+ uint32_t grub2_kernel_image_size;
+ /* 0x210 - 0x213: GRUB2 compressed size */
+ uint32_t grub2_compres...