From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] NAND: Updating the NAND README
Date: Tue, 1 Dec 2009 17:28:02 -0600 [thread overview]
Message-ID: <20091201232802.GA19487@loki.buserror.net> (raw)
In-Reply-To: <1259690767-28035-1-git-send-email-s-paulraj@ti.com>
On Tue, Dec 01, 2009 at 01:06:07PM -0500, s-paulraj at ti.com wrote:
> +MTD NAND 64 bit support:
> +========================
> +
> +The MTD NAND infrastructure in U-Boot(until release 2009.11) used only
> +32 bit values to represent device size. As a result of which if we use
> +a NAND device of size 4 GB and above, the MTD NAND driver will not detect
> +such a NAND device due to overflow.
> +NANDs comes in various flavours. There are some NANDs which are
> +internally 2 devices and have 2 chipselects. If the SOC specific
> +NAND driver is designed to treat each NAND device as a separate device
> +then we will still be able to detect the entire 4GB of a NAND device.
> +Each chipselect being responsible for 2 GB address space.
> +But if at the U-Boot level we want to have access to the entire 4GB address
> +space then the only way to achieve this is to update the MTD and NAND drivers
> +with 64 bit values.
> +The Linux kernel was updated with 64 bit values sometime in December '08.
> +The core NAND driver is now similar to the core NAND driver in the kernel.
> +We appropriately update the MTD layer in U-Boot.
> +In the process of syncing up with the kernel we have also updated the
> +NAND driver with other enhancements that made its way to the NAND driver.
> +
> +After these features were added, testing was performed on a wide
> +range of NAND devices with page size of 64 KiB, 128KiB, 256KiB and 512
> +KiB. Also 2 separate 4GB NAND devices(one from SAMSUNG and one from MICRON)
> +were successfully tested. U-Boot was able to correctly detect the device
> +and read bad blocks.
Hmm, not sure we need to describe here what was, rather than what is.
> +What is lacking?
> +================
> +
> +We need to add 64 bit support in cmd_nand.c and env_nand.c as well.
> +Without this certain diagnostcis
typo
> will fail. For example,
> +issuing a "nand bad" command results in the same bad blocks being
> +found infinite times. This happens if we use a 4 GB NAND device.
> +This will not occur if NANDs of smalles than 4 GB are used.
s/of smalles than/smaller than/
> +At this point of time it appears as if the entire common folder
> +needs to be updated with 64 bit values.
Yeah... If you want to put a concise note about this here, I'll add it,
though an actual bug tracking system would be nice. :-)
-Scott
next prev parent reply other threads:[~2009-12-01 23:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-01 18:06 [U-Boot] [PATCH] NAND: Updating the NAND README s-paulraj at ti.com
2009-12-01 23:28 ` Scott Wood [this message]
2009-12-01 23:33 ` Paulraj, Sandeep
2009-12-01 23:38 ` 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=20091201232802.GA19487@loki.buserror.net \
--to=scottwood@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox