<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=US-ASCII" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD>
<BODY id=role_body style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; COLOR: #000000" 
bottomMargin=7 leftMargin=7 topMargin=7 rightMargin=7><FONT id=role_document 
color=#000000 size=2 face=Arial>
<DIV>I'm having a problem with flashrom V0.9.7.  I was following 
instructions that used v0.9.3 to update the bios on a ReadyNAS Pro6, which 
apparently worked:</DIV>
<DIV> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
  <DIV># /opt/biosflash/flashrom -c W25x80 -w 
  /opt/biosflash/RN_NV6_072610.ROM<BR>flashrom v0.9.3-r1205 on Linux 
  3.7.5-1.el6.elrepo.x86_64 (x86_64), built with libpci 2.2.4-pre4, GCC 4.1.2 
  20061115 (prerelease) (Debian 4.1.1-21), little endian<BR>flashrom is free 
  software, get the source code at <A 
  href="http://www.flashrom.org">http://www.flashrom.org</A></DIV>
  <DIV> </DIV>
  <DIV>Calibrating delay loop... OK.<BR>No coreboot table found.<BR>Found 
  chipset "Intel ICH8/ICH8R", enabling flash write... OK.<BR>This chipset 
  supports the following protocols: FWH,SPI.<BR>Found chip "Winbond W25x80" 
  (1024 KB, SPI) at physical address 0xfff00000.<BR>Flash image seems to be a 
  legacy BIOS. Disabling checks.<BR>Writing flash chip... Erasing flash before 
  programming... Erasing flash chip... SUCCESS.<BR>done.<BR>Programming flash... 
  done.<BR>COMPLETE.<BR>Verifying flash... VERIFIED. </DIV></BLOCKQUOTE>
<DIV> </DIV>
<DIV>But v0.9.7 requires configuration first, which fails, even though it finds 
both the chipset and the BIOS chip.  This is also under a later Debian 
release, if that matters.  The key to the problem seems to be "/dev/mem 
mmap failed: Resource temporarily unavailable".  But I am logged in as root 
and /dev/mem has the proper permissions:<BR></DIV>
<DIV>     crw-r-----  1 root 
kmem      1,   1 Nov 28 23:23 mem</DIV>
<DIV> </DIV>
<DIV>I have verified this response on two identical configurations, but I also 
have a different model ReadyNAS with the same Debian configuration and it works 
fine there.</DIV>
<DIV> </DIV>
<DIV>Here is the whole dump of the response:</DIV>
<DIV> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
  <DIV><A>root@NASPro2:/data/Documents/BIOS</A># flashrom --programmer 
  internal<BR>flashrom v0.9.7-r1782 on Linux 4.1.30.x86_64.1 
  (x86_64)<BR>flashrom is free software, get the source code at <A 
  href="http://www.flashrom.org">http://www.flashrom.org</A></DIV>
  <DIV> </DIV>
  <DIV>Calibrating delay loop... OK.<BR>Found chipset "Intel ICH8/ICH8R". 
  Enabling flash write... BBAR offset is unknown on ICH8!<BR>OK.<BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x1080000 bytes at 0x00000000fef80000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x1000000 bytes at 0x00000000ff000000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x1000000 bytes at 0x00000000ff000000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x1000000 bytes at 0x00000000ff000000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x1000000 bytes at 0x00000000ff000000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x1000000 bytes at 0x00000000ff000000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x1000000 bytes at 0x00000000ff000000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x1000000 bytes at 0x00000000ff000000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x1000000 bytes at 0x00000000ff000000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x1000000 bytes at 0x00000000ff000000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Error 
  accessing flash chip, 0x800000 bytes at 0x00000000ff800000<BR>/dev/mem mmap 
  failed: Resource temporarily unavailable<BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Found 
  Winbond flash chip "W25X80" (1024 kB, SPI) at physical address 
  0xfff00000.<BR>Error accessing flash chip, 0x800000 bytes at 
  0x00000000ff800000<BR>/dev/mem mmap failed: Resource temporarily 
  unavailable<BR>Trying to unmap a nonexisting mapping!<BR>Please report a bug 
  at <A>flashrom@flashrom.org</A><BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Trying to 
  unmap a nonexisting mapping!<BR>Please report a bug at 
  <A>flashrom@flashrom.org</A><BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Trying to 
  unmap a nonexisting mapping!<BR>Please report a bug at 
  <A>flashrom@flashrom.org</A><BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Trying to 
  unmap a nonexisting mapping!<BR>Please report a bug at 
  <A>flashrom@flashrom.org</A><BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Trying to 
  unmap a nonexisting mapping!<BR>Please report a bug at 
  <A>flashrom@flashrom.org</A><BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Trying to 
  unmap a nonexisting mapping!<BR>Please report a bug at 
  <A>flashrom@flashrom.org</A><BR>Trying to unmap a nonexisting 
  mapping!<BR>Please report a bug at <A>flashrom@flashrom.org</A><BR>Trying to 
  unmap a nonexisting mapping!<BR>Please report a bug at 
  <A>flashrom@flashrom.org</A><BR>No operations were 
  specified.<BR><A>root@NASPro2:/data/Documents/BIOS</A>#<BR></DIV></BLOCKQUOTE></FONT></BODY></HTML>