<div dir="ltr"><div><div><div><div><div>What name of module should i look for?<br><br></div>I'm trying to manipulate gpios, but getting this message:<br><br>===============<br>root@flashrom:/sys/class/gpio# echo 3 > /sys/class/gpio/export <br>
bash: echo: write error: Invalid argument<br>===============<br><br></div>Might it be releated to dmesg info:<br><br>===============<br>[    7.508264] ACPI Warning: 0x00000430-0x00000433 SystemIO conflicts with Regio<br>n \SPEN 1 (20120320/utaddress-251)<br>
[    7.508295] ACPI: If an ACPI driver is available for this device, you should <br>use it instead of the native driver<br>[    7.508302] lpc_ich: Resource conflict(s) found affecting iTCO_wdt<br>[    7.508320] lpc_ich 0000:00:1f.0: I/O space for GPIO uninitialized<br>
[    7.548511] ppdev: user-space parallel port driver<br>===============<br><br></div>I have no idea what to do. <br></div>GPIO uninitialised is not for this machine only.<br><br></div>Just wanted to inform, ill try to find some answers, but any help would be aprecieted. <br>
<div><div><div><div><div><br></div><div>Is it possible we can not do anything beacose of GPIO interface problems?<br></div><div><br></div><div>Best regards!<br></div><div><br><br><div><div><div class="gmail_extra"><div class="gmail_quote">
2013/10/2 Stefan Tauner <span dir="ltr"><<a href="mailto:stefan.tauner@student.tuwien.ac.at" target="_blank">stefan.tauner@student.tuwien.ac.at</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class=""><div class="h5">On Tue, 1 Oct 2013 20:39:12 +0200<br>
san <<a href="mailto:san@plusnet.pl">san@plusnet.pl</a>> wrote:<br>
<br>
> Hi again!<br>
><br>
> I'm trying to "Try & Error method on GPIO pins" but not sure what to do:<br>
><br>
> ======================<br>
> san@flashrom:~$ lspci | grep ISA<br>
> 00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface<br>
> Bridge (rev 02)<br>
> ======================<br>
><br>
> seems to be fine, but can not find anything usefull at:<br>
><br>
> ======================<br>
> san@flashrom:~$ cat /proc/ioports<br>
> 0000-001f : dma1<br>
> 0020-0021 : pic1<br>
> 0040-0043 : timer0<br>
> 0050-0053 : timer1<br>
> 0060-0060 : keyboard<br>
> 0064-0064 : keyboard<br>
> 0070-0073 : rtc0<br>
> 0080-008f : dma page reg<br>
> 00a0-00a1 : pic2<br>
> 00c0-00df : dma2<br>
> 00f0-00ff : fpu<br>
> 0170-0177 : 0000:00:1f.1<br>
>   0170-0177 : ata_piix<br>
> 01f0-01f7 : 0000:00:1f.1<br>
>   01f0-01f7 : ata_piix<br>
> 0294-0297 : pnp 00:01<br>
> 0376-0376 : 0000:00:1f.1<br>
>   0376-0376 : ata_piix<br>
> 0378-037a : parport0<br>
> 03f2-03f2 : floppy<br>
> 03f4-03f5 : floppy<br>
> 03f6-03f6 : 0000:00:1f.1<br>
>   03f6-03f6 : ata_piix<br>
> 03f7-03f7 : floppy<br>
> 03f8-03ff : serial<br>
> 0400-04bf : pnp 00:0a<br>
>   0400-0403 : ACPI PM1a_EVT_BLK<br>
>   0404-0405 : ACPI PM1a_CNT_BLK<br>
>   0408-040b : ACPI PM_TMR<br>
>   0428-042f : ACPI GPE0_BLK<br>
> 04d0-04d1 : pnp 00:01<br>
> 0500-051f : 0000:00:1f.3<br>
> 0a78-0a7b : pnp 00:01<br>
> 0b78-0b7b : pnp 00:01<br>
> 0bbc-0bbf : pnp 00:01<br>
> 0cf8-0cff : PCI conf1<br>
> 0e78-0e7b : pnp 00:01<br>
> 0f78-0f7b : pnp 00:01<br>
> 0fbc-0fbf : pnp 00:01<br>
> a000-afff : PCI Bus 0000:02<br>
>   a000-a0ff : 0000:02:02.0<br>
>     a000-a0ff : 8139too<br>
> b000-b01f : 0000:00:1d.1<br>
>   b000-b01f : uhci_hcd<br>
> b400-b41f : 0000:00:1d.2<br>
>   b400-b41f : uhci_hcd<br>
> b800-b81f : 0000:00:1d.3<br>
>   b800-b81f : uhci_hcd<br>
> bc00-bc1f : 0000:00:1d.0<br>
>   bc00-bc1f : uhci_hcd<br>
> c000-c007 : 0000:00:1f.2<br>
>   c000-c007 : ata_piix<br>
> c400-c403 : 0000:00:1f.2<br>
>   c400-c403 : ata_piix<br>
> c800-c807 : 0000:00:1f.2<br>
>   c800-c807 : ata_piix<br>
> cc00-cc03 : 0000:00:1f.2<br>
>   cc00-cc03 : ata_piix<br>
> d000-d00f : 0000:00:1f.2<br>
>   d000-d00f : ata_piix<br>
> d800-d8ff : 0000:00:1f.5<br>
>   d800-d8ff : Intel ICH5<br>
> dc00-dc3f : 0000:00:1f.5<br>
>   dc00-dc3f : Intel ICH5<br>
> f000-f00f : 0000:00:1f.1<br>
>   f000-f00f : ata_piix<br>
><br>
> ======================<br>
<br>
</div></div>No idea why the GPIO function is not found in the ioports... probably<br>
you need to load a module for it that is not loaded automatically.<br>
<br>
<br>
The interesting part of your binary that (probably) disables the write<br>
protection is disassembled here:<br>
<a href="http://paste.flashrom.org/view.php?id=1772" target="_blank">http://paste.flashrom.org/view.php?id=1772</a><br>
<br>
The head of the function 5E1F is done by flashrom already (setting<br>
BIOS_CNTL). Starting with 5E2C it calculates the offset of the GPIO<br>
registers mapped on PMBASE (5E77 stores a part of PMBASE in dx).<br>
<br>
So you can either continue with the trial and error method or try to<br>
understand the code the vendor tool would execute.<br>
<span class=""><font color="#888888"><br>
--<br>
Kind regards/Mit freundlichen Grüßen, Stefan Tauner<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>[ e-San.info | <a href="mailto:San@plusnet.pl">San@plusnet.pl</a> ]
</div></div></div></div></div></div></div></div></div>