Hi,

The partition table information for the two NAND chips (each of 1GB, Blocksize 256KB) listed by kernel is as follows:

Kernel Bootlog:
=========
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)
2 NAND chips detected
Creating 5 MTD partitions on "nand_davinci.0":
0x00000000-0x00780000 : "bootloader"
0x00780000-0x00800000 : "params"
0x00800000-0x00c00000 : "kernel"
0x00c00000-0x20c00000 : "filesystem1"
0x20c00000-0x80000000 : "filesystem2"

[email protected]:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00780000 00040000 "bootloader"
mtd1: 00080000 00040000 "params"
mtd2: 00400000 00040000 "kernel"
mtd3: 20000000 00040000 "filesystem1"
mtd4: 5f400000 00040000 "filesystem2"
mtd5: 00002000 00000010 "spi_eeprom"

I don't see anything wrong the NAND partition. I simply tried to erase the mtd4 partition using "flash_eraseall /dev/mtd4". The erase was successful. But next time when I reboot the board it does not booted up. It has erased the UBL/UBoot also.

Am I missing something or doing something wrong? Please suggest.

Erase Log:
======
Erasing 256 Kibyte @ 0 --  0 % complete.
Erasing 256 Kibyte @ 40000 --  0 % complete.
Erasing 256 Kibyte @ 80000 --  0 % complete.
Erasing 256 Kibyte @ c0000 --  0 % complete.
                                 ||
                                 ||
                                 ||
Erasing 256 Kibyte @ 5f1c0000 -- 99 % complete.
Erasing 256 Kibyte @ 5f200000 -- 99 % complete.
Erasing 256 Kibyte @ 5f240000 -- 99 % complete.
Erasing 256 Kibyte @ 5f280000 -- 99 % complete.
Erasing 256 Kibyte @ 5f2c0000 -- 99 % complete.


--
Regards,
Krunal


On 06/15/2010 11:43 PM, Steve Poulsen wrote:
Krunal,

I have not experienced this so I cannot offer any advice other than debugging methods, which you already know. Maybe you can cat /proc/mtd to make sure it agrees with what you expect.

Steve

On 06/11/2010 12:41 PM, Krunal Patil wrote:

Steve,

Thanks for the reply. I have solved ECC issue same way. I was using linux kernel 2.6.18. Anyways the major problem starts now.

I tried to mount mtd partitions mtd3 and mtd4 from the linux prompt. I verified the size of mounted partition. mtd3 partition shows ~500MB and for mtd4 its 1.5G. When I copied more than 500 MB data (~650MB) on mtd4 partition and next time when I booted the board it was not booting. I think the UBL/UBoot partitions were overwritten.

Again I flashed the UBL/UBoot and the board is booting without any problem. Have you ever experienced this?

Regards,

Krunal


----- Original Message -----
From: "Steve Poulsen" <[email protected]>
To: [email protected]
Sent: Friday, June 11, 2010 8:53:35 PM
Subject: Re: DM365 UBoot + NAND Query

Krunal,

What version kernel are you using? One thing to note is that the Chip ID of 0xd3 can actually correspond to several layouts of the NAND. The kernel seems to read the proper info and adjust accordingly but U-boot may not. If you are using 2.6.10, you will need to go through and increase several of the arrays because they do not handle the larger layout (4224 bytes) and will overflow and cause ECC errors or even lockups. If you are using 2.6.18, you will also want to either turn off the "use standard layout" option under the kernel config (Drivers-MTD-Nand, somewhere below that) OR you will want to make sure U-boot is using the larger layout.

I have seen the exact error you seen and fixed it by changing the array sizes and disabling the Davinci use standard layout option. This puts newer kernels back to the 4-bit ECC as opposed to Software ECC. Some versions of the kernel may have broken HW-ECC though.

Steve

