Skip to contentSkip to conversation

beaglebone: Fix serial console device node

PATCH Superseded Marek Vasut 2 participants 3 messages Jan 7, 2018 – Jan 8, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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.

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 +1 -1
index 990c967416..4f6c05f3ea 100644
@@ -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
#1 lore raw

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.

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
index 990c967416..4f6c05f3ea 100644

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 -0
  PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  PREFERRED_VERSION_linux-yocto ?= "4.12%"
 
#2 lore raw
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.

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
index 990c967416..4f6c05f3ea 100644
@@ -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_CONSOLES instead:

  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