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. *