All of lore.kernel.org
 help / color / mirror / Atom feed
* menuconfig vs. config fragments?
@ 2012-07-09 10:39 James Abernathy
  2012-07-09 10:42 ` Andrei Gherzan
  0 siblings, 1 reply; 7+ messages in thread
From: James Abernathy @ 2012-07-09 10:39 UTC (permalink / raw)
  To: yocto

my goal of this test was to see if I could use the n450 BSP as a starting point for a BSP to support my Acer Aspire One n450 based netbook.  The core-image-sato will boot from USB key on the netbook if I use the ZIP drive format for the USB key, but the current n450 BSP doesn't include the drivers for the networking hardware in the netbook.

I found by testing, using the menuconfig option documented in the Developer Manual Appendix B example, that I needed to add 2 parameters to the .config:

CONFIG_ATH9K_PCI
CONFIG_ATL1C

To make this change easier to manage and more permanent, I thought about creating a config fragment.  I put the config parameters in a file, myconfig, in the linux-yocto directory at the same level as the linux-yocto_3.2.bbappend file, where I added:

SRC_URI += "file//myconfig"

I can see from the tmp/work directory that bitbake found my myconfig file and copied it over, but the .config file used in the building of the kernel didn't have the parameters listed and obviously, the drivers didn't make it.

Is there something else to do to get these config parameters included as config fragments?  Is there some tool reviewing the config parameters and throwing my 2 out for some reason?  

The only way I've gotten this to work is with the bitbake linux-yocto -c menuconfig command and manually adding the parameters.

Jim A



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

* Re: menuconfig vs. config fragments?
  2012-07-09 10:39 menuconfig vs. config fragments? James Abernathy
@ 2012-07-09 10:42 ` Andrei Gherzan
  2012-07-09 11:12   ` Jack Mitchell
  2012-07-09 12:07   ` Bruce Ashfield
  0 siblings, 2 replies; 7+ messages in thread
From: Andrei Gherzan @ 2012-07-09 10:42 UTC (permalink / raw)
  To: James Abernathy; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 981 bytes --]

On Mon, Jul 9, 2012 at 1:39 PM, James Abernathy <jfabernathy@gmail.com>wrote:

> my goal of this test was to see if I could use the n450 BSP as a starting
> point for a BSP to support my Acer Aspire One n450 based netbook.  The
> core-image-sato will boot from USB key on the netbook if I use the ZIP
> drive format for the USB key, but the current n450 BSP doesn't include the
> drivers for the networking hardware in the netbook.
>
> I found by testing, using the menuconfig option documented in the
> Developer Manual Appendix B example, that I needed to add 2 parameters to
> the .config:
>
> CONFIG_ATH9K_PCI
> CONFIG_ATL1C
>
> To make this change easier to manage and more permanent, I thought about
> creating a config fragment.  I put the config parameters in a file,
> myconfig, in the linux-yocto directory at the same level as the
> linux-yocto_3.2.bbappend file, where I added:
>
> SRC_URI += "file//myconfig"
>
>
Try to use myconfig.cfg.

@g

[-- Attachment #2: Type: text/html, Size: 1285 bytes --]

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

* Re: menuconfig vs. config fragments?
  2012-07-09 10:42 ` Andrei Gherzan
@ 2012-07-09 11:12   ` Jack Mitchell
  2012-07-09 12:07   ` Bruce Ashfield
  1 sibling, 0 replies; 7+ messages in thread
From: Jack Mitchell @ 2012-07-09 11:12 UTC (permalink / raw)
  To: yocto

On 09/07/12 11:42, Andrei Gherzan wrote:
> On Mon, Jul 9, 2012 at 1:39 PM, James Abernathy <jfabernathy@gmail.com 
> <mailto:jfabernathy@gmail.com>> wrote:
>
>     my goal of this test was to see if I could use the n450 BSP as a
>     starting point for a BSP to support my Acer Aspire One n450 based
>     netbook.  The core-image-sato will boot from USB key on the
>     netbook if I use the ZIP drive format for the USB key, but the
>     current n450 BSP doesn't include the drivers for the networking
>     hardware in the netbook.
>
>     I found by testing, using the menuconfig option documented in the
>     Developer Manual Appendix B example, that I needed to add 2
>     parameters to the .config:
>
>     CONFIG_ATH9K_PCI
>     CONFIG_ATL1C
>
>     To make this change easier to manage and more permanent, I thought
>     about creating a config fragment.  I put the config parameters in
>     a file, myconfig, in the linux-yocto directory at the same level
>     as the linux-yocto_3.2.bbappend file, where I added:
>
>     SRC_URI += "file//myconfig"
>
>
> Try to use myconfig.cfg.
>
> @g
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

I agree, something in the back of my mind is shouting that config 
fragments should have a .cfg extension.

Regards,

-- 

   Jack Mitchell (jack@embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--



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

* Re: menuconfig vs. config fragments?
  2012-07-09 10:42 ` Andrei Gherzan
  2012-07-09 11:12   ` Jack Mitchell
@ 2012-07-09 12:07   ` Bruce Ashfield
  2012-07-09 12:13     ` James Abernathy
  1 sibling, 1 reply; 7+ messages in thread
From: Bruce Ashfield @ 2012-07-09 12:07 UTC (permalink / raw)
  To: Andrei Gherzan; +Cc: yocto

On Mon, Jul 9, 2012 at 6:42 AM, Andrei Gherzan <andrei@gherzan.ro> wrote:
> On Mon, Jul 9, 2012 at 1:39 PM, James Abernathy <jfabernathy@gmail.com>
> wrote:
>>
>> my goal of this test was to see if I could use the n450 BSP as a starting
>> point for a BSP to support my Acer Aspire One n450 based netbook.  The
>> core-image-sato will boot from USB key on the netbook if I use the ZIP drive
>> format for the USB key, but the current n450 BSP doesn't include the drivers
>> for the networking hardware in the netbook.
>>
>> I found by testing, using the menuconfig option documented in the
>> Developer Manual Appendix B example, that I needed to add 2 parameters to
>> the .config:
>>
>> CONFIG_ATH9K_PCI
>> CONFIG_ATL1C
>>
>> To make this change easier to manage and more permanent, I thought about
>> creating a config fragment.  I put the config parameters in a file,
>> myconfig, in the linux-yocto directory at the same level as the
>> linux-yocto_3.2.bbappend file, where I added:
>>
>> SRC_URI += "file//myconfig"
>>
>
> Try to use myconfig.cfg.

This would be the key part, since as a few noted, .cfg is what
triggers the fragment
processing to actually notice the file and stack it after the base /
defined configuration.

Cheers,

Bruce

>
> @g
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


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

* Re: menuconfig vs. config fragments?
  2012-07-09 12:07   ` Bruce Ashfield
@ 2012-07-09 12:13     ` James Abernathy
  2012-07-09 12:52       ` James Abernathy
  0 siblings, 1 reply; 7+ messages in thread
From: James Abernathy @ 2012-07-09 12:13 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1973 bytes --]

