From owner-freebsd-arm@freebsd.org Mon Jan 2 18:11: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 349E4C9C055 for ; Mon, 2 Jan 2017 18:11:53 +0000 (UTC) (envelope-from lifanov@FreeBSD.org) Received: from mail.lifanov.com (mail.lifanov.com [206.125.175.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 15C3D10D2 for ; Mon, 2 Jan 2017 18:11:52 +0000 (UTC) (envelope-from lifanov@FreeBSD.org) Received: from [192.168.1.108] (unknown [107.15.73.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.lifanov.com (Postfix) with ESMTPSA id 91AC223979C for ; Mon, 2 Jan 2017 13:11:46 -0500 (EST) Subject: Re: aarch64 on pi3 advice To: freebsd-arm@freebsd.org References: From: Nikolai Lifanov Message-ID: Date: Mon, 2 Jan 2017 13:11:38 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="429B0aROS3FhA3Igs7fLFTCwfTgsfCk8O" 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 18:11:53 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --429B0aROS3FhA3Igs7fLFTCwfTgsfCk8O Content-Type: multipart/mixed; boundary="MjT4UMJnwbnENec65V8DkPNABbgju2O9Q"; protected-headers="v1" From: Nikolai Lifanov To: freebsd-arm@freebsd.org Message-ID: Subject: Re: aarch64 on pi3 advice References: In-Reply-To: --MjT4UMJnwbnENec65V8DkPNABbgju2O9Q Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 01/02/17 07:00, freebsd-arm-request@freebsd.org wrote: > Hello list, >=20 > I've installed aarch64/pi3 cross-compiling on an i7 via crochet onto a > pi3 machine and it seems to work well. Please advise: >=20 > 0. I've fount a config.txt in /boot/efi. Where can I set the speed & > memory/GPU and what's the syntax? >=20 > 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? >=20 > 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? Should I? Or should I > just do this on the faster i7? >=20 > 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? >=20 > Many thanks > -- J. Hi! There is a GENERIC-NODEBUG snippet for arm64/aarch64, which is what I've been using. If you go for instructions here, you can make it SMP too: https://kernelnomicon.org/?p=3D718. I also use WITH_SHARED_TOOLCHAIN and = a swap file and the rpi3 is completely self-hosting. You can also use FreeBSD 11 packages if you don't want to compile your ow= n: # env ABI=3DFreeBSD:11:aarch64 pkg install aarch64-binutils - Nikolai Lifanov --MjT4UMJnwbnENec65V8DkPNABbgju2O9Q-- --429B0aROS3FhA3Igs7fLFTCwfTgsfCk8O Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQKoBAEBCgCSFiEE5oT6TcuaWvG5gtjzZ6sv56ecR0UFAlhql+FfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEU2 ODRGQTREQ0I5QTVBRjFCOTgyRDhGMzY3QUIyRkU3QTc5QzQ3NDUUHGxpZmFub3ZA ZnJlZWJzZC5vcmcACgkQZ6sv56ecR0V/jRAAth6t/FLL2+ENO5EyHTKULCJLcOTG EIBz8ybAxNjApSgbWZNQTiKYpTF3U1+Olzt6sTaxhJI/XocamliMRpAUc80kWlAs bY+BA5F6fUwNF4jMpUFwroJhW4dpwkWrUt7Gf83rvt0jv8jYmt/ujbsf0J8neeQL nol+74EPLVaPryayfLHna1+S/+Yj07fP8zaVF/kBOqgsQIOdwsAXE94UFYyY0wnP WIAnle5hOVmMPN0uqfIwvbPYG3E9dFccKjPRq0LKFJOIqZh8Qy5TkO0D1hJtmO6J /jPiKu7lOsQzfySJJZDtkNLUrXh/YRiG7EyBq6dfbUF9lUDjzY3HGOBcbq/w0H0f bqrhc3cDGfFU6P1GVWU4wShZg7cKTE1d/MaFAkCGnCl8H5wkjEBPCekx3MZsLs7Z /XD/Jn0rXO0LYef+JxbYG2HBBHJGtVJ8UdR4Iji8qCVoZ5SyOFwZfFY/gH5SMc2X EfIWljBMBCVJVLsMUytpq5DZmQlInFuAPhaxD2CUh2qKdd+5/SOuIWwFnNOtAMA+ 33S8Mt20lgMmub7tUwPODFB/voG7/nby94kzQgUST/el2efenMeiOfOVTp+VUtcg EFZU3qdLk6vqPIe0qOBxQlE5THDLotKK1pYUlUCQppdPcfQnhrP6LajNpmLRsPf5 mqAYroIGKeUjpgo= =rZk8 -----END PGP SIGNATURE----- --429B0aROS3FhA3Igs7fLFTCwfTgsfCk8O--