All of lore.kernel.org
 help / color / mirror / Atom feed
* Customizing SERIAL_CONSOLES
@ 2022-07-12 11:41 chris yocto
  2022-07-12 12:14 ` [yocto] " Khem Raj
       [not found] ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.d4e0f9cc-dbbb-4d14-b16c-2dc08b801a12@emailsignatures365.codetwo.com>
  0 siblings, 2 replies; 6+ messages in thread
From: chris yocto @ 2022-07-12 11:41 UTC (permalink / raw)
  To: yocto

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

Hi,



I’m trying to customize the SERIAL_CONSOLES variable. In another thread I
read this can be done by adding a machine-extra.conf file too my custom
layer. So I added “ SERIAL_CONSOLES = "115200;ttymxc0" ” to my
machine-extra.conf, but when I  bitbake my custom image, no changes are
found.

In the conf file from the bsp for the board I’m using I found
“SERIAL_CONSOLES = "115200;ttymxc2", when I change this to SERIAL_CONSOLES
?= "115200;ttymxc2" my changes are being applied.

This off course is not ideal since I then still don’t have all changes in
my own layer.

Is there a way I can solve this?



Kind regards,



Chris

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

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

* Re: [yocto] Customizing SERIAL_CONSOLES
  2022-07-12 11:41 Customizing SERIAL_CONSOLES chris yocto
@ 2022-07-12 12:14 ` Khem Raj
  2022-07-12 13:17   ` chris yocto
       [not found] ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.d4e0f9cc-dbbb-4d14-b16c-2dc08b801a12@emailsignatures365.codetwo.com>
  1 sibling, 1 reply; 6+ messages in thread
From: Khem Raj @ 2022-07-12 12:14 UTC (permalink / raw)
  To: chris yocto; +Cc: Yocto-mailing-list

On Tue, Jul 12, 2022 at 12:41 PM chris yocto <chrisyocto2022@gmail.com> wrote:
>
> Hi,
>
>
>
> I’m trying to customize the SERIAL_CONSOLES variable. In another thread I read this can be done by adding a machine-extra.conf file too my custom layer. So I added “ SERIAL_CONSOLES = "115200;ttymxc0" ” to my machine-extra.conf, but when I  bitbake my custom image, no changes are found.
>
> In the conf file from the bsp for the board I’m using I found “SERIAL_CONSOLES = "115200;ttymxc2", when I change this to SERIAL_CONSOLES ?= "115200;ttymxc2" my changes are being applied.
>
> This off course is not ideal since I then still don’t have all changes in my own layer.
>
> Is there a way I can solve this?
>

there can be multiple entries in SERIAL_CONSOLES so you might try
adding instead of replacing

 SERIAL_CONSOLES += "115200;ttymxc0"

might work

>
>
> Kind regards,
>
>
>
> Chris
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> You automatically follow any topics you start or reply to.
> View/Reply Online (#57505): https://lists.yoctoproject.org/g/yocto/message/57505
> Mute This Topic: https://lists.yoctoproject.org/mt/92330831/1997914
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


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

* Re: Customizing SERIAL_CONSOLES
  2022-07-12 12:14 ` [yocto] " Khem Raj
@ 2022-07-12 13:17   ` chris yocto
  0 siblings, 0 replies; 6+ messages in thread
From: chris yocto @ 2022-07-12 13:17 UTC (permalink / raw)
  To: yocto

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

Thank you for you reply.

I actually do want to replace SERIAL_CONSOLES because I am using the original for another purpose ( not a console).

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

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

* Re: [yocto] Customizing SERIAL_CONSOLES
       [not found]   ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.0d2bd5fa-15cc-4b27-b94e-83614f9e5b38.3359cbda-a296-4bc1-b4e3-f88cc17b6bf8@emailsignatures365.codetwo.com>
@ 2022-07-12 14:44     ` Mike Looijmans
  2022-07-14  8:00       ` chris yocto
       [not found]       ` <1701A348664625E8.24028@lists.yoctoproject.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Mike Looijmans @ 2022-07-12 14:44 UTC (permalink / raw)
  To: yocto

I'd suggest adding some "bogus" things to your machine-extra.conf, 
because I don't think the file will actually be used (or even parsed) 
anywhere.

You can override SERIAL_CONSOLES in your DISTRO config, as that takes 
precedence over the machine config. In local.conf it won't work because 
the MACHINE config is included after it.

Another approach is to grep on which recipes use it (half a dozen) and 
then create a bbappend for each. That's the approach I've used recently.




Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: mike.looijmans@topicproducts.com
W: www.topic.nl

