On 29/01/14 22:49, Aaron Durbin wrote:


Okay. I ran:

git fetch http://review.coreboot.org/coreboot refs/changes/71/4771/1 && git
checkout FETCH_HEAD

then ran make, which updated the binary, but still no change in reading the
file.

I also compiled and ran the cbfstool in ./util in case that was somehow
different, but same result.

I did this w/ the ChromeOS coreboot:

$ dd if=/dev/zero of=spi.bin bs=1M count=7
$ cat spi.bin c720-coreboot.bin > c720-coreboot-8MiB.bin
$ cbfstool c720-coreboot-8MiB.bin  print
c720-coreboot-8MiB.bin: 8192 kB, bootblocksize 3144, romsize 8388608,
offset 0x700000
alignment: 64 bytes, architecture: x86

Name                           Offset     Type         Size
cmos_layout.bin                0x700000   cmos_layout  1164
pci8086,0406.rom               0x7004c0   optionrom    65536
cpu_microcode_blob.bin         0x710500   microcode    41024
config                         0x71a5c0   raw          5541
fallback/vboot                 0x71bbc0   stage        15081
(empty)                        0x71f700   null         2136
fallback/romstage              0x71ff80   stage        42497
fallback/coreboot_ram          0x72a600   stage        91421
fallback/payload               0x740b80   payload      54921
u-boot.dtb                     0x74e280   (unknown)    7923
(empty)                        0x7501c0   null         327128
mrc.bin                        0x79ffc0   (unknown)    190180
(empty)                        0x7ce700   null         120984
spd.bin                        0x7ebfc0   (unknown)    1792
(empty)                        0x7ec700   null         76888

The file you use with cbfstool needs to match the header rom size. In
this case it is 8MiB.

Hope that helps.

-Aaron


Yep, that's it. Thanks very much. I don't pretend to understand how the CBFS portion relates to the rest of the ROM, I just know the ROM format here is a little different to the older generation Chromebooks.

FTR, the mrc.bin I extracted manually was the right size! ;)

-John

--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to