All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Does U-boot supports Spansion S29GL512P NOR Flash?
Date: Tue, 13 Apr 2010 10:34:11 +0200	[thread overview]
Message-ID: <201004131034.11591.sr@denx.de> (raw)
In-Reply-To: <s2sb9c1f3ac1004122331uebb70409y1d9127f77c565f1d@mail.gmail.com>

On Tuesday 13 April 2010 08:31:59 prakash bedge wrote:
> I did it. :)

Good. But what did you change to make it work?
 
> I am now able to detect the flash. So now I can run the uboot commnads i.e
> flinfo to check the flash information.
> For this I make use of ST fixup code for M29W128GH in which I changed the
> codition for chekcing chipwidth.

Are you not using the mainline version of cfi_flash.c? If not, which "fixup 
code" are you referring to (link)?

>  To detect the flash I used chipwidth 16 Bits and Portwidth 8 Bits.

Just checking to be sure: Are you using the Spansion chip in byte (8bit) or 
word (16bit) mode? All configurations I have used till now use the word mode 
with this chip.

And you really use 8 bit portwidth to access this chip in your SoC?
 
> But now I am getting the problem in erasing on flash. I gave the erase
> command to erase the sector but then the sector is not getting erased and I
> am getting the message as flash erased. Same is for chip erase command. See
> the log below

<snip>

> U-Boot $  *saveenv*
> Saving Environment to Flash...
> copy old content: sect_addr: FFFA0000  env_addr: FFFA0000  offset: 00000000
> Protect off FFFA0000 ... FFFBFFFF
> Un-Protecting sectors 509..509 in bank 1
> Un-Protected 1 sectors
> *Erasing Flash...Erase Flash from 0xfffa0000 to 0xfffbffff in Bank # 1*
> fwc addr fffa0aaa cmd aa aa 8bit x 8 bit
> fwc addr fffa0555 cmd 55 55 8bit x 8 bit
> fwc addr fffa0aaa cmd 80 80 8bit x 8 bit
> fwc addr fffa0aaa cmd aa aa 8bit x 8 bit
> fwc addr fffa0555 cmd 55 55 8bit x 8 bit
> fwc addr fffa0000 cmd 30 30 8bit x 8 bit
> *flash_is_busy: 0
>  done*
> *Erased 1 sectors
> Writing to Flash... Flash not Erased*
> Protecting sectors 509..509 in bank 1
> Protected 1 sectors
> U-Boot $
> 
> Also, even by using BDI 3000 Debugger, I am not able to erase the flash by
> giving the proper CFI erase command.
> 
> mmb 0xfc000000 0xf0
>  mmb 0xfc000aaa 0xaa
>  mmb 0xfc000555 0x55
> mmb 0xfc000aaa 0x80
> mmb 0xfc000aaa 0xaa
> mmb 0xfc000555 0x55
> mmb 0xff7c0000  0x30
> 
> But the data is still present.
> 
> What may be the reason that flash in not getting erased using U-boot as
> well as BDI debugger?

Hard to tell. Perhaps still a problem of a misconfigured external bus? Perhaps 
a problem of incorrect unlocking addresses (byte vs. word address)?

How did you program the U-Boot image into FLASH? Via the BDI3000 "prog" 
command? Is this working correctly?

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

  reply	other threads:[~2010-04-13  8:34 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-09  5:26 [U-Boot] Does U-boot supports Spansion S29GL512P NOR Flash? prakash bedge
2010-04-09  6:10 ` Stefan Roese
2010-04-09  7:22   ` prakash bedge
2010-04-09  7:35     ` Stefan Roese
2010-04-09  7:55       ` Frank Svendsbøe
2010-04-09  8:05       ` prakash bedge
2010-04-09  8:09         ` Stefan Roese
2010-04-09  9:10           ` Frank Svendsbøe
2010-04-09 12:11             ` prakash bedge
2010-04-09 13:27               ` Frank Svendsbøe
2010-04-12  4:13                 ` prakash bedge
2010-04-12 17:01                   ` Frank Svendsbøe
2010-04-12 17:15                   ` Frank Svendsbøe
2010-04-13  6:31                     ` prakash bedge
2010-04-13  8:34                       ` Stefan Roese [this message]
2010-04-13 11:46                         ` prakash bedge
2010-04-13 12:16                           ` Stefan Roese
2010-04-14  5:03                             ` prakash bedge
2010-04-14  7:38                               ` Frank Svendsbøe
2010-04-14 12:05                               ` Stefan Roese
2010-04-16 14:38                                 ` prakash bedge
2010-04-20  9:25                                   ` prakash bedge
2010-04-09 13:35               ` Stefan Roese
2010-04-12  4:18                 ` prakash bedge
2010-04-12  7:59                   ` Stefan Roese
2012-03-10 10:47   ` Balaji Sivakumar
2012-03-10 18:29     ` Dirk Behme
2012-03-10 19:10     ` Wolfgang Denk
2010-04-09  7:48 ` Frank Svendsbøe
2010-04-09  8:07   ` prakash bedge
2010-04-09  8:23     ` Frank Svendsbøe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201004131034.11591.sr@denx.de \
    --to=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.