diff options
author | Denis Carikli <denis@eukrea.com> | 2011-09-05 20:34:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-05 20:36:08 +0100 |
commit | 534dcaba0517ebfb6e48b6b436960a74e642a556 (patch) | |
tree | e89824bfc80f35fa2c5a3c8d7f4b76e5643b64cd /meta | |
parent | a160f4dd48b91c5e6f8c290c7572e29a39a3e693 (diff) | |
download | openembedded-core-534dcaba0517ebfb6e48b6b436960a74e642a556.tar.gz openembedded-core-534dcaba0517ebfb6e48b6b436960a74e642a556.tar.bz2 openembedded-core-534dcaba0517ebfb6e48b6b436960a74e642a556.tar.xz openembedded-core-534dcaba0517ebfb6e48b6b436960a74e642a556.zip |
image_types: Fix ubi images creation
Without that commit ubinize.cfg lack a volume name value,
and the related ubinize.cfg line looks like that:
vol_name=
which result in a broken ubi image,which after beeing flashed produce
the following error:
UBI error: vtbl_check: volume table check failed: record 0, error 11
wich result in a kernel panic because the rootfs can't be mounted.
[RP: Moved from bitbake.conf to the .bbclass file]
Signed-off-by: Denis Carikli <denis@eukrea.com>
Acked-by: Anders Darander <anders@chargestorm.se>
Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image_types.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 1abd53334..c24b32645 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass @@ -99,6 +99,8 @@ IMAGE_CMD_cpio.gz = "cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | gzip -c - IMAGE_CMD_cpio.xz = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | xz -c ${XZ_COMPRESSION_LEVEL} --check=${XZ_INTEGRITY_CHECK} > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.xz) ${EXTRA_IMAGECMD}" IMAGE_CMD_cpio.lzma = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | xz --format=lzma -c ${XZ_COMPRESSION_LEVEL} --check=${XZ_INTEGRITY_CHECK} >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.lzma) ${EXTRA_IMAGECMD}" +UBI_VOLNAME ?= "${MACHINE}-rootfs" + IMAGE_CMD_ubi () { echo \[ubifs\] > ubinize.cfg echo mode=ubi >> ubinize.cfg |