]> code.ossystems Code Review - meta-freescale.git/commit
imx-kobs: Upgrade to 5.4 version
authorLauren Post <lauren.post@nxp.com>
Thu, 31 Mar 2016 15:25:30 +0000 (10:25 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:06:34 +0000 (15:06 -0300)
commit9701a551187f83ef5b002e4e6d22a397c8ed46d7
tree79dd6a72b013f453f6df8d1d5f8f877a1a2e6255
parenta0c4bfcf34dbf56e146fca47a081670db7c50a77
imx-kobs: Upgrade to 5.4 version

- Check raw mode flag for backward compatbility
- Fix membership name in bch geometry structure.
- Fix the previous implementation that may ruin the BBM
- Adapt raw page accesses to match the new raw_read/write implementation

The old raw access implementation (in GPMI driver) was considering that
data and OOB data were separated in their respective regions (the data
area and the OOB area of the page), which is not true.
They are actually interleaved this way:

METADATA + ((DATA + ECCBYTES) * N)

The new raw access implementation (in the GPMI driver) is hiding this
weird
layout to MTD users by exposing a more common layout:

DATA + METADATA + (N * ECCBYTES)

Here METADATA + (N * ECCBYTES) are exposed as if they were stored in the
OOB area.

Unfortunately kobs-ng rely on this weird layout when accessing the NAND
in raw mode.

Signed-off-by: Lauren Post <lauren.post@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-bsp/imx-kobs/imx-kobs_5.4.bb [moved from recipes-bsp/imx-kobs/imx-kobs_5.3.bb with 57% similarity]