hi , I am trying to stitch the fspm.bin binary in the coreboot file by using the below steps.
*sudo cbfstool "${IMAGE}" remove -r FW_MAIN_A -n fspm.binsudo cbfstool "${IMAGE}" remove -r FW_MAIN_B -n fspm.binsudo cbfstool "${IMAGE}" remove -n fspm.binsudo cbfstool "${IMAGE}" expand -r FW_MAIN_Asudo cbfstool "${IMAGE}" expand -r FW_MAIN_Bsudo cbfstool "${IMAGE}" add -t fsp -r FW_MAIN_A --xip -n fspm.bin -f "${FSPM}"sudo cbfstool "${IMAGE}" add -t fsp -r FW_MAIN_B --xip -n fspm.bin -f "${FSPM}"* *sudo cbfstool "${IMAGE}" add -t fsp --xip -n fspm.bin -f "${FSPM}"*
After stitching fspm.bin binary file in the coreboot file. i flashed the coreboot , its failing to boot and stuck at the below error.
*CBFS: Found 'fspm.bin' @0xc3fc0 size 0xd0000 in mcache @0xfef87804FSPM XIP base does not match: 0x00510000 vs 0xf95d3fe4*
I can be able to stitch the fspm.bin at the correct offset in the CBFS, but i can't update the fspm XIP
Any help is much appreciated.
Thanks in advance --sameer.
Hi *Sameer*,
This is probably because you are missing the `--mmap' parameters. Based on the error message you listed below I assume that you need the following extra `cbfstool' parameters when you add `fspm.bin': `--mmap 16777216:0xff000000:0x1000000 --mmap 0:0xf9000000:0x1000000'.
Regards,
HI Jeremy, Thanks for the quick update, but unfortunately cbfstool doesn't have a parameter called --mmap, when i tried i got the below output. *cbfstool: unrecognized option '--mmap'*
--sameer.
On Wed, Nov 15, 2023 at 4:59 AM Compostella, Jeremy < jeremy.compostella@intel.com> wrote:
hi Jeremy, I am using old cbfstool. after updating the cbfstool to latest version, i can pass --mmap parameter to cbfstool and its worked for me. Thanks for the help!!!! --sameer.
On Wed, Nov 15, 2023 at 6:40 AM Sameeruddin Shaik < sameeruddin.shaik8@gmail.com> wrote:
Hi,
I was looking at my local cbfstool and was also confused. It seems the help text wasn't updated when we switched from --ext-win-base to --mmap.
Nico
On 15.11.23 13:00, Sameeruddin Shaik wrote:
hi nico,
I wanted to update the mmap help text in the cbfstool. If you are planning to work on this let me know --sameer.
On Wed, Nov 15, 2023 at 5:39 PM Nico Huber nico.h@gmx.de wrote: