[LinuxBIOS] M57SLI Rev2.0 SPI - how to add the second bios chip (incl. pictures)

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Mon Oct 15 01:01:19 CEST 2007


On 13.10.2007 15:59, Harald Gutmann wrote:
> just talking to myselv, but here are some more detailed informations including 
> a backtrace of flashrom:
> i removed stripping and optimisation, but added the debug flag in makefile.
>
> benchvice flashrom # file flashrom
> flashrom: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 
> 2.6.9, statically linked, not stripped
> benchvice flashrom # gdb ./flashrom
> GNU gdb 6.6
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "x86_64-pc-linux-gnu"...
> Using host libthread_db library "/lib/libthread_db.so.1".
> (gdb) run --mainboard 
> gigabyte:m57sli -V -w /home/hg87/src/linuxbios/buildrom-devel/linuxbios.rom
> Starting 
> program: /home/hg87/src/linuxbios/LinuxBIOSv3/util/flashrom/flashrom --mainboard 
> gigabyte:m57sli -V -w /home/hg87/src/linuxbios/buildrom-devel/linuxbios.rom
> Calibrating delay loop... 348M loops per second. ok
> No LinuxBIOS table found.
> Found chipset "NVIDIA MCP55": Enabling flash write... OK.
> Found board "GIGABYTE GA-M57SLI": Enabling flash write... Serial flash segment 
> 0xfffe0000-0xffffffff enabled
> Serial flash segment 0x000e0000-0x000fffff enabled
> Serial flash segment 0xffee0000-0xffefffff disabled
> Serial flash segment 0xfff80000-0xfffeffff enabled
> LPC write to serial flash enabled
> serial flash pin 29
> OK.
> Probing for Am29F040B, 512 KB
> probe_29f040b: id1 0xff, id2 0xff
> Probing for Am29F016D, 2048 KB
> probe_29f040b: id1 0xff, id2 0xff
> Probing for AE49F2008, 256 KB
> probe_jedec: id1 0xff, id2 0xff
> Probing for At29C040A, 512 KB
> probe_jedec: id1 0xff, id2 0xff
> Probing for At29C020, 256 KB
> probe_jedec: id1 0xff, id2 0xff
> Probing for Mx29f002, 256 KB
> probe_29f002: id1 0xff, id2 0xff
> Probing for MX25L4005, 512 KB
> RDID returned c2 20 13
> probe_spi: id1 0xc2, id2 0x2013
> MX25L4005 found at physical address: 0xfff80000
> Flash part is MX25L4005 (512 KB)
> LinuxBIOS last image size (not rom size) is 4096 bytes.
> MANUFACTURER: GIGABYTE
> MAINBOARD ID: m57sli
> This firmware image matches this motherboard.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000000000 in ?? ()
> (gdb) bt
> #0  0x0000000000000000 in ?? ()
> #1  0x00000000004068f4 in main (argc=6, argv=0x7fff7540a148) at flashrom.c:460
> (gdb) c
> Continuing.
>
> Program terminated with signal SIGSEGV, Segmentation fault.
> The program no longer exists.
> (gdb) quit
> benchvice flashrom #
>   

That's a NULL pointer dereference because SPI erase/write suppport is
not enabled yet. I have patches pending.

Carl-Daniel




More information about the coreboot mailing list