aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/machine/nokia900.conf18
1 files changed, 18 insertions, 0 deletions
diff --git a/conf/machine/nokia900.conf b/conf/machine/nokia900.conf
index 484b1a917c..5d1c2d913a 100644
--- a/conf/machine/nokia900.conf
+++ b/conf/machine/nokia900.conf
@@ -62,6 +62,24 @@ EXTRA_IMAGEDEPENDS += "u-boot"
ROOT_FLASH_SIZE = "100"
EXTRA_IMAGECMD_jffs2_nokia900 = "--pad --little-endian --eraseblock=0x20000 -n"
+# Add "rootfstype=ubifs ubi.mtd=5,2048 root=ubi0:nokia900-rootfs"
+# to the kernel cmdline to boot an ubifs image flashed on /dev/mtd5
+# Here are the arguments with the corresponding dmesg messages :
+# -m: UBI: smallest flash I/O unit: 2048
+# -e: UBI: logical eraseblock size: 126976 bytes
+# -c: UBI: number of good PEBs: 2009
+# -p: UBI: physical eraseblock size: 131072 bytes (128 KiB)
+# -x: best compression ratio
+# -s and -O : set to the smallest flash I/O unit to bypass the subpages
+# See http://www.linux-mtd.infradead.org/faq/ubi.html#L_vid_offset_mismatch for more details
+# else you have some errors like theses in dmesg with ubiattach:
+# onenand_write_ops_nolock: verify failed -74
+# UBI error: ubi_io_write: error -74 while writing 512 bytes to PEB 961:512, written 512 bytes
+# UBI warning: ubi_eba_write_leb: failed to write VID header to LEB 2147479551:0, PEB 961
+# UBI warning: ubi_ro_mode: switch to read-only mode
+MKUBIFS_ARGS = "-m 2048 -e 126976 -c 2009 -x zlib"
+UBINIZE_ARGS = "-m 2048 -p 131072 -s 2048 -O 2048"
+
IMAGE_FSTYPES ?= "jffs2 tar.gz"
PREFERRED_PROVIDER_virtual/kernel = "linux"