[flashrom] Help: unable to upgrade bios

Raghuramchary Jallipalli Raghuramchary.Jallipalli at lntinfotech.com
Thu Feb 2 09:42:26 CET 2012


Hi David,
Sorry for the late reply.
I have done the changes as suggested and don’t see either 1 or 2 for op.atomic after issuing the “flashrom –V –p internal:this_is_not_a_laptop –r foo.bin” command. Please see attached log.

Will this now confirm that the flashrom utility cannot be used for BIOS upgrade on my board?

NOTE: The log is collected for AT25DF641A(8MB) flash as opposed to AT25DF321A(4MB) flash before.

Thanks for the help,
Raghu

From: David Hendricks [mailto:dhendrix at google.com]
Sent: Wednesday, January 11, 2012 3:32 AM
To: Raghuramchary Jallipalli
Cc: flashrom at flashrom.org; V Balaji; Vishnuvardhan Reddy
Subject: Re: [flashrom] Help: unable to upgrade bios

On Mon, Jan 9, 2012 at 3:20 AM, Raghuramchary Jallipalli <Raghuramchary.Jallipalli at lntinfotech.com<mailto:Raghuramchary.Jallipalli at lntinfotech.com>> wrote:
Thanks David.
As you said, the reason for not programming is due to wrong op.atomic configuration. Is there any way to set these properly?

It should be set automatically.

Carl-Daniel clarified on IRC that the "atomic" cycle flag will always be 0 at the stage they are printed. Sorry for the confusion!

I recommend adding a debug print to ich9_run_opcode() to see what the "atomic" flag ends up being:

Index: ichspi.c
===================================================================
--- ichspi.c    (revision 1483)
+++ ichspi.c    (working copy)
@@ -908,6 +908,7 @@
           This means the timeout must be sufficient for chip erase
           of slow high-capacity chips.
         */
+       msg_pdbg("opcode: 0x%02x, spi_type: %u, atomic: %u\n", op.opcode, op.spi_type, op.atomic);
        switch (op.atomic) {
        case 2:
                /* Select second preop. */

Then run "flashrom -V -p internal:this_is_not_a_laptop -r foo.bin" and make sure that the sector erase opcode (0x20) and byte program opcode (0x02) show either "1" or "2" for op.atomic.

This will help us to prove whether or not this is the problem you are encountering.

Yes jumper selects the ROM at a time.

Okay. I do not think Flashrom is confused about the flash part, then.

--
David Hendricks (dhendrix)
Systems Software Engineer, Google Inc.

________________________________
The contents of this e-mail and any attachment(s) may contain confidential or privileged information for the intended recipient(s). Unintended recipients are prohibited from taking action on the basis of information in this e-mail and using or disseminating the information, and must notify the sender and delete it from their system. L&T Infotech will not accept responsibility or liability for the accuracy or completeness of, or the presence of any virus or disabling code in this e-mail"
*************************************************************************
 This email and attachments have been scanned for
 potential proprietary or sensitive information leakage.
 Websense Data Security, Protecting Your Information from the Inside Out.
 www.websense.com
 *************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20120202/57142b84/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log_641A.rar
Type: application/octet-stream
Size: 6218 bytes
Desc: log_641A.rar
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20120202/57142b84/attachment.obj>


More information about the flashrom mailing list