* How to override default Kernel config
@ 2018-07-03 9:48 Henbin Chang
2018-07-04 1:39 ` Lei YU
0 siblings, 1 reply; 8+ messages in thread
From: Henbin Chang @ 2018-07-03 9:48 UTC (permalink / raw)
To: OpenBMC Maillist
[-- Attachment #1: Type: text/plain, Size: 161 bytes --]
Hi,
I would like to enable a specific Kernel config in my machine.
I don't want to modify the 'defconfig'
Could anyone tell me how to do?
Thanks.
BRs,
Henbin.
[-- Attachment #2: Type: text/html, Size: 442 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to override default Kernel config
2018-07-03 9:48 How to override default Kernel config Henbin Chang
@ 2018-07-04 1:39 ` Lei YU
2018-07-04 2:03 ` Henbin Chang
0 siblings, 1 reply; 8+ messages in thread
From: Lei YU @ 2018-07-04 1:39 UTC (permalink / raw)
To: 張漢彬; +Cc: OpenBMC Maillist
> I would like to enable a specific Kernel config in my machine.
> I don't want to modify the 'defconfig'
>
> Could anyone tell me how to do?
Please refer to machine-layer recipes, e.g. meta-romulus' linux recipe:
https://github.com/openbmc/openbmc/tree/master/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-kernel/linux
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to override default Kernel config
2018-07-04 1:39 ` Lei YU
@ 2018-07-04 2:03 ` Henbin Chang
2018-07-04 2:06 ` Lei YU
0 siblings, 1 reply; 8+ messages in thread
From: Henbin Chang @ 2018-07-04 2:03 UTC (permalink / raw)
To: Lei YU; +Cc: OpenBMC Maillist
[-- Attachment #1: Type: text/plain, Size: 730 bytes --]
Thanks Lei Yu.
Actually, I want to enable CONFIG_DEVMEM in my specific machine.
I added the below config to my machine.cfg
CONFIG_DEVMEM=y
CONFIG_HWMON=y
CONFIG_SENSORS_TMP421=y
But I still saw the line in the ".config" after devtool modify linux-aspeed.
# CONFIG_DEVMEM is not set
How should I do?
Thanks.
2018-07-04 9:39 GMT+08:00 Lei YU <mine260309@gmail.com>:
> > I would like to enable a specific Kernel config in my machine.
> > I don't want to modify the 'defconfig'
> >
> > Could anyone tell me how to do?
>
> Please refer to machine-layer recipes, e.g. meta-romulus' linux recipe:
> https://github.com/openbmc/openbmc/tree/master/meta-openbmc-machines/meta-
> openpower/meta-ibm/meta-romulus/recipes-kernel/linux
>
[-- Attachment #2: Type: text/html, Size: 1497 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to override default Kernel config
2018-07-04 2:03 ` Henbin Chang
@ 2018-07-04 2:06 ` Lei YU
2018-07-04 2:20 ` Henbin Chang
0 siblings, 1 reply; 8+ messages in thread
From: Lei YU @ 2018-07-04 2:06 UTC (permalink / raw)
To: 張漢彬; +Cc: OpenBMC Maillist
On Wed, Jul 4, 2018 at 10:03 AM Henbin Chang <henbinchang@gmail.com> wrote:
>
> Thanks Lei Yu.
>
> Actually, I want to enable CONFIG_DEVMEM in my specific machine.
> I added the below config to my machine.cfg
> CONFIG_DEVMEM=y
> CONFIG_HWMON=y
> CONFIG_SENSORS_TMP421=y
>
> But I still saw the line in the ".config" after devtool modify linux-aspeed.
> # CONFIG_DEVMEM is not set
>
> How should I do?
OK, you are using devtool. Then the simplest you can do is to reset and
modify the recipe again:
devtool reset linux-aspeed
# Manullay delete the linux-aspeed dir in workspace
devtool modify linux-aspeed
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to override default Kernel config
2018-07-04 2:06 ` Lei YU
@ 2018-07-04 2:20 ` Henbin Chang
2018-07-04 2:34 ` Lei YU
0 siblings, 1 reply; 8+ messages in thread
From: Henbin Chang @ 2018-07-04 2:20 UTC (permalink / raw)
To: Lei YU; +Cc: OpenBMC Maillist
[-- Attachment #1: Type: text/plain, Size: 996 bytes --]
Hi Lei Yu,
After following your instructions, the CONFIG_DEVMEM is still not set in
the below '.config'
workspace/sources/linux-aspeed/.config
It did work if I directly
modified meta-openbmc-bsp/meta-aspeed/recipes-kernel/linux/linux-aspeed/ast2500/defconfig
Thanks.
2018-07-04 10:06 GMT+08:00 Lei YU <mine260309@gmail.com>:
> On Wed, Jul 4, 2018 at 10:03 AM Henbin Chang <henbinchang@gmail.com>
> wrote:
> >
> > Thanks Lei Yu.
> >
> > Actually, I want to enable CONFIG_DEVMEM in my specific machine.
> > I added the below config to my machine.cfg
> > CONFIG_DEVMEM=y
> > CONFIG_HWMON=y
> > CONFIG_SENSORS_TMP421=y
> >
> > But I still saw the line in the ".config" after devtool modify
> linux-aspeed.
> > # CONFIG_DEVMEM is not set
> >
> > How should I do?
>
> OK, you are using devtool. Then the simplest you can do is to reset and
> modify the recipe again:
>
> devtool reset linux-aspeed
> # Manullay delete the linux-aspeed dir in workspace
> devtool modify linux-aspeed
>
[-- Attachment #2: Type: text/html, Size: 1748 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to override default Kernel config
2018-07-04 2:20 ` Henbin Chang
@ 2018-07-04 2:34 ` Lei YU
2018-07-04 2:57 ` Henbin Chang
0 siblings, 1 reply; 8+ messages in thread
From: Lei YU @ 2018-07-04 2:34 UTC (permalink / raw)
To: 張漢彬; +Cc: OpenBMC Maillist
> After following your instructions, the CONFIG_DEVMEM is still not set in the below '.config'
>
> workspace/sources/linux-aspeed/.config
>
> It did work if I directly modified meta-openbmc-bsp/meta-aspeed/recipes-kernel/linux/linux-aspeed/ast2500/defconfig
Then you need to make sure if your build config include the machine layer by
checking the build configuration.
E.g. below is meta-romulus' configuration, check if your meta-machine is
correctly included.
Build Configuration:
...
meta
meta-poky
meta-oe
meta-networking
meta-perl
meta-python
meta-webserver
meta-virtualization
meta-phosphor
meta-aspeed
meta-openpower
meta-ibm
meta-romulus <== Your meta-machine should appear here.
Btw, what is your machine, is it in OpenBMC tree?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to override default Kernel config
2018-07-04 2:34 ` Lei YU
@ 2018-07-04 2:57 ` Henbin Chang
2018-07-04 5:47 ` Henbin Chang
0 siblings, 1 reply; 8+ messages in thread
From: Henbin Chang @ 2018-07-04 2:57 UTC (permalink / raw)
To: Lei YU; +Cc: OpenBMC Maillist
[-- Attachment #1: Type: text/plain, Size: 1760 bytes --]
My machine isn't in the OpenBMC tree.
I list the partial contents in my machine layer
...
meta-aspeed \
meta-x86 \
meta-x86/meta-mct \
meta-x86/meta-mct/meta-tiogapass \ -> the last line in the bblayers.conf
In the merge_config_build.log, I find the merging sequence is the below
Using .kernel-meta/configs//./tiogapass.cfg as base
Merging .kernel-meta/configs//./phosphor-gpio-keys.cfg
Merging .kernel-meta/configs//./phosphor-gpio-keys.cfg
Merging .kernel-meta/configs//./phosphor-vlan.cfg
Merging .kernel-meta/configs//./phosphor-vlan.cfg
Merging .kernel-meta/configs//./phosphor-wdt-on-panic.cfg
Merging .kernel-meta/configs//./phosphor-wdt-on-panic.cfg
Merging .kernel-meta/configs//./defconfig
...
Suppose the CONFIG_DEVMEM=y is removed while 'Merging
.kernel-meta/configs//./defconfig'
Thanks.
2018-07-04 10:34 GMT+08:00 Lei YU <mine260309@gmail.com>:
> > After following your instructions, the CONFIG_DEVMEM is still not set in
> the below '.config'
> >
> > workspace/sources/linux-aspeed/.config
> >
> > It did work if I directly modified meta-openbmc-bsp/meta-aspeed/
> recipes-kernel/linux/linux-aspeed/ast2500/defconfig
>
> Then you need to make sure if your build config include the machine layer
> by
> checking the build configuration.
>
> E.g. below is meta-romulus' configuration, check if your meta-machine is
> correctly included.
>
> Build Configuration:
> ...
> meta
> meta-poky
> meta-oe
> meta-networking
> meta-perl
> meta-python
> meta-webserver
> meta-virtualization
> meta-phosphor
> meta-aspeed
> meta-openpower
> meta-ibm
> meta-romulus <== Your meta-machine should appear here.
>
> Btw, what is your machine, is it in OpenBMC tree?
>
[-- Attachment #2: Type: text/html, Size: 2681 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to override default Kernel config
2018-07-04 2:57 ` Henbin Chang
@ 2018-07-04 5:47 ` Henbin Chang
0 siblings, 0 replies; 8+ messages in thread
From: Henbin Chang @ 2018-07-04 5:47 UTC (permalink / raw)
To: Lei YU; +Cc: OpenBMC Maillist
[-- Attachment #1: Type: text/plain, Size: 2031 bytes --]
I just cloned the latest openbmc REPO and re-did the same modification in
the romulus machine.
I got the same result.
2018-07-04 10:57 GMT+08:00 Henbin Chang <henbinchang@gmail.com>:
> My machine isn't in the OpenBMC tree.
>
> I list the partial contents in my machine layer
> ...
> meta-aspeed \
> meta-x86 \
> meta-x86/meta-mct \
> meta-x86/meta-mct/meta-tiogapass \ -> the last line in the bblayers.conf
>
> In the merge_config_build.log, I find the merging sequence is the below
> Using .kernel-meta/configs//./tiogapass.cfg as base
> Merging .kernel-meta/configs//./phosphor-gpio-keys.cfg
> Merging .kernel-meta/configs//./phosphor-gpio-keys.cfg
> Merging .kernel-meta/configs//./phosphor-vlan.cfg
> Merging .kernel-meta/configs//./phosphor-vlan.cfg
> Merging .kernel-meta/configs//./phosphor-wdt-on-panic.cfg
> Merging .kernel-meta/configs//./phosphor-wdt-on-panic.cfg
> Merging .kernel-meta/configs//./defconfig
> ...
>
> Suppose the CONFIG_DEVMEM=y is removed while 'Merging
> .kernel-meta/configs//./defconfig'
>
> Thanks.
>
> 2018-07-04 10:34 GMT+08:00 Lei YU <mine260309@gmail.com>:
>
>> > After following your instructions, the CONFIG_DEVMEM is still not set
>> in the below '.config'
>> >
>> > workspace/sources/linux-aspeed/.config
>> >
>> > It did work if I directly modified meta-openbmc-bsp/meta-aspeed/r
>> ecipes-kernel/linux/linux-aspeed/ast2500/defconfig
>>
>> Then you need to make sure if your build config include the machine layer
>> by
>> checking the build configuration.
>>
>> E.g. below is meta-romulus' configuration, check if your meta-machine is
>> correctly included.
>>
>> Build Configuration:
>> ...
>> meta
>> meta-poky
>> meta-oe
>> meta-networking
>> meta-perl
>> meta-python
>> meta-webserver
>> meta-virtualization
>> meta-phosphor
>> meta-aspeed
>> meta-openpower
>> meta-ibm
>> meta-romulus <== Your meta-machine should appear here.
>>
>> Btw, what is your machine, is it in OpenBMC tree?
>>
>
>
[-- Attachment #2: Type: text/html, Size: 3302 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-07-04 5:47 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-03 9:48 How to override default Kernel config Henbin Chang
2018-07-04 1:39 ` Lei YU
2018-07-04 2:03 ` Henbin Chang
2018-07-04 2:06 ` Lei YU
2018-07-04 2:20 ` Henbin Chang
2018-07-04 2:34 ` Lei YU
2018-07-04 2:57 ` Henbin Chang
2018-07-04 5:47 ` Henbin Chang
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.