Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Apr 2016 15:05:37 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Craig Butler <craig001@lerwick.hopto.org>, freebsd-arm@freebsd.org
Subject:   Re: information on accessing nand
Message-ID:  <1459976737.1091.289.camel@freebsd.org>
In-Reply-To: <20160406214115.784b8a1f@zbox.lerwick.hopto.org>
References:  <20160406214115.784b8a1f@zbox.lerwick.hopto.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2016-04-06 at 21:41 +0100, Craig Butler wrote:
> Hello List
> 
> Is there a HOWTO or some instructions/black magic for adding new
> definitions and drivers for accessing currently unsupported nand ??
> 
> So far I *think* I need to;
>  - define the nand in the board dts definitions 
>  - code a nfc_ (omap2??) driver
>  - set kernel configs with option nandfs and WITH_NAND="YES"
>  - cross fingers
> 
> Have I missed anything ?
> 
> Kind Regards
> 

You should be aware before you get too far into this that there is lots
of stuff in freebsd related to nand, and most of it doesn't work.  The
driver framework is completely tied to 1-bit hamming code ECC, which is
only used by ancient small chips, nothing modern.  If you get past that
(say, by using chips with builtin hardware ECC that appear to just
never get errors), you quickly discover that the nandfs code is slow
and buggy.  Slow like it can lock up the system for seconds at a time. 
 Buggy like it corrupts data and there's no way to recover.

-- Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1459976737.1091.289.camel>