Return-Path: Received: from mail-qa0-f45.google.com (mail-qa0-f45.google.com [209.85.216.45]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E7291E0161F for ; Fri, 4 Oct 2013 10:57:36 -0700 (PDT) Received: by mail-qa0-f45.google.com with SMTP id k4so1311169qaq.11 for ; Fri, 04 Oct 2013 10:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=TiW5A3iYw7PvRclnv+o0J5Ej1hIrIEGYOti6wk5i9Sc=; b=lmKOY9C5R/PEEZ+bi4eNwgJ2YKlrfKSnQ4PmJlWXbbF+zKhtR39PlUYPRrc+/olewt mYUoU24Df2kAov4J1oFPss6g5wzcCELspvubVCUZR4JEb1+LTWxHNeZcSVopbtVSzrng /cWjg6hEck2DzVbdIv2KK4Vde1ZrjZC0AguOlTbHrGhtyiCzvpgg5686NhSvChEHoN2m bsKwufqctW5ztVksCG/h4JibnLFOS0IHBWcDnTH4BFLDhRCtxpvuHrz3BF8Mw/RQGhSW 3+cQbhZrmPIzWac2xILpgrZQwZGbCmv1xIxcr5kyRDs1Bl5NJF5Pn7QaMNYHW1s7cWBC eZBA== X-Received: by 10.49.42.101 with SMTP id n5mr19231683qel.31.1380909455511; Fri, 04 Oct 2013 10:57:35 -0700 (PDT) Received: from monster.lab.ossystems.com.br ([177.194.208.225]) by mx.google.com with ESMTPSA id l4sm31234085qae.4.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 04 Oct 2013 10:57:34 -0700 (PDT) Sender: Mario Domenech Goulart From: Mario Domenech Goulart To: meta-freescale@yoctoproject.org Date: Fri, 4 Oct 2013 14:57:18 -0300 Message-Id: <1380909438-3473-1-git-send-email-mario@ossystems.com.br> X-Mailer: git-send-email 1.7.10.4 Subject: [meta-fsl-arm][PATCH] imx28evk: add NAND support X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Oct 2013 17:57:37 -0000 Signed-off-by: Mario Domenech Goulart --- conf/machine/imx28evk.conf | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/conf/machine/imx28evk.conf b/conf/machine/imx28evk.conf index f68a23e..93d33b8 100644 --- a/conf/machine/imx28evk.conf +++ b/conf/machine/imx28evk.conf @@ -23,3 +23,31 @@ IMAGE_FSTYPES ?= "tar.bz2 ext3 uboot.mxsboot-sdcard sdcard" SERIAL_CONSOLE = "115200 ttyAMA0" MACHINE_FEATURES = "apm usbgadget usbhost vfat alsa touchscreen" + +## Parameters for NAND IC part-# K9LBG08U0D-PCB0 + +MKUBIFS_ARGS = "--min-io-size 4096 --leb-size 516096 --max-leb-cnt 8139" +UBINIZE_ARGS = "--min-io-size 4096 --peb-size 524288 --sub-page-size 4096" + +## To determine parameters' values, run "ubiattach -m 6 /dev/ubi_ctrl" +## (assuming the rootfs device is /dev/mtd6). Here's an example: + +# # ubiattach -m 6 /dev/ubi_ctrl +# [ 28.640396] UBI: attaching mtd6 to ubi0 +# [ 53.000817] UBI: scanning is finished +# [ 53.126052] UBI: attached mtd6 (name "filesystem", size 4079 MiB) to ubi0 +# [ 53.133109] UBI: PEB size: 524288 bytes (512 KiB), LEB size: 516096 bytes +# [ 53.140149] UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096 +# [ 53.146895] UBI: VID header offset: 4096 (aligned 4096), data offset: 8192 +# [ 53.153931] UBI: good PEBs: 8139, bad PEBs: 20, corrupted PEBs: 0 +# [ 53.160263] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 +# [ 53.167444] UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 +# [ 53.175872] UBI: available PEBs: 4113, total reserved PEBs: 4026, PEBs reserved for bad PEB handling: 140 +# [ 53.189399] UBI: background thread "ubi_bgt0d" started, PID 217 +# UBI device number 0, total 8139 LEBs (4200505344 bytes, f GiB), available 4113 LEBs (2122702848 bytes, f GiB), LEB size 516096 bytes (f KiB) + +# --min-io-size: see "min./max. I/O unit sizes: " in the ubiattach output +# --leb-size: see "LEB size:" in the ubiattach output +# --max-leb-cnt: see "total LEBs" in the ubiattach output, where is the number you want +# --peb-size: see "PEB size:" in the ubiattach output (pick the value in bytes) +# --sub-page-size: see "sub-page size" in the ubiattach output -- 1.7.10.4