Page 1 of 1

Programming Nand Flash for Linux with UBI Filesystem

Posted: 23 May 2014 13:31
by davejm
Sir,
We recently switched our linux embedded product from the JFFS2 to UBI filesystem. We now find that our method of duplicating our master NAND Flash device for production no longer works.

We used to be able to read in the complete working master flash and write it out to a new target flash using the basic skip-IB default settings. Now we find that the UBI filesystem fails to work, if there are any invalid blocks in the target flash device, and Linux crashes with a kernel panic.

The Flash chip is a Hynix 256MB (HY27UF082G2B-TPIB).

Any advice would be appreciated.

- David J Myers

Re: Programming Nand Flash for Linux with UBI Filesystem

Posted: 27 May 2014 11:17
by Dataman (Neil Parker)
Dear David,

Reading a master NAND based device and copying the data to another NAND Flash device without the proper setting of all parameters will not work. You have to know the proper settings, of which there are several... .

In general, please see:

a) "Device info" section in the control software for the programmed chip.

b) application note: NAND Flash Memories and Programming NAND Flash Memories using Dataman Device Programmers.
http://www.dataman.com/downloads/dl/fil ... mories.pdf

c) application note: Programming NAND Flash Memories using Dataman Device Programmers (new version, draft).
Please email [email protected] and I will reply with the draft copy of this document.

Best regards

Neil Parker
Dataman Programmers