summaryrefslogtreecommitdiffstats
path: root/conf/machine/imx28evk.conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf/machine/imx28evk.conf')
-rw-r--r--conf/machine/imx28evk.conf57
1 files changed, 57 insertions, 0 deletions
diff --git a/conf/machine/imx28evk.conf b/conf/machine/imx28evk.conf
new file mode 100644
index 00000000..672e4587
--- /dev/null
+++ b/conf/machine/imx28evk.conf
@@ -0,0 +1,57 @@
1#@TYPE: Machine
2#@NAME: Freescale i.MX28 Evaluation Kit
3#@SOC: i.MX28
4#@DESCRIPTION: Machine configuration for Freescale i.MX28 Evaluation Kit
5#@MAINTAINER: Otavio Salvador <otavio@ossystems.com.br>
6
7include conf/machine/include/mxs-base.inc
8
9SOC_FAMILY = "mxs:mx28"
10
11# Disable perf features as 2.6.35.3 fails to build otherwise
12PERF_FEATURES_ENABLE = ""
13
14IMXBOOTLETS_MACHINE = "iMX28_EVK"
15
16UBOOT_CONFIG ??= "sd"
17UBOOT_CONFIG[sd] = "mx28evk_config,sdcard"
18UBOOT_CONFIG[nand] = "mx28evk_nand_config,ubifs"
19UBOOT_CONFIG[sd-auart-console] = "mx28evk_auart_console_config,sdcard"
20
21KERNEL_DEVICETREE = "imx28-evk.dtb"
22
23SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3"
24IMAGE_FSTYPES ?= "tar.bz2 ext3 uboot.mxsboot-sdcard sdcard"
25
26SERIAL_CONSOLE = "115200 ttyAMA0"
27
28MACHINE_FEATURES = "apm usbgadget usbhost vfat alsa touchscreen"
29
30## Parameters for NAND IC part-# K9LBG08U0D-PCB0
31
32MKUBIFS_ARGS = "--min-io-size 4096 --leb-size 516096 --max-leb-cnt 8139"
33UBINIZE_ARGS = "--min-io-size 4096 --peb-size 524288 --sub-page-size 4096"
34MXSBOOT_NAND_ARGS = "-w 4096 -o 218 -e 524288"
35
36## To determine parameters' values, run "ubiattach -m 6 /dev/ubi_ctrl"
37## (assuming the rootfs device is /dev/mtd6). Here's an example:
38
39# # ubiattach -m 6 /dev/ubi_ctrl
40# [ 28.640396] UBI: attaching mtd6 to ubi0
41# [ 53.000817] UBI: scanning is finished
42# [ 53.126052] UBI: attached mtd6 (name "filesystem", size 4079 MiB) to ubi0
43# [ 53.133109] UBI: PEB size: 524288 bytes (512 KiB), LEB size: 516096 bytes
44# [ 53.140149] UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
45# [ 53.146895] UBI: VID header offset: 4096 (aligned 4096), data offset: 8192
46# [ 53.153931] UBI: good PEBs: 8139, bad PEBs: 20, corrupted PEBs: 0
47# [ 53.160263] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
48# [ 53.167444] UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
49# [ 53.175872] UBI: available PEBs: 4113, total reserved PEBs: 4026, PEBs reserved for bad PEB handling: 140
50# [ 53.189399] UBI: background thread "ubi_bgt0d" started, PID 217
51# UBI device number 0, total 8139 LEBs (4200505344 bytes, f GiB), available 4113 LEBs (2122702848 bytes, f GiB), LEB size 516096 bytes (f KiB)
52
53# --min-io-size: see "min./max. I/O unit sizes: " in the ubiattach output
54# --leb-size: see "LEB size:" in the ubiattach output
55# --max-leb-cnt: see "total <n> LEBs" in the ubiattach output, where <n> is the number you want
56# --peb-size: see "PEB size:" in the ubiattach output (pick the value in bytes)
57# --sub-page-size: see "sub-page size" in the ubiattach output