On Sun, Nov 2, 2008 at 1:20 AM, Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> wrote:
Hi Elia,

On 30.10.2008 11:45, Elia Yehuda wrote:
> I'm trying to play with coreboot to flash my bios on my PC, with no success.
> here are the computer hardware information followed by the commands I'm
> trying to execute.
>
> cpu:         Socket370 Intel Pentium III Celeron
> northbridge:    Intel 82810E
> southbridge:    Intel 8281AA
> bios device:    ST M50FW002
>

Can you try the following flashrom patch? It should find the chip and
allow you to read it. Erase and write will NOT work and may crash.

Attached if gmail mangles the inline patch.

Add support for the ST M50FW002 chip to flashrom. Identification only,
erase/write are not implemented.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
tested and
Acked
-by: Elia Yehuda <z4ziggy@gmail.com>
 


Index: flashrom-M50FW002/flash.h
===================================================================
--- flashrom-M50FW002/flash.h   (Revision 3715)
+++ flashrom-M50FW002/flash.h   (Arbeitskopie)
@@ -317,6 +317,7 @@
 #define ST_M50FLW040B          0x28
 #define ST_M50FLW080A          0x80
 #define ST_M50FLW080B          0x81
+#define ST_M50FW002            0x29
 #define ST_M50FW040            0x2C
 #define ST_M50FW080            0x2D
 #define ST_M50FW016            0x2E
Index: flashrom-M50FW002/flashchips.c
===================================================================
--- flashrom-M50FW002/flashchips.c      (Revision 3715)
+++ flashrom-M50FW002/flashchips.c      (Arbeitskopie)
@@ -121,6 +121,7 @@
       {"ST",          "M50FLW040B",           ST_ID,          ST_M50FLW040B,          512,    64 * 1024,      TEST_UNTESTED,  probe_stm50flw0x0x,     erase_stm50flw0x0x,             write_stm50flw0x0x},
       {"ST",          "M50FLW080A",           ST_ID,          ST_M50FLW080A,          1024,   64 * 1024,      TEST_OK_PREW,   probe_stm50flw0x0x,     erase_stm50flw0x0x,             write_stm50flw0x0x},
       {"ST",          "M50FLW080B",           ST_ID,          ST_M50FLW080B,          1024,   64 * 1024,      TEST_UNTESTED,  probe_stm50flw0x0x,     erase_stm50flw0x0x,             write_stm50flw0x0x},
+       {"ST",          "M50FW002",             ST_ID,          ST_M50FW002,            256,    64 * 1024,      TEST_UNTESTED,  probe_49lfxxxc,         NULL,                   NULL},
       {"ST",          "M50FW016",             ST_ID,          ST_M50FW016,            2048,   64 * 1024,      TEST_UNTESTED,  probe_82802ab,          erase_82802ab,                  write_82802ab},
       {"ST",          "M50FW040",             ST_ID,          ST_M50FW040,            512,    64 * 1024,      TEST_OK_PREW,   probe_82802ab,          erase_82802ab,                  write_82802ab},
       {"ST",          "M50FW080",             ST_ID,          ST_M50FW080,            1024,   64 * 1024,      TEST_UNTESTED,  probe_82802ab,          erase_82802ab,                  write_82802ab},


--
http://www.hailfinger.org/

tested and
Acked-by: Elia Yehuda <z4ziggy@gmail.com>