From owner-freebsd-arm@freebsd.org Wed Apr 6 20:40:02 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92810B0638B for ; Wed, 6 Apr 2016 20:40:02 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x22a.google.com (mail-vk0-x22a.google.com [IPv6:2607:f8b0:400c:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DC711F2B; Wed, 6 Apr 2016 20:40:02 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-vk0-x22a.google.com with SMTP id e185so74047025vkb.1; Wed, 06 Apr 2016 13:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=qiEWH05pop4QKpMmgfGfAWRvAyy1Vgk5PdP7OK2ZCDY=; b=gagdPSYLoxUozDKTas1fHpJuHidNMdz0Vp6UEf6VRn6upQ1xs+hQZDGjW78yYjz4w/ LSdugdQkmWFKiZXdwDKstIVlDv7tnsAkz4Quhr4TlQIrT2/oGCHsWfhmHBN9phgDWzaq 4GY+HZeWk8bDDvClnKQH+nt9/rSIspIF8Bgwn4AE60NuKLTBpJ+Pnq0FLapsOREvKAl6 P/6Utahg7OU+D3YDe2nYjyrJy/NWzZDZs26cHjoQVUNaD1ajAztwKnP4oZ6xnQFnPTxr nqQol8Gb9q0FydzFAv2mMVW9A5jHu2zfENd8UQrYoLwwinrpPP7zZJYwnRvK4NQjTulT yKzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=qiEWH05pop4QKpMmgfGfAWRvAyy1Vgk5PdP7OK2ZCDY=; b=l0FxUaxfkqnZBBlp5G+BsZcowCRDINVaIPjxKMnf7E22yi/AjzLDykxpqcNPTNYTd9 gHZv3npb23/30M3hZhKzHuY3VXzjexc7Q6cbFd3+XJMKRwmcEGdBoPs2GkCfNI90ooiQ 5pXg/izTygKvOWIuYN5eJbe4eBUHQvQ/UwDl4jHBeNoWPJDgLYdOx81M9ma6sE4BTUjL d6b7oTTgujsofzex26eCmogttYNUWbeGtBEpMi/93k+MGIuqpHX7KmxyWH3UlPUxs7ys ECGqg2jPAN1oVrn+vTVaF0Q7w+yB1u7X750YHlV9F9EoUw/vHAeImmPJG/nRo9cXnh8H tm1A== X-Gm-Message-State: AD7BkJIAaKLyFM1wD+GAGwrFPahZXelJfEi1QU/5qrEO2XpMef/kumU9aue2mWDgLPM9EBw7Kov+u11p3y5jIQ== MIME-Version: 1.0 X-Received: by 10.31.45.143 with SMTP id t137mr13536639vkt.143.1459975201445; Wed, 06 Apr 2016 13:40:01 -0700 (PDT) Received: by 10.31.54.13 with HTTP; Wed, 6 Apr 2016 13:40:01 -0700 (PDT) In-Reply-To: <1459974288.1091.284.camel@freebsd.org> References: <20160403193538.4390989.68535.4518@gmail.com> <1459974288.1091.284.camel@freebsd.org> Date: Wed, 6 Apr 2016 13:40:01 -0700 Message-ID: Subject: Re: Installworld failed From: Russell Haley To: Ian Lepore Cc: Warner Losh , freebsd-arm Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2016 20:40:02 -0000 There is also a little tidbit in a previous email about setting up NFS to work with u-boot. And there is nothing in there about getting u-boot from ports. I added myself as a wiki user yesterday, but I don't have any edit permissions. I'd be happy to update things, but without using the wiki markup (i.e. update it offline) I would be concerned about losing the formatting. Perhaps I could be given a duplicate page I could update for someone to approve? On Wed, Apr 6, 2016 at 1:24 PM, Ian Lepore wrote: > On Tue, 2016-04-05 at 23:14 -0700, Russell Haley wrote: >> On Sun, Apr 3, 2016 at 12:35 PM, Russell Haley wrote: >> >> > > [mixed top/bottom posting stuff trimmed] >> > >> > This usually is because MAKEOBJDIRPREFIX isn't set anymore >> > now that you are root. >> > >> >> So what's interesting for me is I've always run my cross builds in a jail >> and just run it from /usr/src. The idea that I don't need sudo to build >> (just install) is new to me. >> >> I tried adding MAKEOBJDIRPREFIX=$(PWD)/../obj to all my make commands but >> that didn't work (and later noted Ian's script indicates this is an issue). >> I lucked out and found something that said sudo can retain the current >> users environment. The FreeBSD flag is -E. So I tried that with limited >> success. The final problem was my destdir was not an absolute path. SO the >> update to the wiki would be: >> >> export MAKEOBJDIRPREFIX=$(pwd)/obj >> export DEST=$(pwd)/nfsroot >> >> cd src >> make buildworld TARGET_ARCH=armv6 >> make buildkernel TARGET_ARCH=armv6 KERNCONF=IMX6 >> >> sudo -E make installworld TARGET_ARCH=armv6 DESTDIR=$DEST >> sudo -E make distribution TARGET_ARCH=armv6 DESTDIR=$DEST >> sudo -E make installkernelTARGET_ARCH=armv6 KERNCONF=IMX6 DESTDIR=$DEST >> >> Alternatively I tested DESTDIR as DESTDIR=$(pwd)/../nfsroot which also >> worked. >> >> So now after looking back at Ian's cross build script further down, my >> question is why doesn't it fail due to the same issue? >> >> Thanks, >> >> Russ > > Doh! It works for me because my sudoers file contains: > > Defaults env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR PACKAGEROOT PACKAGESITE PKGDIR" > Defaults env_keep += "TMPDIR FTP_PASSIVE_MODE XDG_SESSION_COOKIE" > Defaults env_keep += "PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF" > Defaults env_keep += "MAKEOBJDIRPREFIX MODULES_OVERRIDE SUBDIR_OVERRIDE" > > I guess I should mention that on the wiki page. > > -- Ian