[yocto] separate partition support

Andre Marschalek andre.marschalek at outlook.com
Tue Jan 6 06:33:34 PST 2015


Hi Thomas,

 

what I need is to have one image per partition

 

for example if i need to have /opt on a different partition i would need 2
image files at the end

 

one containing the root partition but without /opt and one with the contents
of /opt (without /opt itself because this image will be mounted as /opt at
the end)

 

br

Andre

 

From: Moore, Thomas (FtWorth) [mailto:Thomas.Moore2 at ATK.COM] 
Sent: Tuesday, January 6, 2015 1:01 AM
To: Andre Marschalek; yocto at yoctoproject.org
Subject: RE: [yocto] separate partition support

 

I'm actually experimenting with this today.

 

Per the Development Manual, my first attempt was to use wic. While I was
able to create an image with multiple partitions, there appears to be no way
to split up the rootfs image that is created amongst the multiple
partitions. Below is the wks file I created for my test:

 

part /boot --source bootimg-pcbios --ondisk sda --label boot --active
--align 1024

part / --source rootfs --ondisk sda --fstype=ext3 --label platform --align
1024

part /var --source rootfs --ondisk sda --fstype=ext3 --label data --align
1024

 

bootloader  --timeout=0  --append="rootwait rootfstype=ext3 video=vesafb
vga=0x318 console=tty0"

 

After running wic, I was able to examine the resulting image and there were
three partitions. However, the second and third partitions (/ and /var) both
contained the entire rootfs. In this case, I was hoping that wic would
realize that I only wanted the contents /var in the third partition and to
also not be included in the second partition.

 

While it may be possible to create a new plugin for wic to achieve my
desired result, I'm not sure if it would be possible for the instance of the
plugin creating the / partition to be aware of the other partitions and
their mount points to be able to exclude those folders from the / partition.
Does anyone have any thoughts on this?

 

Thanks,

 

Thomas Moore

 

From: yocto-bounces at yoctoproject.org <mailto:yocto-bounces at yoctoproject.org>
[mailto:yocto-bounces at yoctoproject.org] On Behalf Of Andre Marschalek
Sent: Monday, January 05, 2015 5:50 PM
To: yocto at yoctoproject.org <mailto:yocto at yoctoproject.org> 
Subject: [yocto] separate partition support

 

hi,

 

splitting the root file filesystem into different partitions is a common
task and supported from every operating system during install and should be
also supported from yocto's build system

based on the current available documentation it seems impossible to
accomplish this task, the only available result is one full blown image
containing the root partition

 

currently the only idea i had is to run bitbake which will generate the root
image containing everything

create afterwards my own images with the desired size (also a new root image
because in this case IMAGE_ROOTFS_SIZE does not reflect the ending image
size)

mount every image and move the directories from the bitbake produced image
into this new images

and finally flash that images to my devices

 

what do you mean?

should this basic core functionality part of yocto's build process without
an overhead for everyone to create isolated solutions?

do you see a better workaround as to create new images and movements after
the build process?

 

thank you in advance

 

br

Andre

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150106/58bfed84/attachment.html>


More information about the yocto mailing list