Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id F3347E00C3C; Mon, 12 Nov 2018 23:06:37 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [212.18.0.10 listed in list.dnswl.org] Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E98AEE00B77 for ; Mon, 12 Nov 2018 23:06:34 -0800 (PST) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 42vJZc1tHwz1r2nF; Tue, 13 Nov 2018 08:06:32 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 42vJZc0Xj4z1qqkx; Tue, 13 Nov 2018 08:06:32 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id UfwTDe9TN00H; Tue, 13 Nov 2018 08:06:30 +0100 (CET) X-Auth-Info: 2f052VuYWp175mezWAH0eYH5MXTTLoBz5qyCHkpkSiY= Received: from [192.168.1.106] (87-97-127-162.pool.invitel.hu [87.97.127.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 13 Nov 2018 08:06:30 +0100 (CET) To: Yocto Project From: Heiko Schocher Message-ID: Date: Tue, 13 Nov 2018 08:06:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Subject: [PATCH] meta-yocto-bsp: beaglebone-yocto.conf: support 8250 serial driver X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: hs@denx.de List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2018 07:06:38 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit it is possible to use the beagleboneblack with the 8250 serial driver or with the deprecated omap serial driver. Unfortunately serial console get different names (ttyS0 with 8250 driver and ttyO0 with omap driver) So set SERIAL_CONSOLES to SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0" (intentionally with "?=" so it is overwriteable) and activate SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" with that on the first boot the correct value is picked up automatically. Signed-off-by: Heiko Schocher --- meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf index e911e75004..69e11eca59 100644 --- a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +++ b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf @@ -20,7 +20,8 @@ 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_CONSOLES = "115200;ttyO0" +SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0" +SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" PREFERRED_VERSION_linux-yocto ?= "4.18%" -- 2.13.6 -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs@denx.de