From owner-freebsd-arm@freebsd.org Fri Jul 14 22:46:00 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 F0992DADC4A for ; Fri, 14 Jul 2017 22:46:00 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C40A87D635 for ; Fri, 14 Jul 2017 22:46:00 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id v6EMjpNV094865; Fri, 14 Jul 2017 15:45:51 -0700 (PDT) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id v6EMjnul094864; Fri, 14 Jul 2017 15:45:49 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201707142245.v6EMjnul094864@pdx.rh.CN85.dnsmgr.net> Subject: Re: RaspberryPi 3 freezes on single user mode (init 1) In-Reply-To: To: Guangyuan Yang Date: Fri, 14 Jul 2017 15:45:49 -0700 (PDT) CC: "freebsd-arm@freebsd.org" X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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: Fri, 14 Jul 2017 22:46:01 -0000 > On Thursday, July 13, 2017 10:34:03 AM EDT sVx wrote: > > Hi, > > > > I've installed RaspBSD (FreeBSD-aarch64-12.0-GENERIC-320146M.img) on an > > 4 GB microSD-Card for a RaspberryPi 3. So far it boots and runs fine but I > > would like to expand the root slice (the only slice) over the full disk > > space but I cannot enter single user mode. > > > > Un-commenting in /etc/rc.conf 'growfs_enable="YES"' and rebooting has no > > effect. So I tried the manual way via `gpart resize /dev/mmcsd0s2` but > > growfs(8) cannot expand root because root is mounted -- I guess. So I > > tried `init 1` which just directly freezes the system as well as > > `nextboot -o "-s" -k kernel` which hangs right after detecting the > > keyboard. Guess in both cases it just freezes. > > Can confirm that 'growfs_enable=YES' is not working properly on RaspBSD. > Instead, running a 'service growfs onestart' worked for me: I believe you need to have /firstboot before growfs_enable="YES" well work for you. /firstboot is in the rpi images from RaspBSD, but once you have booted it the first time that file is wiped. ... -- Rod Grimes rgrimes@freebsd.org