Re: [coreboot] CONFIG_CBFS_SIZE vs CONFIG_ROM_SIZE

2017-05-24 Thread Nico Huber
On 23.05.2017 18:49, Gailu Singh wrote:
> Hi Experts,
> 
> If we use CBFS_SIZE to be same as ROM_SIZE on our apollolake board grub
> fails to load grub.cfg located in CBFS. Based on experiments we found that
> grub.cfg is loaded correctly if we keep minimum difference of 64KB between
> CBFS_SIZE and ROM_SIZE if we reduce it to less that 64KB problem happens.
> 
> Can someone please explain the behavior and if it is expected behavior or a
> bug?

Setting both the same seems very wrong to me for Apollo Lake. ROM_SIZE
is supposed to be the full size of the flash chip. That chip is shared
by SoC configuration, blobs and the BIOS/coreboot. coreboot will reside
in the "BIOS" region of the chip, CBFS_SIZE should be at most the size
of that region.

Hope that helps,
Nico


-- 
coreboot mailing list: coreboot@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot


Re: [coreboot] CONFIG_CBFS_SIZE vs CONFIG_ROM_SIZE

2017-05-23 Thread Patrick Georgi via coreboot
We always add an FMAP now (think of it of a vendor neutral flash partition
table), which resides outside CBFS.

2017-05-23 9:49 GMT-07:00 Gailu Singh :

> Hi Experts,
>
> If we use CBFS_SIZE to be same as ROM_SIZE on our apollolake board grub
> fails to load grub.cfg located in CBFS. Based on experiments we found that
> grub.cfg is loaded correctly if we keep minimum difference of 64KB between
> CBFS_SIZE and ROM_SIZE if we reduce it to less that 64KB problem happens.
>
> Can someone please explain the behavior and if it is expected behavior or
> a bug?
>
> --
> coreboot mailing list: coreboot@coreboot.org
> https://mail.coreboot.org/mailman/listinfo/coreboot
>



-- 
Google Germany GmbH, ABC-Str. 19, 20354 Hamburg
Registergericht und -nummer: Hamburg, HRB 86891, Sitz der Gesellschaft:
Hamburg
Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle
-- 
coreboot mailing list: coreboot@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot