All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manukumar <manukumar@signal-networks.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Nand flash R/W,saveenv issue..
Date: Wed, 23 May 2012 11:26:36 +0530	[thread overview]
Message-ID: <1337752596.2378.37.camel@Manukumar> (raw)
In-Reply-To: <4FBBD34F.5010501@freescale.com>


u-boot version: u-boot-2010.12

My OR and BR register values(according to our memory map):
BR0     0xFF800C21      OR0     0xFF800396
BR1     0xE8000801      OR1     0xFFFF8074
BR2     0xE8009001      OR2     0xFFFF8074

after defining VERBOSE_DEBUG in drivers/mtd/nand/fsl_elbc_nand.c 
i gave sacveenv command, igot below logs.
please go through that and resolve asap.

Hit any key to stop autoboot:  0                        
=> saveenv                                              
Saving Environment to NAND...                           
Erasing Nand...                                         
nand_erase_opts_1                                       
nand_erase_opts_2                                       
erase_length = 3                                        
 erase.addr = 0                                         
 meminfo->erasesize = 540672                            
**********************************************************erase_length =
3 erase.addr = 0 meminfo->erasesize = 540672
skipping bad block =
0                                                                                               
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0,
pes 14 ps 9                                    
fsl_elbc_run_command                                                                                                 
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=4e000000
fcr=70000000                                                  
DEBUG: fsl_elbc_run_command: fbar=00000000 fpar=00000000 fbcr=00000001
bank=0                                        
DEBUG: fsl_elbc_run_command: stat=40000001 mdr=00000000
fmr=0000f020                                                 
Page size =
0                                                                                                        
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) =
fffffffb                                                         
DEBUG: fsl_elbc_cmdfunc: NAND_CMD_ERASE1, page_addr:
0x420.                                                          
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0,
pes 14 ps 9                                    
DEBUG: fsl_elbc_cmdfunc:
NAND_CMD_ERASE2.                                                                            
fsl_elbc_run_command                                                                                                 
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=c2500000
fcr=60d00000                                                  
DEBUG: fsl_elbc_run_command: fbar=00000021 fpar=00000000 fbcr=00000000
bank=0                                        
DEBUG: fsl_elbc_run_command: stat=00000000 mdr=00000000
fmr=0000f023                                                 
Page size =
0                                                                                                        
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) =
fffffffb                                                         
ctrl->status=
0                                                                                                      
---------------------------------------------------                                                                  
result =
-5                                                                                                          

NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
erase_length = 3 erase.addr = 0 meminfo->erasesize = 557056
skipping bad block = 0                                     
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0,
pes 14 ps 9
fsl_elbc_run_command                                                             
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=4e000000
fcr=70000000              
DEBUG: fsl_elbc_run_command: fbar=00000000 fpar=00000000 fbcr=00000001
bank=0    
DEBUG: fsl_elbc_run_command: stat=00000000 mdr=00000000
fmr=0000f023             
Page size =
0                                                                    
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) =
fffffffb                     
DEBUG: fsl_elbc_cmdfunc: NAND_CMD_ERASE1, page_addr:
0x440.                      
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0,
pes 14 ps 9
DEBUG: fsl_elbc_cmdfunc:
NAND_CMD_ERASE2.                                        
fsl_elbc_run_command                                                             
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=c2500000
fcr=60d00000              
DEBUG: fsl_elbc_run_command: fbar=00000022 fpar=00000000 fbcr=00000000
bank=0    
DEBUG: fsl_elbc_run_command: stat=40000001 mdr=00000000
fmr=0000f020             
Page size =
0                                                                    
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) =
fffffffb                     
ctrl->status=
40000001                                                           
---------------------------------------------------                              
result =
-5                                                                      

NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
erase_length = 3 erase.addr = 0 meminfo->erasesize = 573440
skipping bad block = 0                                     
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0,
pes 14 ps 9
fsl_elbc_run_command                                                             
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=4e000000
fcr=70000000              
DEBUG: fsl_elbc_run_command: fbar=00000000 fpar=00000000 fbcr=00000001
bank=0    
DEBUG: fsl_elbc_run_command: stat=00000000 mdr=00000000
fmr=0000f023             
Page size =
0                                                                    
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) = fffffffb
DEBUG: fsl_elbc_cmdfunc: NAND_CMD_ERASE1, page_addr: 0x460.
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0,
pes 14 ps 9
DEBUG: fsl_elbc_cmdfunc: NAND_CMD_ERASE2.
fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=c2500000 fcr=60d00000
DEBUG: fsl_elbc_run_command: fbar=00000023 fpar=00000000 fbcr=00000000
bank=0
DEBUG: fsl_elbc_run_command: stat=40000001 mdr=00000000 fmr=0000f023
Page size = 0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) = fffffffb
ctrl->status= 40000001
---------------------------------------------------
result = -5

NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
nand_erase_opts_3