Please consider the environment before printing this e-mail
On 12-07-2022 13:41, chris yocto via lists.yoctoproject.org wrote:
>
> Hi,
>
> I’m trying to customize the SERIAL_CONSOLES variable. In another 
> thread I read this can be done by adding a machine-extra.conf file too 
> my custom layer. So I added “ SERIAL_CONSOLES = "115200;ttymxc0" ” to 
> my machine-extra.conf, but when I  bitbake my custom image, no changes 
> are found.
>
> In the conf file from the bsp for the board I’m using I found 
> “SERIAL_CONSOLES = "115200;ttymxc2", when I change this to 
> SERIAL_CONSOLES ?= "115200;ttymxc2" my changes are being applied.
>
> This off course is not ideal since I then still don’t have all changes 
> in my own layer.
>
> Is there a way I can solve this?
>
> Kind regards,
>
> Chris
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#57505): https://lists.yoctoproject.org/g/yocto/message/57505
> Mute This Topic: https://lists.yoctoproject.org/mt/92330831/3618446
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [mike.looijmans@topic.nl]
> -=-=-=-=-=-=-=-=-=-=-=-
>

-- 
Mike Looijmans



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

* Re: [yocto] Customizing SERIAL_CONSOLES
  2022-07-12 14:44     ` [yocto] " Mike Looijmans
@ 2022-07-14  8:00       ` chris yocto
       [not found]       ` <1701A348664625E8.24028@lists.yoctoproject.org>
  1 sibling, 0 replies; 6+ messages in thread
From: chris yocto @ 2022-07-14  8:00 UTC (permalink / raw)
  To: Mike Looijmans; +Cc: yocto

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

I did run bitbake with the -e option and it shows that it does process my
machine extra config, but it's overriden by the conf of the BSP.  As a test
I also added it to my layer.conf but this is also being overriden. I
already set my layer too the highest priority.
How can I fix this?




















*SERIAL_CONSOLE=""## $SERIAL_CONSOLES [7 operations]#   set
/home/chris/yocto/karo4/sources/meta-certhon/conf/layer.conf:14#
"115200;ttymxc1"#   set
/home/chris/yocto/karo4/sources/meta-certhon/conf/machine/qs8m-mq00-extra.conf:1#
    "115200;ttymxc1"#   set
/home/chris/yocto/karo4/sources/meta-freescale/conf/machine/include/imx-base.inc:470#
    "115200;ttymxc0"#   set
/home/chris/yocto/karo4/sources/meta-karo-nxp/conf/machine/include/tx8m-base.inc:32#
    "115200;ttymxc2"#   set
/home/chris/yocto/karo4/sources/poky/meta/conf/documentation.conf:379#
[doc] "Defines the serial consoles (TTYs) to enable using getty."#   set
/home/chris/yocto/karo4/sources/poky/meta/conf/bitbake.conf:856#
[_defaultval] "${@d.getVar('SERIAL_CONSOLE').replace(' ', ';')}"#
override[mxs]:set
/home/chris/yocto/karo4/sources/meta-freescale/conf/machine/include/imx-base.inc:471#
    "115200;ttyAMA0"# pre-expansion value:#
"115200;ttymxc2"SERIAL_CONSOLES="115200;ttymxc2"*

Op di 12 jul. 2022 om 16:44 schreef Mike Looijmans <mike.looijmans@topic.nl
>:

> I'd suggest adding some "bogus" things to your machine-extra.conf,
> because I don't think the file will actually be used (or even parsed)
> anywhere.
>
> You can override SERIAL_CONSOLES in your DISTRO config, as that takes
> precedence over the machine config. In local.conf it won't work because
> the MACHINE config is included after it.
>
> Another approach is to grep on which recipes use it (half a dozen) and
> then create a bbappend for each. That's the approach I've used recently.
>
>
>
>
> Met vriendelijke groet / kind regards,
>
> Mike Looijmans
> System Expert
>
>
> TOPIC Embedded Products B.V.
> Materiaalweg 4, 5681 RJ Best
> The Netherlands
>
> T: +31 (0) 499 33 69 69
> E: mike.looijmans@topicproducts.com
> W: www.topic.nl
>
> Please consider the environment before printing this e-mail
> On 12-07-2022 13:41, chris yocto via lists.yoctoproject.org wrote:
> >
> > Hi,
> >
> > I’m trying to customize the SERIAL_CONSOLES variable. In another
> > thread I read this can be done by adding a machine-extra.conf file too
> > my custom layer. So I added “ SERIAL_CONSOLES = "115200;ttymxc0" ” to
> > my machine-extra.conf, but when I  bitbake my custom image, no changes
> > are found.
> >
> > In the conf file from the bsp for the board I’m using I found
> > “SERIAL_CONSOLES = "115200;ttymxc2", when I change this to
> > SERIAL_CONSOLES ?= "115200;ttymxc2" my changes are being applied.
> >
> > This off course is not ideal since I then still don’t have all changes
> > in my own layer.
> >
> > Is there a way I can solve this?
> >
> > Kind regards,
> >
> > Chris
> >
> >
> >
> >
>
> --
> Mike Looijmans
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#57513):
> https://lists.yoctoproject.org/g/yocto/message/57513
> Mute This Topic: https://lists.yoctoproject.org/mt/92330831/7032333
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> chrisyocto2022@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

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

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

* Re: [yocto] Customizing SERIAL_CONSOLES
       [not found]       ` <1701A348664625E8.24028@lists.yoctoproject.org>
