From owner-freebsd-bugs@FreeBSD.ORG Thu May 27 07:33:12 2010 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3D9C1065674; Thu, 27 May 2010 07:33:12 +0000 (UTC) (envelope-from mayo@oyam.ca) Received: from zeus.nfy.ca (a.ns.nfy.ca [204.244.63.66]) by mx1.freebsd.org (Postfix) with ESMTP id 7ACBD8FC0C; Thu, 27 May 2010 07:33:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zeus.nfy.ca (Postfix) with ESMTP id 2179F33D10; Thu, 27 May 2010 00:33:11 -0700 (PDT) Received: from zeus.nfy.ca ([127.0.0.1]) by localhost (zeus.nfy.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5gdDyWj1AXYg; Thu, 27 May 2010 00:33:08 -0700 (PDT) Received: from [10.117.14.3] (unknown [24.114.236.38]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by zeus.nfy.ca (Postfix) with ESMTP id 6BB8B33D0F; Thu, 27 May 2010 00:33:05 -0700 (PDT) References: <201005261942.o4QJgacx011479@freefall.freebsd.org> <008FD1A4-F1AB-4683-A3A6-6EAA3C0AECED@oyam.ca> <7353B9CB-BAEF-4A7E-9C89-6B46227DF779@oyam.ca> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8A274b) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <448AF9F1-5A30-424D-B7B4-366A739B55CD@oyam.ca> X-Mailer: iPhone Mail (8A274b) From: Mayo Jordanov Date: Thu, 27 May 2010 00:32:48 -0700 To: Garrett Cooper Cc: "remko@freebsd.org" , "freebsd-bugs@freebsd.org" Subject: Re: kern/147082: [uart] Serial ports unusable X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2010 07:33:12 -0000 On 2010-05-26, at 21:46, Garrett Cooper wrote: > On Wed, May 26, 2010 at 8:01 PM, Mayo Jordanov wrote: >>=20 >> On 2010-05-26, at 19:34 , Garrett Cooper wrote: >>=20 >>> On Wed, May 26, 2010 at 6:42 PM, Mayo Jordanov wrote: >>>>=20 >>>> On 2010-05-26, at 12:42 , remko@FreeBSD.org wrote: >>>>=20 >>>>> Synopsis: [uart] Serial ports unusable >>>>>=20 >>>>> State-Changed-From-To: open->feedback >>>>> State-Changed-By: remko >>>>> State-Changed-When: Wed May 26 19:42:36 UTC 2010 >>>>> State-Changed-Why: >>>>> I send my working serial line to Mayo, set status to feedback >>>>>=20 >>>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D147082 >>>>=20 >>>> I'm gona re-reply here, to preserve the history. >>>>=20 >>>>>>> How-To-Repeat: >>>>>> 1) Edit /etc/ttys, do the ttyu0 line reads: >>>>>> ttyu0 "/usr/libexec/getty std.9600" vt100 on secure >>>>>> 2) kill -HUP 1 >>>>>> 3) Try connecting to it with terminal application >>>>>=20 >>>>>=20 >>>>> /etc/ttys >>>>> console "/usr/libexec/getty Pc" cons25 on secure >>>>>=20 >>>>> /boot/loader.conf >>>>> console=3D"comconsole" >>>>>=20 >>>>> That enabled serial access to my Soekris device running on FreeBSD8(PFs= ense), it also works for several remote machines I have. >>>>>=20 >>>>> Can you confirm that you have these settings in loader.conf and reboot= ed?! >>>>>=20 >>>>> -- >>>>> /"\ Best regards, | remko@FreeBSD.org >>>>> \ / Remko Lodder | remko@EFnet >>>>> X http://www.evilcoder.org/ | >>>>> / \ ASCII Ribbon Campaign | Against HTML Mail and News >>>>=20 >>>> test# cat /boot/loader.conf >>>> console=3D"comconsole" >>>>=20 >>>> looking at the /etc/ttys entry you pasted above, will that enable seria= l console? That looks like a regular console on the machine itself. >>>>=20 >>>> I have rebooted numerous times, and I do get the kernel messages during= boot on serial up to the point where getty starts (presumably... I see port= ion of the messages as nics are getting setup and then nothing). >>>>=20 >>>> I have some machines where serial works fine, but I have some machines w= here it doesn't and behaves the same way as described above. If necessary, I= can provide access to a troublesome machine. >>>=20 >>> All of this is described in more grusome detail at >>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-= setup.html >>=20 >> Unfortunately, the handbook does not help in this case. If there is a sol= ution to the problem I describe in the PR description in the handbook, pleas= e be so kind and point it out to me, because I must be blind. >>=20 >> Also, why do the gettys get stuck and I have to kill them manually (or re= boot because they can't be killed) to reflect changes to /etc/ttys instead o= f simple `kill -HUP 1`? I've never ever had to do it manually in previous Fre= eBSD installations/versions. Why are they stuck in ttydtd and not in ttyin a= s they are supposed to be? >=20 > The comconsole bit is in the section of /etc/ttys in the > beforementioned page. > Details about debugging your connection is available here: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/term.html . > What's the baud rate for your serial connection? > The part about kill -HUP 1 not working sounds like a possible > syscons/tty bug. Can you try killing init, then provide us with the > wait state in ps/top for the relevant getty instance? > Thanks! > -Garrett Thanks for pointing me to the term debugging section in handbook, I wasn't a= ware if it. It does not offer anything new that I haven't tried yet, though.= Cheers, mayo=