From owner-freebsd-arm@freebsd.org Wed Feb 28 19:46:25 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 8FEA1F4073F for ; Wed, 28 Feb 2018 19:46:25 +0000 (UTC) (envelope-from hyun@caffeinated.codes) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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 2A4B48A079 for ; Wed, 28 Feb 2018 19:46:24 +0000 (UTC) (envelope-from hyun@caffeinated.codes) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 39AE820F26 for ; Wed, 28 Feb 2018 14:46:24 -0500 (EST) Received: from web5 ([10.202.2.215]) by compute7.internal (MEProxy); Wed, 28 Feb 2018 14:46:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= caffeinated.codes; h=content-transfer-encoding:content-type:date :from:in-reply-to:message-id:mime-version:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=+W8IbielDTI680ha/ uMkgHqPLZ1ZmT8Dh/FhsVJI4wc=; b=u9s6pS96zw9mKmLsR/zNZJr2RoqFdbsBS 9x5LxE96GMF6Zi0xedNA+iLypblMzIP/kGjURV2l1jj62P6itigQTKZ65Vwrn+VK g4KdSWkIKaUIuYXWQxXezfVgyZnE8AT2xTH4q+idbCI5lX9dqoYXWTMZFPAatvGD UqAf1oNopKOPZBufJQE7ddqemDWA6N2f4XvpmRBQ31HK9HeebdY1axYNqWPV/d/h TTuWN0uX9bHeSSdlHDW7+EWJegdbI9z+KJ38FA38umTSSb5ye3dxZYBfYQrNsLUc bzC/ZFo1TBfcBn0nmN3oo08+iSpUSlJxnTh4h4ZNYrTANQi8FsDYQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=+W8Ibi elDTI680ha/uMkgHqPLZ1ZmT8Dh/FhsVJI4wc=; b=S9GrRiH5wOpJU3sYsjxko/ viKCh9XYMofsSisZ58uQ4Kdmf5seg4pQaFsMz+798HW4vmAGEw0HGt5gokANHDgz a4RMzPTD14Za2/m3U226M4hly7wMah/Oqu3mxN3pA2hBiHIkLRaaDCqOcoS/zc54 smleECeUHE9KHiAm09KFZQ0cyONnogPasPQ2S8jCoISD52zTyxkf171iiZgUGv15 n2g167pRGmtsLJZGb3xU5tUa9hpk6Ip+tTGwFvfBzwqRKT93AgXkqZ/P4MgtRZgo CqSKI+Wx67fTMGOextT0QjxOWsmOOcBHCeL35iolrQPgzbibAvMLof3C9PTq8DSw == X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 1D2589E217; Wed, 28 Feb 2018 14:46:24 -0500 (EST) Message-Id: <1519847184.3588780.1286870920.4B6980E3@webmail.messagingengine.com> From: Hyun Hwang To: freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-b08ff009 Date: Wed, 28 Feb 2018 14:46:24 -0500 References: <1519842223.2614418.1286772128.15A6E6C5@webmail.messagingengine.com> Subject: Re: Stock image of armv7 RPI2 (r330034) hangs on loader after first boot, with red LED on. In-Reply-To: <1519842223.2614418.1286772128.15A6E6C5@webmail.messagingengine.com> 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 19:46:25 -0000 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. -- Hyun Hwang