From owner-freebsd-arm@freebsd.org Fri May 20 04:46:20 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 3C73CB438A1 for ; Fri, 20 May 2016 04:46:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (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 0FBC51A78 for ; Fri, 20 May 2016 04:46:19 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x232.google.com with SMTP id p64so42020383ioi.2 for ; Thu, 19 May 2016 21:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=wBmL2r2cdbmeiafzsNUTba45rwH7C88XnHUcXaE/cic=; b=WZzLI3mRcKfFnN/iraAeASWj/0rVBMSS55B1E7S3l0f4D+eB0jkOGSra2LRaQu7kQ8 OWc0M14Dy0gieECRVwfAY6AwuLvKYoHRc7bnj5AQ20OOz2p6ras/L7QFxcA4ZiQ67e+Z oHR143BD+9fPUbJMcIVV7AyI5l+8/26WiWAUd8DuF/Qh6lqFY4ha8Vayaz89lAHmjAtw y4fssN5OfieAhHgp1AQ1WkSqOz+MWIuhVFEWMxPCH4YiDQlC+nkmrNyRuTHpLDHElDYv fwDb4hIv7/CUZMeBoRv0p+yQ9p1vhOKC8NHliVawmYDk5y4LP0YIR6W0TWI474cUzDPl uQjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=wBmL2r2cdbmeiafzsNUTba45rwH7C88XnHUcXaE/cic=; b=Rij0ebRpXlrUrZOYZzADtt38WDvqF6UGQejqKBHJlAgsRHvvEKQgTjCjU5j4veGlWE MENi1ROML6q9dFjzoyerG5DBqwY6vhskoKumzDYgMR0+oYltP8of2wCzPA6GdCq2QRbW cWel7ONw/lTbOPSdo26RkfjRqQl2cdSk601sDjFsrTaVJ2ec2IRc7McsYfERtMohbWcI b5R70cjhVroYGe9D9k0b7goVt7nFfayCUiyDlm78uFQIK6jHKnFEvyXD7Lgkoh1k71cq aqN7lvFmxqr704H1hRGAQjJfTPioAJkSa7FU4oOnfUA0qn29D0JKZzBYjrhL8FxQ0s0p OjBQ== X-Gm-Message-State: AOPr4FVD0sIz5qc4dbpECh2vuJXcVoxkAg7tNHLtlUFHuOnmRbufhwcZWQiRq0c5Xl5lhX0UnW12rtcim6tEBw== MIME-Version: 1.0 X-Received: by 10.107.40.201 with SMTP id o192mr1203709ioo.183.1463719579226; Thu, 19 May 2016 21:46:19 -0700 (PDT) Sender: wlosh@bsdimp.com Received: by 10.79.75.68 with HTTP; Thu, 19 May 2016 21:46:18 -0700 (PDT) X-Originating-IP: [50.253.99.174] In-Reply-To: <20160520021633.GG1049@www.zefox.net> References: <20160519232102.GF1049@www.zefox.net> <20160520021633.GG1049@www.zefox.net> Date: Thu, 19 May 2016 22:46:18 -0600 X-Google-Sender-Auth: U8enfQx6jalj26GCR9EW3mW3_xM Message-ID: Subject: Re: upgrading arm6hf From: Warner Losh To: bob prohaska Cc: David Cornejo , freebsd-arm Content-Type: text/plain; charset=UTF-8 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 04:46:20 -0000 On Thu, May 19, 2016 at 8:16 PM, bob prohaska wrote: > 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 You should reboot hre before you try to > re-run buildworld without options triggered the error > bmake[1]: "/usr/src/Makefile.inc1" line 242: Unknown target armv6hf:arm. that's kinda expected. However, I'd reboot before trying this with the new kernel. > Invoking buildworld with TARGET_ARCH=armv6 then produces > bmake[1]: "/usr/src/Makefile.inc1" line 266: To cross-build, set TARGET_ARCH. Not sure about this > 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? I'd reboot the new kernel and make sure uname reports armv6 for uname -p. If it doesn't, rebuild the kernel with TARGET=arm TARGET_ARCH=armv6 and reboot. Warner > 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" > _______________________________________________ > 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"