On Mon, Jul 9, 2012 at 8:07 AM, Bruce Ashfield <bruce.ashfield@gmail.com>wrote:

> On Mon, Jul 9, 2012 at 6:42 AM, Andrei Gherzan <andrei@gherzan.ro> wrote:
> > On Mon, Jul 9, 2012 at 1:39 PM, James Abernathy <jfabernathy@gmail.com>
> > wrote:
> >>
> >> my goal of this test was to see if I could use the n450 BSP as a
> starting
> >> point for a BSP to support my Acer Aspire One n450 based netbook.  The
> >> core-image-sato will boot from USB key on the netbook if I use the ZIP
> drive
> >> format for the USB key, but the current n450 BSP doesn't include the
> drivers
> >> for the networking hardware in the netbook.
> >>
> >> I found by testing, using the menuconfig option documented in the
> >> Developer Manual Appendix B example, that I needed to add 2 parameters
> to
> >> the .config:
> >>
> >> CONFIG_ATH9K_PCI
> >> CONFIG_ATL1C
> >>
> >> To make this change easier to manage and more permanent, I thought about
> >> creating a config fragment.  I put the config parameters in a file,
> >> myconfig, in the linux-yocto directory at the same level as the
> >> linux-yocto_3.2.bbappend file, where I added:
> >>
> >> SRC_URI += "file//myconfig"
> >>
> >
> > Try to use myconfig.cfg.
>
> This would be the key part, since as a few noted, .cfg is what
> triggers the fragment
> processing to actually notice the file and stack it after the base /
> defined configuration.
>
> Cheers,
>
> Bruce
>
> I'm testing it now, but it sound like the problem.  So the Developer
Manual uses the .cfg in the example, but the BSP Guide does not.  That's an
area to fix.  Since this is critical,it needs to be pointed out, in my mind.

JIm A

>
> > @g
> >
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> >
>
>
>
> --
> "Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end"
>

