From nobody Mon Apr 25 19:54:16 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1E8E01990B00 for ; Mon, 25 Apr 2022 19:54:34 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KnG1j3CP9z4kSx for ; Mon, 25 Apr 2022 19:54:33 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vs1-xe2e.google.com with SMTP id j16so15476045vsv.2 for ; Mon, 25 Apr 2022 12:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PO1L6o1655IuM20neb68k1neQno+avXcN3bk2i1kjgg=; b=m6wqdXlrj9ZRg69LDuRJMJhbCK5bjgGCRENICh6nGwJ6eDRlFxejc/pTz1L5ugEOMc YWAmBXJu2/ddv5D8yJK/wrf0CQ1IxVCiz6a0sYvvc4jlced0x6RsM7f+SpI1fOe6EabZ fjtGDqDw412ejVoGYGXxk2Ynpa9fyQYVJe6YOXMvnk2Qqmx7Azgo50kRHQMxiJgWtEWx cPl25QjRA4UKnGef/fzs/0tcrbHOhg5o7Bs7MofkFtItVA82RC5rPrcfF4YnhD5+eecK DCHc9yrJ1CFVANl0TjGVBd3HbUzf4wxnAhRfof1bjmnxvvnpEqeRbWK0M0LZBvfgaos6 WymQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PO1L6o1655IuM20neb68k1neQno+avXcN3bk2i1kjgg=; b=V9F5GXFeyxE9kGkzFzGUZExae61bWxONe00gMO5DNfgmGf/NYYJ2TW/1bcfMhGYZ+7 RTy+O/fICQsvjKuxujidDnFob+WyM+JJrkCMpCiHot4tAyegOLD+QD/bF1Zwn9z5Ng2n 7oNKBJ/1T1IUEAwwW2NKdtSx3UjeRhNnWKfF/XYhpVqtGSxga/zBfdjIQq5DYLd9jkjt DK+whnXUEkaGqdTjWTdkBklbU42iOqnMDhL/P1FhdTZHYivm68ZjhctOh9MZjtP7mRqr KW/CworAGlnufRIJ2UWaV1nJYJD8oKV0Q73ZFrXOVKp8Spl7OjMgBLot1Jri986h7iWH IsdA== X-Gm-Message-State: AOAM530IGA9x//6JltQTOzaxht89J2XlAR1Mj8qrpgVNAWJWCdKQIwBr HYc6mi5uVrgjphqTY5TcOjZUJGIWqLAvyYGx5StvQhMxbFw= X-Google-Smtp-Source: ABdhPJwUuKazgL1dPvgwD4gfe5HVo2ijsH7YtHMyoL7OvJtzxLR+cNAoesqcCDJAYbsiOujtMsjgctcZm1447oOkFBc= X-Received: by 2002:a05:6102:956:b0:32a:6820:36bf with SMTP id a22-20020a056102095600b0032a682036bfmr5517209vsi.42.1650916467447; Mon, 25 Apr 2022 12:54:27 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <3D48BE93-7D42-4AB2-82D4-88BBF4E1FD40@hausen.com> <20220425191823.GA89506@spindle.one-eyed-alien.net> <7FA0C88D-4446-47DD-BBC0-3300B26D6A27@hausen.com> In-Reply-To: <7FA0C88D-4446-47DD-BBC0-3300B26D6A27@hausen.com> From: Warner Losh Date: Mon, 25 Apr 2022 13:54:16 -0600 Message-ID: Subject: Re: Cross-compile worked, cross-install not so much ... To: "Patrick M. Hausen" Cc: Brooks Davis , "freebsd-current@freebsd.org" Content-Type: multipart/alternative; boundary="00000000000098c21e05dd7ff114" X-Rspamd-Queue-Id: 4KnG1j3CP9z4kSx X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=m6wqdXlr; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::e2e) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-2.95 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; NEURAL_HAM_SHORT(-0.95)[-0.950]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::e2e:from]; MLMMJ_DEST(0.00)[freebsd-current]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --00000000000098c21e05dd7ff114 Content-Type: text/plain; charset="UTF-8" On Mon, Apr 25, 2022 at 1:26 PM Patrick M. Hausen wrote: > Hi, > > > Am 25.04.2022 um 21:18 schrieb Brooks Davis : > > Cross install is not supported. As you have seen, certain tools are > > bootstrapped on the build host and used during the install process. You > > might be able to get away with nuking > > /usr/obj/usr/src/arm64.aarch64/tmp/legacy (or maybe tmp) and then > > running `make toolchain` to build native versions of those tools. > > that comes as a big surprise and disappointment. What is the point of > cross-compiling, then? > How to update a small slow embedded platform? > Cross installing is supported. Native installing of a cross build world isn't. When I've had to do this in the past, I've just mounted the embedded system on my beefy server under /mumble (allowing root on the embedded system for NFS) and did a sudo make installworld ... DESTDIR=/mumble. Though I've forgotten the gymnastics to do etcupdate/mergemaster this way. Warner > I tried your suggestion - unfortunately no worky: > > cd /usr/src/tools/build; make DIRPRFX=tools/build/ > DESTDIR=/usr/obj/usr/src/arm64.aarch64/tmp/legacy host-symlinks > Linking host tools into /usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin > cp: chflags: /usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin/basename: > Operation not supported > *** Error code 1 > > So I will probably need to checkout and compile on the Pi. What are typical > build times on a CM3+? Plus I am going to wear down the builtin eMMC much > faster. > > Kind regards and thanks, > Patrick > --00000000000098c21e05dd7ff114 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Apr 25, 2022 at 1:26 PM Patri= ck M. Hausen <pmh@hausen.com> w= rote:
Hi,

> Am 25.04.2022 um 21:18 schrieb Brooks Davis <brooks@freebsd.org>:
> Cross install is not supported.=C2=A0 As you have seen, certain tools = are
> bootstrapped on the build host and used during the install process.=C2= =A0 You
> might be able to get away with nuking
> /usr/obj/usr/src/arm64.aarch64/tmp/legacy (or maybe tmp) and then
> running `make toolchain` to build native versions of those tools.

that comes as a big surprise and disappointment. What is the point of cross= -compiling, then?
How to update a small slow embedded platform?

Cross installing is supported. Native installing of a cross build wo= rld isn't.

When I've had to do this in the= past, I've just mounted the embedded system on my
beefy serv= er under /mumble (allowing root on the embedded system for NFS) and did
a sudo make installworld ... DESTDIR=3D/mumble. Though I've forg= otten the gymnastics
to do etcupdate/mergemaster this way.
<= div>
Warner
=C2=A0
I tried your suggestion - unfortunately no worky:

cd /usr/src/tools/build;=C2=A0 make DIRPRFX=3Dtools/build/ DESTDIR=3D/usr/o= bj/usr/src/arm64.aarch64/tmp/legacy host-symlinks
Linking host tools into /usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin
cp: chflags: /usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin/basename: Operat= ion not supported
*** Error code 1

So I will probably need to checkout and compile on the Pi. What are typical=
build times on a CM3+? Plus I am going to wear down the builtin eMMC much f= aster.

Kind regards and thanks,
Patrick
--00000000000098c21e05dd7ff114--