mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: "Eric Bénard" <eric@eukrea.com>
Cc: barebox@lists.infradead.org
Subject: Re: nand_imx 4k support ?
Date: Sun, 1 Apr 2012 15:52:09 +0300	[thread overview]
Message-ID: <20120401125209.GE22835@sapphire.tkos.co.il> (raw)
In-Reply-To: <20120401144518.73c1cf53@eb-e6520>

Hi Eric,

On Sun, Apr 01, 2012 at 02:45:18PM +0200, Eric Bénard wrote:
> Le Sun, 1 Apr 2012 13:49:35 +0300,
> Baruch Siach <baruch@tkos.co.il> a écrit :
> > On Sun, Apr 01, 2012 at 11:58:53AM +0200, Gabriel Tisan wrote:
> > > Has anybody started to implement support for flashes with 4k page size
> > > on nand_imx driver ?
> > 
> > 4k flashes should be supported in nand_imx since version v2011.05. See commit 
> > 4b4958dbb73e6fb553aaf91d539ff3e22bfe9e40 (mtd/nand_imx: add support for page 
> > size of 4k). I've tested it on i.MX25.
> > 
> newer flashs are using ONFI and thus some 4k flashes are not properly
> detected actually in barebox which may be the problem that Gabriel
> actually have.
> http://en.wikipedia.org/wiki/Open_NAND_Flash_Interface_Working_Group
> http://onfi.org/specifications/
> 
> I have the same requirement on an i.MX53 board (for the moment I
> hard coded the right values to bypass the flash detection which
> returned wrong results, the 4k falsh being detected as a 2k one) and
> plan to work on this during april but hard to say when so that may be
> beginiong of may.

Does the Linux kernel detect your flash correctly?

Write support for 4k flashes may require a patch similar to the kernel's 
2c1c5f19 (mtd: mxc_nand: fix OOB corruption when page size > 2KiB), i.e.  
extended ECC layout for OOB.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2012-04-01 12:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-01  9:58 Gabriel Tisan
2012-04-01 10:49 ` Baruch Siach
2012-04-01 12:45   ` Eric Bénard
2012-04-01 12:52     ` Baruch Siach [this message]
2012-04-01 13:05       ` Eric Bénard
2012-04-02  9:03         ` Gabriel Tisan
2012-04-02  9:08           ` Eric Bénard
2012-04-02 11:30           ` Baruch Siach
2012-04-02 11:39             ` Gabriel Tisan
2012-04-02 11:47               ` Baruch Siach

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=20120401125209.GE22835@sapphire.tkos.co.il \
    --to=baruch@tkos.co.il \
    --cc=barebox@lists.infradead.org \
    --cc=eric@eukrea.com \
    /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