From owner-freebsd-arm@freebsd.org Sat Sep 12 17:41:14 2015 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 F38EFA025FE for ; Sat, 12 Sep 2015 17:41:14 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (kientzle.com [142.254.26.11]) (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 C9CD6149E for ; Sat, 12 Sep 2015 17:41:14 +0000 (UTC) (envelope-from tim@kientzle.com) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id t8CHfdgw055379 for freebsd-arm@freebsd.org; Sat, 12 Sep 2015 17:41:39 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.108] (192.168.1.101 [192.168.1.101]) by kientzle.com with SMTP id 36rnw7uuz4c4gj4g42d58hssi6; for freebsd-arm@freebsd.org; Sat, 12 Sep 2015 17:41:39 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: single user mode freebsd11/rpi2 From: Tim Kientzle In-Reply-To: <20150912150433.GA1204@potato.growveg.org> Date: Sat, 12 Sep 2015 10:41:28 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20150912150433.GA1204@potato.growveg.org> To: freebsd-arm X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Sep 2015 17:41:15 -0000 > On Sep 12, 2015, at 8:04 AM, John = wrote: >=20 > Hello list, >=20 > I need to either make the system single user node by either becoming > it (as root, shutdown now) or booting into it (either at the boot = prompt or > with nextboot) and I can do neither, so obviously I'm going about this > the wrong way. "shutdown now" never returns a prompt and=20 > "nextboot -o "-s" -k kernel *will* boot the kernel after shutdown -p > but I get no prompt. Last two lines of output: >=20 > warning: no time-of-day clock registered, system time will not be set = accurately > random: unblocking device. >=20 > and there it sits. I left it for 15 mins to make sure it wasn't just = slow. > ctrl-alt-del rebooted the pi but other than that, nothing had any = effect. The default system console is the serial console. You'll need one of these (or something equivalent): http://www.adafruit.com/product/954 Here's a good picture showing how to connect it: = http://tinkersphere.com/raspberry-pi-accessories/317-usb-to-ttl-serial-cab= le-for-raspberry-pi-debugging.html Note: The red wire does not need to be connected: If you do connect = it, it will provide power and the board will boot, which may or may not = be what you want. (In particular, if you have USB accessories plugged = into your RPI2, the red wire here may not provide enough power.) This will also give you access to the U-Boot and ubldr prompts. >=20 > How can I make it single user mode? The reason this needs to be done = is > I need to move some filesystems around. If you have another FreeBSD machine, you can mount the SD card there to = do major surgery like this. Cheers, Tim