Flashrom v1.2 on Linux

hi
I noticed several errors when updating the bios of pcengine apu4c

]# flashrom -w apu4_v4.16.0.3.rom -p internal:boardmismatch=force
flashrom v1.2 on Linux 5.15.35-ipfire (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).
coreboot table found at 0xcfeba000.
Found chipset "AMD FCH".
Enabling flash write... OK.
Error accessing GD25Q256D, 0x2000000 bytes at 0x00000000fe000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip GD25Q256D at 0x00000000fe000000.
Error accessing IS25LP256, 0x2000000 bytes at 0x00000000fe000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip IS25LP256 at 0x00000000fe000000.
Error accessing IS25WP256, 0x2000000 bytes at 0x00000000fe000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip IS25WP256 at 0x00000000fe000000.
Error accessing MX25L25635F/MX25L25645G, 0x2000000 bytes at 0x00000000fe000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip MX25L25635F/MX25L25645G at 0x00000000fe000000.
Error accessing MX25U25635F, 0x2000000 bytes at 0x00000000fe000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip MX25U25635F at 0x00000000fe000000.
Error accessing MX25U51245G, 0x4000000 bytes at 0x00000000fc000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip MX25U51245G at 0x00000000fc000000.
Error accessing MX66L51235F/MX25L51245G, 0x4000000 bytes at 0x00000000fc000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip MX66L51235F/MX25L51245G at 0x00000000fc000000.
Error accessing N25Q00A..1G, 0x8000000 bytes at 0x00000000f8000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip N25Q00A..1G at 0x00000000f8000000.
Error accessing N25Q00A..3G, 0x8000000 bytes at 0x00000000f8000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip N25Q00A..3G at 0x00000000f8000000.
Error accessing N25Q256..1E, 0x2000000 bytes at 0x00000000fe000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip N25Q256..1E at 0x00000000fe000000.
Error accessing N25Q256..3E, 0x2000000 bytes at 0x00000000fe000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip N25Q256..3E at 0x00000000fe000000.
Error accessing N25Q512..1G, 0x4000000 bytes at 0x00000000fc000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip N25Q512..1G at 0x00000000fc000000.
Error accessing N25Q512..3G, 0x4000000 bytes at 0x00000000fc000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip N25Q512..3G at 0x00000000fc000000.
Error accessing MT25QL01G, 0x8000000 bytes at 0x00000000f8000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip MT25QL01G at 0x00000000f8000000.
Error accessing MT25QU01G, 0x8000000 bytes at 0x00000000f8000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip MT25QU01G at 0x00000000f8000000.
Error accessing MT25QL02G, 0x10000000 bytes at 0x00000000f0000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip MT25QL02G at 0x00000000f0000000.
Error accessing MT25QU02G, 0x10000000 bytes at 0x00000000f0000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip MT25QU02G at 0x00000000f0000000.
Error accessing MT25QL256, 0x2000000 bytes at 0x00000000fe000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip MT25QL256 at 0x00000000fe000000.
Error accessing MT25QU256, 0x2000000 bytes at 0x00000000fe000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip MT25QU256 at 0x00000000fe000000.
Error accessing MT25QL512, 0x4000000 bytes at 0x00000000fc000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip MT25QL512 at 0x00000000fc000000.
Error accessing MT25QU512, 0x4000000 bytes at 0x00000000fc000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip MT25QU512 at 0x00000000fc000000.
Error accessing S25FL256S......0, 0x2000000 bytes at 0x00000000fe000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip S25FL256S......0 at 0x00000000fe000000.
Error accessing S25FL512S, 0x4000000 bytes at 0x00000000fc000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip S25FL512S at 0x00000000fc000000.
Error accessing W25Q256.V, 0x2000000 bytes at 0x00000000fe000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip W25Q256.V at 0x00000000fe000000.
Error accessing W25Q256JV_M, 0x2000000 bytes at 0x00000000fe000000
/dev/mem mmap failed: Operation not permitted
Could not map flash chip W25Q256JV_M at 0x00000000fe000000.
Found Winbond flash chip "W25Q64.V" (8192 kB, SPI) mapped at physical address 0x00000000ff800000.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... VERIFIED.

the flash is done but there is a errors
ty

To me, in all that I have updated, the same thing has happened to me.

I don’t think it’s anything weird, since I imagine that “flashrom” looks for chips and when it finds a chip (version it can use), it uses it.

That is, it will reflase various types of chips and scan the appropriate one.

I don’t know if I explain myself.

Regards.

2 Likes

I tested with apu-bootable-usb-installer_v1.8 and there is no error

I don’t think it’s anything weird, since I imagine that “flashrom” looks for chips and when it finds a chip (version it can use), it uses it.

I think you are right

Have you tested with firmware-update?

Hi @bbitsch.

No, I have updated all my machines with the “Flashrom” command.

Regards.

This might help:
https://wiki.ipfire.org/addons/firmware-update#error-messages

3 Likes

hi
I didn’t see the wiki

ty

1 Like