From owner-freebsd-cloud@freebsd.org Thu Aug 29 04:15:03 2019 Return-Path: Delivered-To: freebsd-cloud@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 9A43AC88B4 for ; Thu, 29 Aug 2019 04:15:03 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id 46Jq5J3x9mz49Gl for ; Thu, 29 Aug 2019 04:14:59 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.15.2/8.15.2) with ESMTP id x7T4EnXq076391 for ; Wed, 28 Aug 2019 21:14:49 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.15.2/8.15.2/Submit) id x7T4Ens4076390 for freebsd-cloud@freebsd.org; Wed, 28 Aug 2019 21:14:49 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Wed, 28 Aug 2019 21:14:48 -0700 From: Greg Lewis To: freebsd-cloud@freebsd.org Subject: Problem building aarch64 AMI on 11/amd64 Message-ID: <20190829041448.GA76344@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.12.1 (2019-06-15) X-Rspamd-Queue-Id: 46Jq5J3x9mz49Gl X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of glewis@eyesbeyond.com has no SPF policy when checking 71.39.140.16) smtp.mailfrom=glewis@eyesbeyond.com X-Spamd-Result: default: False [0.54 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.49)[-0.487,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-cloud@freebsd.org]; HAS_XAW(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.31)[0.310,0]; TO_DN_NONE(0.00)[]; NEURAL_HAM_SHORT(-0.27)[-0.267,0]; DMARC_NA(0.00)[eyesbeyond.com]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:71.39.128.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.02)[asn: 209(-0.04), country: US(-0.05)] X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2019 04:15:03 -0000 Hi all, I'm attempting to build a FreeBSD 11.3/aarch64 AMI for EC2 based on the instructions in https://lists.freebsd.org/pipermail/freebsd-cloud/2015-April/000015.html on my FreeBSD 11.3/amd64 box. My command line looks like this: cd /usr/src/release && make WITH_CLOUDWARE=YES AWSKEYFILE=/root/aws-freebsd-release-upload.key AWSREGION=us-west-2 AWSBUCKET=battleblow-freebsd-release-staging TARGET=arm64 TARGET_ARCH=aarch64 ec2ami Everything appears to be going well up until the image creation stage, where I see this: - Creating image... Please wait. mkimg: partition 1: No such file or directory - This leaves me with a zero size ec2.raw, which causes the upload to be rejected. The ec2.img file is around 2G, so I'm guessing at this point that the error is in using mkimg to convert from one to the other? Building an amd64 image (i.e., leaving out the TARGET and TARGET_ARCH specifications) does work an produces an ec2.raw around 2G in size. I was wondering if anyone else has tried the cross build on 11.3 and if they saw anything similar? If not I'll continue to dig. (Note that I'm leaving out the buildworld and buildkernel command line, but it had the same TARGET* specifications and I can see that built in /usr/obj) Note that the problem I'm really trying to solve here is to get access to a FreeBSD 11/aarch64 host. EC2 is just a path to that, so if anyone has an existing AMI or another way to do that other than buy hardware that would work for me too :). -- Greg