All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel defconfig configuration
@ 2015-10-19  6:37 Edward Wingate
  2015-10-19 16:29 ` Daniel.
  0 siblings, 1 reply; 13+ messages in thread
From: Edward Wingate @ 2015-10-19  6:37 UTC (permalink / raw)
  To: yocto

I created a linux-wandboard_3.14.28.bbappend that just specifies a new
defconfig.  I see my defconfig being used to generate a .config.  But
then something renames .config to .config.old and replaces it with
another .config that no longer has the configurations I want.  I can't
find what is doing the override.  This is the run.do_configure:
http://pastebin.com/zPfuSwTV.  Can anyone suggest where to look next?
Thanks for any help.


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

* Re: kernel defconfig configuration
  2015-10-19  6:37 Edward Wingate
@ 2015-10-19 16:29 ` Daniel.
  2015-10-24 20:43   ` Edward Wingate
  0 siblings, 1 reply; 13+ messages in thread
From: Daniel. @ 2015-10-19 16:29 UTC (permalink / raw)
  To: Edward Wingate; +Cc: yocto@yoctoproject.org

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

I *guess* that "make oldconfig" is doing this. I can't find any
".config.old" mention on any "*.bb*" file for fido release of poky, but...

I've used .bbappend for kernel recipes, selecting custom modules based on
MACHINE and they worked fine... Can you share poky release and the .bbapend
file?

Cheers,

2015-10-19 4:37 GMT-02:00 Edward Wingate <edwingate8@gmail.com>:

> I created a linux-wandboard_3.14.28.bbappend that just specifies a new
> defconfig.  I see my defconfig being used to generate a .config.  But
> then something renames .config to .config.old and replaces it with
> another .config that no longer has the configurations I want.  I can't
> find what is doing the override.  This is the run.do_configure:
> http://pastebin.com/zPfuSwTV.  Can anyone suggest where to look next?
> Thanks for any help.
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



-- 
*"Do or do not. There is no try"*
  *Yoda Master*

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

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

* Re: kernel defconfig configuration
  2015-10-19 16:29 ` Daniel.
@ 2015-10-24 20:43   ` Edward Wingate
  0 siblings, 0 replies; 13+ messages in thread
From: Edward Wingate @ 2015-10-24 20:43 UTC (permalink / raw)
  To: Daniel., yocto

I am using fido release and this is my
linux-wandboard_3.14.28.bbappend file, just 2 lines:
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://defconfig"

I'm trying to use my defconfig with the linux-wandboard kernel recipe
in meta-fsl-arm-extra layer:
https://github.com/Freescale/meta-fsl-arm-extra/blob/master/recipes-kernel/linux/linux-wandboard_3.14.28.bb

Thanks for your help.


On Mon, Oct 19, 2015 at 9:29 AM, Daniel. <danielhilst@gmail.com> wrote:
> I *guess* that "make oldconfig" is doing this. I can't find any
> ".config.old" mention on any "*.bb*" file for fido release of poky, but...
>
> I've used .bbappend for kernel recipes, selecting custom modules based on
> MACHINE and they worked fine... Can you share poky release and the .bbapend
> file?
>
> Cheers,
>
> 2015-10-19 4:37 GMT-02:00 Edward Wingate <edwingate8@gmail.com>:
>>
>> I created a linux-wandboard_3.14.28.bbappend that just specifies a new
>> defconfig.  I see my defconfig being used to generate a .config.  But
>> then something renames .config to .config.old and replaces it with
>> another .config that no longer has the configurations I want.  I can't
>> find what is doing the override.  This is the run.do_configure:
>> http://pastebin.com/zPfuSwTV.  Can anyone suggest where to look next?
>> Thanks for any help.
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
>
>
>
> --
> "Do or do not. There is no try"
>   Yoda Master


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

* Re: kernel defconfig configuration
@ 2015-10-25 19:41 Edward Wingate
  2015-10-26  8:03 ` Paul Eggleton
  0 siblings, 1 reply; 13+ messages in thread
From: Edward Wingate @ 2015-10-25 19:41 UTC (permalink / raw)
  To: Daniel., yocto

On Sat, Oct 24, 2015 at 1:43 PM, Edward Wingate <edwingate8@gmail.com> wrote:
> I am using fido release and this is my
> linux-wandboard_3.14.28.bbappend file, just 2 lines:
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> SRC_URI += "file://defconfig"
>
> I'm trying to use my defconfig with the linux-wandboard kernel recipe
> in meta-fsl-arm-extra layer:
> https://github.com/Freescale/meta-fsl-arm-extra/blob/master/recipes-kernel/linux/linux-wandboard_3.14.28.bb
>
> Thanks for your help.

