From owner-freebsd-arm@freebsd.org Wed Mar 9 18:34: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 BD212AC8773 for ; Wed, 9 Mar 2016 18:34:12 +0000 (UTC) (envelope-from jau789@gmail.com) Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com [IPv6:2a00:1450:4010:c04::234]) (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 59688782; Wed, 9 Mar 2016 18:34:12 +0000 (UTC) (envelope-from jau789@gmail.com) Received: by mail-lb0-x234.google.com with SMTP id k15so79339591lbg.0; Wed, 09 Mar 2016 10:34:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=cAqhsB1qR7WIKMp/8/J/i3Oi08ZXC0aNuPOvhcTfXvs=; b=i01t1JmXv65W84r1J3Rl22LQ8k7I5WUctxXddowVpqMURTF2CyP3ddKoWU1Nu+g3Lp Solj9azWGhCmbO7C15SqU6IcmlIcOrGblazH/4lh1Q4JNs2ItcOhppMlXv4UNH0vXUNa xwa5XuW1uCU0XWs7IYwjz/rESTif8oJZaz5Y37SuWW/td2UamxqbJPuh04EfJJqF4Gk5 IR5c2rj1NYGX+CilbFYtUaJW7Syqm7niAcgyOAUwujHG0BfxpgH8kP8chtU4OeOz7PRb CivrbED9GOO0Fruvj7RLUAbUDNrZsHoNf/uDGFZftalUjUfNW0pEIFF1NWVA64Cl61Y6 7bwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=cAqhsB1qR7WIKMp/8/J/i3Oi08ZXC0aNuPOvhcTfXvs=; b=USz+10HfCiBOi67+lM30Q0/FLsWxqNfIbaBHEK1aRtKs9iSAFeY6JKoico/ixd6qDB 5QUkthSGdJFsz31nvCUWO89XJCIRwa67pYWamPpf1+N98jaYCaN3GzzHLbDS7kjWDjUM obOenssW8QJYMbeiDGCnn6QasyPIWcSlQpPumtwuyvdyz7y3SLozlUdCTbgbzAimPGx7 L1IGmC0B7ryfksgxhhzFkGVBbMrz6iwIKP0qghW4m4X890JSoNaO+0z45HOePwDMdPKD MOqnDrm7MtHzKkiQDoIUYq37fEiBp4rAwnPmtlu7c9346eLJ/fT49PtAmSJxRm8ehDEF OhGQ== X-Gm-Message-State: AD7BkJK+QgFLgTyoxGp8w9DmwIvFl1v0Cmo6r8xtlCLwTpI95s4tFSJqLSOCNohEzlE6Nw== X-Received: by 10.25.16.207 with SMTP id 76mr13232509lfq.133.1457548450312; Wed, 09 Mar 2016 10:34:10 -0800 (PST) Received: from [192.168.1.131] (xdsl-205-1.nblnetworks.fi. [83.145.205.1]) by smtp.googlemail.com with ESMTPSA id e191sm1488883lfb.39.2016.03.09.10.34.08 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 09 Mar 2016 10:34:09 -0800 (PST) Subject: Re: Odd hang during boot on RPI2 for 2 days now To: Ian Lepore , Hans Petter Selasky References: <56D99C2E.4020301@gmail.com> <56DD5DF8.9090700@gmail.com> <56DD6476.80603@selasky.org> <56DD9F60.7010509@gmail.com> <1457365690.13785.179.camel@freebsd.org> Cc: freebsd-arm From: Jukka Ukkonen X-Enigmail-Draft-Status: N1110 Message-ID: <56E06CA0.4030107@gmail.com> Date: Wed, 9 Mar 2016 20:34:08 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1457365690.13785.179.camel@freebsd.org> Content-Type: text/plain; charset=windows-1252 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: Wed, 09 Mar 2016 18:34:12 -0000 On 03/07/16 17:48, Ian Lepore wrote: > 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. Getting the dmesg output for the failed boot would require a serial console cable connecting the RPI2 to another computer and script running on the other computer to record the output. Lacking such a cable this is a no-go of course. A new fresh dmesg.boot file will be generated only after a normal successful boot. And after a successful boot I would no longer need the content of the file. > 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. At least the system has already tried to start init. There is a line ... start_init: trying /sbin/init shown some 30 lines before the freeze. If anyone wishes to see a photo of what is shown on the display when the system freezes, let me know. I will send a copy separately. There are some 60-70 lines of text shown in the image. I don't wish to spam the whole mailing list with a large image file, though. --jau