From 9701a551187f83ef5b002e4e6d22a397c8ed46d7 Mon Sep 17 00:00:00 2001 From: Lauren Post Date: Thu, 31 Mar 2016 10:25:30 -0500 Subject: [PATCH] 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 => imx-kobs_5.4.bb} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename recipes-bsp/imx-kobs/{imx-kobs_5.3.bb => imx-kobs_5.4.bb} (57%) diff --git a/recipes-bsp/imx-kobs/imx-kobs_5.3.bb b/recipes-bsp/imx-kobs/imx-kobs_5.4.bb similarity index 57% rename from recipes-bsp/imx-kobs/imx-kobs_5.3.bb rename to recipes-bsp/imx-kobs/imx-kobs_5.4.bb index ccc4a240..54871601 100644 --- a/recipes-bsp/imx-kobs/imx-kobs_5.3.bb +++ b/recipes-bsp/imx-kobs/imx-kobs_5.4.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2015 Freescale Semiconductor +# Copyright (C) 2013-2016 Freescale Semiconductor SUMMARY = "Nand boot write source" SECTION = "base" @@ -7,8 +7,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" SRC_URI = "${FSL_MIRROR}/imx-kobs-${PV}.tar.gz" -SRC_URI[md5sum] = "a2a9e1c3445d14c961577492313a41fb" -SRC_URI[sha256sum] = "45f729fc2b49556f1ca9df778f52bf5cc749cfe53664c8206daab29991c5f6c1" +SRC_URI[md5sum] = "77467d834f858c2ec216841583e5f437" +SRC_URI[sha256sum] = "85171b46068ac47c42fedb8104167bf9afd33dd9527ed127e1ca2eb29d7a86bf" inherit autotools pkgconfig -- 2.40.1