Confused about ARM64 cross-compilation

Timur Tabi timur at codeaurora.org
Tue Feb 13 19:22:38 UTC 2018


On Fri, Feb 9, 2018 at 3:20 AM, Erich Dollansky
<freebsd.ed.lists at sumeritec.com> wrote:

> when I did arm64 compilations, I used CURRENT as certain things did not
> work in older versions. You might also try 12.0 or CURRENT.
>
> FreeBSD cross compiles out of the box. Of course, only for supported
> targets.

arm64_build.sh produces several errors when it tries to setup the
rootfs for QEMU, which I'm not using.

 KERNEL=kernel install
thiskernel=`sysctl -n kern.bootfile` ;  if [ ! "`dirname
"$thiskernel"`" -ef
/usr/home/ubuntu/arm64-workspace/rootfs/boot/kernel ] ; then  chflags
-R noschg /usr/home/ubuntu/arm64-workspace/rootfs/boot/kernel ;  rm
-rf /usr/home/ubuntu/arm64-workspace/rootfs/boot/kernel ;  rm -rf
/usr/home/ubuntu/arm64-workspace/rootfs/usr/lib/debug/boot/kernel ;
else  if [ -d /usr/home/ubuntu/arm64-workspace/rootfs/boot/kernel.old
] ; then  chflags -R noschg
/usr/home/ubuntu/arm64-workspace/rootfs/boot/kernel.old ;  rm -rf
/usr/home/ubuntu/arm64-workspace/rootfs/boot/kernel.old ;  fi ;  mv
/usr/home/ubuntu/arm64-workspace/rootfs/boot/kernel
/usr/home/ubuntu/arm64-workspace/rootfs/boot/kernel.old ;  if [ -n
"/usr/lib/debug" -a  -d
/usr/home/ubuntu/arm64-workspace/rootfs/usr/lib/debug/boot/kernel ];
then  rm -rf /usr/home/ubuntu/arm64-workspace/rootfs/usr/lib/debug/boot/kernel.old
;  mv /usr/home/ubuntu/arm64-workspace/rootfs/usr/lib/debug/boot/kernel
/usr/home/ubuntu/arm64-workspace/rootfs/usr/lib/debug/boot/kernel.old
;  fi ;  sysctl
kern.bootfile=/usr/home/ubuntu/arm64-workspace/rootfs/boot/kernel.old/"`basename
"$thiskernel"`" ;  fi
mkdir -p /usr/home/ubuntu/arm64-workspace/rootfs/boot/kernel
install -U -M /usr/home/ubuntu/arm64-workspace/rootfs//METALOG -D
/usr/home/ubuntu/arm64-workspace/rootfs -p -m 555 -o root -g wheel
kernel /usr/home/ubuntu/arm64-workspace/rootfs/boot/kernel/
mkdir -p /usr/home/ubuntu/arm64-workspace/rootfs/usr/lib/debug/boot/kernel
install -U -M /usr/home/ubuntu/arm64-workspace/rootfs//METALOG -D
/usr/home/ubuntu/arm64-workspace/rootfs -p -m 555 -o root -g wheel
kernel.debug /usr/home/ubuntu/arm64-workspace/rootfs/usr/lib/debug/boot/kernel/
--------------------------------------------------------------
>>> Installing kernel GENERIC completed on Tue Feb 13 12:47:40 CST 2018
--------------------------------------------------------------
METALOG:10: warning: tags: unsupported keyword
METALOG:56: warning: duplicate definition of var
METALOG:59: warning: tags: unsupported keyword
METALOG:60: warning: tags: unsupported keyword

The METALOG errors continue for another 22,000 lines.

Should I just edit the script to abort before it starts doing this, or
is it failing because I don't have QEMU installed?

Also, why is that every time I run arm64_build.sh, it rebuilds almost
everything, even when I haven't changed any files?

-- 
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm
Technologies, Inc.  Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.


More information about the freebsd-arm mailing list