Date: Wed, 6 Apr 2016 13:40:01 -0700 From: Russell Haley <russ.haley@gmail.com> To: Ian Lepore <ian@freebsd.org> Cc: Warner Losh <imp@bsdimp.com>, freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: Installworld failed Message-ID: <CABx9NuR08znyJ6Am-YnFV5Vf8ey3uonXKj8zqQxEEx42O3hOmA@mail.gmail.com> In-Reply-To: <1459974288.1091.284.camel@freebsd.org> References: <CABx9NuR_ykXYnwtiamdBij%2B2wwKcXW1VJndEsX=iae%2B4ji4udw@mail.gmail.com> <CANCZdfoRgxNbT-OnCxDQ2kT7DNmS6C7J2jEQVwhM22bZBAe3HQ@mail.gmail.com> <20160403193538.4390989.68535.4518@gmail.com> <CABx9NuS-NwmAr0PB8htigZYuetHegP8vBAbtN5=oXKeLp6%2BK2A@mail.gmail.com> <1459974288.1091.284.camel@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ian@freebsd.org> wrote: > On Tue, 2016-04-05 at 23:14 -0700, Russell Haley wrote: >> On Sun, Apr 3, 2016 at 12:35 PM, Russell Haley <russ.haley@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABx9NuR08znyJ6Am-YnFV5Vf8ey3uonXKj8zqQxEEx42O3hOmA>