beaglebone: Fix serial console device node
PATCH 1/1 beaglebone: Fix serial console device node
The serial console on BBB is on /dev/ttyS0 , not /dev/ttyO0 . This changed again, so fix this.
--- meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +1 -1
@@ -20,7 +20,7 @@ WKS_FILE ?= "beaglebone-yocto.wks" IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage" do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" -SERIAL_CONSOLE = "115200 ttyO0" +SERIAL_CONSOLE = "115200 ttyS0" PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" PREFERRED_VERSION_linux-yocto ?= "4.12%"
Signature · 1 line
2.11.0
Hi Marek,
Quoted 15 lines · Marek Vasut
The serial console on BBB is on
/dev/ttyS0, not/dev/ttyO0. This changed again, so fix this.Signed-off-by Marek Vasut <[email protected]>Cc Joshua Lock <[email protected]>Cc Richard Purdie <[email protected]>--- meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +0
-0
meta-yocto-bsp/conf/machine/beaglebone-yocto.conf WKS_FILE ?= "beaglebone-yocto.wks" · line 23
Quoted 5 lines
meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +1
-1@@ -20,7 +20,7 @@ WKS_FILE ?= "beaglebone-yocto.wks" IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage" do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" -SERIAL_CONSOLE = "115200 ttyO0" +SERIAL_CONSOLE = "115200 ttyS0"
You can add both to SERIAL_CONSOLES instead:
SERIAL_CONSOLES = "115200;ttyS0 115200;ttyO0"
Maybe add a comment with hints about which kernels versions that make the change(s).
OE-core wraps *getty with in script that checks for the existence of the configured devices before starting *getty.
This also makes the recipe work on kernel versions still using ttyO0.
// Martin
Quoted 3 lines
meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +0
-0PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" PREFERRED_VERSION_linux-yocto ?= "4.12%"
Quoted 29 lines · Martin Hundebøll
Hi Marek,
Quoted 16 lines · Marek Vasut
The serial console on BBB is on
/dev/ttyS0, not/dev/ttyO0. This changed again, so fix this.Signed-off-by Marek Vasut <[email protected]>Cc Joshua Lock <[email protected]>Cc Richard Purdie <[email protected]>---
meta-yocto-bsp/conf/machine/beaglebone-yocto.conf| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +0
-0@@ -20,7 +20,7 @@ WKS_FILE ?= "beaglebone-yocto.wks"Quoted 5 lines
IMAGE_INSTALL_append= " kernel-devicetree kernel-image-zimage" do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
-SERIAL_CONSOLE = "115200 ttyO0"
+SERIAL_CONSOLE = "115200 ttyS0"You can add both to
SERIAL_CONSOLESinstead:
SERIAL_CONSOLES= "115200;ttyS0 115200;ttyO0"
Quoted 7 lines
Maybe add a comment with hints about which kernels versions that make the change(s).
OE-core wraps *getty with in script that checks for the existence of the configured devices before starting *getty.
This also makes the recipe work on kernel versions still using ttyO0.
Done, V2 is out.
Signature · 2 lines
Best regards, Marek Vasut