[flashrom] /dev/mem mmap failed : Operation not permitted

Stefan Tauner stefan.tauner at student.tuwien.ac.at
Tue Jul 30 10:55:36 CEST 2013


On Tue, 30 Jul 2013 14:17:22 +0900
WON-JUN SONG <iamwonjunsong at gmail.com> wrote:

> I tried to read the contents of BIOS via flashrom. 
> 
> the main board is TYAN s8230.
> 
> when I executed read command (such as sudo ./flashrom -r backup.bin -p internal), the error message are below
> 
> 	"Error accessing flash chip, 0x2000000 bytes at 0x00000000fe000000
> 	/dev/mem mmap failed: Operation not permitted"
> 
> this message is derived from "probe_flash()" function.  I don't understand why this error message occurs?

Because you were using a flashrom revision between r1688 and r1701,
right? This was caused by flash chips >16MB which were removed again in
r1702 so anything newer than that should be fine again.

> anyway I modified the source code to skip some vendors and chip which cause above error message.
> 
> then another error message are below
> 
> 	"Reading flash.. SB600 FIFO pointer corruption! Pointer is 0, wanted 3
> 	Something else is accessing the flash chip and causes random corruption.
> 	Please stop all applications and drivers and IPMI which access the flash chip
> 	Read operation failed!
> 	FAILED"
> 
> I dont understand why IPMI is related to flashing BIOS.

Because they sometimes share the same flash chip for their firmware.
Can you please retry with r1704 which includes some changes for the IMC?
Please do send verbose and complete logs obtained with flashrom ... -o
filename.log etc.

Note for others: this is SP5100.

-- 
Kind regards/Mit freundlichen Grüßen, Stefan Tauner




More information about the flashrom mailing list