Thank you Clay for your help and Edward for the commit. Here is the result avec successful make and make install :

$ sudo flashrom -p internal
flashrom v1.2-169-g10d71d9 on Linux 5.8.18-050818-generic (x86_64)
flashrom is free software, get the source code at https://flashrom.org

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Found chipset "AMD FP4".
Enabling flash write... ERROR: State of SpiAccessMacRomEn or SpiHostAccessRomEn prohibits full access.
PROBLEMS, continuing anyway
========================================================================
You seem to be running flashrom on an unknown laptop. Some
internal buses have been disabled for safety reasons.

Laptops, notebooks and netbooks are difficult to support and we
recommend to use the vendor flashing utility. The embedded controller
(EC) in these machines often interacts badly with flashing.
See the manpage and https://flashrom.org/Laptops for details.

If flash is shared with the EC, erase is guaranteed to brick your laptop
and write may brick your laptop.
Read and probe may irritate your EC and cause fan failure, backlight
failure and sudden poweroff.
You have been warned.
========================================================================
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found automatically.


Le mer. 23 déc. 2020 à 21:24, Clay Daniels <clay.daniels.jr@gmail.com> a écrit :
Lac, Edward has fixed flashrom to accommodate your 0x51 spi, so no need to apply any patch. You can use either:

git clone https://review.coreboot.org/flashrom.git
or
git clone https://github.com/flashrom/flashrom.git

then navigate to the resulting flashrom directory, and do:
make
make install
Then run flashrom:
flashrom -p internal
It should show your spi chip.

Best Regards,
Clay
BTW, my interest is because I have a similar AMD Zen Promontory chip (0x61) as your 0x51 chip. Welcome to the club!

On Sun, Dec 20, 2020 at 7:03 PM Lac Onis <laconis71@gmail.com> wrote:
From a Lenovo Ideapad 3 15are05, on Ubuntu 20.04
As suggested, I report the following log.

I'd be happy to have a suggestion on how to flash the Bios.
Thank you!

$ sudo flashrom -r DZCN19WW.original.ROM
flashrom v1.2 on Linux 5.4.0-58-generic (x86_64)
flashrom is free software, get the source code at https://flashrom.org

Please select a programmer with the --programmer parameter.
To choose the mainboard of this computer use 'internal'. Valid choices are:
internal, dummy, nic3com, nicrealtek, gfxnvidia, drkaiser, satasii, atavia,
it8212, ft2232_spi, serprog, buspirate_spi, dediprog, developerbox, rayer_spi,
pony_spi, nicintel, nicintel_spi, nicintel_eeprom, ogp_spi, satamv, linux_mtd,
linux_spi, usbblaster_spi, pickit2_spi, ch341a_spi, digilent_spi, stlinkv3_spi.

$ sudo flashrom --programmer internal flashrom v1.2 on Linux 5.4.0-58-generic (x86_64) flashrom is free software, get the source code at https://flashrom.org Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns). Found chipset "AMD FP4". Enabling flash write... FCH device found but SMBus revision 0x51 does not match known values. Please report this to flashrom@flashrom.org and include this log and the output of lspci -nnvx, thanks!. Could not determine chipset generation.PROBLEMS, continuing anyway ======================================================================== You seem to be running flashrom on an unknown laptop. Some internal buses have been disabled for safety reasons. Laptops, notebooks and netbooks are difficult to support and we recommend to use the vendor flashing utility. The embedded controller (EC) in these machines often interacts badly with flashing. See the manpage and https://flashrom.org/Laptops for details. If flash is shared with the EC, erase is guaranteed to brick your laptop and write may brick your laptop. Read and probe may irritate your EC and cause fan failure, backlight failure and sudden poweroff. You have been warned. ======================================================================== No EEPROM/flash device found. Note: flashrom can never write if the flash chip isn't found automatically.
_______________________________________________
flashrom mailing list -- flashrom@flashrom.org
To unsubscribe send an email to flashrom-leave@flashrom.org