[oe-commits] Denis 'GNUtoo' Carikli : nokia900.conf: added ubifs arguments

git version control git at git.openembedded.org
Thu Feb 3 19:48:16 UTC 2011


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 08d47fa786ee535345118a2680d64b5e1ccd97a3
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=08d47fa786ee535345118a2680d64b5e1ccd97a3

Author: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
Date:   Thu Feb  3 20:42:59 2011 +0100

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 <JaMa|Wrk>      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 <GNUtoo at no-log.org>

---

 conf/machine/nokia900.conf |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/conf/machine/nokia900.conf b/conf/machine/nokia900.conf
index 484b1a9..5d1c2d9 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"





More information about the Openembedded-commits mailing list