From owner-freebsd-arm@freebsd.org Wed Feb 28 20:39:10 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 56904F43F2B for ; Wed, 28 Feb 2018 20:39:10 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (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 E10CB8C617 for ; Wed, 28 Feb 2018 20:39:09 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22d.google.com with SMTP id w63so5031493ita.3 for ; Wed, 28 Feb 2018 12:39:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=s39S65+InW6HqqagibWtMNdVgv4BEhnTX64JWwVtpqU=; b=uYUBH7dObtQm0ikjvmuQsW1k3vpKaM3XBREybsMiJyYcjRbswigFwuwNKUzRS/rc5z n5oyWJ03acnMPgVmiNHCY5jVjeRSS4pJatu2u8CYGuRddSwNq9ieEnccikZ0O0xs/Qzp DANkurB/AH3wjx1biIBH12GXPLYxv4v8xOorSIAa14JCfoRhFNjEMpIRZaRmyy9d5Tbt wISjdrwZ+SNSiqEJj2KdT9i6vlR9eM5oX+uuBJhMeJ9ENCCrU1eDEmpvAdKKfHGIyMX6 w5IOhYMLKzp/SGubAHzd3BPh6WlRVpyNb8wSDHsuGlCy8fpcHCLbp/3RPG9O+TPvrlMS dh+g== 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=s39S65+InW6HqqagibWtMNdVgv4BEhnTX64JWwVtpqU=; b=k3eiCi7sqE/QmRFuC6G0AsUcZhuxSP5HznEXvfsXkhbxpaoCeK7aHwyjsyifDztlqs IWoODSi4tNh4rW1fOMUIAen2NVEF2N6w+mVz6zrhQfSV2HHOde1fL39beMa1sbjVD0Os S0+ur8whtEYqlsWEbBU3EjjjA0LWNCM9nJnNlindnad4yJwSpY7LzswTvJI5rTAT6Ay0 1odn26qB6RmFr+K62Vcq78xfOcQ0JhGGTPVriSYHeA22/Az4P4IuDIy+z6S9bIwsfZOB ScUfifbcNJvp7oMsF2iCNy1287QLg54+lL1vAdZYhHFZMCmOjqW/C9eMrjPh0uO8NW5C Q4qg== X-Gm-Message-State: APf1xPC748oDeJyMKbIqYB1EZWN8lBpazVhkGLCph/lHeLA+sO7TwzIL DpAUPBM9O0xmAvY8yWF/RKNpkIM6RS4/s4qE5ZDVTQp9 X-Google-Smtp-Source: AG47ELsNOiYhISBH9B3SOkGb+w1kulCzOZ+3moRGEJKme5P7u7bkvoASUwXIeXCMKkXtycRAa+iDjaAIKAAYEQYa7Y8= X-Received: by 10.36.4.65 with SMTP id 62mr7584791itb.57.1519850349090; Wed, 28 Feb 2018 12:39:09 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.201.67 with HTTP; Wed, 28 Feb 2018 12:39:08 -0800 (PST) X-Originating-IP: [50.227.106.226] In-Reply-To: <1519847184.3588780.1286870920.4B6980E3@webmail.messagingengine.com> References: <1519842223.2614418.1286772128.15A6E6C5@webmail.messagingengine.com> <1519847184.3588780.1286870920.4B6980E3@webmail.messagingengine.com> From: Warner Losh Date: Wed, 28 Feb 2018 13:39:08 -0700 X-Google-Sender-Auth: scGooxaDyKLVS2AbkQ5nWIiqZ54 Message-ID: Subject: Re: Stock image of armv7 RPI2 (r330034) hangs on loader after first boot, with red LED on. To: Hyun Hwang Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2018 20:39:10 -0000 On Wed, Feb 28, 2018 at 12:46 PM, Hyun Hwang wrote: > On Wednesday, February 28, 2018, 1:23 PM (UTC-0500), Hyun Hwang > wrote: > > Hi, > > > > I re-imaged my RPi 2 with [the stock image] > > (https://download.FreeBSD.org/ftp/snapshots/arm/armv7/ISO- > IMAGES/12.0/FreeBSD-12.0-CURRENT-arm-armv7-RPI2-20180226-r330034.img.xz), > > but it hangs on second boot on the loader. > > > > First boot shows no problem at all. Loader finds the kernel, loads the > > dtb, and hands over to the kernel. Then kernel clears the screen and > > starts normal boot procedure. > > The problem occurs on the second boot. I first shut the pi down using > > `shutdown -h now`, unplugged it, and then immediately re-plugged to the > > power. > > > > This is what the screen reads: > > ``` > > Hit [Enter] to boot immediately, or any key for command prompt. > > Booting [/boot/kernel/kernel]... > > /boot/dtb/bcm2836-rpi-2-b.dtb size=0x34cd > > Loaded DTB from file 'bcm2836-rpi-2-b.dtb'. > > Kernel entry at 0x1200100... > > Kernel args: (null) > > ``` > > At this point, it does nothing. > > > > I have found that the very problem occurred [a month ago to bob] > > (https://lists.freebsd.org/pipermail/freebsd-arm/2018- > January/017310.html), > > but unlike their situation (self-built), this occurs on stock image. > > > > Can anyone look into this problem? In the meantime, I will try few other > > previous images that is still in download.FreeBSD.org. > > > > Thank you. > > -- > > Hyun Hwang > > I just checked stock image at r329009, and it boots fines even after the > first boot. > So some commit after r329009 is causing behavior, but frankly, I have no > idea where to start looking, since this weird hang does not print any > detailed message out even if I set `verbose_loading="YES"` and > `boot_verbose="YES"` in `/boot/loader.conf.local`. It just sits there and > do nothing after that `Kernel args: (null)` line. > > Any lead is appreciated. > You might try entropy_cache_load="NO" in your loader.conf.loader and see if that helps.