De: "Trevor Woerner" <firstname.lastname@example.org>
Cc: "Khem Raj" <email@example.com>, "Yocto-mailing-list" <firstname.lastname@example.org>
Envoyé: Mercredi 23 Juin 2021 14:51:39
Objet: Re: [yocto] [meta-rockchip][PATCH 1/4] centralize console settings
On Wed 2021-06-23 @ 08:10:07 PM, email@example.com wrote:
De: "Khem Raj" <firstname.lastname@example.org>
À: "Trevor Woerner" <email@example.com>
Cc: "Yocto-mailing-list" <firstname.lastname@example.org>
Envoyé: Mercredi 23 Juin 2021 11:32:57
Objet: Re: [yocto] [meta-rockchip][PATCH 1/4] centralize console
Good point, thanks for mentioning it.
+RK_CONSOLE_BAUD = "115200"while I appreciate this change, it does have an effect of
+RK_CONSOLE_DEVICE = "ttyFIQ0"
users away from
BSP variables that core metadata layers have, e.g.
a well defined
and documented variable and if we synthesize it then its hidden
is fine if we document
the new variables equally well although that means every BSP will
invent these kind of
variables so if a person was doing RPI and comes to work on
boards he has more
learnings to do.
What about making this change at the poky level, then ?I suspect it would break things in all sorts of unimaginable ways ;-)
For example, SERIAL_CONSOLES (note: plural) can contain more than one
baud+device pair so if we try to break out the baud and device then
an array (?) so we could break out multiple baud and device pairs
then that would get messy... ugh!
Damned that makes things more complicated :)
That could push us along the following lines ?
CONSOLE_DEVICES = "/dev/ttyS2 /dev/tty1"
CONSOLE_BAUD_ttyS2 = "1500000"
CONSOLE_BAUD_tty1 = "115200"
(well, with /dev/ being what it is, CONSOLE_DEVICES = "ttyS2 tty1" could
even be decided as sufficient, removing any possibility for syntactic
or maybe even this ?
CONSOLE_BAUD = <default value>
CONSOLE_BAUD[/dev/ttyS2] = <overriden value>