From: Mark Hatle <mark.hatle@windriver.com>
To: <yocto@yoctoproject.org>
Subject: Re: Multiple partitions in drive image
Date: Mon, 15 Oct 2012 14:19:21 -0500 [thread overview]
Message-ID: <507C61B9.8060300@windriver.com> (raw)
In-Reply-To: <1350284380.4115.18.camel@babel.joshhome>
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
>
next prev parent reply other threads:[~2012-10-15 19:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-12 21:42 Multiple partitions in drive image Jonathan Haws
2012-10-12 22:13 ` Rudolf Streif
2012-10-12 22:18 ` Jonathan Haws
2012-10-15 6:59 ` Joshua Immanuel
2012-10-15 14:56 ` Jonathan Haws
2012-10-15 19:19 ` Mark Hatle [this message]
2012-10-15 19:31 ` Gary Thomas
2012-10-16 6:48 ` Joshua Immanuel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=507C61B9.8060300@windriver.com \
--to=mark.hatle@windriver.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.