All of lore.kernel.org
 help / color / mirror / Atom feed
* Custom images the Right Way.
@ 2013-05-22 18:12 Sébastien Taylor
  2013-05-22 18:23 ` Jon Szymaniak
  0 siblings, 1 reply; 9+ messages in thread
From: Sébastien Taylor @ 2013-05-22 18:12 UTC (permalink / raw)
  To: meta-freescale

I'm working on getting up and running with Yocto using the fsl-community-bsp and have hit a bit of a snag with my custom layer and image.  I add my meta-myproject which includes a recipes-core/images/core-image-myproject.bb which follows the format as described in the Yocto Development Manual section 5.2.1 but it seems inheriting core-image does not generate an init for my image (built with core-image-myproject).  I tried to tell my build/conf/local.conf to use systemd but I'm still missing /sbin/init from my image.

Clearly I'm missing an important step but I'm somewhat at a loss as to what that is.  Am I at least on the right path as to the "Right Way" to add a custom image, create a layer specific to my project with all my custom software and an image .bb file?



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

* Re: Custom images the Right Way.
  2013-05-22 18:12 Custom images the Right Way Sébastien Taylor
@ 2013-05-22 18:23 ` Jon Szymaniak
  2013-05-22 18:32   ` Sébastien Taylor
  0 siblings, 1 reply; 9+ messages in thread
From: Jon Szymaniak @ 2013-05-22 18:23 UTC (permalink / raw)
  To: Sébastien Taylor; +Cc: meta-freescale

On Wed, May 22, 2013 at 2:12 PM, Sébastien Taylor <me@staylor.ca> wrote:
> I'm working on getting up and running with Yocto using the fsl-community-bsp and have hit a bit of a snag with my custom layer and image.  I add my meta-myproject which includes a recipes-core/images/core-image-myproject.bb which follows the format as described in the Yocto Development Manual section 5.2.1 but it seems inheriting core-image does not generate an init for my image (built with core-image-myproject).  I tried to tell my build/conf/local.conf to use systemd but I'm still missing /sbin/init from my image.
>
> Clearly I'm missing an important step but I'm somewhat at a loss as to what that is.  Am I at least on the right path as to the "Right Way" to add a custom image, create a layer specific to my project with all my custom software and an image .bb file?
>

Any chance you might have forgotten to include packagegroup-core-boot
in your IMAGE_INSTALL?


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

* Re: Custom images the Right Way.
  2013-05-22 18:23 ` Jon Szymaniak
@ 2013-05-22 18:32   ` Sébastien Taylor
  2013-05-22 19:01     ` Jon Szymaniak
  0 siblings, 1 reply; 9+ messages in thread
From: Sébastien Taylor @ 2013-05-22 18:32 UTC (permalink / raw)
  To: Jon Szymaniak; +Cc: meta-freescale

That is exactly it, thank you very much.  It wasn't clear to me that this was needed but looking again at core-image-minimal.bb it's pretty obvious that it was required.

On 2013-05-22, at 12:23 PM, Jon Szymaniak <jon.szymaniak+gpg@gmail.com> wrote:

> On Wed, May 22, 2013 at 2:12 PM, Sébastien Taylor <me@staylor.ca> wrote:
>> I'm working on getting up and running with Yocto using the fsl-community-bsp and have hit a bit of a snag with my custom layer and image.  I add my meta-myproject which includes a recipes-core/images/core-image-myproject.bb which follows the format as described in the Yocto Development Manual section 5.2.1 but it seems inheriting core-image does not generate an init for my image (built with core-image-myproject).  I tried to tell my build/conf/local.conf to use systemd but I'm still missing /sbin/init from my image.
>> 
>> Clearly I'm missing an important step but I'm somewhat at a loss as to what that is.  Am I at least on the right path as to the "Right Way" to add a custom image, create a layer specific to my project with all my custom software and an image .bb file?
>> 
> 
> Any chance you might have forgotten to include packagegroup-core-boot
> in your IMAGE_INSTALL?



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

* Re: Custom images the Right Way.
  2013-05-22 18:32   ` Sébastien Taylor
@ 2013-05-22 19:01     ` Jon Szymaniak
  2013-05-22 19:09       ` Sébastien Taylor
  0 siblings, 1 reply; 9+ messages in thread
From: Jon Szymaniak @ 2013-05-22 19:01 UTC (permalink / raw)
  To: Sébastien Taylor; +Cc: meta-freescale

> That is exactly it, thank you very much.  It wasn't clear to me that this was needed but looking again
> at core-image-minimal.bb it's pretty obvious that it was required.

Glad I could help! Made the same mistake just the other day, so I had
it fresh in my head. ;)


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

* Re: Custom images the Right Way.
  2013-05-22 19:01     ` Jon Szymaniak
@ 2013-05-22 19:09       ` Sébastien Taylor
  2013-05-22 19:20         ` Sébastien Taylor
  0 siblings, 1 reply; 9+ messages in thread
From: Sébastien Taylor @ 2013-05-22 19:09 UTC (permalink / raw)
  To: Jon Szymaniak; +Cc: meta-freescale

The other package I'm missing is my kernel modules in /lib/modules.  The skeleton is in place but it seems the actual drivers never get installed.  Any tips are greatly appreciated.

On 2013-05-22, at 1:01 PM, Jon Szymaniak <jon.szymaniak+gpg@gmail.com> wrote:

>> That is exactly it, thank you very much.  It wasn't clear to me that this was needed but looking again
>> at core-image-minimal.bb it's pretty obvious that it was required.
> 
> Glad I could help! Made the same mistake just the other day, so I had
> it fresh in my head. ;)



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

