Thank you Stephan!

I don't know about that tool. Maybe they have a mailing list?
It is possible the area is write-protected, but it's only a guess.

flashrom has an entry for Elkhart Lake:
https://github.com/flashrom/flashrom/blob/main/chipset_enable.c#L2172

On Thu, Dec 12, 2024 at 11:38 PM S. <b...@uxdx.net> wrote:
>
> Hello,
> *flash_erase* is a tool in the package *mtd-utils*
> Stephan
>
>
>
> Am 12.12.24 um 13:28 schrieb Anastasia Klimchuk:
> > Hello Arvind,
> >
> > My question is, which tool are you running? This doesn't look like flashrom.
> > We don't have `flash_erase` command, and no `mtd_erase_multi` function.
> > And I don't recognise the printed messages.
> >
> > On Thu, Dec 12, 2024 at 9:01 PM Arvind GP via flashrom
> > <flashrom@flashrom.org <mailto:flashrom@flashrom.org>> wrote:
> >
> >     Hi All,
> >     We are trying to implement the flashrom tool utility on the x86
> >     *Elkhart Lake*(LEC-EL) platform. In this case, we are facing an
> >     issue when trying to erase the BIOS device MTD0. There are 4096
> >     erase blocks available in the mtd0 device, but only 1791 erase
> >     blocks we can erase; the remaining blocks are throwing errors, and
> >     it shows MEMERASE64 IOCTL FAILED. Please see the below error message
> >     and MTD0 device info for your reference.
> >     NOTE: Sometimes it works; we can erase the MTD0 device without any
> >     error, and we can upgrade/downgrade the BIOS.
> >     *_ERROR MESSAGAE:_*
> >     #sudo flash_erase /dev/mtd0 0 0
> >     Erasing 16384 Kibyte @ 0 --  0 % complete libmtd: error!: MEMERASE64
> >     ioctl failed for eraseblock 0 (mtd0)
> >              error 524 (Unknown error 524)
> >     flash_erase: error!: Entering into mtd_erase_multi
> >     flash_erase: error!: /dev/mtd0: MTD Erase entire chip failureTrying
> >     one by one each sector.
> >                   error 524 (Unknown error 524)
> >     Erasing 4 Kibyte @ 700000 -- 43 % complete libmtd: error!:
> >     MEMERASE64 ioctl failed for eraseblock 1792 (mtd0)
> >              error 5 (Input/output error)
> >     flash_erase: error!: /dev/mtd0: MTD Erase failure
> >                   error 5 (Input/output error)
> >     Erasing 4 Kibyte @ 700000 -- 43 % complete cnt 4096
> >
> >     *_MTD0 INFO:(sudo mtdinfo /dev/mtd0)_*
> >     Name:
> >
> >     BIOS
> >     Туре:
> >     nor
> >     Eraseblock size:
> >     4096 bytes, 4.0 KiB
> >     Amount of eraseblocks:
> >     4096 (16777216 bytes, 16.0 MB)
> >     Minimum input/output unit size:
> >     1 byte
> >     Sub-page size:
> >     1 byte
> >     Character device major/minor:
> >     90:0
> >     Bad blocks are allowed:
> >     false
> >     Device is writable:
> >     true
> >
> >     Please share your inputs on this.
> >     Thanks & Regards,
> >     Arvind G P.
> >
> >     _______________________________________________
> >     flashrom mailing list -- flashrom@flashrom.org
> >     <mailto:flashrom@flashrom.org>
> >     To unsubscribe send an email to flashrom-le...@flashrom.org
> >     <mailto:flashrom-le...@flashrom.org>
> >
> >
> >
> > --
> > Anastasia.
> >
> > _______________________________________________
> > flashrom mailing list -- flashrom@flashrom.org
> > To unsubscribe send an email to flashrom-le...@flashrom.org
> _______________________________________________
> flashrom mailing list -- flashrom@flashrom.org
> To unsubscribe send an email to flashrom-le...@flashrom.org



-- 
Anastasia.
_______________________________________________
flashrom mailing list -- flashrom@flashrom.org
To unsubscribe send an email to flashrom-le...@flashrom.org

Reply via email to