Writing to Nand... nand_write
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0,
pes 14 ps 9
fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=4e000000 fcr=70000000
DEBUG: fsl_elbc_run_command: fbar=00000000 fpar=00000000 fbcr=00000001
bank=0
DEBUG: fsl_elbc_run_command: stat=00000000 mdr=00000000 fmr=0000f023
Page size = 0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) = fffffffb
DEBUG: fsl_elbc_cmdfunc: NAND_CMD_SEQIN/PAGE_PROG, page_addr: 0x420,
column: 0x0.
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0,
pes 14 ps 9
DEBUG: fsl_elbc_cmdfunc: NAND_CMD_PAGEPROG writing 528 bytes.
fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=c6128d00 fcr=00108000
DEBUG: fsl_elbc_run_command: fbar=00000021 fpar=00000000 fbcr=00000000
bank=0
DEBUG: fsl_elbc_run_command: stat=40000001 mdr=00000000 fmr=0000f020
Page size = 0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) = fffffffb
DEBUG: set_addr: bank=7, ctrl->addr=0xff801c00 (0xff800000), index 206,
pes 14 ps 9
fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=c12e0000 fcr=50000000
DEBUG: fsl_elbc_run_command: fbar=00ffffff fpar=00007e06 fbcr=00000003
bank=0
DEBUG: fsl_elbc_run_command: stat=00000000 mdr=00000000 fmr=0000f023
Page size = 0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) = fffffffb
ctrl->status= 0
FAILED!

I am expecting your response at earliest.

manukumar
signal-networks


On Tue, 2012-05-22 at 12:56 -0500, Scott Wood wrote:
> On 05/22/2012 09:15 AM, Marek Vasut wrote:
> > Dear Manukumar,
> > 
> >> Hello,
> > 
> > CCing someone who might actually help you, CCing the uboot mailing list, please 
> > keep it that way.
> > 
> >> i can able to detect nand flash.
> >> but i had an issue that i could not do operation(Read/write)
> >> on nand flash.
> >> i tried to erase the nand flash i got the error as below:
> >>
> >>  NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
> >>  NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
> >>  NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
> >>  NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
> >>
> >> even if i try to saveenv then also is not saving the envionment
> >> variables
> >>
> >> processor used: P1012
> >> nand flash: samsung K9F5608U0D
> >>
> >> please reply ASAP.
> >>
> >> manukumar
> >> signal-networks
> 
> What version of U-Boot is this?
> 
> How are you configuring BRn/ORn for this chipselect?
> 
> Could you define VERBOSE_DEBUG at the top of
> drivers/mtd/nand/fsl_elbc_nand.c?
> 
> -Scott
> 

  reply	other threads:[~2012-05-23  5:56 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1337677828.2382.30.camel@Manukumar>
2012-05-22 14:15 ` [U-Boot] Nand flash R/W,saveenv issue Marek Vasut
2012-05-22 17:56   ` Scott Wood
2012-05-23  5:56     ` Manukumar [this message]
2012-05-23  8:02       ` Wolfgang Denk
2012-05-23  8:30         ` Manukumar
2012-05-23 16:16           ` Scott Wood
2012-05-30  5:02             ` [U-Boot] problem while making kernel up Manukumar
2012-05-30 16:18               ` Scott Wood
2012-05-31  4:15                 ` Manukumar
2012-05-31 16:21                   ` Scott Wood
2012-06-01  3:58                     ` Manukumar
2012-06-01 10:10                     ` Manukumar
2012-06-01 17:15                       ` Scott Wood
2012-06-06  8:13                         ` Manukumar
2012-07-05 10:27                         ` [U-Boot] USB detection Manukumar
2012-07-05 11:45                           ` Albert ARIBAUD
2012-07-05 15:34                             ` Marek Vasut
2012-07-09  8:47                             ` Manukumar
2012-07-09 12:18                               ` Albert ARIBAUD
2012-07-10  2:17                               ` Marek Vasut
2012-07-12  6:10                                 ` Manukumar
2012-10-25 12:21                                   ` Manukumar
2012-10-25 13:26                                     ` RgC
2012-09-26 10:42                               ` [U-Boot] bootm command in U-boot Manukumar
2012-09-26 14:14                                 ` Wolfgang Denk
2012-10-03 12:24                               ` [U-Boot] Booting through nand flash with other address Manukumar
2012-10-03 15:22                                 ` Scott Wood
2012-10-04 10:18                                   ` Manukumar
2012-10-04 17:21                                     ` Scott Wood
2012-12-04 12:04                                       ` [U-Boot] access u-boot environment variables from kernel space Manukumar
2012-12-04 13:24                                         ` Yegor Yefremov
2012-12-04 16:26                                           ` Scott Wood
2012-12-04 16:35                                             ` Steve Strobel
2013-01-25  6:50                                             ` Manukumar
2013-01-25  9:22                                               ` Wolfgang Denk
2012-11-23  4:08                                   ` [U-Boot] Quer on JTAG Manukumar
2012-11-23  5:33                                     ` Wolfgang Denk
2012-09-11 12:47                       ` [U-Boot] Nand Flash Programing and Board Bring Up Manukumar
2012-09-11 14:10                         ` Marek Vasut
2012-05-23 22:45       ` [U-Boot] Nand flash R/W,saveenv issue Scott Wood

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=1337752596.2378.37.camel@Manukumar \
    --to=manukumar@signal-networks.com \
    --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.