[oe] [RFC] Add ubi volume image support, fix ubifs

Tom Rini trini at kernel.crashing.org
Tue Feb 10 22:59:40 UTC 2009


On Tue, Feb 10, 2009 at 11:43:07PM +0100, Koen Kooi wrote:
>
> Op 10 feb 2009, om 21:48 heeft Tom Rini het volgende geschreven:
>
>> Hey all.  I'd like to commit the following patch.
>
> Looks ok, one minor featurerequest:
>
>
>> +IMAGE_CMD_ubi = "echo \[ubifs\] > ubinize.cfg ; echo mode=ubi >>  
>> ubinize.cfg ; echo image=${DEPLOY_DIR_IMAGE}/$ 
>> {IMAGE_NAME}.rootfs.ubifs >> ubinize.cfg ; echo vol_id=0 >>  
>> ubinize.cfg ; echo vol_type=dynamic >> ubinize.cfg ; echo  
>> vol_name=rootfs >> ubinize.cfg ; echo vol_flags=autoresize >>  
>> ubinize.cfg;mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/$ 
>> {IMAGE_NAME}.rootfs.ubifs ${MKUBIFS_ARGS} && ubinize -o $ 
>> {DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ${UBINIZE_ARGS}  
>> ubinize.cfg"
>
> echo vol_name=${MACHINE}-rootfs would be nice :)

Really?  iirc from the mounting commandline stuff that means you have to
pass in machine-rootfs rather than just rootfs, ie
root=ubi0:machine-rootfs not root=ubi0:rootfs

-- 
Tom Rini




More information about the Openembedded-devel mailing list