I also just noticed I don't have any kernel modules in the rootfs.
The /lib/modules directory doesn't exist while things like
"CONFIG_USB_SERIAL_FTDI_SIO=m" are in the default .config.  Am there
some global kernel module setting I should check?


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

* Re: kernel defconfig configuration
  2015-10-25 19:41 kernel defconfig configuration Edward Wingate
@ 2015-10-26  8:03 ` Paul Eggleton
  2015-10-27  4:46   ` Edward Wingate
  0 siblings, 1 reply; 13+ messages in thread
From: Paul Eggleton @ 2015-10-26  8:03 UTC (permalink / raw)
  To: Edward Wingate; +Cc: yocto

Hi Edward,

On Sunday 25 October 2015 12:41:09 Edward Wingate wrote:
> On Sat, Oct 24, 2015 at 1:43 PM, Edward Wingate <edwingate8@gmail.com> wrote:
> > I am using fido release and this is my
> > linux-wandboard_3.14.28.bbappend file, just 2 lines:
> > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> > SRC_URI += "file://defconfig"
> > 
> > I'm trying to use my defconfig with the linux-wandboard kernel recipe
> > in meta-fsl-arm-extra layer:
> > https://github.com/Freescale/meta-fsl-arm-extra/blob/master/recipes-kernel
> > /linux/linux-wandboard_3.14.28.bb
> > 
> > Thanks for your help.
> 
> I also just noticed I don't have any kernel modules in the rootfs.
> The /lib/modules directory doesn't exist while things like
> "CONFIG_USB_SERIAL_FTDI_SIO=m" are in the default .config.  Am there
> some global kernel module setting I should check?

Kernel modules are packaged separately and typically not included in the image 
by default; if you wish to include them you have two choices:

1) Install the kernel-module-<modulename> package(s) individually for the
module(s) you wish to use

2) Install the kernel-modules package to bring in all packages for modules you
enabled in the kernel configuration.

Not sure if you're aware how to install packages in the image, here's the
manual section just in case:

http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#usingpoky-extend-customimage

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: kernel defconfig configuration
  2015-10-26  8:03 ` Paul Eggleton
@ 2015-10-27  4:46   ` Edward Wingate
  2015-10-27 12:36     ` Daniel.
  0 siblings, 1 reply; 13+ messages in thread
From: Edward Wingate @ 2015-10-27  4:46 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto

On Mon, Oct 26, 2015 at 1:03 AM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> Kernel modules are packaged separately and typically not included in the image
> by default; if you wish to include them you have two choices:
>
> 1) Install the kernel-module-<modulename> package(s) individually for the
> module(s) you wish to use
>
> 2) Install the kernel-modules package to bring in all packages for modules you
> enabled in the kernel configuration.

Thanks Paul,

"kernel-modules" worked to include all the modules. But I also figured
out I was using "kernel-module-ftdi_sio" instead of the correct
"kernel-module-ftdi-sio" (and because I was using
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS, it didn't complain.)

Now to go back to the original problem of why my defconfig is being overridden.


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

* Re: kernel defconfig configuration
  2015-10-27  4:46   ` Edward Wingate
@ 2015-10-27 12:36     ` Daniel.
  2015-10-29  7:22       ` Edward Wingate
  0 siblings, 1 reply; 13+ messages in thread
From: Daniel. @ 2015-10-27 12:36 UTC (permalink / raw)
  To: Edward Wingate; +Cc: Paul Eggleton, yocto@yoctoproject.org

I suggest that you do an "bitbake -fc configure YOUR_KERNEL" and
inspect the .config WORKDIR folder. Is that yours .config?

Cheers,

