From owner-freebsd-arm@freebsd.org Fri May 20 02:16:37 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 45A3FB43E68 for ; Fri, 20 May 2016 02:16:37 +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 ED45B1189 for ; Fri, 20 May 2016 02:16:36 +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 u4K2GYVx037406 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 19 May 2016 19:16:35 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id u4K2GX2T037405; Thu, 19 May 2016 19:16:33 -0700 (PDT) (envelope-from fbsd) Date: Thu, 19 May 2016 19:16:33 -0700 From: bob prohaska To: David Cornejo Cc: freebsd-arm Subject: Re: upgrading arm6hf Message-ID: <20160520021633.GG1049@www.zefox.net> References: <20160519232102.GF1049@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160519232102.GF1049@www.zefox.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2016 02:16:37 -0000 On my RPI2 the OS build/install cycle stopped at installkernel (sorry, not buildworld) reporting an unknown architecture. Using TARGET_ARCH=armv6 allowed the kernel install to complete, with a normal reboot. However, an attempt to update and re-run buildworld without options triggered the error bmake[1]: "/usr/src/Makefile.inc1" line 242: Unknown target armv6hf:arm. Invoking buildworld with TARGET_ARCH=armv6 then produces bmake[1]: "/usr/src/Makefile.inc1" line 266: To cross-build, set TARGET_ARCH. World and kernel were thus built with no options but the kernel was installed with TARGET_ARCH=armv6, apparently causing an identity crisis 8-) Uname -a reports FreeBSD www.zefox.com 11.0-CURRENT FreeBSD 11.0-CURRENT #100 r300176M: Thu May 19 15:08:18 PDT 2016 root@www.zefox .com:/usr/obj/usr/src/sys/RPI2 arm What's the best way to repair the damage? Thanks for reading, bob prohaska On Thu, May 19, 2016 at 04:21:02PM -0700, bob prohaska wrote: > On RPI2 > > make installworld TARGET_ARCH=armv6 > > was sufficient. > > The only visible glitch on reboot was > > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 03 c9 6b a8 00 00 28 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > > but that seems unrelated. Boot was otherwise normal. > > bob prohaska > > On Wed, May 18, 2016 at 12:24:21PM -1000, David Cornejo wrote: > > I am trying that now, I'll report back when it finishes > > > > thanks! > > > > On Wed, May 18, 2016 at 12:12 PM, Warner Losh wrote: > > > I believe, but I haven't tested, that all that should be required is > > > an installworld / installkernel. > > > You'll need to build with TARGET_ARCH=armv6 and may need to say DESTDIR=/ to get > > > around the cross-threading safety checks. > > > > > > Warner > > > > > > On Wed, May 18, 2016 at 1:40 PM, David Cornejo wrote: > > >> Hi, > > >> > > >> What needs to be done to convert an arm6hf system to the new > > >> hard-float arm6? can it be done? > > >> > > >> dave c > > >> _______________________________________________ > > >> freebsd-arm@freebsd.org mailing list > > >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"