From owner-freebsd-arm@freebsd.org Sat Mar 4 16:54:15 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95924CF95B0 for ; Sat, 4 Mar 2017 16:54:15 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-yw0-x241.google.com (mail-yw0-x241.google.com [IPv6:2607:f8b0:4002:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 515121584; Sat, 4 Mar 2017 16:54:15 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: by mail-yw0-x241.google.com with SMTP id 203so12710843ywz.1; Sat, 04 Mar 2017 08:54:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=CST5hETiPZNbo70XUY/q7HCogvJWY8nunhG2vusBOyM=; b=dtj1tW9rFj2qVh9J040WE9Et9QNZgF9TWkuVxRkstZPb5ONJUzZZ1xxmOJXSHeqHsL /ZaF1kw53v+cCEx6qEMwE28aoSvfqcEBZdqrLxA0oQygcsGA6E1kXzUTdPkjBKLa/ASW Q6EQw/rryHv9i/rfs6mAaLR4W+wMzjre89Cx8AKHFaIPS+jcirp/5bfWgryKbqK8dRln bNRAeI9sbn3uKQqjzHCVnHJDX/WPaz6qvQzA69ihwpZ5aOo3/5072YEuUu1bSE6wTv6Y vVwvBr9XdktXQJTlnNP5+LhyraPF5wAXw5qZPq57cb6odNEPVV0mGdTft/rP0Q3jYnmf Ig9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=CST5hETiPZNbo70XUY/q7HCogvJWY8nunhG2vusBOyM=; b=TUs9co/5AlyzFCC/g/TNFhbh0F4AwLYWZer0p6+BGZq1DW0j8sv4/hOfgTWDj4q7mD QsxOhDR3teujmiwqGp3jtmyd7QrscCwnhFyDBN7GdtD/kDGO+269cLIOZVToiUZ69YeX xYEtKjaIncQcWZD9BLB8XP2CCN5ao4LBgFfPnyufdDAd/QPY/kPQEQPJl856MbJDs1jv Zie6jc4XLdrPssy3qNSAr1DL6MxWkNOnkK0fwVlqYEIem/mDPLjh/cEcVLQmMRTqnqw/ yTCYSDWsjXnrDrLlzXmUwbd3WrqR9sfdiXfgrovAWqurb5Tzuo3B6CC1S53Z1lAWIFKc 10Jw== X-Gm-Message-State: AMke39nCPi/u8JAcJ5U+ci6tpwcfB3gOAorGHvCsGGsmyCBKDWhrVVlcdaLU7yWpJrC6px2Go9DGz57UWceypw== X-Received: by 10.129.71.130 with SMTP id u124mr3357645ywa.294.1488646454412; Sat, 04 Mar 2017 08:54:14 -0800 (PST) MIME-Version: 1.0 Sender: c.jayachandran@gmail.com Received: by 10.83.42.214 with HTTP; Sat, 4 Mar 2017 08:54:13 -0800 (PST) In-Reply-To: <1488420309.60166.32.camel@freebsd.org> References: <20170227195647.GA91329@www.zefox.net> <20170301200112.ymwkfd64tzz5f3b2@mutt-hbsd> <4194F030-4E5C-4EB6-82D7-FD725E3B7CEF@fh-muenster.de> <20170302000334.GA99403@www.zefox.net> <1488419304.60166.26.camel@freebsd.org> <20170302020116.GA98466@bluezbox.com> <1488420309.60166.32.camel@freebsd.org> From: "Jayachandran C." Date: Sat, 4 Mar 2017 22:24:13 +0530 X-Google-Sender-Auth: 0StirGpwUTXV_GFf5rna3HSwAxY Message-ID: Subject: Re: Odd-looking serial console prompt on RPI2 To: Ian Lepore Cc: Oleksandr Tymoshenko , bob prohaska , Michael Tuexen , freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Mar 2017 16:54:15 -0000 On Thu, Mar 2, 2017 at 7:35 AM, Ian Lepore wrote: > On Wed, 2017-03-01 at 18:01 -0800, Oleksandr Tymoshenko wrote: >> Ian Lepore (ian@freebsd.org) wrote: >> > >> > On Wed, 2017-03-01 at 16:03 -0800, bob prohaska wrote: >> > > >> > > On Wed, Mar 01, 2017 at 09:20:13PM +0100, Michael Tuexen wrote: >> > > > >> > > > >> > > > Interesting... Let us know what works and what doesn't... >> > > > >> > > > Best regards >> > > > Michael >> > > > >> > > As of FreeBSD 12.0-CURRENT (RPI2) #0 r314450: Wed Mar 1 14:48:26 >> > > PST >> > > 2017 >> > > the serial console is still corrupt (output truncated, input not >> > > echoed >> > > but treated like the enter key). The serial console does seem to >> > > work >> > > with U-boot and loader, so I don't think it's the upstream >> > > hardware. >> > > >> > > The HDMI console looks normal and USB keyboard input seems to >> > > work. >> > > >> > > There have been several updates to /usr/src/sys/dev/uart and it >> > > looks >> > > as if kernel updates are still coming. Maybe the job simply isn't >> > > done yet. >> > > >> > > bob >> > > >> > It seems like this might be caused by r314318. Can someone having >> > this problem confirm if 314317 works and 314318 fails? >> Tested on my RPi2, 314317 - works, 314318 - broken >> > > CC'ing jchandra@. > > I wonder if there is some bad interaction when the same uart is used as > a console and a tty? I don't have a RPi3 setup to test now, I will look at the code again to see if I can find an issue. Otherwise I will revert the change until we can find why the RPi UART breaks with these changes. Thanks, JC.