2015-10-27 2:46 GMT-02:00 Edward Wingate <edwingate8@gmail.com>:
> On Mon, Oct 26, 2015 at 1:03 AM, Paul Eggleton
> <paul.eggleton@linux.intel.com> wrote:
>> Kernel modules are packaged separately and typically not included in the image
>> by default; if you wish to include them you have two choices:
>>
>> 1) Install the kernel-module-<modulename> package(s) individually for the
>> module(s) you wish to use
>>
>> 2) Install the kernel-modules package to bring in all packages for modules you
>> enabled in the kernel configuration.
>
> Thanks Paul,
>
> "kernel-modules" worked to include all the modules. But I also figured
> out I was using "kernel-module-ftdi_sio" instead of the correct
> "kernel-module-ftdi-sio" (and because I was using
> MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS, it didn't complain.)
>
> Now to go back to the original problem of why my defconfig is being overridden.



-- 
"Do or do not. There is no try"
  Yoda Master


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

* Re: kernel defconfig configuration
  2015-10-27 12:36     ` Daniel.
@ 2015-10-29  7:22       ` Edward Wingate
  2015-10-29 13:10         ` Bruce Ashfield
  0 siblings, 1 reply; 13+ messages in thread
From: Edward Wingate @ 2015-10-29  7:22 UTC (permalink / raw)
  To: Daniel.; +Cc: Paul Eggleton, yocto@yoctoproject.org

On Tue, Oct 27, 2015 at 5:36 AM, Daniel. <danielhilst@gmail.com> wrote:
> I suggest that you do an "bitbake -fc configure YOUR_KERNEL" and
> inspect the .config WORKDIR folder. Is that yours .config?

I'm not sure if this is the WORKDIR I'm suppose to be looking at, but
after I ran that bitbake command, I found my defconfig in
build/tmp/work/wandboard-dual-poky-linux-gnueabi/linux-wandboard/3.14.28-r0

It is also in .config.old in
build/tmp/work/wandboard-dual-poky-linux-gnueabi/linux-wandboard/3.14.28-r0/build

The .config in in
build/tmp/work/wandboard-dual-poky-linux-gnueabi/linux-wandboard/3.14.28-r0/build
is not mine.  My .config seems to have been renamed to .config.old and
replaced with this one.


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

* Re: kernel defconfig configuration
  2015-10-29  7:22       ` Edward Wingate
@ 2015-10-29 13:10         ` Bruce Ashfield
  2015-10-29 19:06           ` Edward Wingate
  0 siblings, 1 reply; 13+ messages in thread
From: Bruce Ashfield @ 2015-10-29 13:10 UTC (permalink / raw)
  To: Edward Wingate, Daniel.; +Cc: Paul Eggleton, yocto@yoctoproject.org

On 15-10-29 03:22 AM, Edward Wingate wrote:
> On Tue, Oct 27, 2015 at 5:36 AM, Daniel. <danielhilst@gmail.com> wrote:
>> I suggest that you do an "bitbake -fc configure YOUR_KERNEL" and
>> inspect the .config WORKDIR folder. Is that yours .config?
>
> I'm not sure if this is the WORKDIR I'm suppose to be looking at, but
> after I ran that bitbake command, I found my defconfig in
> build/tmp/work/wandboard-dual-poky-linux-gnueabi/linux-wandboard/3.14.28-r0
>
> It is also in .config.old in
> build/tmp/work/wandboard-dual-poky-linux-gnueabi/linux-wandboard/3.14.28-r0/build
>
> The .config in in
> build/tmp/work/wandboard-dual-poky-linux-gnueabi/linux-wandboard/3.14.28-r0/build
> is not mine.  My .config seems to have been renamed to .config.old and
> replaced with this one.

That's the kernel's configuration subsystem at play, it still has to
process the the defconfig (which was placed as .config before starting
the kernel build). Invalid options are removed, others are selected
by Kconfigs, etc. So what you end up with is the processed .config and
your old one in .config.old.

Cheers,

Bruce

>



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

* Re: kernel defconfig configuration
  2015-10-29 13:10         ` Bruce Ashfield
@ 2015-10-29 19:06           ` Edward Wingate
  2015-10-30 12:39             ` Bruce Ashfield
  0 siblings, 1 reply; 13+ messages in thread
From: Edward Wingate @ 2015-10-29 19:06 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: Paul Eggleton, yocto@yoctoproject.org

On Thu, Oct 29, 2015 at 6:10 AM, Bruce Ashfield
<bruce.ashfield@windriver.com> wrote:
> That's the kernel's configuration subsystem at play, it still has to
> process the the defconfig (which was placed as .config before starting
> the kernel build). Invalid options are removed, others are selected
> by Kconfigs, etc. So what you end up with is the processed .config and
> your old one in .config.old.

Ah, OK, it's possible the option I wanted (CONFIG_REMOTEPROC) is not
available for my machine (imx6/wandboard) and so removed.  Where can I
look to see if a config option is valid for a particular
machine/architecture?

Thanks for the help.


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

* Re: kernel defconfig configuration
  2015-10-29 19:06           ` Edward Wingate
@ 2015-10-30 12:39             ` Bruce Ashfield
  2015-10-30 15:10               ` Daniel.
  0 siblings, 1 reply; 13+ messages in thread
From: Bruce Ashfield @ 2015-10-30 12:39 UTC (permalink / raw)
  To: Edward Wingate; +Cc: Paul Eggleton, yocto@yoctoproject.org

On 15-10-29 03:06 PM, Edward Wingate wrote:
> On Thu, Oct 29, 2015 at 6:10 AM, Bruce Ashfield
> <bruce.ashfield@windriver.com> wrote:
>> That's the kernel's configuration subsystem at play, it still has to
>> process the the defconfig (which was placed as .config before starting
>> the kernel build). Invalid options are removed, others are selected
>> by Kconfigs, etc. So what you end up with is the processed .config and
>> your old one in .config.old.
>
> Ah, OK, it's possible the option I wanted (CONFIG_REMOTEPROC) is not
> available for my machine (imx6/wandboard) and so removed.  Where can I
> look to see if a config option is valid for a particular
> machine/architecture?

I'm working on some patches that will show you that as part of the
configuration audit task (there's potentially a library I can
leverage) .. but for now, either looking at the Kconfig's or running
menuconfig are the best (brute force) way to find what is missing.

Bruce

>
> Thanks for the help.
>



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

* Re: kernel defconfig configuration
  2015-10-30 12:39             ` Bruce Ashfield
@ 2015-10-30 15:10               ` Daniel.
  2015-10-30 15:48                 ` Edward Wingate
  0 siblings, 1 reply; 13+ messages in thread
From: Daniel. @ 2015-10-30 15:10 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: Paul Eggleton, yocto@yoctoproject.org

I saw that REMOTEPROC is selected by other *_REMOTEPROC config
options. It seems a driver to handle another process on same board,
right?
It seems also that other architetures select REMOTEPROC, so if you're
creating a new board with a remote processor I guess that you will
need to
create a remote processor driver and add CONFIG_YOURARCH_REMOTEPROC to
drivers/remoteproc/Kconfig, and make that selects REMOTEPROC as
OMAP_REMOTEPROC does
for example.


Best regards,

2015-10-30 10:39 GMT-02:00 Bruce Ashfield <bruce.ashfield@windriver.com>:
> On 15-10-29 03:06 PM, Edward Wingate wrote:
>>
>> On Thu, Oct 29, 2015 at 6:10 AM, Bruce Ashfield
>> <bruce.ashfield@windriver.com> wrote:
>>>
>>> That's the kernel's configuration subsystem at play, it still has to
>>> process the the defconfig (which was placed as .config before starting
>>> the kernel build). Invalid options are removed, others are selected
>>> by Kconfigs, etc. So what you end up with is the processed .config and
>>> your old one in .config.old.
>>
>>
>> Ah, OK, it's possible the option I wanted (CONFIG_REMOTEPROC) is not
>> available for my machine (imx6/wandboard) and so removed.  Where can I
>> look to see if a config option is valid for a particular
>> machine/architecture?
>
>
> I'm working on some patches that will show you that as part of the
> configuration audit task (there's potentially a library I can
> leverage) .. but for now, either looking at the Kconfig's or running
> menuconfig are the best (brute force) way to find what is missing.
>
> Bruce
>
>>
>> Thanks for the help.
>>
>



-- 
"Do or do not. There is no try"
  Yoda Master


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

* Re: kernel defconfig configuration
  2015-10-30 15:10               ` Daniel.
@ 2015-10-30 15:48                 ` Edward Wingate
  0 siblings, 0 replies; 13+ messages in thread
From: Edward Wingate @ 2015-10-30 15:48 UTC (permalink / raw)
  To: Daniel.; +Cc: Paul Eggleton, yocto@yoctoproject.org

On Fri, Oct 30, 2015 at 8:10 AM, Daniel. <danielhilst@gmail.com> wrote:
> I saw that REMOTEPROC is selected by other *_REMOTEPROC config
> options. It seems a driver to handle another process on same board,
> right?
> It seems also that other architetures select REMOTEPROC, so if you're
> creating a new board with a remote processor I guess that you will
> need to
> create a remote processor driver and add CONFIG_YOURARCH_REMOTEPROC to
> drivers/remoteproc/Kconfig, and make that selects REMOTEPROC as
> OMAP_REMOTEPROC does
> for example.

OK, that makes sense.  Thanks everyone!


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

end of thread, other threads:[~2015-10-30 15:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-25 19:41 kernel defconfig configuration Edward Wingate
2015-10-26  8:03 ` Paul Eggleton
2015-10-27  4:46   ` Edward Wingate
2015-10-27 12:36     ` Daniel.
2015-10-29  7:22       ` Edward Wingate
2015-10-29 13:10         ` Bruce Ashfield
2015-10-29 19:06           ` Edward Wingate
2015-10-30 12:39             ` Bruce Ashfield
2015-10-30 15:10               ` Daniel.
2015-10-30 15:48                 ` Edward Wingate
  -- strict thread matches above, loose matches on Subject: below --
2015-10-19  6:37 Edward Wingate
2015-10-19 16:29 ` Daniel.
2015-10-24 20:43   ` Edward Wingate

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.