grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cbfsdisk not found


From: Gailu Singh
Subject: Re: cbfsdisk not found
Date: Sat, 25 Mar 2017 00:08:36 +0530

This is how it is calculated in coreboot

https://review.coreboot.org:4430/cgit/coreboot.git/tree/src/lib/cbfs.c?id=refs/heads/master#n268

___FMAP__COREBOOT_BASE and ___FMAP__COREBOOT_SIZE are based on values available in fmd files (depending on 8MB/16Mb coreboot).

#grep -r FMAP__COREBOOT_BASE src/lib/cbfs.c: size_t fmap_top = ___FMAP__COREBOOT_BASE + ___FMAP__COREBOOT_SIZE; build/fmap_config.h:#define ___FMAP__COREBOOT_BASE 0x300800 

#grep -r FMAP__COREBOOT_SIZE
src/soc/intel/baytrail/romstage/cache_as_ram.inc:#define CODE_CACHE_SIZE  _ALIGN_UP_POW2(___FMAP__COREBOOT_SIZE)
src/lib/cbfs.c: size_t fmap_top = ___FMAP__COREBOOT_BASE + ___FMAP__COREBOOT_SIZE;
build/fmap_config.h:#define ___FMAP__COREBOOT_SIZE 0xc1d800

#cat src/mainboard/intel/leafhill/leafhill.16384.fmd 
FLASH 16M {
address@hidden 0x1000
address@hidden 0x2ff000
address@hidden 0x800
COREBOOT(CBFS)@0x300800 0xc1d800
address@hidden 0x21000 {
address@hidden 0x10000
address@hidden 0x10000
address@hidden 0x1000
}
address@hidden 0x40000
address@hidden 0x7f000
address@hidden 0x1000
}


 





On Fri, Mar 24, 2017 at 11:12 PM, Andrei Borzenkov <address@hidden> wrote:
24.03.2017 20:32, Gailu Singh пишет:
>>> Could you please reference the solution for future users with the same
> problem?
> Sure. Infect I should have detailed it without asking. Sorry for that.
>
> Solution can be referenced to following thread in coreboot mailing list
> that provide details of memory mapping on the board answered by Adrian
>
> https://www.coreboot.org/pipermail/coreboot/2017-March/083681.html
>

Enters FMAP ... I like the

"However, you'd have to know where the FMAP is in order to parse things"

And how should we know this location?

_______________________________________________
Grub-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/grub-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]