Patchwork [2/2] bitbake.conf: fix ubi images creation

login
register
mail settings
Submitter Denis Carikli
Date Sept. 2, 2011, 1:31 p.m.
Message ID <1314970267-20365-2-git-send-email-denis@eukrea.com>
Download mbox | patch
Permalink /patch/10911/
State Superseded
Headers show

Comments

Denis Carikli - Sept. 2, 2011, 1:31 p.m.
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.

Signed-off-by: Denis Carikli <denis@eukrea.com>
---
 meta/conf/bitbake.conf |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index a68be07..14ee90c 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -382,6 +382,8 @@  IMAGE_BASENAME = "${PN}"
 IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}"
 IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}"
 
+UBI_VOLNAME ?= "${MACHINE}-rootfs"
+
 # This option allows for a percentage overage of the actual image size rather than a
 # fixed extra space, this is space needed for initial startup and basic operations.
 IMAGE_OVERHEAD_FACTOR ?= 1.3