diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-03-26 05:26:45 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-26 17:46:56 +0000 |
commit | f1276b066223e7f501f7f711680215ff8edee252 (patch) | |
tree | 6eaaa8fc4f1296ef439360169df26b4ebcf9251c /meta | |
parent | 0468067e23d44415519c06566537419c04ef238b (diff) | |
download | poky-f1276b066223e7f501f7f711680215ff8edee252.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 master rev: 09ab3a00598d06e3a1bf871811c2ac37359c74da)
(From OE-Core rev: ec8ae16e35fd7db6a5bb12412d50ab6f355b0f6e)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image_types.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index f4938d14bd..09f3b477e7 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -210,9 +210,9 @@ JFFS2_ERASEBLOCK ?= "0x40000" | |||
210 | EXTRA_IMAGECMD_jffs2 ?= "--pad ${JFFS2_ENDIANNESS} --eraseblock=${JFFS2_ERASEBLOCK} --no-cleanmarkers" | 210 | EXTRA_IMAGECMD_jffs2 ?= "--pad ${JFFS2_ENDIANNESS} --eraseblock=${JFFS2_ERASEBLOCK} --no-cleanmarkers" |
211 | 211 | ||
212 | # Change these if you want default mkfs behavior (i.e. create minimal inode number) | 212 | # Change these if you want default mkfs behavior (i.e. create minimal inode number) |
213 | EXTRA_IMAGECMD_ext2 ?= "-i 8192" | 213 | EXTRA_IMAGECMD_ext2 ?= "-i 4096" |
214 | EXTRA_IMAGECMD_ext3 ?= "-i 8192" | 214 | EXTRA_IMAGECMD_ext3 ?= "-i 4096" |
215 | EXTRA_IMAGECMD_ext4 ?= "-i 8192" | 215 | EXTRA_IMAGECMD_ext4 ?= "-i 4096" |
216 | EXTRA_IMAGECMD_btrfs ?= "" | 216 | EXTRA_IMAGECMD_btrfs ?= "" |
217 | EXTRA_IMAGECMD_elf ?= "" | 217 | EXTRA_IMAGECMD_elf ?= "" |
218 | 218 | ||