On 06/11/2010 04:46 AM, Krunal Patil wrote:

    Thanks for the pointers Jon.

    I will try your suggestions and get back with the results.

    --

    Regads,

    Krunal


    ----- Original Message -----
    From: "Jon Povey" <[email protected]>
    To: "krunal patil" <[email protected]>
    Cc: "Davinci List" <[email protected]>
    Sent: Friday, June 11, 2010 3:13:54 PM
    Subject: RE: DM365 UBoot + NAND Query

    Krunal Patil wrote:
    > 1.    How can I verify whether UBoot is detecting and accessing
    both the
    > NANDs not only one?

    u-boot can read, write and erase NAND; you could erase and write
    a page on one chip and see if it shows up on the other.

    > 2.    Can you please through some light on "I would be more
    concerned
    > about the ECC errors and that the kernel is reporting BBT not
    found."

    Well, this should not happen:

    > > > nand_bbt: ECC error while reading bad block table

    And the kernel should find the BBTs, it should agree with U-boot.

    I suggest trying a more recent version of u-boot if that's an option.

    > 3.    How can I verify "Large page OOB layout" in UBoot and
    Kernel? How
    > can I fix this mismatch?

    I find OpenOCD useful, it's JTAG software with davinci NAND
    drivers for both large page layouts, and config files for many
    davinci boards.

    If you do that, build the latest version from git, there have
    been some important patches to davinci NAND handling since the
    last released version 0.4.0.

    The source code for the OpenOCD davinci NAND driver should help
    you understand the layout differences.

    Also, I think there is some related stuff in the silicon errata
    for DM365.

    --
    Jon Povey
    [email protected]

    Racelogic is a limited company registered in England. Registered
    number 2743719 .
    Registered Office Unit 10, Swan Business Centre, Osier Way,
    Buckingham, Bucks, MK18 1TB .

    The information contained in this electronic mail transmission is
    intended by Racelogic Ltd for the use of the named individual or
    entity to which it is directed and may contain information that
    is confidential or privileged. If you have received this
    electronic mail transmission in error, please delete it from your
    system without copying or forwarding it, and notify the sender of
    the error by reply email so that the sender's address records can
    be corrected. The views expressed by the sender of this
    communication do not necessarily represent those of Racelogic
    Ltd. Please note that Racelogic reserves the right to monitor
    e-mail communications passing through its network




    Email Scanned for Virus & Dangerous Content by :
    www.CleanMailGateway.com

    
____________________________________________________________________________________
    Disclaimer: This e-mail message and all attachments transmitted
    with it are intended solely for the use of the addressee and may
    contain legally privileged and confidential information. If the
    reader of this message is not the intended recipient, or an
    employee or agent responsible for delivering this message to the
    intended recipient, you are hereby notified that any
    dissemination, distribution, copying, or other use of this
    message or its attachments is strictly prohibited. If you have
    received this message in error, please notify the sender
    immediately by replying to this message and please delete it from
    your computer. Any views expressed in this message are those of
    the individual sender unless otherwise stated.Company has taken
    enough precautions to prevent the spread of viruses. However the
    company accepts no liability for any damage caused by any virus
    transmitted by this email.
    
____________________________________________________________________________________


-- This message has been scanned for viruses and
    dangerous content by *MailScanner*
    <http://www.mailscanner.info/>**, and is
    believed to be clean. * *


    **_______________________________________________
    Davinci-linux-open-source mailing list
    [email protected]
    http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
       **

    * *

* *

* *
**____________________________________________________________________________________
Disclaimer: This e-mail message and all attachments transmitted with it are 
intended solely for the use of the addressee and may contain legally privileged 
and confidential information. If the reader of this message is not the intended 
recipient, or an employee or agent responsible for delivering this message to 
the intended recipient, you are hereby notified that any dissemination, 
distribution, copying, or other use of this message or its attachments is 
strictly prohibited. If you have received this message in error, please notify 
the sender immediately by replying to this message and please delete it from 
your computer. Any views expressed in this message are those of the individual 
sender unless otherwise stated.Company has taken enough precautions to prevent 
the spread of viruses. However the company accepts no liability for any damage 
caused by any virus transmitted by this email.
_
  
___________________________________________________________________________________

**
* *

--
This message has been scanned for viruses and
dangerous content by ***MailScanner* <http://www.mailscanner.info/>**, and is
believed to be clean.

* *
*Email Scanned for Virus & Dangerous Content by :* *www.CleanMailGateway.com*

* *
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
**
*
--
This message has been scanned for viruses and
dangerous content by **MailScanner* <http://www.mailscanner.info/>*, and is
believed to be clean. *
*

*
*____________________________________________________________________________________
Disclaimer: This e-mail message and all attachments transmitted with it are 
intended solely for the use of the addressee and may contain legally privileged 
and confidential information. If the reader of this message is not the intended 
recipient, or an employee or agent responsible for delivering this message to 
the intended recipient, you are hereby notified that any dissemination, 
distribution, copying, or other use of this message or its attachments is 
strictly prohibited. If you have received this message in error, please notify 
the sender immediately by replying to this message and please delete it from 
your computer. Any views expressed in this message are those of the individual 
sender unless otherwise stated.Company has taken enough precautions to prevent 
the spread of viruses. However the company accepts no liability for any damage 
caused by any virus transmitted by this email.
_
  
___________________________________________________________________________________

*
*

--
This message has been scanned for viruses and
dangerous content by **MailScanner* <http://www.mailscanner.info/>*, and is
believed to be clean.

*
*Email Scanned for Virus & Dangerous Content by :* *www.CleanMailGateway.com*



_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to