Andre, I spent some time trying to determine how to generate multiple images as you've mentioned. However, the process used to generate the rootfs image appears to be buried deep in the Open Embedded core and I wasn't able to figure out how it works. Maybe someone else can chime in on how that might be accomplished.
Thomas Moore From: Andre Marschalek [mailto:andre.marscha...@outlook.com] Sent: Tuesday, January 06, 2015 8:34 AM To: Moore, Thomas (FtWorth); yocto@yoctoproject.org Subject: RE: [yocto] separate partition support 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.moo...@atk.com] Sent: Tuesday, January 6, 2015 1:01 AM To: Andre Marschalek; yocto@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-boun...@yoctoproject.org<mailto:yocto-boun...@yoctoproject.org> [mailto:yocto-boun...@yoctoproject.org] On Behalf Of Andre Marschalek Sent: Monday, January 05, 2015 5:50 PM To: yocto@yoctoproject.org<mailto:yocto@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
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto