[poky] UBIFS images

Richard Purdie richard.purdie at linuxfoundation.org
Mon Jul 11 08:07:23 PDT 2011


On Mon, 2011-07-11 at 08:13 -0600, Gary Thomas wrote:
> I'm trying to use UBIFS on my target and I found that the images
> are not quite right.  The soft-link points to the wrong file.
> 
> $ ls -l tmp/deploy/images/*ubi*
> -rw-r--r-- 1 gthomas gthomas 7483392 Jul 11 07:56 tmp/deploy/images/my_distro-console-image-my_target-20110711135454.ubifs.img
> lrwxrwxrwx 1 gthomas gthomas      62 Jul 11 07:56 tmp/deploy/images/my_distro-console-image-my_target.ubifs -> my_distro-console-image-my_target-20110711135454.rootfs.ubifs
> 
> I've looked through meta/classes/image_types.bbclass but it's not
> clear to me [yet] where that soft-link gets built and why it gets
> it wrong.
> 
> Any pointers?

image_types.bbclass:

ln -s ${IMAGE_NAME}.rootfs.${type} ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.${type}

The problem is that $type=ubifs but the extenstion the ubifs image
generates is ubifs.img:

IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ubifs.img ${MKUBIFS_ARGS}"

and we don't support generating image types where the image extension
and the type name differ...

I'd guess the quick fix is s/ubifs.img/ubifs/ in the above...

Cheers,

Richard




More information about the poky mailing list