* Re: Custom images the Right Way.
  2013-05-22 19:09       ` Sébastien Taylor
@ 2013-05-22 19:20         ` Sébastien Taylor
  2013-05-22 19:29           ` Eric Bénard
  2013-05-22 19:57           ` Jon Szymaniak
  0 siblings, 2 replies; 9+ messages in thread
From: Sébastien Taylor @ 2013-05-22 19:20 UTC (permalink / raw)
  To: Jon Szymaniak; +Cc: meta-freescale

I added packagegroup-base and now the drivers are all showing up, though it looks like it added quite a bit more than just this so I'll need to go through this packagegroup in detail to see what that is exactly.

On 2013-05-22, at 1:09 PM, Sébastien Taylor <me@staylor.ca> wrote:

> The other package I'm missing is my kernel modules in /lib/modules.  The skeleton is in place but it seems the actual drivers never get installed.  Any tips are greatly appreciated.
> 
> On 2013-05-22, at 1:01 PM, Jon Szymaniak <jon.szymaniak+gpg@gmail.com> wrote:
> 
>>> That is exactly it, thank you very much.  It wasn't clear to me that this was needed but looking again
>>> at core-image-minimal.bb it's pretty obvious that it was required.
>> 
>> Glad I could help! Made the same mistake just the other day, so I had
>> it fresh in my head. ;)
> 



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

* Re: Custom images the Right Way.
  2013-05-22 19:20         ` Sébastien Taylor
@ 2013-05-22 19:29           ` Eric Bénard
  2013-05-22 19:57           ` Jon Szymaniak
  1 sibling, 0 replies; 9+ messages in thread
From: Eric Bénard @ 2013-05-22 19:29 UTC (permalink / raw)
  To: Sébastien Taylor; +Cc: meta-freescale, Jon Szymaniak

Hi Sébastien,

Le Wed, 22 May 2013 13:20:07 -0600,
Sébastien Taylor <me@staylor.ca> a écrit :

> I added packagegroup-base and now the drivers are all showing up, though it looks like it added quite a bit more than just this so I'll need to go through this packagegroup in detail to see what that is exactly.
> 
kernel-modules will install the modules in your image

Eric



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

* Re: Custom images the Right Way.
  2013-05-22 19:20         ` Sébastien Taylor
  2013-05-22 19:29           ` Eric Bénard
@ 2013-05-22 19:57           ` Jon Szymaniak
  2013-05-22 20:01             ` Sébastien Taylor
  1 sibling, 1 reply; 9+ messages in thread
From: Jon Szymaniak @ 2013-05-22 19:57 UTC (permalink / raw)
  To: Sébastien Taylor; +Cc: meta-freescale

> I added packagegroup-base and now the drivers are all showing up, though it looks like it added quite a bit more than just this so I'll need to go through this packagegroup in detail to see what that is exactly.
>
> On 2013-05-22, at 1:09 PM, Sébastien Taylor <me@staylor.ca> wrote:
>
>> The other package I'm missing is my kernel modules in /lib/modules.  The skeleton is in place but it seems the actual drivers never get installed.  Any tips are greatly appreciated.

Hi Sébastien,

You may have already taken a look at it and be past this point, but I
thought it might be useful to mention the hello-world sample module.
Also, you're inheriting 'module' right?

http://git.yoctoproject.org/cgit.cgi/poky-contrib/tree/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb?h=dvhart/skeleton


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

* Re: Custom images the Right Way.
  2013-05-22 19:57           ` Jon Szymaniak
@ 2013-05-22 20:01             ` Sébastien Taylor
  0 siblings, 0 replies; 9+ messages in thread
From: Sébastien Taylor @ 2013-05-22 20:01 UTC (permalink / raw)
  To: Jon Szymaniak; +Cc: meta-freescale

Yes my custom module was implemented this way and worked fine.  The issue was the general modules built as part of the kernel where missing, packagegroup-base fixed it.

On 2013-05-22, at 1:57 PM, Jon Szymaniak <jon.szymaniak+gpg@gmail.com> wrote:

>> I added packagegroup-base and now the drivers are all showing up, though it looks like it added quite a bit more than just this so I'll need to go through this packagegroup in detail to see what that is exactly.
>> 
>> On 2013-05-22, at 1:09 PM, Sébastien Taylor <me@staylor.ca> wrote:
>> 
>>> The other package I'm missing is my kernel modules in /lib/modules.  The skeleton is in place but it seems the actual drivers never get installed.  Any tips are greatly appreciated.
> 
> Hi Sébastien,
> 
> You may have already taken a look at it and be past this point, but I
> thought it might be useful to mention the hello-world sample module.
> Also, you're inheriting 'module' right?
> 
> http://git.yoctoproject.org/cgit.cgi/poky-contrib/tree/meta-skeleton/recipes-kernel/hello-mod/hello-mod_0.1.bb?h=dvhart/skeleton



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

end of thread, other threads:[~2013-05-22 20:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-22 18:12 Custom images the Right Way Sébastien Taylor
2013-05-22 18:23 ` Jon Szymaniak
2013-05-22 18:32   ` Sébastien Taylor
2013-05-22 19:01     ` Jon Szymaniak
2013-05-22 19:09       ` Sébastien Taylor
2013-05-22 19:20         ` Sébastien Taylor
2013-05-22 19:29           ` Eric Bénard
2013-05-22 19:57           ` Jon Szymaniak
2013-05-22 20:01             ` Sébastien Taylor

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.