* [PATCH V2 0/3] use single variable to set baud rate
@ 2014-12-09 8:25 Chong Lu
2014-12-09 8:25 ` [PATCH V2 1/3] bitbake.conf: Set default value for SERIAL_CONSOLE Chong Lu
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Chong Lu @ 2014-12-09 8:25 UTC (permalink / raw)
To: openembedded-core
Change since V1:
Set default value for SERIAL_CONSOLE.
The following changes since commit b813bdebb36501500e86fea5f7e15b4b15ea0902:
qemu/libc-package: Fix qemu option handling (2014-12-05 18:01:08 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/baudrate
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/baudrate
Chong Lu (3):
bitbake.conf: Set default value for SERIAL_CONSOLE
syslinux.bbclass: use single variable to set baud rate
grub-efi.bbclass: use single variable to set baud rate
meta/classes/grub-efi.bbclass | 5 +++--
meta/classes/syslinux.bbclass | 4 ++--
meta/conf/bitbake.conf | 2 +-
3 files changed, 6 insertions(+), 5 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH V2 1/3] bitbake.conf: Set default value for SERIAL_CONSOLE
2014-12-09 8:25 [PATCH V2 0/3] use single variable to set baud rate Chong Lu
@ 2014-12-09 8:25 ` Chong Lu
2014-12-09 11:52 ` Burton, Ross
2014-12-09 17:46 ` Khem Raj
2014-12-09 8:25 ` [PATCH V2 2/3] syslinux.bbclass: use single variable to set baud rate Chong Lu
2014-12-09 8:25 ` [PATCH V2 3/3] grub-efi.bbclass: " Chong Lu
2 siblings, 2 replies; 6+ messages in thread
From: Chong Lu @ 2014-12-09 8:25 UTC (permalink / raw)
To: openembedded-core
Define a default value for SERIAL_CONSOLE, we can use it if machine doesn't
configure.
[YOCTO #6331]
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
meta/conf/bitbake.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 7902bd7..7a659a7 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -739,7 +739,7 @@ COMBINED_FEATURES = "\
${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "wifi", d)}"
COMBINED_FEATURES[vardeps] += "DISTRO_FEATURES MACHINE_FEATURES"
-SERIAL_CONSOLE ??= ""
+SERIAL_CONSOLE ??= "115200 ttyS0"
SERIAL_CONSOLES ??= "${@d.getVar('SERIAL_CONSOLE', True).replace(' ', ';')}"
NO_RECOMMENDATIONS ?= ""
--
1.9.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH V2 2/3] syslinux.bbclass: use single variable to set baud rate
2014-12-09 8:25 [PATCH V2 0/3] use single variable to set baud rate Chong Lu
2014-12-09 8:25 ` [PATCH V2 1/3] bitbake.conf: Set default value for SERIAL_CONSOLE Chong Lu
@ 2014-12-09 8:25 ` Chong Lu
2014-12-09 8:25 ` [PATCH V2 3/3] grub-efi.bbclass: " Chong Lu
2 siblings, 0 replies; 6+ messages in thread
From: Chong Lu @ 2014-12-09 8:25 UTC (permalink / raw)
To: openembedded-core
Use SERIAL_CONSOLE to set baud rate in syslinux.cfg file.
[YOCTO #6331]
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
meta/classes/syslinux.bbclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass
index d6498d9..b5eea07 100644
--- a/meta/classes/syslinux.bbclass
+++ b/meta/classes/syslinux.bbclass
@@ -27,8 +27,8 @@ SYSLINUXDIR = "/"
# The kernel has an internal default console, which you can override with
# a console=...some_tty...
SYSLINUX_DEFAULT_CONSOLE ?= ""
-SYSLINUX_SERIAL ?= "0 115200"
-SYSLINUX_SERIAL_TTY ?= "console=ttyS0,115200"
+SYSLINUX_SERIAL ?= "${@filter(str.isdigit, d.getVar('SERIAL_CONSOLE', True).split()[1])} ${@d.getVar('SERIAL_CONSOLE', True).split()[0]}"
+SYSLINUX_SERIAL_TTY ?= "console=${@d.getVar('SERIAL_CONSOLE', True).split()[1]},${@d.getVar('SERIAL_CONSOLE', True).split()[0]}"
ISO_BOOTIMG = "isolinux/isolinux.bin"
ISO_BOOTCAT = "isolinux/boot.cat"
MKISOFS_OPTIONS = "-no-emul-boot -boot-load-size 4 -boot-info-table"
--
1.9.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH V2 3/3] grub-efi.bbclass: use single variable to set baud rate
2014-12-09 8:25 [PATCH V2 0/3] use single variable to set baud rate Chong Lu
2014-12-09 8:25 ` [PATCH V2 1/3] bitbake.conf: Set default value for SERIAL_CONSOLE Chong Lu
2014-12-09 8:25 ` [PATCH V2 2/3] syslinux.bbclass: use single variable to set baud rate Chong Lu
@ 2014-12-09 8:25 ` Chong Lu
2 siblings, 0 replies; 6+ messages in thread
From: Chong Lu @ 2014-12-09 8:25 UTC (permalink / raw)
To: openembedded-core
Use SERIAL_CONSOLE to set baud rate in grub.cfg file.
[YOCTO #6331]
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
meta/classes/grub-efi.bbclass | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
index 47bd35e..37c21f9 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi.bbclass
@@ -18,11 +18,12 @@
do_bootimg[depends] += "${MLPREFIX}grub-efi:do_deploy"
do_bootdirectdisk[depends] += "${MLPREFIX}grub-efi:do_deploy"
-GRUB_SERIAL ?= "console=ttyS0,115200"
+GRUB_SERIAL ?= "console=${@d.getVar('SERIAL_CONSOLE', True).split()[1]},${@d.getVar('SERIAL_CONSOLE', True).split()[0]}"
GRUBCFG = "${S}/grub.cfg"
GRUB_TIMEOUT ?= "10"
#FIXME: build this from the machine config
-GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"
+GRUB_OPTS ?= "serial --unit=${@filter(str.isdigit, d.getVar('SERIAL_CONSOLE', True).split()[1])} \
+--speed=${@d.getVar('SERIAL_CONSOLE', True).split()[0]} --word=8 --parity=no --stop=1"
EFIDIR = "/EFI/BOOT"
--
1.9.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH V2 1/3] bitbake.conf: Set default value for SERIAL_CONSOLE
2014-12-09 8:25 ` [PATCH V2 1/3] bitbake.conf: Set default value for SERIAL_CONSOLE Chong Lu
@ 2014-12-09 11:52 ` Burton, Ross
2014-12-09 17:46 ` Khem Raj
1 sibling, 0 replies; 6+ messages in thread
From: Burton, Ross @ 2014-12-09 11:52 UTC (permalink / raw)
To: Chong Lu; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 237 bytes --]
On 9 December 2014 at 08:25, Chong Lu <Chong.Lu@windriver.com> wrote:
> -SERIAL_CONSOLE ??= ""
> +SERIAL_CONSOLE ??= "115200 ttyS0"
>
What if a machine doesn't have a serial console? My NUC certainly doesn't
have one.
Ross
[-- Attachment #2: Type: text/html, Size: 672 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH V2 1/3] bitbake.conf: Set default value for SERIAL_CONSOLE
2014-12-09 8:25 ` [PATCH V2 1/3] bitbake.conf: Set default value for SERIAL_CONSOLE Chong Lu
2014-12-09 11:52 ` Burton, Ross
@ 2014-12-09 17:46 ` Khem Raj
1 sibling, 0 replies; 6+ messages in thread
From: Khem Raj @ 2014-12-09 17:46 UTC (permalink / raw)
To: Chong Lu; +Cc: openembedded-core
> On Dec 9, 2014, at 12:25 AM, Chong Lu <Chong.Lu@windriver.com> wrote:
>
> Define a default value for SERIAL_CONSOLE, we can use it if machine doesn't
> configure.
>
> [YOCTO #6331]
>
> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> ---
> meta/conf/bitbake.conf | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 7902bd7..7a659a7 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -739,7 +739,7 @@ COMBINED_FEATURES = "\
> ${@base_both_contain("DISTRO_FEATURES", "MACHINE_FEATURES", "wifi", d)}"
> COMBINED_FEATURES[vardeps] += "DISTRO_FEATURES MACHINE_FEATURES"
>
> -SERIAL_CONSOLE ??= ""
> +SERIAL_CONSOLE ??= "115200 ttyS0”
I would rather prefer a warning or note.
> SERIAL_CONSOLES ??= "${@d.getVar('SERIAL_CONSOLE', True).replace(' ', ';')}"
>
> NO_RECOMMENDATIONS ?= ""
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-12-09 17:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09 8:25 [PATCH V2 0/3] use single variable to set baud rate Chong Lu
2014-12-09 8:25 ` [PATCH V2 1/3] bitbake.conf: Set default value for SERIAL_CONSOLE Chong Lu
2014-12-09 11:52 ` Burton, Ross
2014-12-09 17:46 ` Khem Raj
2014-12-09 8:25 ` [PATCH V2 2/3] syslinux.bbclass: use single variable to set baud rate Chong Lu
2014-12-09 8:25 ` [PATCH V2 3/3] grub-efi.bbclass: " Chong Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox