From owner-freebsd-arm@freebsd.org Thu Oct 19 01:40:24 2017 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 5C5FDE49468 for ; Thu, 19 Oct 2017 01:40:24 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [69.239.235.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1583572144 for ; Thu, 19 Oct 2017 01:40:23 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id v9J1eQxY003943 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 18 Oct 2017 18:40:27 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id v9J1eQm0003942; Wed, 18 Oct 2017 18:40:26 -0700 (PDT) (envelope-from fbsd) Date: Wed, 18 Oct 2017 18:40:26 -0700 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Re: Difficulty with armv6 to v7 transition. Message-ID: <20171019014026.GA3887@www.zefox.net> References: <20171009175216.GA52497@www.zefox.net> <1507573171.84167.9.camel@freebsd.org> <20171011023356.GA57571@www.zefox.net> <20171011030021.GB57571@www.zefox.net> <20171013020604.GA70845@www.zefox.net> <20171013175943.GA74121@www.zefox.net> <20171016035716.GA92612@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171016035716.GA92612@www.zefox.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2017 01:40:24 -0000 Using the old v6 kernel to build a new v7 world finally worked, after a pmap panic was worked around. Rebooted to the v7 kernel and ran installworld in single user, with the following error: strip: elf_begin() failed: Invalid argument install: strip command strip failed on //usr/bin/clang The double slash looks like it might be a typo. After going to multi-user it looks as if clang didn't install at all. If someone can suggest a workaround it would be much appreciated. Thanks for reading! bob prohaska On Sun, Oct 15, 2017 at 08:57:17PM -0700, bob prohaska wrote: > With the kernel at r324562, /usr/src at r324599, /usr/src/Makefile.inc1 > showing > #.if make(buildworld) > #BUILD_ARCH!= uname -p > BUILD_ARCH!= echo armv7 > #.if ${MACHINE_ARCH} != ${BUILD_ARCH} > #.error To cross-build, set TARGET_ARCH. > #.endif > #.endif > and /etc/make.conf containing > > KERNCONF=RPI2 > TARGET=arm > TARGET_ARCH=armv7 > DESTDIR=/ > > make buildworld ran until it crashed with a PT2MAP panic, as it has done > many times before. The log file reached 26 MB, it probably had to go a > little over 30 MB to finish. > > The console, top and logfile are at > http://www.zefox.net/~fbsd/rpi2/crashes/crash_10_15_17/ > > The machine has been rebooted to a v6 kernel which has built world > in the past, r322520, though it too has crashed with PT2MAP errors > at least once. /usr/src/Makefile.inc1 has been restored and buildworld > restarted with > make -j4 buildworld TARGET_ARCH=armv7 > buildworld.log & > There are no immediate errors, I'll let the build run unless > someone suggests a reason to try something else. > > The reply threads have become somewhat tangled, I'll trim here > for sake of brevity. > > Thanks for reading!! > > bob prohaska >