All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Graute <oliver.graute@gmail.com>
To: meta-freescale@yoctoproject.org
Subject: Re: adjust image partitions for imx6ulevk
Date: Fri, 29 Jan 2016 11:40:56 +0100	[thread overview]
Message-ID: <20160129104056.GC21464@graute-opti> (raw)
In-Reply-To: <CAALGJZa+mHC3GgLCSp-Q8oeb=vBAC=bOCnvoc_gaW6d=HgouDQ@mail.gmail.com>

On 28/01/16, Christian Ege wrote:
> Hello Oliver,
> 
> 2016-01-28 12:37 GMT+01:00 Oliver Graute <oliver.graute@gmail.com>:
> > Hello,
> >
> > whats is the right way to adjust the flash partitions for my imx6ulevk?
> There are several possibilities I think.
> 
> - Either by defining an own image class like this:
>   https://github.com/Freescale/meta-fsl-arm/blob/master/classes/image_types_fsl.bbclass
> I never tried but I guess you can inherit this class and overload the
> functions you wish to extend.
> - Create a script which adds those partitions during the first boot. I
> did something similar to resize the rootfs:
>   https://github.com/graugans/meta-udoo/blob/jethro/recipes-core/resize-rootfs/resize-rootfs.bb
> - Use swupdate by stefano babic and create the partiion during
> installation of the image. This is how we do it in the office.
>   https://github.com/sbabic/meta-swupdate
>   https://github.com/sbabic/swupdate
> 
> > I need a bootstream partition, two rootfs partitions with 125 MB each
> > and a data partitions with 730 MB.
> 
> > during some code investigation I found image_types_fsl.bbclass where
> > some partitioning seems to happen. Is this the point to start?
> You have to provide your own. I can not see any hooks to change the
> layout. For me your request is very specific and could be hardly
> handled by a generic approach.
> 
> You can check how they did it in the RPI
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/tree/classes/sdcard_image-rpi.bbclass
> 
> > Can you give me some instructions, how to do that the right way in yocto.
> I would prefer to use swupdate. But I am unsure about dual bootimage support

thx for the links, I come back to this if its not working with wic

best regards,

Oliver


  reply	other threads:[~2016-01-29 10:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-28 11:37 adjust image partitions for imx6ulevk Oliver Graute
2016-01-28 13:06 ` Christian Ege
2016-01-29 10:40   ` Oliver Graute [this message]
2016-01-28 14:32 ` Otavio Salvador
2016-01-29 10:36   ` Oliver Graute
2016-01-29 12:16     ` Oliver Graute

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=20160129104056.GC21464@graute-opti \
    --to=oliver.graute@gmail.com \
    --cc=meta-freescale@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.