[flashrom] Flashrom Update Failure
Will Choe
jazzbearz at gmail.com
Thu Jun 5 13:04:55 CEST 2014
Resolved it by copy & modifying:
else if (force && chip_to_probe)
{
struct registered_programmer *pgm;
int compatible_programmers = 0;
msg_cinfo("Force read (-f -r -c) requested, pretending the chip is there:\n");
/* This loop just counts compatible controllers. */
for (j = 0; j < registered_programmer_count; j++) {
pgm = ®istered_programmers[j];
/* chip is still set from the chip_to_probe earlier in this function. */
if (pgm->buses_supported & chip->bustype)
compatible_programmers++;
}
if (!compatible_programmers) {
msg_cinfo("No compatible controller found for the requested flash chip.\n");
ret = 1;
goto out_shutdown;
}
if (compatible_programmers > 1)
msg_cinfo("More than one compatible controller found for the requested flash "
"chip, using the first one.\n");
for (j = 0; j < registered_programmer_count; j++) {
pgm = ®istered_programmers[j];
startchip = probe_flash(pgm, 0, &flashes[0], 1);
if (startchip != -1)
break;
}
msg_cinfo("Please note that forced writes most likely contain garbage.\n");
}
if (startchip == -1) {
ret = 1;
goto out_shutdown;
}
to the cli_classic.c
I think it's better to have 'force & force' option to do the writing.
Will
2014. 6. 5., pm 5:05, Will Choe <jazzbearz at gmail.com> wrote:
> Hi,
>
> Flashrom update failed due to sudden network interruption. After then, when I try the flashrom, following message appears:
>
> flashrom v0.9.7-r1711 on Linux 2.6.32-431.5.1.el6.x86_64 (x86_64)
> flashrom is free software, get the source code at http://www.flashrom.org
>
> Calibrating delay loop... OK.
> sh: dmidecode: command not found
> dmidecode execution unsuccessful - continuing without DMI info
> Found chipset "Intel ICH10R". Enabling flash write... OK.
> No EEPROM/flash device found.
> Note: flashrom can never write if the flash chip isn't found automatically.
>
> How do I make the flashrom to force rewrite the rom?
>
> Thanks in advance.
>
> Will
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20140605/d0c25b1e/attachment.html>
More information about the flashrom
mailing list