Problem building aarch64 AMI on 11/amd64
Greg Lewis
glewis at eyesbeyond.com
Thu Aug 29 04:15:03 UTC 2019
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
More information about the freebsd-cloud
mailing list