From owner-freebsd-arm@freebsd.org Thu Jul 13 15:51:51 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 D6F66DA72AD for ; Thu, 13 Jul 2017 15:51:51 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter06.peak.org (filter06.peak.org [69.59.194.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B1AD27D1C4 for ; Thu, 13 Jul 2017 15:51:51 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta02.peak.org ([207.55.16.112]) by filter06.peak.org ({0c47b2c3-829a-4f18-b445-de68be8d048d}) via TCP (outbound) with ESMTPS id 20170713154813721_0000 for ; Thu, 13 Jul 2017 08:48:13 -0700 X-RC-FROM: X-RC-RCPT: Received: from zmail-mta02.peak.org (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTPS id 456C84CC5D for ; Thu, 13 Jul 2017 08:48:08 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTP id 2B0124CDE6 for ; Thu, 13 Jul 2017 08:48:08 -0700 (PDT) Received: from zmail-mta02.peak.org ([127.0.0.1]) by localhost (zmail-mta02.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gWJ_84ykwrB2 for ; Thu, 13 Jul 2017 08:48:08 -0700 (PDT) Received: from mailproxy-lb-06.peak.org (mailproxy-lb-06.peak.org [207.55.17.96]) by zmail-mta02.peak.org (Postfix) with ESMTP id EB79F4CC5D for ; Thu, 13 Jul 2017 08:48:07 -0700 (PDT) Received: from carlj by elm.localnet with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1dVgLW-0007TN-I7 for freebsd-arm@freebsd.org; Thu, 13 Jul 2017 08:48:06 -0700 From: Carl Johnson To: freebsd-arm@freebsd.org Subject: Re: RaspberryPi 3 freezes on single user mode (init 1) References: <20170713163403.10ef76b0@unixbase> X-Clacks-Overhead: GNU Terry Pratchett Date: Thu, 13 Jul 2017 08:48:06 -0700 In-Reply-To: <20170713163403.10ef76b0@unixbase> (sVx's message of "Thu, 13 Jul 2017 16:34:03 +0200") Message-ID: <86bmoouymh.fsf@elm.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 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, 13 Jul 2017 15:51:51 -0000 sVx writes: > 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. > > Don't know what are the dos and doen'ts for mailing lists and I > felt uncomfortable to put the full dmesg into the email. So I've > uploaded it here so far to http://textuploader.com/dku3j (So in case > you expect it to be directly on the mailing list I can still send it.) > Don't know what else to supply because I cannot even see a core dump. > (Only checked in root directory.) > > Anyway for obvious reasons the dmesg is from from multiuser but I Could > supply a real screen shot for example. > > How do you proceed from here or what do I miss maybe? I think that you need a serial console as somebody already mentioned, but I think that you can force firstboot actions. I think that you can just create a /firstboot file and reboot. The growfs operation should run as long as you have the growfs_enable still enabled. I don't know any of this, but it should be easy to test. -- Carl Johnson carlj@peak.org