From 08d47fa786ee535345118a2680d64b5e1ccd97a3 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Thu, 3 Feb 2011 20:42:59 +0100 Subject: nokia900.conf: added ubifs arguments Thanks JaMa on #openmoko-cdevel on Freenode on irc for help on the sub-pages: Feb 02 11:41:58 GNUtoo|laptop: also for gta02 I had to sacrifise sub-pages, -s same as -m otherwise it always failed Signed-off-by: Denis 'GNUtoo' Carikli --- conf/machine/nokia900.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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" -- cgit 1.2.3-korg