From c9e576bdae8c481f5a836531c7865fe8b8a5a36f Mon Sep 17 00:00:00 2001 From: Lauren Post Date: Thu, 31 Mar 2016 10:25:30 -0500 Subject: 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 Signed-off-by: Otavio Salvador --- recipes-bsp/imx-kobs/imx-kobs_5.3.bb | 17 ----------------- recipes-bsp/imx-kobs/imx-kobs_5.4.bb | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 recipes-bsp/imx-kobs/imx-kobs_5.3.bb create mode 100644 recipes-bsp/imx-kobs/imx-kobs_5.4.bb diff --git a/recipes-bsp/imx-kobs/imx-kobs_5.3.bb b/recipes-bsp/imx-kobs/imx-kobs_5.3.bb deleted file mode 100644 index d641cbf..0000000 --- a/recipes-bsp/imx-kobs/imx-kobs_5.3.bb +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (C) 2013-2015 Freescale Semiconductor - -SUMMARY = "Nand boot write source" -SECTION = "base" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" - -SRC_URI = "${FSL_MIRROR}/imx-kobs-${PV}.tar.gz \ - file://fix-compile.patch \ -" - -SRC_URI[md5sum] = "a2a9e1c3445d14c961577492313a41fb" -SRC_URI[sha256sum] = "45f729fc2b49556f1ca9df778f52bf5cc749cfe53664c8206daab29991c5f6c1" - -inherit autotools pkgconfig - -COMPATIBLE_MACHINE = "(imx)" diff --git a/recipes-bsp/imx-kobs/imx-kobs_5.4.bb b/recipes-bsp/imx-kobs/imx-kobs_5.4.bb new file mode 100644 index 0000000..1d33d40 --- /dev/null +++ b/recipes-bsp/imx-kobs/imx-kobs_5.4.bb @@ -0,0 +1,17 @@ +# Copyright (C) 2013-2016 Freescale Semiconductor + +SUMMARY = "Nand boot write source" +SECTION = "base" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" + +SRC_URI = "${FSL_MIRROR}/imx-kobs-${PV}.tar.gz \ + file://fix-compile.patch \ +" + +SRC_URI[md5sum] = "77467d834f858c2ec216841583e5f437" +SRC_URI[sha256sum] = "85171b46068ac47c42fedb8104167bf9afd33dd9527ed127e1ca2eb29d7a86bf" + +inherit autotools pkgconfig + +COMPATIBLE_MACHINE = "(imx)" -- cgit v1.2.3-54-g00ecf