On 10/15/12 1:59 AM, Joshua Immanuel wrote:
Hello Jonathan,
On Fri, 2012-10-12 at 21:42 +0000, Jonathan Haws wrote:
What I am trying to do is have Poky build me an image that I can just
'dd' to a SSD and hook up to the system to boot. Since that image
will also only be only ~250MB or so, I would like to have Poky
generate an image containing multiple partitions - a small one
containing the boot files, then the rest of the image dedicated to
storage. Is that possible?
Yes. It is possible. I have done the following in order to generate
image with multiple partitions.
1. I wrote a custom image_types.bbclass in order to generate
multiple partition images (say /, /var etc)
2. Wrote a bbappend for base-files recipe to generate custom fstab
file with required partition's mount options
3. Extended grub-native recipe to generate core.img and boot.img
using grub-mkimage for target platform
4. Wrote a python task to join all these generated images (boot,
core and filesystem images) and embedded the partition table
structure into it.
5. Added this task to my image recipe after the 'do_rootfs' task
This way we can generate a custom image with the required partitions.
Recently a we've been talking about how we could do this. Specifically how to
construct a disk image that can just be DD'ed including bootloader, partitioning
and multiple partitions.
Is the code you used for the dynamic fstab, partition map, and bootloader setup
and image creation available anywhere?
I expect it isn't too difficult to create, but if there is something to start
with it would be useful.
--Mark
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto