[yocto] [PATCH V2] beaglebone: Fix serial console device node

Marek Vasut marex at denx.de
Mon Jan 8 06:28:30 PST 2018


The serial console on BBB is now on /dev/ttyS0 , not /dev/ttyO0,
which comes from legacy omap-serial driver. Support both options
using SERIAL_CONSOLES.

For details of the change to /dev/ttyS0, see Linux kernel
commit 61929cf0169d91366fd3f30d6ee60681b037bc19
Author: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
Date:   Mon Sep 29 20:06:39 2014 +0200

    tty: serial: Add 8250-core based omap driver
...
    The device name is ttyS based instead of ttyO. If a ttyO based node name
    is required please ask udev for it. If both driver are activated (this
    and omap-serial) then this serial driver will take control over the
    device due to the link order

Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Joshua Lock <joshua.g.lock at intel.com>
Cc: Richard Purdie <richard.purdie at linuxfoundation.org>
---
V2: Use SERIAL_CONSOLES to handle both old and new variant of the
    serial console node used.
---
 meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
index 990c967416..31856cf94b 100644
--- a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
+++ b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
@@ -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_CONSOLES = "115200;ttyS0 115200;ttyO0"
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
 PREFERRED_VERSION_linux-yocto ?= "4.12%"
-- 
2.11.0




More information about the yocto mailing list