From owner-freebsd-arm@freebsd.org Tue Feb 13 19:22:38 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7437DF1C9B8 for ; Tue, 13 Feb 2018 19:22:38 +0000 (UTC) (envelope-from timur@codeaurora.org) Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) (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 105946BB97 for ; Tue, 13 Feb 2018 19:22:37 +0000 (UTC) (envelope-from timur@codeaurora.org) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 15A7260F72; Tue, 13 Feb 2018 19:22:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518549751; bh=t9SvPjonKskP2BJmC4LLWu1ufE8UHXYqOLoyTdquUAs=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=PP8pt6fH19joq4rvO+gV6vW2CiXRA8xhZUGjhex5GLcud245IDJBxcqpJdR0KSMJv Y53PyvmczJlUNziJ5wMlh7Vd8vzLGJOcveIR/dLkzpzziKRVB+0E7rXSZt0NMt+acF Y2VlvTYjQCLpqmbbuwMCuljYdBaqJZI1clrrrJqQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: timur@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2172A60F71 for ; Tue, 13 Feb 2018 19:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1518549750; bh=t9SvPjonKskP2BJmC4LLWu1ufE8UHXYqOLoyTdquUAs=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=nZcJPjVci3xvL8iEic2VHpc40xRMCx16y7ddS1geEMnGh+e+MXXEXyWAY0m67+gEW zTOctC0Hq7zzNgI5oqMjVPQb+JujlODnYcyTFm70iiuH0JN3pWvT8zNoKJjTfJ3w0a OEv5x6LmvQwlqJ07qGiwctxx6XqkIGt1vAu3j+64= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2172A60F71 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=timur@codeaurora.org Received: by mail-oi0-f51.google.com with SMTP id 4so14696668ois.10 for ; Tue, 13 Feb 2018 11:22:30 -0800 (PST) X-Gm-Message-State: APf1xPBdcveTGeufMER8f8+XXuYBJ2PSxOsWbVbMZXFy7dYYp4BNUisP W/fT9TpmfzK+iAocNvv2dUWZ9hb4084uDj4wZ3s= X-Google-Smtp-Source: AH8x224iGc1oSaDp8iBED0/+tn0eKy4qs+v9ypP6xOJcEs9aB07IoH6v8JB4fHgPvfU50QRplxwbPi11G40UOBYe1Fc= X-Received: by 10.202.79.214 with SMTP id d205mr1639021oib.308.1518549749412; Tue, 13 Feb 2018 11:22:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.112.131 with HTTP; Tue, 13 Feb 2018 11:22:28 -0800 (PST) In-Reply-To: <20180209172005.0b787bca.freebsd.ed.lists@sumeritec.com> References: <20180209172005.0b787bca.freebsd.ed.lists@sumeritec.com> From: Timur Tabi Date: Tue, 13 Feb 2018 13:22:28 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Confused about ARM64 cross-compilation To: Erich Dollansky Cc: Timur Tabi , freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2018 19:22:38 -0000 On Fri, Feb 9, 2018 at 3:20 AM, Erich Dollansky 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.