<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi Peter,<BR>
 <BR>
Thank you very much.<BR>
 <BR>
The problem is solved after I changed layout.c according to your patch file.<BR>
 <BR>
 <BR>
Thanks again.<BR>
 <BR>
Best regards,<BR>
Eric<BR>
<BR><BR>> Date: Wed, 2 Jul 2008 05:25:42 +0200<BR>> From: peter@stuge.se<BR>> To: coreboot@coreboot.org<BR>> Subject: Re: [coreboot] For Help of Flashrom Usage<BR>> <BR>> Hello,<BR>> <BR>> On Tue, Jul 01, 2008 at 06:23:38PM +0800, HongGang.Ma@venture.com.sg wrote:<BR>> > We are using flashrom to flash BIOS in Linux. But it can only<BR>> > successfully read flash and save into file, can not write ROM file<BR>> > into flash.<BR>> > <BR>> > Error information --- Segmentation fault.<BR>> <BR>> There is a known bug in flashrom. Sometimes it will incorrectly<BR>> identify the ROM file that should be written as a coreboot ROM file,<BR>> and in that case some data from the ROM file will be used incorrectly<BR>> and typically cause flashrom to crash with a Segmentation fault.<BR>> <BR>> <BR>> > Could you please provide us some comments or proposals on the problem?<BR>> <BR>> To confirm that you are also encountering the known bug, you can try<BR>> running: flashrom -wv myBIOS.rom -V<BR>> <BR>> If you see a message similar to this:<BR>> <BR>> coreboot last image size (not ROM size) is 1234 bytes.<BR>> <BR>> Where 1234 is some nonsense number, it is indeed the known bug.<BR>> <BR>> <BR>> You can disable the heuristic that is used to identify coreboot ROM<BR>> files by applying the attached patch or changing layout.c manually.<BR>> Please let us know if it works for you.<BR>> <BR>> <BR>> Thank you for your interest in flashrom! :)<BR>> <BR>> <BR>> //Peter<BR><BR><br /><hr />轻松把Hotmail下载到本地,试试 Windows Live Mail。 <a href='http://get.live.com/wl/all' target='_new'>立即尝试!</a></body>
</html>