<div dir="ltr">With patch:<br><div><br>san@flashrom:~/flashrom/P4$ flashrom -V -w P4.rom<br>flashrom v0.9.6.1-r1704 on Linux 3.5.0-23-generic (i686)<br>flashrom is free software, get the source code at <a href="http://www.flashrom.org">http://www.flashrom.org</a><br>
<br>flashrom was built with libpci 3.1.8, GCC 4.6.3, little endian<br>Command line (3 args): flashrom -V -w P4.rom<br>Please select a programmer with the --programmer parameter.<br>Previously this was not necessary because there was a default set.<br>
To choose the mainboard of this computer use 'internal'. Valid choices are:<br>internal, dummy, nic3com, nicrealtek, gfxnvidia, drkaiser, satasii, ft2232_spi,<br>serprog, buspirate_spi, rayer_spi, pony_spi, nicintel, nicintel_spi, ogp_spi,<br>
satamv, linux_spi, usbblaster_spi.<br>san@flashrom:~/flashrom/P4$ flashrom -V -w P4.rom --programmer  internal<br>flashrom v0.9.6.1-r1704 on Linux 3.5.0-23-generic (i686)<br>flashrom is free software, get the source code at <a href="http://www.flashrom.org">http://www.flashrom.org</a><br>
<br>flashrom was built with libpci 3.1.8, GCC 4.6.3, little endian<br>Command line (5 args): flashrom -V -w P4.rom --programmer internal<br>Calibrating delay loop... OS timer resolution is 13 usecs, 727M loops per second, 10 myus = 19 us, 100 myus = 2518 us, 1000 myus = 1153 us, 10000 myus = 11277 us, 52 myus = 57 us, OK.<br>
Initializing internal programmer<br>ERROR: Could not get I/O privileges (Operation not permitted).<br>You need to be root.<br>Error: Programmer initialization failed.<br>san@flashrom:~/flashrom/P4$ sudo flashrom -V -w P4.rom --programmer  internal<br>
[sudo] password for san: <br>flashrom v0.9.6.1-r1704 on Linux 3.5.0-23-generic (i686)<br>flashrom is free software, get the source code at <a href="http://www.flashrom.org">http://www.flashrom.org</a><br><br>flashrom was built with libpci 3.1.8, GCC 4.6.3, little endian<br>
Command line (5 args): flashrom -V -w P4.rom --programmer internal<br>Calibrating delay loop... OS timer resolution is 12 usecs, 512M loops per second, delay more than 10% too short (got 63% of expected delay), recalculating... 713M loops per second, 10 myus = 19 us, 100 myus = 3282 us, 1000 myus = 835 us, 10000 myus = 22949 us, 48 myus = 53 us, OK.<br>
Initializing internal programmer<br>No coreboot table found.<br>DMI string system-manufacturer: " "<br>DMI string system-product-name: " "<br>DMI string system-version: " "<br>DMI string baseboard-manufacturer: " "<br>
DMI string baseboard-product-name: "i845E-PC87366"<br>DMI string baseboard-version: " "<br>DMI string chassis-type: "Desktop"<br>W836xx enter config mode worked or we were already in config mode. W836xx leave config mode had no effect.<br>
Active config mode, unknown reg 0x20 ID: e9.<br>Please send the output of "flashrom -V" to <br><a href="mailto:flashrom@flashrom.org">flashrom@flashrom.org</a> with W836xx: your board name: flashrom -V<br>as the subject to help us finish support for your Super I/O. Thanks.<br>
Found chipset "Intel ICH4/ICH4-L" with PCI ID 8086:24c0. Enabling flash write... <br>BIOS_CNTL = 0x01: BIOS Lock Enable: disabled, BIOS Write Enable: enabled<br>OK.<br>The following protocols are supported: FWH.<br>
Probing for Atmel AT49LH002, 256 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>Probing for Intel 82802AB, 512 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>
Probing for Intel 82802AC, 1024 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>Probing for PMC Pm49FL002, 256 kB: probe_jedec_common: id1 0xbf, id2 0x57<br>Probing for PMC Pm49FL004, 512 kB: probe_jedec_common: id1 0xbf, id2 0x57<br>
Probing for Sharp LHF00L04, 1024 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>Probing for SST SST49LF002A/B, 256 kB: probe_jedec_common: id1 0xbf, id2 0x57<br>Found SST flash chip "SST49LF002A/B" (256 kB, FWH) at physical address 0xfffc0000.<br>
Lock status for 0x000000 (size 0x004000) is 01, write locked<br>Lock status for 0x004000 (size 0x004000) is 00, full access<br>Lock status for 0x008000 (size 0x004000) is 01, write locked<br>Lock status for 0x00c000 (size 0x004000) is 00, full access<br>
Lock status for 0x010000 (size 0x004000) is 01, write locked<br>Lock status for 0x014000 (size 0x004000) is 00, full access<br>Lock status for 0x018000 (size 0x004000) is 01, write locked<br>Lock status for 0x01c000 (size 0x004000) is 00, full access<br>
Lock status for 0x020000 (size 0x004000) is 01, write locked<br>Lock status for 0x024000 (size 0x004000) is 00, full access<br>Lock status for 0x028000 (size 0x004000) is 01, write locked<br>Lock status for 0x02c000 (size 0x004000) is 00, full access<br>
Lock status for 0x030000 (size 0x004000) is 01, write locked<br>Lock status for 0x034000 (size 0x004000) is 00, full access<br>Lock status for 0x038000 (size 0x004000) is 01, write locked<br>Lock status for 0x03c000 (size 0x004000) is 00, full access<br>
Probing for SST SST49LF003A/B, 384 kB: probe_jedec_common: id1 0xbf, id2 0x57<br>Probing for SST SST49LF004A/B, 512 kB: probe_jedec_common: id1 0xbf, id2 0x57<br>Probing for SST SST49LF004C, 512 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>
Probing for SST SST49LF008A, 1024 kB: probe_jedec_common: id1 0xbf, id2 0x57<br>Probing for SST SST49LF008C, 1024 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>Probing for SST SST49LF016C, 2048 kB: probe_82802ab: id1 0xff, id2 0xff, id1 parity violation, id1 is normal flash content, id2 is normal flash content<br>
Probing for ST M50FLW040A, 512 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>Probing for ST M50FLW040B, 512 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>
Probing for ST M50FLW080A, 1024 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>Probing for ST M50FLW080B, 1024 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>
Probing for ST M50FW002, 256 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>Probing for ST M50FW016, 2048 kB: probe_82802ab: id1 0xff, id2 0xff, id1 parity violation, id1 is normal flash content, id2 is normal flash content<br>
Probing for ST M50FW040, 512 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>Probing for ST M50FW080, 1024 kB: probe_82802ab: id1 0x25, id2 0x82, id1 is normal flash content, id2 is normal flash content<br>
Probing for Winbond W39V040FA, 512 kB: probe_jedec_common: id1 0xbf, id2 0x57<br>Probing for Winbond W39V040FB, 512 kB: probe_jedec_common: id1 0xbf, id2 0x57<br>Probing for Winbond W39V040FC, 512 kB: probe_jedec_common: id1 0xbf, id2 0x57<br>
Probing for Winbond W49V002FA, 256 kB: probe_jedec_common: id1 0xbf, id2 0x57<br>Probing for Winbond W39V080FA, 1024 kB: probe_jedec_common: id1 0xbf, id2 0x57<br>Probing for Winbond W39V080FA (dual mode), 512 kB: probe_jedec_common: id1 0xbf, id2 0x57<br>
Found SST flash chip "SST49LF002A/B" (256 kB, FWH).<br>Lock status for 0x000000 (size 0x004000) is 01, write locked<br>Trying to clear lock for 0x000000... Lock status for 0x000000 (size 0x004000) is 00, full access<br>
OK<br>Lock status for 0x004000 (size 0x004000) is 00, full access<br>Lock status for 0x008000 (size 0x004000) is 01, write locked<br>Trying to clear lock for 0x008000... Lock status for 0x008000 (size 0x004000) is 00, full access<br>
OK<br>Lock status for 0x00c000 (size 0x004000) is 00, full access<br>Lock status for 0x010000 (size 0x004000) is 01, write locked<br>Trying to clear lock for 0x010000... Lock status for 0x010000 (size 0x004000) is 00, full access<br>
OK<br>Lock status for 0x014000 (size 0x004000) is 00, full access<br>Lock status for 0x018000 (size 0x004000) is 01, write locked<br>Trying to clear lock for 0x018000... Lock status for 0x018000 (size 0x004000) is 00, full access<br>
OK<br>Lock status for 0x01c000 (size 0x004000) is 00, full access<br>Lock status for 0x020000 (size 0x004000) is 01, write locked<br>Trying to clear lock for 0x020000... Lock status for 0x020000 (size 0x004000) is 00, full access<br>
OK<br>Lock status for 0x024000 (size 0x004000) is 00, full access<br>Lock status for 0x028000 (size 0x004000) is 01, write locked<br>Trying to clear lock for 0x028000... Lock status for 0x028000 (size 0x004000) is 00, full access<br>
OK<br>Lock status for 0x02c000 (size 0x004000) is 00, full access<br>Lock status for 0x030000 (size 0x004000) is 01, write locked<br>Trying to clear lock for 0x030000... Lock status for 0x030000 (size 0x004000) is 00, full access<br>
OK<br>Lock status for 0x034000 (size 0x004000) is 00, full access<br>Lock status for 0x038000 (size 0x004000) is 01, write locked<br>Trying to clear lock for 0x038000... Lock status for 0x038000 (size 0x004000) is 00, full access<br>
OK<br>Lock status for 0x03c000 (size 0x004000) is 00, full access<br>Flash image seems to be a legacy BIOS. Disabling coreboot-related checks.<br>Reading old flash chip contents... done.<br>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:EFAILED at 0x0003f015! Expected=0xff, Found=0x20, failed byte count from 0x0003f000-0x0003ffff: 0xfbc<br>
ERASE FAILED!<br>Reading current flash chip contents... done. Looking for another erase function.<br>Trying erase function 1... 0x000000-0x003fff:S, 0x004000-0x007fff:S, 0x008000-0x00bfff:S, 0x00c000-0x00ffff:S, 0x010000-0x013fff:S, 0x014000-0x017fff:S, 0x018000-0x01bfff:S, 0x01c000-0x01ffff:S, 0x020000-0x023fff:S, 0x024000-0x027fff:S, 0x028000-0x02bfff:S, 0x02c000-0x02ffff:S, 0x030000-0x033fff:S, 0x034000-0x037fff:S, 0x038000-0x03bfff:S, 0x03c000-0x03ffff:EFAILED at 0x0003c000! Expected=0xff, Found=0xe8, failed byte count from 0x0003c000-0x0003ffff: 0x3e4b<br>
ERASE FAILED!<br>Looking for another erase function.<br>No usable erase functions left.<br>FAILED!<br>Uh oh. Erase/write failed. Checking if anything changed.<br>Good. It seems nothing was changed.<br>Writing to the flash chip apparently didn't do anything.<br>
This means we have to add special support for your board, programmer or flash<br>chip. Please report this on IRC at <a href="http://chat.freenode.net">chat.freenode.net</a> (channel #flashrom) or<br>mail <a href="mailto:flashrom@flashrom.org">flashrom@flashrom.org</a>, thanks!<br>
-------------------------------------------------------------------------------<br>You may now reboot or simply leave the machine running.<br>Restoring PCI config space for 00:1f:0 reg 0x4e<br><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/8/3 Maciej Pijanka <span dir="ltr"><<a href="mailto:maciej.pijanka@agaran.kernel.pl" target="_blank">maciej.pijanka@agaran.kernel.pl</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sat, 27 Jul 2013, san wrote:<br>
<br>
> nie bangla<br>
<br>
</div>Bez logów i lspci nikt nie wrzuci tego patcha do flashroma na stałe nawet jako<br>
niesprawdzonego.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
><br>
> 2013/7/26 san <<a href="mailto:san@plusnet.pl">san@plusnet.pl</a>><br>
><br>
> > właśnie się tym zajmowałem ;)<br>
> ><br>
> ><br>
> > 2013/7/26 Maciej Pijanka <<a href="mailto:maciej.pijanka@agaran.kernel.pl">maciej.pijanka@agaran.kernel.pl</a>><br>
> ><br>
> >> On Fri, 26 Jul 2013, san wrote:<br>
> >><br>
> >> > W następnym mailu napisał, ze to jednak nie zadziała.<br>
> >><br>
> >> Imo można sprawdzić, jak nie zadziała, to nie zrobi nic zupełnie.<br>
> >><br>
> >> > 26 lip 2013 13:21, "Maciej Pijanka" <<a href="mailto:maciej.pijanka@agaran.kernel.pl">maciej.pijanka@agaran.kernel.pl</a>><br>
> >> > napisał(a):<br>
> >> ><br>
> >> > > On Fri, 26 Jul 2013, san wrote:<br>
> >> > ><br>
> >> > > > Yeah, i tried to understand it about three times...<br>
> >> > > ><br>
> >> > > > I'll try again, tommorow. Only thing i found is<br>
> >> > > ><br>
> >> > ><br>
> >> > > Trzeba wziąść zródła z SVN, nałożyć łatkę która wysłał 2 maile temu<br>
> >> stefan<br>
> >> > > (w<br>
> >> > > załaczniku), skompilować, odpalić z -V zapis (czyli -V -w <plik>)<br>
> >> > > Plik powinien różnić się od zawartości romu czyli jakiś nowszy jest<br>
> >> > > potrzebny,<br>
> >> > > bo inaczej test zapisu jest niewiarygodny.<br>
> >> > ><br>
> >> > > ponadto potrzebny jest wynik lspci -nnv zeby poprawić łatkę tak by<br>
> >> działała<br>
> >> > > tylko dla jednej konkretnej płyty a nie losowych, czyli mogła zostać<br>
> >> > > wrzucona<br>
> >> > > do zródeł flashroma do repozytorium bo w takiej postaci jak w<br>
> >> załaczniku<br>
> >> > > nie<br>
> >> > > może zostać commitnięta.<br>
> >> > ><br>
> >> > > /Cut/<br>
> >> > ><br>
> >> > > ><br>
> >> > > > but have no idea how to use it...<br>
> >> > > > best regards.<br>
> >> > > ><br>
> >> > > ><br>
> >> > > > 2013/7/25 Stefan Tauner <<a href="mailto:stefan.tauner@student.tuwien.ac.at">stefan.tauner@student.tuwien.ac.at</a>><br>
> >> > > ><br>
> >> > > > > On Thu, 25 Jul 2013 21:31:01 +0200<br>
> >> > > > > Stefan Tauner <<a href="mailto:stefan.tauner@student.tuwien.ac.at">stefan.tauner@student.tuwien.ac.at</a>> wrote:<br>
> >> > > > ><br>
> >> > > > > > You can also set this somehow with pciset as you know, I am<br>
> >> just not<br>
> >> > > > > > entirely sure about the exact commands.<br>
> >> > > > > > you would need to get the gpiobase first with<br>
> >> > > > > > setpci -s 00:1f.0 58.l<br>
> >> > > > > > (only bits 6-15 are the base address see datasheet)<br>
> >> > > > > > and then fetch the old value with<br>
> >> > > > > > setpci -s 0:1f.0 gpiobase+0x0c<br>
> >> > > > > > and set it with<br>
> >> > > > > > setpci -s 0:1f.0 gpiobase+0x0c=...<br>
> >> > > > ><br>
> >> > > > > Actually this can't work out (thanks to Kyösti for pointing that<br>
> >> out).<br>
> >> > > > > Because the gpiobase address is in the separated i/o address<br>
> >> space of<br>
> >> > > > > the cpu. "The control for the general purpose I/O signals is<br>
> >> handled<br>
> >> > > > > through a separate 64-byte I/O space."<br>
> >> > > > > I am not aware of any distributed binaries that work similar to<br>
> >> setpci<br>
> >> > > > > but in the i/o space, so you would need to program your own...<br>
> >> like the<br>
> >> > > > > one described here:<br>
> >> > > > > <a href="http://flashrom.org/Board_Enable" target="_blank">http://flashrom.org/Board_Enable</a><br>
> >> > > > ><br>
> >> > > > > --<br>
> >> > > > > Kind regards/Mit freundlichen Grüßen, Stefan Tauner<br>
> >> > > > ><br>
> >> > > ><br>
> >> > > ><br>
> >> > > ><br>
> >> > > > --<br>
> >> > > > [ e-San.info | <a href="mailto:San@plusnet.pl">San@plusnet.pl</a> ]<br>
> >> > ><br>
> >> > > > _______________________________________________<br>
> >> > > > flashrom mailing list<br>
> >> > > > <a href="mailto:flashrom@flashrom.org">flashrom@flashrom.org</a><br>
> >> > > > <a href="http://www.flashrom.org/mailman/listinfo/flashrom" target="_blank">http://www.flashrom.org/mailman/listinfo/flashrom</a><br>
> >> > ><br>
> >> > ><br>
> >> > > --<br>
> >> > > Maciej Pijanka<br>
> >> > > I don't fear computers, I fear lack of them -- Isaac Asimov<br>
> >> > ><br>
> >><br>
> >> --<br>
> >> Maciej Pijanka<br>
> >> I don't fear computers, I fear lack of them -- Isaac Asimov<br>
> >><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > [ e-San.info | <a href="mailto:San@plusnet.pl">San@plusnet.pl</a> ]<br>
> ><br>
><br>
><br>
><br>
> --<br>
> [ e-San.info | <a href="mailto:San@plusnet.pl">San@plusnet.pl</a> ]<br>
<br>
--<br>
Maciej Pijanka<br>
I don't fear computers, I fear lack of them -- Isaac Asimov<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>[ e-San.info | <a href="mailto:San@plusnet.pl">San@plusnet.pl</a> ]
</div>