Hello,
in case you did not do so yet, please write back your backup.
I am not exactly sure what went wrong in your case. The bad timing might be part of the problem. Do you run some additional programs that heavily use the CPU while running flashrom? Can you please provide a verbose flashrom log while it is probing only (by adding "-o logfile.txt" to the command line) and please also provide the output of "lspci -nnv".
close all process And test again
Ps - this problem is a write-protect in chip Pm49FL004 ? (i see in "board_enable.c" variants of unlock for ASUS P4P800 mainboard and dont see P4P800MX)
root@fe:~/flash# lspci -nnv 00:00.0 Host bridge [0600]: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface [8086:2570] (rev 02) Subsystem: ASUSTeK Computer Inc. P4P800/P5P800 series motherboard [1043:80f2] Flags: bus master, fast devsel, latency 0 Memory at fe800000 (32-bit, prefetchable) [size=4M] Capabilities: [e4] Vendor Specific Information: Len=06 <?> Kernel driver in use: agpgart-intel
00:02.0 VGA compatible controller [0300]: Intel Corporation 82865G Integrated Graphics Controller [8086:2572] (rev 02) (prog-if 00 [VGA controller]) Subsystem: ASUSTeK Computer Inc. Device [1043:2572] Flags: bus master, fast devsel, latency 0, IRQ 16 Memory at f0000000 (32-bit, prefetchable) [size=128M] Memory at fe780000 (32-bit, non-prefetchable) [size=512K] I/O ports at eff0 [size=8] Expansion ROM at <unassigned> [disabled] Capabilities: [d0] Power Management version 1 Kernel driver in use: i915
00:06.0 System peripheral [0880]: Intel Corporation 82865G/PE/P Processor to I/O Memory Interface [8086:2576] (rev 02) Flags: fast devsel Memory at fecf0000 (32-bit, non-prefetchable) [size=4K]
00:1d.0 USB controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 [8086:24d2] (rev 02) (prog-if 00 [UHCI]) Subsystem: ASUSTeK Computer Inc. Device [1043:24d0] Flags: bus master, medium devsel, latency 0, IRQ 16 I/O ports at eec0 [size=32] Kernel driver in use: uhci_hcd
00:1d.1 USB controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 [8086:24d4] (rev 02) (prog-if 00 [UHCI]) Subsystem: ASUSTeK Computer Inc. Device [1043:24d0] Flags: bus master, medium devsel, latency 0, IRQ 19 I/O ports at ef00 [size=32] Kernel driver in use: uhci_hcd
00:1d.2 USB controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 [8086:24d7] (rev 02) (prog-if 00 [UHCI]) Subsystem: ASUSTeK Computer Inc. Device [1043:24d0] Flags: bus master, medium devsel, latency 0, IRQ 18 I/O ports at ef20 [size=32] Kernel driver in use: uhci_hcd
00:1d.3 USB controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 [8086:24de] (rev 02) (prog-if 00 [UHCI]) Subsystem: ASUSTeK Computer Inc. Device [1043:24d0] Flags: bus master, medium devsel, latency 0, IRQ 16 I/O ports at ef40 [size=32] Kernel driver in use: uhci_hcd
00:1d.7 USB controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller [8086:24dd] (rev 02) (prog-if 20 [EHCI]) Subsystem: ASUSTeK Computer Inc. Device [1043:24d0] Flags: bus master, medium devsel, latency 0, IRQ 23 Memory at fe77b800 (32-bit, non-prefetchable) [size=1K] Capabilities: [50] Power Management version 2 Capabilities: [58] Debug port: BAR=1 offset=00a0 Kernel driver in use: ehci-pci
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev c2) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=01, subordinate=01, sec-latency=64 I/O behind bridge: 0000d000-0000dfff Memory behind bridge: fe500000-fe5fffff
00:1f.0 ISA bridge [0601]: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge [8086:24d0] (rev 02) Flags: bus master, medium devsel, latency 0 Kernel driver in use: lpc_ich
00:1f.1 IDE interface [0101]: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller [8086:24db] (rev 02) (prog-if 8f [Master SecP SecO PriP PriO]) Subsystem: ASUSTeK Computer Inc. Device [1043:24d0] Flags: bus master, medium devsel, latency 0, IRQ 18 I/O ports at efe0 [size=8] I/O ports at efac [size=4] I/O ports at efa0 [size=8] I/O ports at efa8 [size=4] I/O ports at ef90 [size=16] Memory at f8000000 (32-bit, non-prefetchable) [size=1K] Kernel driver in use: ata_piix
00:1f.3 SMBus [0c05]: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller [8086:24d3] (rev 02) Subsystem: ASUSTeK Computer Inc. Device [1043:24d0] Flags: medium devsel, IRQ 14 I/O ports at 0400 [size=32]
00:1f.5 Multimedia audio controller [0401]: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller [8086:24d5] (rev 02) Subsystem: ASUSTeK Computer Inc. Device [1043:810d] Flags: bus master, medium devsel, latency 0, IRQ 17 I/O ports at e800 [size=256] I/O ports at ee80 [size=64] Memory at fe77b400 (32-bit, non-prefetchable) [size=512] Memory at fe77b000 (32-bit, non-prefetchable) [size=256] Capabilities: [50] Power Management version 2 Kernel driver in use: snd_intel8x0
01:09.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8169 PCI Gigabit Ethernet Controller [10ec:8169] (rev 10) Subsystem: Realtek Semiconductor Co., Ltd. RTL8169/8110 Family PCI Gigabit Ethernet NIC [10ec:8169] Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 17 I/O ports at d800 [size=256] Memory at fe5ffc00 (32-bit, non-prefetchable) [size=256] Expansion ROM at fe5c0000 [disabled] [size=128K] Capabilities: [dc] Power Management version 2 Kernel driver in use: r8169
01:0b.0 Network controller [0280]: Ralink corp. RT2561/RT61 rev B 802.11g [1814:0302] Subsystem: D-Link System Inc Device [1186:2c09] Flags: slow devsel, IRQ 22 Memory at ee5f0000 (32-bit, non-prefetchable) [size=32K] Capabilities: [40] Power Management version 2
01:0d.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter [10ec:8139] (rev 10) Subsystem: ASUSTeK Computer Inc. Device [1043:80b3] Flags: bus master, medium devsel, latency 64, IRQ 23 I/O ports at d400 [size=256] Memory at fe5ff800 (32-bit, non-prefetchable) [size=256] Capabilities: [50] Power Management version 2 Kernel driver in use: 8139too
root@fe:~/flash#
root@fe:~/flash# cat ./logfile.txt flashrom v0.9.9-r1955 on Linux 3.13.0-38-generic (i686) flashrom was built with libpci 3.2.1, GCC 4.8.4, little endian Command line (8 args): ./flashrom --programmer internal -c Pm49FL004 -w 1003MXAS.rom -o logfile.txt Calibrating delay loop... OS timer resolution is 1 usecs, 797M loops per second, delay more than 10% too short (got 89% of expected delay), recalculating... 796M loops per second, delay more than 10% too short (got 89% of expected delay), recalculating... 770M loops per second, delay more than 10% too short (got 86% of expected delay), recalculating... 826M loops per second, 10 myus = 10 us, 100 myus = 200 us, 1000 myus = 918 us, 10000 myus = 10220 us, 4 myus = 5 us, OK. Initializing internal programmer No coreboot table found. Using Internal DMI decoder. DMI string chassis-type: "Desktop" DMI string system-manufacturer: "To Be Filled By O.E.M." DMI string system-product-name: "To Be Filled By O.E.M." DMI string system-version: "To Be Filled By O.E.M." DMI string baseboard-manufacturer: "ASUSTek Computer Inc." DMI string baseboard-product-name: "P4P800-MX" DMI string baseboard-version: "Rev 1.xx" Found Winbond Super I/O, id 0x82 Found chipset "Intel ICH5/ICH5R" with PCI ID 8086:24d0. Enabling flash write... 0xfff80000/0xffb80000 FWH IDSEL: 0x0 0xfff00000/0xffb00000 FWH IDSEL: 0x0 0xffe80000/0xffa80000 FWH IDSEL: 0x1 0xffe00000/0xffa00000 FWH IDSEL: 0x1 0xffd80000/0xff980000 FWH IDSEL: 0x2 0xffd00000/0xff900000 FWH IDSEL: 0x2 0xffc80000/0xff880000 FWH IDSEL: 0x3 0xffc00000/0xff800000 FWH IDSEL: 0x3 0xff700000/0xff300000 FWH IDSEL: 0x4 0xff600000/0xff200000 FWH IDSEL: 0x5 0xff500000/0xff100000 FWH IDSEL: 0x6 0xff400000/0xff000000 FWH IDSEL: 0x7 0xfff80000/0xffb80000 FWH decode enabled 0xfff00000/0xffb00000 FWH decode disabled 0xffe80000/0xffa80000 FWH decode disabled 0xffe00000/0xffa00000 FWH decode disabled 0xffd80000/0xff980000 FWH decode disabled 0xffd00000/0xff900000 FWH decode disabled 0xffc80000/0xff880000 FWH decode disabled 0xffc00000/0xff800000 FWH decode disabled 0xff700000/0xff300000 FWH decode disabled 0xff600000/0xff200000 FWH decode disabled 0xff500000/0xff100000 FWH decode disabled 0xff400000/0xff000000 FWH decode disabled Maximum FWH chip size: 0x80000 bytes
BIOS_CNTL = 0x01: BIOS Lock Enable: disabled, BIOS Write Enable: enabled OK. The following protocols are supported: FWH. Probing for PMC Pm49FL004, 512 kB: probe_jedec_common: id1 0x9d, id2 0x6e Found PMC flash chip "Pm49FL004" (512 kB, LPC, FWH) mapped at physical address 0xfff80000. Lock bits at 0xb720f002 not changed. Lock bits at 0xb721f002 not changed. Lock bits at 0xb722f002 not changed. Lock bits at 0xb723f002 not changed. Lock bits at 0xb724f002 not changed. Lock bits at 0xb725f002 not changed. Lock bits at 0xb726f002 not changed. Lock bits at 0xb727f002 not changed. Flash image seems to be a legacy BIOS. Disabling coreboot-related checks. Reading old flash chip contents... done. Erasing and writing flash chip... Trying erase function 0... 0x000000-0x000fff:S, 0x001000-0x001fff:S, 0x002000-0x002fff:S, 0x003000-0x003fff:S, 0x004000-0x004fff:S, 0x005000-0x005fff:S, 0x006000-0x006fff:S, 0x007000-0x007fff:S, 0x008000-0x008fff:S, 0x009000-0x009fff:S, 0x00a000-0x00afff:S, 0x00b000-0x00bfff:S, 0x00c000-0x00cfff:S, 0x00d000-0x00dfff:S, 0x00e000-0x00efff:S, 0x00f000-0x00ffff:S, 0x010000-0x010fff:S, 0x011000-0x011fff:S, 0x012000-0x012fff:S, 0x013000-0x013fff:S, 0x014000-0x014fff:S, 0x015000-0x015fff:S, 0x016000-0x016fff:S, 0x017000-0x017fff:S, 0x018000-0x018fff:S, 0x019000-0x019fff:S, 0x01a000-0x01afff:S, 0x01b000-0x01bfff:S, 0x01c000-0x01cfff:S, 0x01d000-0x01dfff:S, 0x01e000-0x01efff:S, 0x01f000-0x01ffff:S, 0x020000-0x020fff:S, 0x021000-0x021fff:S, 0x022000-0x022fff:S, 0x023000-0x023fff:S, 0x024000-0x024fff:S, 0x025000-0x025fff:S, 0x026000-0x026fff:S, 0x027000-0x027fff:S, 0x028000-0x028fff:S, 0x029000-0x029fff:S, 0x02a000-0x02afff:S, 0x02b000-0x02bfff:S, 0x02c000-0x02cfff:S, 0x02d000-0x02dfff:S, 0x02e000-0x02efff:S, 0x02f000-0x02ffff:S, 0x030000-0x030fff:S, 0x031000-0x031fff:S, 0x032000-0x032fff:S, 0x033000-0x033fff:S, 0x034000-0x034fff:S, 0x035000-0x035fff:S, 0x036000-0x036fff:S, 0x037000-0x037fff:S, 0x038000-0x038fff:S, 0x039000-0x039fff:S, 0x03a000-0x03afff:S, 0x03b000-0x03bfff:S, 0x03c000-0x03cfff:S, 0x03d000-0x03dfff:S, 0x03e000-0x03efff:S, 0x03f000-0x03ffff:S, 0x040000-0x040fff:S, 0x041000-0x041fff:S, 0x042000-0x042fff:S, 0x043000-0x043fff:S, 0x044000-0x044fff:S, 0x045000-0x045fff:S, 0x046000-0x046fff:S, 0x047000-0x047fff:S, 0x048000-0x048fff:S, 0x049000-0x049fff:S, 0x04a000-0x04afff:S, 0x04b000-0x04bfff:S, 0x04c000-0x04cfff:S, 0x04d000-0x04dfff:S, 0x04e000-0x04efff:S, 0x04f000-0x04ffff:S, 0x050000-0x050fff:S, 0x051000-0x051fff:S, 0x052000-0x052fff:S, 0x053000-0x053fff:S, 0x054000-0x054fff:S, 0x055000-0x055fff:S, 0x056000-0x056fff:S, 0x057000-0x057fff:S, 0x058000-0x058fff:S, 0x059000-0x059fff:S, 0x05a000-0x05afff:S, 0x05b000-0x05bfff:S, 0x05c000-0x05cfff:S, 0x05d000-0x05dfff:S, 0x05e000-0x05efff:S, 0x05f000-0x05ffff:S, 0x060000-0x060fff:S, 0x061000-0x061fff:S, 0x062000-0x062fff:S, 0x063000-0x063fff:S, 0x064000-0x064fff:S, 0x065000-0x065fff:S, 0x066000-0x066fff:S, 0x067000-0x067fff:S, 0x068000-0x068fff:S, 0x069000-0x069fff:S, 0x06a000-0x06afff:S, 0x06b000-0x06bfff:S, 0x06c000-0x06cfff:EFAILED at 0x0006c000! Expected=0xff, Found=0x07, failed byte count from 0x0006c000-0x0006cfff: 0xff2 ERASE FAILED! Reading current flash chip contents... done. Looking for another erase function. Trying erase function 1... 0x000000-0x00ffff:S, 0x010000-0x01ffff:S, 0x020000-0x02ffff:S, 0x030000-0x03ffff:S, 0x040000-0x04ffff:S, 0x050000-0x05ffff:S, 0x060000-0x06ffff:EFAILED at 0x00060000! Expected=0xff, Found=0xf5, failed byte count from 0x00060000-0x0006ffff: 0x8fc6 ERASE FAILED! Reading current flash chip contents... done. Looking for another erase function. Trying erase function 2... 0x000000-0x07ffff:EFAILED at 0x0000a768! Expected=0xff, Found=0x44, failed byte count from 0x00000000-0x0007ffff: 0x6dda0 ERASE FAILED! Looking for another erase function. No usable erase functions left. FAILED! Uh oh. Erase/write failed. Checking if anything has changed. Reading current flash chip contents... done. Good, writing to the flash chip apparently didn't do anything. This means we have to add special support for your board, programmer or flash chip. Please report this on IRC at chat.freenode.net (channel #flashrom) or mail flashrom@flashrom.org, thanks! ------------------------------------------------------------------------------- You may now reboot or simply leave the machine running. Restoring PCI config space for 00:1f:0 reg 0x4e root@fe:~/flash#
2016-06-11 13:43 GMT+03:00 Stefan Tauner stefan.tauner@alumni.tuwien.ac.at :
Hello,
in case you did not do so yet, please write back your backup.
I am not exactly sure what went wrong in your case. The bad timing might be part of the problem. Do you run some additional programs that heavily use the CPU while running flashrom? Can you please provide a verbose flashrom log while it is probing only (by adding "-o logfile.txt" to the command line) and please also provide the output of "lspci -nnv".
-- Kind regards/Mit freundlichen Grüßen, Stefan Tauner