Hi,
I'm trying to dump the current firmware of my Lenovo L440, but it fails with `/dev/mem mmap failed:Operation not permitted`, even though I'm using the `iomen=relaxed` kernel parameter.
``` flashrom p1.0-141-g9cecc7e on Linux 4.20.6-arch1-1-ARCH (x86_64) flashrom is free software, get the source code at https://flashrom.org
flashrom was built with libpci 3.6.2, GCC 8.2.1 20181127, little endian Command line (5 args): flashrom --programmer internal -r current_bios.dump -V Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns). Initializing internal programmer get_mtd_info: device_name: "intel-spi", is_writeable: 0, numeraseregions: 0, total_size: 8388608, erasesize: 4096 Cannot open file stream for /dev/mtd0 No coreboot table found. Using Internal DMI decoder. No DMI table found. W836xx enter config mode worked or we were already in config mode. W836xx leave config mode had no effect. Active config mode, unknown reg 0x20 ID: fc. Found chipset "Intel HM86" with PCI ID 8086:8c49. This chipset is marked as untested. If you are using an up-to-date version of flashrom *and* were (not) able to successfully update your firmware with it, then please email a report to flashrom@flashrom.org including a verbose (-V) log. Thank you! Enabling flash write... Root Complex Register Block address = 0xfed1c000 Error accessing ICH RCRB, 0x4000 bytes at 0x00000000fed1c000 /dev/mem mmap failed: Operation not permitted FAILED! FATAL ERROR! Error: Programmer initialization failed. ```
I'm running ArchLinux and the latest version of flashrom build out of git. As the chipseet is marked as untested, is there anything I can try?
Best, Klaus Frank
Hello,
On Sun, Feb 3, 2019, 08:48 <flashrom.org@agowa338.de wrote:
/dev/mem mmap failed: Operation not permitted
This means your kernel restricts accesses to /dev/mem. To overcome this, add `iomem=relaxed` to your kernel flags.
Do note that you may not be able to read the whole flash chip contents. This is because newer Intel platforms lock read and/or write access to some parts of the flash chip based on what the IFD (Intel Firmware Descriptor, also known as Intel Flash Descriptor) specifies. flashrom has a parameter to access one region at a time, however.
Best regards,
Angel Pons