From owner-freebsd-arm@freebsd.org Sat Sep 5 20:03:41 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 C6D949CAF0C for ; Sat, 5 Sep 2015 20:03:41 +0000 (UTC) (envelope-from kah42pub@blarg.com) Received: from mail.avvanta.com (smtp61.avvanta.com [206.124.128.61]) (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 ABFE91C59 for ; Sat, 5 Sep 2015 20:03:41 +0000 (UTC) (envelope-from kah42pub@blarg.com) Received: from mail.avvanta.com (localhost.drteeth.p.blarg.net [127.0.0.1]) by mail.avvanta.com (Postfix) with ESMTP id 9F4CFF3937 for ; Sat, 5 Sep 2015 12:46:27 -0700 (PDT) Received: from MBP16GB.local (c-50-135-203-40.hsd1.wa.comcast.net [50.135.203.40]) by mail.avvanta.com (Postfix) with ESMTP id 83E74F3935 for ; Sat, 5 Sep 2015 12:46:27 -0700 (PDT) Subject: Re: keeping up-to-date on RPi2/FreeBSD11 To: freebsd-arm@freebsd.org References: <20150905125316.GB80713@potato.growveg.org> <20150905133519.c60e316b90b3205a5d482c01@ulrich-grey.de> From: kah42pub Message-ID: <55EB46D2.1040003@blarg.com> Date: Sat, 5 Sep 2015 12:47:30 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150905133519.c60e316b90b3205a5d482c01@ulrich-grey.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BlargAV-Status: No viruses detected, BlargAV v1.1 on localhost.drteeth.p.blarg.net 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, 05 Sep 2015 20:03:42 -0000 On 9/5/15 06:35, Ulrich Grey wrote: > On Sat, 5 Sep 2015 13:53:16 +0100 > John wrote: > >> Hello list, >> >> I'd like to keep my system up-to-date. Also, might be able to speed up >> the system a bit by removing options witness/invariants. Although I can find >> plenty of informative websites detailing how to initially build (using crotchet) >> and install FreeBSD on RPi2, I can't find where (for RPi2) to configure the >> kernel and build/installworld in-place on the RPi2. I can see the crossbuild >> targets in /usr/src/Makefile on another -CURRENT machine but thought I'd ask >> here first as freebsd-arm evolves very rapidly. Basically, I need to know: >> >> 1. where the kernel config file is > > /usr/src/sys/arm/conf > >> 2. how to build/install a new world on this platform > > See: https://www.freebsd.org/doc/handbook/makeworld.html > > Add swapspace. > To change to single user mode I think you need a serial console. > >> >> for an in-place upgrade like you'd do on i386/amd64 >> >> thanks, >> -- >> John >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > For what it is worth, these steps work for me to update an RPI2 in place. A serial cable is definitely required. Most of this was taken from the FreeBSD documentation. I've omitted steps that are specific to my configuration. chflags -R noschg /usr/obj/* rm -rf /usr/obj cd /usr/src make -j8 cleandir make -j4 buildworld # This takes 8+ hours for me on RPI2 make -j4 buildkernel KERNCONF=RPI2 # This takes an hour or less on RPI2 # Plug in serial cable and connect/login for following steps shutdown now cd /usr/src make installkernel mount -u / swapon -a mergemaster -p make installworld mergemaster -iF make delete-old shutdown -r now # Serial cable not needed after this step unless there is a problem portsnap fetch update portmaster -Raf cd /usr/src make delete-old-libs This process recently took me up to 11.0-CURRENT r287441 without a hiccup on the RPI2. Hope it helps. If anyone sees anything obvious that I didn't do that I should have for the upgrade process, feel free to speak up. Also, powerd definitely works on RPI2. Having it enabled (allowing stepped up CPU speeds under load) decreases the build world time by hours - at least for me. Your mileage may vary. Kris