From owner-freebsd-arm@freebsd.org Thu Nov 2 00:28:01 2017 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 A9291E67B45 for ; Thu, 2 Nov 2017 00:28:01 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-167.reflexion.net [208.70.210.167]) (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 564FF63C19 for ; Thu, 2 Nov 2017 00:28:00 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 10157 invoked from network); 2 Nov 2017 00:27:53 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 2 Nov 2017 00:27:53 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Wed, 01 Nov 2017 20:27:53 -0400 (EDT) Received: (qmail 26426 invoked from network); 2 Nov 2017 00:27:53 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 2 Nov 2017 00:27:53 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 16C4EEC94DA; Wed, 1 Nov 2017 17:27:53 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: RPi2 snapshot for armv7 won't boot. From: Mark Millard In-Reply-To: <20171101231700.GA66048@www.zefox.net> Date: Wed, 1 Nov 2017 17:27:52 -0700 Cc: Carl Johnson , freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <497A9769-0BEF-4B2A-B0C8-0CA399F4DA29@dsl-only.net> References: <86fu9xmx3u.fsf@elm.localnet> <20171101231700.GA66048@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2017 00:28:01 -0000 On 2017-Nov-1, at 4:17 PM, bob prohaska wrote: > On Wed, Nov 01, 2017 at 03:51:17PM -0700, Carl Johnson wrote: >> I had previously tried to upgrade my RPi2 12.0-CURRENT system from armv6 >> to armv7, but it then refused to boot. > > Was this done self-hosted, or using crochet? I've been trying for weeks > (months?) to make the armv6-armv7 transition on a self-hosted system, > without even getting it to finish buildworld, much less boot. If you > are self-hosting please describe what you did to make it work as far > as it did. [Sometime between -r324743 and -r325156 armv7 has been broken such that /sbin/init fails, apparently no matter how the build is done. I'm ignoring that issue here.] One point against attempting a self-hosted builds on a system initially installed with crochet-based materials: Crochet has one major configuration problem for reliability when swapping is to be involved on the target: Crochet creates a context using a swapfile instead of using a swap partition. See bugzilla 206048 about the swapfile issue. An RPI2 self-hosted likely(?) swaps extensively at times. ("Only" 1 GiByte of RAM but clang is built, for example.) I expect that having swap space is a requirement to have self-hosting work. I'm not familiar with what a near-minimal size might be. I'm not claiming this explains what you might be seeing. But the use of swapfiles is a known problem, apparently known long before that bugzilla submittal was made (2016-Jan-08). My experience has lead me to always use swap partitions --and never swap files. Another issue is significant swapping activity is likely not a good match to most sdcards. For this class of devices, I normally configure causing the root file system and swap space to be on a USB drive, such as a USB SSD. So mostly it is the kernel and earlier stages that come from the sdcard and the sdcard is otherwise little used in normal operation. I have not tried a self-hosted build in some time and other things are blocking such activities for now. === Mark Millard markm at dsl-only.net