@ 2022-07-15  6:54         ` chris yocto
  0 siblings, 0 replies; 6+ messages in thread
From: chris yocto @ 2022-07-15  6:54 UTC (permalink / raw)
  Cc: yocto

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

I eventually fixed it by modifying /etc/inittab directly with
ROOTFS_POSTPROCESS_COMMAND. This was the only way it worked.

Op do 14 jul. 2022 om 10:01 schreef chris yocto via lists.yoctoproject.org
<chrisyocto2022=gmail.com@lists.yoctoproject.org>:

> I did run bitbake with the -e option and it shows that it does process my
> machine extra config, but it's overriden by the conf of the BSP.  As a test
> I also added it to my layer.conf but this is also being overriden. I
> already set my layer too the highest priority.
> How can I fix this?
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *SERIAL_CONSOLE=""## $SERIAL_CONSOLES [7 operations]#   set
> /home/chris/yocto/karo4/sources/meta-certhon/conf/layer.conf:14#
> "115200;ttymxc1"#   set
> /home/chris/yocto/karo4/sources/meta-certhon/conf/machine/qs8m-mq00-extra.conf:1#
>     "115200;ttymxc1"#   set
> /home/chris/yocto/karo4/sources/meta-freescale/conf/machine/include/imx-base.inc:470#
>     "115200;ttymxc0"#   set
> /home/chris/yocto/karo4/sources/meta-karo-nxp/conf/machine/include/tx8m-base.inc:32#
>     "115200;ttymxc2"#   set
> /home/chris/yocto/karo4/sources/poky/meta/conf/documentation.conf:379#
> [doc] "Defines the serial consoles (TTYs) to enable using getty."#   set
> /home/chris/yocto/karo4/sources/poky/meta/conf/bitbake.conf:856#
> [_defaultval] "${@d.getVar('SERIAL_CONSOLE').replace(' ', ';')}"#
> override[mxs]:set
> /home/chris/yocto/karo4/sources/meta-freescale/conf/machine/include/imx-base.inc:471#
>     "115200;ttyAMA0"# pre-expansion value:#
> "115200;ttymxc2"SERIAL_CONSOLES="115200;ttymxc2"*
>
> Op di 12 jul. 2022 om 16:44 schreef Mike Looijmans <
> mike.looijmans@topic.nl>:
>
>> I'd suggest adding some "bogus" things to your machine-extra.conf,
>> because I don't think the file will actually be used (or even parsed)
>> anywhere.
>>
>> You can override SERIAL_CONSOLES in your DISTRO config, as that takes
>> precedence over the machine config. In local.conf it won't work because
>> the MACHINE config is included after it.
>>
>> Another approach is to grep on which recipes use it (half a dozen) and
>> then create a bbappend for each. That's the approach I've used recently.
>>
>>
>>
>>
>> Met vriendelijke groet / kind regards,
>>
>> Mike Looijmans
>> System Expert
>>
>>
>> TOPIC Embedded Products B.V.
>> Materiaalweg 4, 5681 RJ Best
>> The Netherlands
>>
>> T: +31 (0) 499 33 69 69
>> E: mike.looijmans@topicproducts.com
>> W: www.topic.nl
>>
>> Please consider the environment before printing this e-mail
>> On 12-07-2022 13:41, chris yocto via lists.yoctoproject.org wrote:
>> >
>> > Hi,
>> >
>> > I’m trying to customize the SERIAL_CONSOLES variable. In another
>> > thread I read this can be done by adding a machine-extra.conf file too
>> > my custom layer. So I added “ SERIAL_CONSOLES = "115200;ttymxc0" ” to
>> > my machine-extra.conf, but when I  bitbake my custom image, no changes
>> > are found.
>> >
>> > In the conf file from the bsp for the board I’m using I found
>> > “SERIAL_CONSOLES = "115200;ttymxc2", when I change this to
>> > SERIAL_CONSOLES ?= "115200;ttymxc2" my changes are being applied.
>> >
>> > This off course is not ideal since I then still don’t have all changes
>> > in my own layer.
>> >
>> > Is there a way I can solve this?
>> >
>> > Kind regards,
>> >
>> > Chris
>> >
>> >
>> >
>> >
>>
>> --
>> Mike Looijmans
>>
>>
>>
>>
>>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#57534):
> https://lists.yoctoproject.org/g/yocto/message/57534
> Mute This Topic: https://lists.yoctoproject.org/mt/92330831/7032333
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> chrisyocto2022@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

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

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

end of thread, other threads:[~2022-07-15  6:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12 11:41 Customizing SERIAL_CONSOLES chris yocto
2022-07-12 12:14 ` [yocto] " Khem Raj
2022-07-12 13:17   ` chris yocto
     [not found] ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.d4e0f9cc-dbbb-4d14-b16c-2dc08b801a12@emailsignatures365.codetwo.com>
     [not found]   ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.0d2bd5fa-15cc-4b27-b94e-83614f9e5b38.3359cbda-a296-4bc1-b4e3-f88cc17b6bf8@emailsignatures365.codetwo.com>
2022-07-12 14:44     ` [yocto] " Mike Looijmans
2022-07-14  8:00       ` chris yocto
     [not found]       ` <1701A348664625E8.24028@lists.yoctoproject.org>
2022-07-15  6:54         ` chris yocto

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.