summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Domenech Goulart <mario@ossystems.com.br>2013-10-03 16:27:38 -0300
committerGerrit Code Review <gerrit2@code.ossystems.com.br>2013-10-08 02:00:07 +0000
commitd334d3c7388e41d720dd0c8e0cb76fab51a6e46a (patch)
treea4d516f2cb98aaf3591a26ad94a670af5430cf8b
parentc8a1ed24380e1af599a840510cf253dc3da8440f (diff)
downloadmeta-fsl-arm-d334d3c7388e41d720dd0c8e0cb76fab51a6e46a.tar.gz
imx28evk: add NAND support
Change-Id: Id37d371e2c2f3218654e1d736dde2ac1ba73dfda Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
-rw-r--r--conf/machine/imx28evk.conf28
1 files changed, 28 insertions, 0 deletions
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"
23SERIAL_CONSOLE = "115200 ttyAMA0" 23SERIAL_CONSOLE = "115200 ttyAMA0"
24 24
25MACHINE_FEATURES = "apm usbgadget usbhost vfat alsa touchscreen" 25MACHINE_FEATURES = "apm usbgadget usbhost vfat alsa touchscreen"
26
27## Parameters for NAND IC part-# K9LBG08U0D-PCB0
28
29MKUBIFS_ARGS = "--min-io-size 4096 --leb-size 516096 --max-leb-cnt 8139"
30UBINIZE_ARGS = "--min-io-size 4096 --peb-size 524288 --sub-page-size 4096"
31
32## To determine parameters' values, run "ubiattach -m 6 /dev/ubi_ctrl"
33## (assuming the rootfs device is /dev/mtd6). Here's an example:
34
35# # ubiattach -m 6 /dev/ubi_ctrl
36# [ 28.640396] UBI: attaching mtd6 to ubi0
37# [ 53.000817] UBI: scanning is finished
38# [ 53.126052] UBI: attached mtd6 (name "filesystem", size 4079 MiB) to ubi0
39# [ 53.133109] UBI: PEB size: 524288 bytes (512 KiB), LEB size: 516096 bytes
40# [ 53.140149] UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
41# [ 53.146895] UBI: VID header offset: 4096 (aligned 4096), data offset: 8192
42# [ 53.153931] UBI: good PEBs: 8139, bad PEBs: 20, corrupted PEBs: 0
43# [ 53.160263] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
44# [ 53.167444] UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
45# [ 53.175872] UBI: available PEBs: 4113, total reserved PEBs: 4026, PEBs reserved for bad PEB handling: 140
46# [ 53.189399] UBI: background thread "ubi_bgt0d" started, PID 217
47# UBI device number 0, total 8139 LEBs (4200505344 bytes, f GiB), available 4113 LEBs (2122702848 bytes, f GiB), LEB size 516096 bytes (f KiB)
48
49# --min-io-size: see "min./max. I/O unit sizes: " in the ubiattach output
50# --leb-size: see "LEB size:" in the ubiattach output
51# --max-leb-cnt: see "total <n> LEBs" in the ubiattach output, where <n> is the number you want
52# --peb-size: see "PEB size:" in the ubiattach output (pick the value in bytes)
53# --sub-page-size: see "sub-page size" in the ubiattach output