From owner-freebsd-arm@freebsd.org Mon Jan 2 19:07:53 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 31FFBC9B5CA for ; Mon, 2 Jan 2017 19:07:53 +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 12F6B1F0B for ; Mon, 2 Jan 2017 19:07:52 +0000 (UTC) (envelope-from tim@kientzle.com) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id v02J7oaA021558; Mon, 2 Jan 2017 19:07:50 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.106] (192.168.1.101 [192.168.1.101]) by kientzle.com with SMTP id v88iaatd4eqn45ssnp648kex4e; Mon, 02 Jan 2017 19:07:50 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: aarch64 on pi3 advice From: Tim Kientzle In-Reply-To: <05fee124-ad8f-43e8-79d9-ccb99bc83214@zyxst.net> Date: Mon, 2 Jan 2017 11:07:49 -0800 Cc: freebsd-arm Content-Transfer-Encoding: 7bit Message-Id: References: <05fee124-ad8f-43e8-79d9-ccb99bc83214@zyxst.net> To: tech-lists 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: Mon, 02 Jan 2017 19:07:53 -0000 > On Jan 2, 2017, at 3:54 AM, tech-lists wrote: > > Hello list, > > I've installed aarch64/pi3 cross-compiling on an i7 via crochet onto a > pi3 machine and it seems to work well. Please advise: > > 0. I've fount a config.txt in /boot/efi. Where can I set the speed & > memory/GPU and what's the syntax? > > 1. Can I mount /usr/ports on say a usb stick, compile from there and > expect it to install OK? /usr/ports would be a symlink to > /32GB-usbkey/ports. I see that ld & ldd are present, so I guess I can > compile from ports? Compiling from ports directly on the board should always work. If you're familiar with building ports on other FreeBSD systems, this is probably the easiest approach. For some architectures, pre-built packages are available. I've not played with arm64 enough to be familiar with the situation there. > 2. I'd like to strip out WITNESS and friends and recompile the kernel. > Can I do this on the rpi3 and expect it to work? You should expect it to work. Of course, arm64 support is very new, so there could be issues. > Should I? Or should I just do this on the faster i7? It should work either way. Doing it on the rpi3 is a very good torture test of the system, but doing it on the i7 is likely going to be faster. (At one point, I had a spare RPi where I did weekly native system builds and upgrades for almost a year. I was pleasantly surprised at how stable it was.) > > 3. If I have to go down the route of cross-compiling another image on > the i7, is there a way I can also install a selection of ports to the > image before using the image on the pi3? Crochet has a couple of options for pre-installing packages to the generated image. There are still some rough edges, though. A few patches were recently submitted that may fix the worst of the problems. Tim