Hi Peter,
 
Thank you very much.
 
The problem is solved after I changed layout.c according to your patch file.
 
 
Thanks again.
 
Best regards,
Eric


> Date: Wed, 2 Jul 2008 05:25:42 +0200
> From: peter@stuge.se
> To: coreboot@coreboot.org
> Subject: Re: [coreboot] For Help of Flashrom Usage
>
> Hello,
>
> On Tue, Jul 01, 2008 at 06:23:38PM +0800, HongGang.Ma@venture.com.sg wrote:
> > We are using flashrom to flash BIOS in Linux. But it can only
> > successfully read flash and save into file, can not write ROM file
> > into flash.
> >
> > Error information --- Segmentation fault.
>
> There is a known bug in flashrom. Sometimes it will incorrectly
> identify the ROM file that should be written as a coreboot ROM file,
> and in that case some data from the ROM file will be used incorrectly
> and typically cause flashrom to crash with a Segmentation fault.
>
>
> > Could you please provide us some comments or proposals on the problem?
>
> To confirm that you are also encountering the known bug, you can try
> running: flashrom -wv myBIOS.rom -V
>
> If you see a message similar to this:
>
> coreboot last image size (not ROM size) is 1234 bytes.
>
> Where 1234 is some nonsense number, it is indeed the known bug.
>
>
> You can disable the heuristic that is used to identify coreboot ROM
> files by applying the attached patch or changing layout.c manually.
> Please let us know if it works for you.
>
>
> Thank you for your interest in flashrom! :)
>
>
> //Peter



轻松把Hotmail下载到本地,试试 Windows Live Mail。 立即尝试!