Re: Grub fails to detect CBFS when CONFIG_ROM_SIZE and CONFIG_CBFS_SIZE are same in coreboot

2017-06-14 Thread Gailu Singh
Hi Again, After adding debug prints in grub_cbfs_mount function in grub-core/fs/cbfs.c we found that mounting fails due to following check. ptr = grub_cpu_to_le32 (ptr); header_off = (grub_disk_get_size (disk) << GRUB_DISK_SECTOR_BITS) + (grub_int32_t) ptr; if (grub_disk_read (disk, 0,

Grub fails to detect CBFS when CONFIG_ROM_SIZE and CONFIG_CBFS_SIZE are same in coreboot

2017-06-08 Thread Gailu Singh
Hi Experts, When I try to configure CBFS_SIZE and ROM_SIZE to be same in coreboot, grub fails to detect CBFS file system. If I keep min 64KB difference between ROM_SIZE and CBFS_SIZE then it works fine. Can someone please explain why can't I have ROM_SIZE and CBFS_SIZE to be same. Below are the