[flashrom] Help: trouble when flashing rom

Cyrille Bartholomée cyrille at bartholomee.com
Tue Apr 19 23:08:13 CEST 2011


Hi,

Attached the output of the gdb command.
At the moment I am on irc (nick: cyrille). 

Groet,

Cyrille Bartholomée | De Damhouderestraat 20 | 2018 Antwerpen
t. 0032 3 298 4244 | m. 0032 499 711 018 | e. cyrille at bartholomee.com

Op dinsdag 19 april 2011 22:05:20 schreef Idwer Vollering:
> 2011/4/19 Cyrille Bartholomée <cyrille at bartholomee.com>:
> > Sorry for not using "reply to all.
> >
> > I've attached the output of dmesg to this mail.
> >
> > Hope you can help me further on this issue.
> 
> Hi,
> 
> This at first doesn't look good:
> [38306.942453] flashrom[11711]: segfault at 0 ip (null) sp bfacc5cc
> error 4 in libpci.so.3.1.7[2b7000+9000]
> 
> Is your laptop still powered on and are you close to it ?
> 
> Can you run "gdb --args ./flashrom -V -w <file_you_want_to_write>" (as
> root) and copy the output ?
> You then should see this lines of text, the commands are after the
> closing parentheses:
> 
> (gdb) run
> // lots of text
> (gdb) bt
> // some more text, this is the relevant part
> 
> Are you able (and willing) to join IRC, irc://irc.freenode.net/#flashrom ?
> 
> >
> > Kind regards,
> >
> > Cyrille Bartholomée | De Damhouderestraat 20 | 2018 Antwerpen
> >
> > t. 0032 3 298 4244 | m. 0032 499 711 018 | e. cyrille at bartholomee.com
> >
> > Op dinsdag 19 april 2011 12:29:22 schreef Idwer Vollering:
> >
> >> Please use "reply to all" in the future. Thanks.
> >
> >>
> >
> >> 2011/4/19 Cyrille Bartholomée <cyrille at bartholomee.com>:
> >
> >> > Dear Idwer,
> >
> >> >
> >
> >> > Just built checkout from svn. It outputs this result:
> >
> >>
> >
> >> Again: DO NOT REBOOT OR POWEROFF YOUR LAPTOP.I'
> >
> >>
> >
> >> >
> >
> >> > flashrom v0.9.3-r1288 on Linux 2.6.35-28-generic (i686), built with
> >> > libpci
> >
> >> > 3.1.7, GCC 4.4.5, little endian
> >
> >> >
> >
> >> > flashrom is free software, get the source code at
> >> > http://www.flashrom.org
> >
> >> >
> >
> >> > Calibrating delay loop... delay loop is unreliable, trying to continue
> >> > OK.
> >
> >> >
> >
> >> > Found chipset "Intel ICH4-M", enabling flash write... OK.
> >
> >> >
> >
> >> > This chipset supports the following protocols: FWH.
> >
> >> >
> >
> >> > Found chip "SST SST49LF004A/B" (512 KB, FWH) at physical address
> >> > 0xfff80000.
> >
> >> >
> >
> >> > Flash image seems to be a legacy BIOS. Disabling checks.
> >
> >> >
> >
> >> > Erasing and writing flash chip... ERASE FAILED at 0x00016000!
> >> > Expected=0xff,
> >
> >> > Read=0xae, failed byte count from 0x00016000-0x00016fff: 0xfde
> >
> >> >
> >
> >> > ERASE FAILED!
> >
> >> >
> >
> >> > ERASE FAILED at 0x00010000! Expected=0xff, Read=0xca, failed byte count
> >> > from
> >
> >> > 0x00010000-0x0001ffff: 0xfeb2
> >
> >> >
> >
> >> > ERASE FAILED!
> >
> >> >
> >
> >> > Segmentatiefout
> >
> >> >
> >
> >> > Segmentatiefout=segmentation error
> >
> >>
> >
> >> flashrom should NOT have segfaulted. Can you show the last lines of
> >
> >> dmesg (dmesg | tail) ?
> >
> >>
> >
> >> >
> >
> >> > Maybe this information can help you?
> >
> >> >
> >
> >> > Regards,
> >
> >> >
> >
> >> > Cyrille Bartholomée | De Damhouderestraat 20 | 2018 Antwerpen
> >
> >> >
> >
> >> > t. 0032 3 298 4244 | m. 0032 499 711 018 | e. cyrille at bartholomee.com
> >
> >> >
> >
> >> > Op dinsdag 19 april 2011 07:25:59 schreef Cyrille Bartholomée:
> >
> >> >
> >
> >> >> Dear Idwer,
> >
> >> >
> >
> >> >>
> >
> >> >
> >
> >> >>
> >
> >> >
> >
> >> >> First of all thank you for responding so fast and trying to help me!
> >
> >> >
> >
> >> >>
> >
> >> >
> >
> >> >> 1. Downloaded and built latest flashrom. Problem remains exactly the
> >> >> same
> >
> >> >> as with previous version.
> >
> >> >
> >
> >> >> 2. I am using an Asus laptop model M6Ne, the exact type of board I
> >> >> don't
> >
> >> >> know.
> >
> >> >
> >
> >> >> 3. I have run the commands you mentioned, the results are attached to
> >> >> this
> >
> >> >> mail.
> >
> >> >
> >
> >> >>
> >
> >> >
> >
> >> >> If there is more information you need, please let me know.
> >
> >> >
> >
> >> >>
> >
> >> >
> >
> >> >> Again, thanks for your help.
> >
> >> >
> >
> >> >>
> >
> >> >
> >
> >> >>
> >
> >> >
> >
> >> >> Kind regards,
> >
> >> >
> >
> >> >>
> >
> >> >
> >
> >> >> Cyrille Bartholomée | De Damhouderestraat 20 | 2018 Antwerpen
> >
> >> >
> >
> >> >> t. 0032 3 298 4244 | m. 0032 499 711 018 | e. cyrille at bartholomee.com
> >
> >> >
> >
> >> >>
> >
> >> >
> >
> >> >> Op dinsdag 19 april 2011 00:21:28 schreef u:
> >
> >> >
> >
> >> >> > 2011/4/18 Cyrille Bartholomée <cyrille at bartholomee.com>:
> >
> >> >
> >
> >> >> > > Dear,
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > I'm facing this problem when flashing my rom:
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > flashrom v0.9.2-r1028 on Linux 2.6.35-28-generic (i686), built with
> >
> >> >> > > libpci
> >
> >> >
> >
> >> >> > > 3.0.0, GCC 4.4.4, little endian
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > flashrom is free software, get the source code at
> >
> >> >> > > http://www.flashrom.org
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > Calibrating delay loop... delay loop is unreliable, trying to
> >> >> > > continue
> >
> >> >> > > OK.
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > No coreboot table found.
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > Found chipset "Intel ICH4-M", enabling flash write... OK.
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > This chipset supports the following protocols: Non-SPI.
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > Found chip "SST SST49LF004A/B" (512 KB, FWH) at physical address
> >
> >> >> > > 0xfff80000.
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > Flash image seems to be a legacy BIOS. Disabling checks.
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > Writing flash chip... Erasing flash chip... ERASE FAILED at
> >
> >> >> > > 0x00000008!
> >
> >> >
> >
> >> >> > > Expected=0xff, Read=0x00, failed byte count from
> >
> >> >> > > 0x00000000-0x00000fff:
> >
> >> >
> >
> >> >> > > 0xfc5
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > ERASE FAILED!
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > ERASE FAILED at 0x00000008! Expected=0xff, Read=0x00, failed byte
> >
> >> >> > > count from
> >
> >> >
> >
> >> >> > > 0x00000000-0x0000ffff: 0xfadb
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > ERASE FAILED!
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > FAILED!
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > ERASE FAILED!
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > FAILED!
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > Your flash chip is in an unknown state.
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > Get help on IRC at irc.freenode.net (channel #flashrom) or
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > mail flashrom at flashrom.org!
> >
> >> >
> >
> >> >> >
> >
> >> >
> >
> >> >> > Can you:
> >
> >> >
> >
> >> >> > - try a newer release (or build the latest developemt code yourself
> >
> >> >
> >
> >> >> > http://www.flashrom.org/Downloads#Installation_from_source)
> >
> >> >
> >
> >> >> > - mention the exact name of your board (including revision, if there
> >
> >> >
> >
> >> >> > are multiple revisions)
> >
> >> >
> >
> >> >> > - attach the output of 'flashrom -V', 'lspci -nnvvvxxx', 'superiotool
> >
> >> >
> >
> >> >> > -deV' (run all commands as root)
> >
> >> >
> >
> >> >> >
> >
> >> >
> >
> >> >> >
> >
> >> >
> >
> >> >> > Thanks in advance,
> >
> >> >
> >
> >> >> > Idwer
> >
> >> >
> >
> >> >> >
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > >
> >
> >> >> > >
> >> >> > > -------------------------------------------------------------------------------
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > DO NOT REBOOT OR POWEROFF!
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > Regards,
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > Cyrille Bartholomée | De Damhouderestraat 20 | 2018 Antwerpen
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > t. 0032 3 298 4244 | m. 0032 499 711 018 | e.
> >> >> > > cyrille at bartholomee.com
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> > > _______________________________________________
> >
> >> >
> >
> >> >> > > flashrom mailing list
> >
> >> >
> >
> >> >> > > flashrom at flashrom.org
> >
> >> >
> >
> >> >> > > http://www.flashrom.org/mailman/listinfo/flashrom
> >
> >> >
> >
> >> >> > >
> >
> >> >
> >
> >> >> >
> >
> >> >
> >
> >> >>
> >
> >>
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20110419/b202c24a/attachment.html>
-------------- next part --------------
Reading old flash chip contents...
Erasing and writing flash chip... Looking at blockwise erase function 0... trying... 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:EERASE FAILED at 0x00016000! Expected=0xff, Read=0xae, failed byte count from 0x00016000-0x00016fff: 0xfde
ERASE FAILED!


Looking at blockwise erase function 1... trying... 0x000000-0x00ffff:S, 0x010000-0x01ffff:EERASE FAILED at 0x00010000! Expected=0xff, Read=0xca, failed byte count from 0x00010000-0x0001ffff: 0xfeb2
ERASE FAILED!


Looking at blockwise erase function 2... eraseblock layout is known, but matching block erase function is not implemented. trying... 0x000000-0x07ffff:E
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x0804a185 in erase_and_write_block_helper ()
#2  0x0804afeb in erase_and_write_flash ()
#3  0x0804b20f in doit ()
#4  0x0804bacd in cli_classic ()
#5  0x0804a48f in main ()
(gdb) 



More information about the flashrom mailing list