summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2014-03-19 17:23:53 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-21 12:05:53 +0000
commit38d669f4883b9e848379c58c56d27e3011c9614b (patch)
treee73f4ce4d3c2714d12eb312833bdf34d4deff6c6 /meta/classes
parent2cf83f49e313da750d7705d4118ee8734ce70e83 (diff)
downloadpoky-38d669f4883b9e848379c58c56d27e3011c9614b.tar.gz
image_types.bbclass: use 4096 instead of 8192 bytes-per-inode
The image not correctly created if 'ptest-pkgs' is in IMAGE_FEATURES, this is because there is no free inode left. We can use 4096 instead of 8192 bytes-per-inode to fix the problem, and most of the distributions us 4096, such as Ubuntu, Suse, Fedora and CentOS. There are another problems: * There are error message when there is no free inode left if we run the mke2fs command manually, but they are not in log.do_rootfs. * The image generation doesn't stop when error happens because mke2fs doesn't return failed for this case. Will fix them in other threads. [YOCTO #5957] (From OE-Core rev: 09ab3a00598d06e3a1bf871811c2ac37359c74da) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image_types.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 5864006a74..b693317a9f 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -103,9 +103,9 @@ JFFS2_ERASEBLOCK ?= "0x40000"
103EXTRA_IMAGECMD_jffs2 ?= "--pad ${JFFS2_ENDIANNESS} --eraseblock=${JFFS2_ERASEBLOCK} --no-cleanmarkers" 103EXTRA_IMAGECMD_jffs2 ?= "--pad ${JFFS2_ENDIANNESS} --eraseblock=${JFFS2_ERASEBLOCK} --no-cleanmarkers"
104 104
105# Change these if you want default mkfs behavior (i.e. create minimal inode number) 105# Change these if you want default mkfs behavior (i.e. create minimal inode number)
106EXTRA_IMAGECMD_ext2 ?= "-i 8192" 106EXTRA_IMAGECMD_ext2 ?= "-i 4096"
107EXTRA_IMAGECMD_ext3 ?= "-i 8192" 107EXTRA_IMAGECMD_ext3 ?= "-i 4096"
108EXTRA_IMAGECMD_ext4 ?= "-i 8192" 108EXTRA_IMAGECMD_ext4 ?= "-i 4096"
109EXTRA_IMAGECMD_btrfs ?= "" 109EXTRA_IMAGECMD_btrfs ?= ""
110EXTRA_IMAGECMD_elf ?= "" 110EXTRA_IMAGECMD_elf ?= ""
111 111