From owner-freebsd-questions@freebsd.org Mon Dec 9 17:02:41 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 24DCF1DADF6 for ; Mon, 9 Dec 2019 17:02:41 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter02.peak.org (filter02.peak.org [207.55.16.93]) (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 47WqHz2Pvhz3Lc4 for ; Mon, 9 Dec 2019 17:02:38 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta01.peak.org ([207.55.16.111]) by filter02.peak.org ({c0e096ac-ab76-477d-8a9d-eab3e47a6d30}) via TCP (outbound) with ESMTPS id 20191209170230066_0000 for ; Mon, 09 Dec 2019 09:02:30 -0800 X-RC-FROM: X-RC-RCPT: Received: from localhost (localhost [127.0.0.1]) by zmail-mta01.peak.org (Postfix) with ESMTP id 7C8AB98212 for ; Mon, 9 Dec 2019 09:02:29 -0800 (PST) Received: from zmail-mta01.peak.org ([127.0.0.1]) by localhost (zmail-mta01.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WQi1FhowOqts for ; Mon, 9 Dec 2019 09:02:29 -0800 (PST) Received: from mailproxy-lb-01.peak.org (mailproxy-lb-01.peak.org [207.55.17.91]) by zmail-mta01.peak.org (Postfix) with ESMTP id 3E497982C4 for ; Mon, 9 Dec 2019 09:02:29 -0800 (PST) Received: from localhost.localnet ([127.0.0.1] helo=elm.localnet) by elm.localnet with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1ieMQT-000PJd-4l for freebsd-questions@freebsd.org; Mon, 09 Dec 2019 09:02:25 -0800 Received: (from carlj@localhost) by elm.localnet (8.15.2/8.15.2/Submit) id xB9H2OCN097316; Mon, 9 Dec 2019 09:02:24 -0800 (PST) (envelope-from carlj) From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: freebsd-questions Digest, Vol 809, Issue 1 References: <20191209143415.GA22252@thismonkey.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Mon, 09 Dec 2019 09:02:24 -0800 In-Reply-To: <20191209143415.GA22252@thismonkey.com> (Scott Aitken's message of "Tue, 10 Dec 2019 01:34:15 +1100") Message-ID: <865zipbffj.fsf@elm.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 X-Rspamd-Queue-Id: 47WqHz2Pvhz3Lc4 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=peak.org; spf=pass (mx1.freebsd.org: domain of carlj@peak.org designates 207.55.16.93 as permitted sender) smtp.mailfrom=carlj@peak.org X-Spamd-Result: default: False [-2.90 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-0.01)[asn: 13868(0.02), country: US(-0.05)]; DMARC_POLICY_ALLOW(-0.50)[peak.org,none]; RCVD_IN_DNSWL_LOW(-0.10)[93.16.55.207.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:207.55.0.0/17, country:US]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Dec 2019 17:02:41 -0000 Scott Aitken writes: > Unfortunately I'm using an SD image from the FreeBSD website which doesn't > have a swap partition, and then chews up any free space with 'growfs' on > first boot. (Something to remember for next time - add swap before growfs > runs). > > So I don't have any swap. I had forgotten about that when I first posted. > (I could plug in a USB stick for swap). > > Still if anyone has had success in cross-compiling in Go for arm I'd I'd love > to know. I had set up a swap partition after I used dd to put the image on the card, and before I booted the image. You can use a USB device, or you can just try a swapfile[1]. I just tested the following sequence: #-------------- Start code snip dd if=/dev/zero of=/var/swapfile bs=1m count=200 echo 'md none swap sw,late,file=/var/swapfile 0 0' >>/etc/fstab swapon -aL #-------------- End code snip That will give you 200MB on a swapfile, which I think will be enough. You can try more if you want, but a swap partition would probably be better. [1] - The handbook also shows how to create a swapfile at: https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html -- Carl Johnson carlj@peak.org