All of lore.kernel.org
 help / color / mirror / Atom feed
* Distro vs. Image
@ 2014-12-23  3:09 Leo Schwab
  2014-12-29  2:23 ` ChenQi
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Schwab @ 2014-12-23  3:09 UTC (permalink / raw)
  To: yocto

Up to this point, all our builds for our prototypes have been "image"
builds, i.e. we built an image recipe starting with
packagegroup-core-boot, and it's accreted from there.  We write the
resulting .sdcard image file to an SD card and boot from that.

Now we would like to create an "installer" image, i.e. a bootable
image whose job is to install a release(-candidate) image to the HW.
Naturally, some config details in the resulting image will be
different.  The more I read, it feels like this wants to be a
"distro," rather than just another image recipe.  Recipes searching
for files will automagically generate subdirectory search paths based
on current distro name, which would allow us to substitute different
config files based on what's being built.  (Extra Credit for this
build would be to incorporate a copy of the release image into the
installer image.)

Trouble is, none of the docs I've read describe very clearly how to
make the leap from cobbling image recipes together to creating a
functionally equivalent distro recipe.  Could someone point out some
resources and examples on how this is meant to be conceptualized and
used?  Thanks in advance for all suggestions.

Schwab


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Distro vs. Image
  2014-12-23  3:09 Distro vs. Image Leo Schwab
@ 2014-12-29  2:23 ` ChenQi
  2014-12-29  2:34   ` nick
  0 siblings, 1 reply; 3+ messages in thread
From: ChenQi @ 2014-12-29  2:23 UTC (permalink / raw)
  To: yocto

Hi Schwab,

What do you mean by "distro recipe"?

I can see your initial problem is that you want different config details 
for the same image recipe (maybe for different HW, I guess?).

Now we would like to create an "installer" image, i.e. a bootable
image whose job is to install a release(-candidate) image to the HW.
Naturally, some config details in the resulting image will be
different.

Can this be done via bbappend file in different layers?
Can this be done via different distro config files?

Regards,
Chen Qi


On 12/23/2014 11:09 AM, Leo Schwab wrote:
> Up to this point, all our builds for our prototypes have been "image"
> builds, i.e. we built an image recipe starting with
> packagegroup-core-boot, and it's accreted from there.  We write the
> resulting .sdcard image file to an SD card and boot from that.
>
> Now we would like to create an "installer" image, i.e. a bootable
> image whose job is to install a release(-candidate) image to the HW.
> Naturally, some config details in the resulting image will be
> different.  The more I read, it feels like this wants to be a
> "distro," rather than just another image recipe.  Recipes searching
> for files will automagically generate subdirectory search paths based
> on current distro name, which would allow us to substitute different
> config files based on what's being built.  (Extra Credit for this
> build would be to incorporate a copy of the release image into the
> installer image.)
>
> Trouble is, none of the docs I've read describe very clearly how to
> make the leap from cobbling image recipes together to creating a
> functionally equivalent distro recipe.  Could someone point out some
> resources and examples on how this is meant to be conceptualized and
> used?  Thanks in advance for all suggestions.
>
> Schwab



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Distro vs. Image
  2014-12-29  2:23 ` ChenQi
@ 2014-12-29  2:34   ` nick
  0 siblings, 0 replies; 3+ messages in thread
From: nick @ 2014-12-29  2:34 UTC (permalink / raw)
  To: ChenQi, yocto

Schwab,
You asked about an building an installable image, if you have Hob there is a way.
https://www.yoctoproject.org/documentation/hob-manual-16#run-deploy
This is a link to the page explaining it, scroll down to the section on deploying
or running  your image and it should explain how to do it. 
Cheers Nick

On 2014-12-28 09:23 PM, ChenQi wrote:
> Hi Schwab,
> 
> What do you mean by "distro recipe"?
> 
> I can see your initial problem is that you want different config details for the same image recipe (maybe for different HW, I guess?).
> 
> Now we would like to create an "installer" image, i.e. a bootable
> image whose job is to install a release(-candidate) image to the HW.
> Naturally, some config details in the resulting image will be
> different.
> 
> Can this be done via bbappend file in different layers?
> Can this be done via different distro config files?
> 
> Regards,
> Chen Qi
> 
> 
> On 12/23/2014 11:09 AM, Leo Schwab wrote:
>> Up to this point, all our builds for our prototypes have been "image"
>> builds, i.e. we built an image recipe starting with
>> packagegroup-core-boot, and it's accreted from there.  We write the
>> resulting .sdcard image file to an SD card and boot from that.
>>
>> Now we would like to create an "installer" image, i.e. a bootable
>> image whose job is to install a release(-candidate) image to the HW.
>> Naturally, some config details in the resulting image will be
>> different.  The more I read, it feels like this wants to be a
>> "distro," rather than just another image recipe.  Recipes searching
>> for files will automagically generate subdirectory search paths based
>> on current distro name, which would allow us to substitute different
>> config files based on what's being built.  (Extra Credit for this
>> build would be to incorporate a copy of the release image into the
>> installer image.)
>>
>> Trouble is, none of the docs I've read describe very clearly how to
>> make the leap from cobbling image recipes together to creating a
>> functionally equivalent distro recipe.  Could someone point out some
>> resources and examples on how this is meant to be conceptualized and
>> used?  Thanks in advance for all suggestions.
>>
>> Schwab
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-29  2:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-23  3:09 Distro vs. Image Leo Schwab
2014-12-29  2:23 ` ChenQi
2014-12-29  2:34   ` nick

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.