Reputation: 277
An odd question really. Is it possible to read the entire contents of the bios chip in. We have a problem where we need to verify the contents of the bios chip?
Cheers James
Upvotes: 5
Views: 5445
Reputation: 17
Is it possible to read the entire contents of the bios chip in. We have a problem where we need to verify the contents of the bios chip?
I assume you mean to read specifically "BIOS region", because the same chip may contain multiple different regions:
To read the BIOS region:
/dev/mem
0xffffffff downwards. You can find the range in /proc/iomem
(try command: sudo grep -- '-ffffffff ' /proc/iomem
). Then you can use dd
to dump the region.flashrom
, if you motherboard is supported by this tool (something like sudo flashrom -p internal --ifd -i bios -r /tmp/bios_region.img
)./dev/mtd*
.You can actually just use PCR0 value from TPM, which supposed to measure the content of BIOS. It has a lot of caveats, but they are so-so investigated and solved (feel free to ask a question, I'll try to help).
But if you need to compare the content directly, keep in mind:
The easiest way to avoid both problems is to just use the PCR0 value.
See also the "security purposes" section above, but on top of that BIOS volumes and files has checksums. You may just want to check them in some cases.
Other answers suggests to use things like dmidecode
. They won't dump the BIOS image, but just will print the SMBIOS info and things like that.
Upvotes: 1