[-- Attachment #2: Type: text/html, Size: 3082 bytes --]

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

* Re: menuconfig vs. config fragments?
  2012-07-09 12:13     ` James Abernathy
@ 2012-07-09 12:52       ` James Abernathy
  2012-07-12 15:04         ` Rifenbark, Scott M
  0 siblings, 1 reply; 7+ messages in thread
From: James Abernathy @ 2012-07-09 12:52 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2231 bytes --]

On Mon, Jul 9, 2012 at 8:13 AM, James Abernathy <jfabernathy@gmail.com>wrote:

>
>
> On Mon, Jul 9, 2012 at 8:07 AM, Bruce Ashfield <bruce.ashfield@gmail.com>wrote:
>
>> On Mon, Jul 9, 2012 at 6:42 AM, Andrei Gherzan <andrei@gherzan.ro> wrote:
>> > On Mon, Jul 9, 2012 at 1:39 PM, James Abernathy <jfabernathy@gmail.com>
>> > wrote:
>> >>
>> >> my goal of this test was to see if I could use the n450 BSP as a
>> starting
>> >> point for a BSP to support my Acer Aspire One n450 based netbook.  The
>> >> core-image-sato will boot from USB key on the netbook if I use the ZIP
>> drive
>> >> format for the USB key, but the current n450 BSP doesn't include the
>> drivers
>> >> for the networking hardware in the netbook.
>> >>
>> >> I found by testing, using the menuconfig option documented in the
>> >> Developer Manual Appendix B example, that I needed to add 2 parameters
>> to
>> >> the .config:
>> >>
>> >> CONFIG_ATH9K_PCI
>> >> CONFIG_ATL1C
>> >>
>> >> To make this change easier to manage and more permanent, I thought
>> about
>> >> creating a config fragment.  I put the config parameters in a file,
>> >> myconfig, in the linux-yocto directory at the same level as the
>> >> linux-yocto_3.2.bbappend file, where I added:
>> >>
>> >> SRC_URI += "file//myconfig"
>> >>
>> >
>> > Try to use myconfig.cfg.
>>
>> This would be the key part, since as a few noted, .cfg is what
>> triggers the fragment
>> processing to actually notice the file and stack it after the base /
>> defined configuration.
>>
>> Cheers,
>>
>> Bruce
>>
>> I'm testing it now, but it sound like the problem.  So the Developer
> Manual uses the .cfg in the example, but the BSP Guide does not.  That's an
> area to fix.  Since this is critical,it needs to be pointed out, in my mind.
>
> JIm A
>
> Adding the .cfg extension does indeed fix my problem. Thanks for the help.

Jim A



> >
>> > @g
>> >
>> > _______________________________________________
>> > yocto mailing list
>> > yocto@yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/yocto
>> >
>>
>>
>>
>> --
>> "Thou shalt not follow the NULL pointer, for chaos and madness await
>> thee at its end"
>>
>
>

[-- Attachment #2: Type: text/html, Size: 3713 bytes --]

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

* Re: menuconfig vs. config fragments?
  2012-07-09 12:52       ` James Abernathy
@ 2012-07-12 15:04         ` Rifenbark, Scott M
  0 siblings, 0 replies; 7+ messages in thread
From: Rifenbark, Scott M @ 2012-07-12 15:04 UTC (permalink / raw)
  To: James Abernathy, Bruce Ashfield; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 2523 bytes --]

Jim,

This needs to be fixed in the BSP Guide.  I will handle that.

Thanks,
Scott

From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of James Abernathy
Sent: Monday, July 09, 2012 5:52 AM
To: Bruce Ashfield
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] menuconfig vs. config fragments?


On Mon, Jul 9, 2012 at 8:13 AM, James Abernathy <jfabernathy@gmail.com<mailto:jfabernathy@gmail.com>> wrote:

On Mon, Jul 9, 2012 at 8:07 AM, Bruce Ashfield <bruce.ashfield@gmail.com<mailto:bruce.ashfield@gmail.com>> wrote:
On Mon, Jul 9, 2012 at 6:42 AM, Andrei Gherzan <andrei@gherzan.ro<mailto:andrei@gherzan.ro>> wrote:
> On Mon, Jul 9, 2012 at 1:39 PM, James Abernathy <jfabernathy@gmail.com<mailto:jfabernathy@gmail.com>>
> wrote:
>>
>> my goal of this test was to see if I could use the n450 BSP as a starting
>> point for a BSP to support my Acer Aspire One n450 based netbook.  The
>> core-image-sato will boot from USB key on the netbook if I use the ZIP drive
>> format for the USB key, but the current n450 BSP doesn't include the drivers
>> for the networking hardware in the netbook.
>>
>> I found by testing, using the menuconfig option documented in the
>> Developer Manual Appendix B example, that I needed to add 2 parameters to
>> the .config:
>>
>> CONFIG_ATH9K_PCI
>> CONFIG_ATL1C
>>
>> To make this change easier to manage and more permanent, I thought about
>> creating a config fragment.  I put the config parameters in a file,
>> myconfig, in the linux-yocto directory at the same level as the
>> linux-yocto_3.2.bbappend file, where I added:
>>
>> SRC_URI += "file//myconfig"
>>
>
> Try to use myconfig.cfg.
This would be the key part, since as a few noted, .cfg is what
triggers the fragment
processing to actually notice the file and stack it after the base /
defined configuration.

Cheers,

Bruce

I'm testing it now, but it sound like the problem.  So the Developer Manual uses the .cfg in the example, but the BSP Guide does not.  That's an area to fix.  Since this is critical,it needs to be pointed out, in my mind.

JIm A
Adding the .cfg extension does indeed fix my problem. Thanks for the help.

Jim A


>
> @g
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/yocto
>


--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"



[-- Attachment #2: Type: text/html, Size: 7445 bytes --]

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

end of thread, other threads:[~2012-07-12 15:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-09 10:39 menuconfig vs. config fragments? James Abernathy
2012-07-09 10:42 ` Andrei Gherzan
2012-07-09 11:12   ` Jack Mitchell
2012-07-09 12:07   ` Bruce Ashfield
2012-07-09 12:13     ` James Abernathy
2012-07-09 12:52       ` James Abernathy
2012-07-12 15:04         ` Rifenbark, Scott M

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.