Hi,
I am trying to build a Coreboot for a Flash Size as 64 MB, with 32MB reserved for a BIOS region.
I have modified the descriptor for a bios region: 02000000:03ffffff bios
The fmap used for the given setting is as follows:
FLASH@4227858432 0x4000000 { BIOS@33554432 0x2000000 { FMAP@0 0x200
RW_MRC_CACHE@65536 0x10000 COREBOOT(CBFS)@131072 33423360 } }
Flash start -> 0xFC000000 (with-in 4GB space @4227858432) Flash Size -> 0x4000000 BIOS Start offset w.r.t Flash start -> 0x2000000 (@33554432) Bios region size -> 0x2000000 CBFS Size -> 0x1FE0000
Can any one please let me know what are the other changes required to incorporate the Coreboot image as per the given layout?
Thanks, Nitin.
Hi, Do you already have a 64MB BIOS chip? If not, you first need to check if your CPU supports that size (that's pretty big, I'd be surprised). If it does, are you planning to swap the chip?
Assuming the answer to the above is "yes", you'll also need to change the Intel Firmware Descriptor to recognize a 64MB chip so you can flash it.
I did this to upgrade my 8MB chip to a 16MB chip and wrote up a guide / experience report here: https://rsend.wordpress.com/x210-coreboot/increasing-rom-chip-size-on-an-x21...
Good luck, Rafael
On Thu, Jun 11, 2020 at 9:44 AM nitin.ramesh.singh@gmail.com wrote:
Hi,
I am trying to build a Coreboot for a Flash Size as 64 MB, with 32MB reserved for a BIOS region.
I have modified the descriptor for a bios region: 02000000:03ffffff bios
The fmap used for the given setting is as follows:
FLASH@4227858432 0x4000000 { BIOS@33554432 0x2000000 { FMAP@0 0x200
RW_MRC_CACHE@65536 0x10000 COREBOOT(CBFS)@131072 33423360 }
}
Flash start -> 0xFC000000 (with-in 4GB space @4227858432) Flash Size -> 0x4000000 BIOS Start offset w.r.t Flash start -> 0x2000000 (@33554432) Bios region size -> 0x2000000 CBFS Size -> 0x1FE0000
Can any one please let me know what are the other changes required to incorporate the Coreboot image as per the given layout?
Thanks, Nitin. _______________________________________________ coreboot mailing list -- coreboot@coreboot.org To unsubscribe send an email to coreboot-leave@coreboot.org
Hi Nitin,
On 11.06.20 18:44, nitin.ramesh.singh@gmail.com wrote:
Flash start -> 0xFC000000 (with-in 4GB space @4227858432)
this is misleading. Setting it in the FMAP makes sense to make the calculations work, but the flash is not mapped there.
Because of other fixed resources below 0xff000000, the architectural limit of memory-mapped flash space is 16MiB. Some chipsets even limit the mapping to 8MiB. Without making changes to coreboot code (e.g. switch from memory mapped flash access to using the SPI controller), all coreboot regions have to fall into the memory mapped space.
Can any one please let me know what are the other changes required to incorporate the Coreboot image as per the given layout?
Generally, such a big CBFS seems odd. I think changes are better made outside of coreboot, e.g. the payload. What is your exact use case?
Nico
Hi Nico,
Nico Huber wrote:
Hi Nitin,
On 11.06.20 18:44, nitin.ramesh.singh(a)gmail.com wrote:
Flash start -> 0xFC000000 (with-in 4GB space @4227858432)
this is misleading. Setting it in the FMAP makes sense to make the calculations work, but the flash is not mapped there.
Because of other fixed resources below 0xff000000, the architectural limit of memory-mapped flash space is 16MiB. Some chipsets even limit the mapping to 8MiB. Without making changes to coreboot code (e.g. switch from memory mapped flash access to using the SPI controller), all coreboot regions have to fall into the memory mapped space.
I am aware about the given fact... just wanted to describe the way fmap is being arranged. https://www.coreboot.org/Developer_Manual/Memory_map
Can any one please let me know what are the other changes required to incorporate the Coreboot image as per the given layout?
Generally, such a big CBFS seems odd. I think changes are better made outside of coreboot, e.g. the payload. What is your exact use case?
Nico
I am using the direct-grub payload (which incorporates cbfs with a limitation of maximum 16MB memory mapped flash space), plus I want to package few other binaries.
Thanks, Nitin