From owner-freebsd-arm@freebsd.org Wed Jan 11 18:17:11 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 D8363CAB1A9 for ; Wed, 11 Jan 2017 18:17:11 +0000 (UTC) (envelope-from rj@obsigna.com) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 78DEB1EBC for ; Wed, 11 Jan 2017 18:17:11 +0000 (UTC) (envelope-from rj@obsigna.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1484158628; l=2253; s=domk; d=obsigna.com; h=To:References:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From: Subject:Mime-Version:Content-Type; bh=s2rZe+oqIJAnDjnuDD7YZ0Y5Adap9gFSMT3FLj8QyqA=; b=ynt6ftkMpslqk7inHdOThD8cLV4ZgMd9Qmv+kh8IRoeczZqa3f5U23fYPS8964ZRH6 CIT161KOKKjxf/5knM3xy+CRCHKDGitMw/mvRuecHvR3oYcvpyf2T7feql8N+AFPDeLK mxuXLcxEtVrwQjj8TzAst47eX7ziRy//TS5OQ= X-RZG-AUTH: :O2kGeEG7b/pS1EK7WHa0hxqKZr4lnx6UhT0M0o35iAdWtoM07Gt3wQHFGhIh99LgMA== X-RZG-CLASS-ID: mo00 Received: from mail.obsigna.com (bb02ac17.virtua.com.br [187.2.172.23]) by smtp.strato.de (RZmta 39.11 DYNA|AUTH) with ESMTPSA id q08b9dt0BIH7yFT (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 11 Jan 2017 19:17:07 +0100 (CET) Received: from rolf.projectworld.net (rolf.projectworld.net [192.168.222.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.obsigna.com (Postfix) with ESMTPSA id 73C447506D97; Wed, 11 Jan 2017 16:17:05 -0200 (BRST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: updating armv6 snapshots From: "Dr. Rolf Jansen" In-Reply-To: Date: Wed, 11 Jan 2017 16:17:04 -0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: "freebsd-arm@freebsd.org" X-Mailer: Apple Mail (2.3259) 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: Wed, 11 Jan 2017 18:17:11 -0000 > Am 11.01.2017 um 14:57 schrieb jungle Boogie = : >=20 > Hi All, >=20 > This question has likely been covered before but I don't see it listed > on the wiki: > https://wiki.freebsd.org/FreeBSD/arm/BeagleBoneBlack >=20 > If I'm on 12.0-CURRENT #0 r311461 on my beaglebone, what's the best > way to get to the latest snapshot? >=20 > I don't see src files for armv6 here: > https://download.freebsd.org/ftp/snapshots/arm/armv6/ >=20 > So does that mean the options are: > a) svnlite in /usr/src and do the build (any tips on making it = faster?) > b) save configs and install new ISO snapshot? >=20 > If b is the best option, all installed applications are lost. Is it > possible to save apps off the beaglebone and put back in respective > places on bbone's new ISO image, or would that cause ABI/API issues? >=20 > c) stick with r311461 > d) anything else? >=20 > Thanks for any input! I did already once the following: 1. installed sysutils/clone from the ports # pkg install clone 2. dd'd the latest snapshot onto a USB memstick and mounted /dev/da0s2a to /mnt 3. (optional) saved the changed settings in /etc and /boot 4. used several clone commands in synch mode for replacing the old snapshot installation by the new one using the following shell script #!/bin/sh clone -s -x local /mnt/usr /usr clone -s /mnt/sbin /sbin clone -s /mnt/rescue /rescue clone -s /mnt/libexec /libexec clone -s /mnt/lib /lib clone -s /mnt/bin /bin clone -s -x loader.conf /mnt/boot /boot clone -s -x = fstab:group:localtime:master.passwd:motd:passwd:pwd.db:rc.conf:rc.local:re= solv.conf:spwd.db:ssh:ssl /mnt /etc The above script operates on the live system, and replacing the old = installation by the new snapshot takes less then 10 min. You would need to check the exclude lists (-x) whether all your changed = settings are listed. /dev, /home, /media, /mnt, /proc, /root, /tmp, /usr/local, /var are left = untouched. If you feel more comfortable then first clone your boot device and do a = test upgrade on the clone. If you do a major upgrade (e.g. 11-CURRENT to 12-CURRENT) then you need = to rebuild the ports, of course. Best regards Rolf=