From owner-freebsd-arm@freebsd.org Mon Mar 7 15:48:12 2016 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 D7EEFAC2B50 for ; Mon, 7 Mar 2016 15:48:12 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B96A7973 for ; Mon, 7 Mar 2016 15:48:12 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 3e3e0e72-e47c-11e5-8de6-958346fd02ba X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.34.117.227 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.34.117.227]) by outbound2.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Mon, 7 Mar 2016 15:49:57 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.14.9) with ESMTP id u27FmAlm001212; Mon, 7 Mar 2016 08:48:10 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1457365690.13785.179.camel@freebsd.org> Subject: Re: Odd hang during boot on RPI2 for 2 days now From: Ian Lepore To: Jukka Ukkonen , Hans Petter Selasky Cc: freebsd-arm Date: Mon, 07 Mar 2016 08:48:10 -0700 In-Reply-To: <56DD9F60.7010509@gmail.com> References: <56D99C2E.4020301@gmail.com> <56DD5DF8.9090700@gmail.com> <56DD6476.80603@selasky.org> <56DD9F60.7010509@gmail.com> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2016 15:48:12 -0000 On Mon, 2016-03-07 at 17:33 +0200, Jukka Ukkonen wrote: > On 03/07/16 13:22, Hans Petter Selasky wrote: > > On 03/07/16 11:54, Jukka Ukkonen wrote: > > > > > > Continuing where I previously left with this problem... > > > When I set boot_verbose=1 in loader.conf I got a little > > > more information before the poor RPI2 simply froze. > > > Now the last shown line was... > > > > > > random: harvesting attach, 8 bytes (4 bits) from ukbd0 > > > > > > If I disconnect the USB keyboard and then reconnect it, > > > the kernel prints the normal detach and attach messages, > > > once again returns back to printing the "random: ..." > > > line shown above, and freezes again. > > > > > > > Then I think the init process is waiting for something. Would you > > manage > > to press CTRL+T in the console and see what is printed? > > The ctrl-T trick might work with a keyboard connected via > the serial line pins. With my USB keyboard and HDMI display > combo it doesn't do anything at all. > Surely the system must be waiting for something. Of that I > am quite certain. It does not panic and it keeps reacting to > the USB keyboard being disconnected and connected. Obviously > it is still otherwise fine, at least sort of, but also firmly > stuck waiting an event which either never happens or which > goes undetected for some reason. Part of what's needed to diagnose this problem is dmesg output from a failed boot that is more than 1 or 2 lines snipped out of context. It sounds to me like this has nothing to do with the usb keyboard except for the random coincidence that it is the last usb device to be enumerated. It seems like the system is hung waiting for an interrupt, and there's no reason to think it's necessarily a usb interrupt that's missing. Also, it seems unlikely that ^T will produce any output, because it sounds like init hasn't even started yet, and the low-level console used during boot doesn't respond to ^T/SIGINFO. -- Ian