From owner-freebsd-arm@FreeBSD.ORG Thu Mar 19 13:19:22 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B923BE9D for ; Thu, 19 Mar 2015 13:19:22 +0000 (UTC) Received: from relay.mailchannels.net (si-002-i157.relay.mailchannels.net [108.178.49.169]) by mx1.freebsd.org (Postfix) with ESMTP id CA007F10 for ; Thu, 19 Mar 2015 13:19:20 +0000 (UTC) X-Sender-Id: duocircle|x-authuser|hippie Received: from smtp4.ore.mailhop.org (ip-10-229-11-165.us-west-2.compute.internal [10.229.11.165]) by relay.mailchannels.net (Postfix) with ESMTPA id 088601D11CB; Thu, 19 Mar 2015 13:19:08 +0000 (UTC) X-Sender-Id: duocircle|x-authuser|hippie Received: from smtp4.ore.mailhop.org (smtp4.ore.mailhop.org [10.21.145.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:2500 (trex/5.4.8); Thu, 19 Mar 2015 13:19:11 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: duocircle|x-authuser|hippie X-MailChannels-Auth-Id: duocircle X-MC-Loop-Signature: 1426771151284:12799352 X-MC-Ingress-Time: 1426771151283 Received: from c-73-34-117-227.hsd1.co.comcast.net ([73.34.117.227] helo=ilsoft.org) by smtp4.ore.mailhop.org with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82) (envelope-from ) id 1YYaLk-0005gR-HF; Thu, 19 Mar 2015 13:19:00 +0000 Received: from revolution.hippie.lan (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t2JDIrP0030149; Thu, 19 Mar 2015 07:18:53 -0600 (MDT) (envelope-from ian@freebsd.org) X-Mail-Handler: DuoCircle Outbound SMTP X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@duocircle.com (see https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information for abuse reporting information) X-MHO-User: U2FsdGVkX1/glJPiRV7mfRiQDNw5DpEX Message-ID: <1426771133.9902.11.camel@freebsd.org> Subject: Re: Building Cross Compiler and u-boot From: Ian Lepore To: Russell Haley Date: Thu, 19 Mar 2015 07:18:53 -0600 In-Reply-To: References: <5505CD50.2050503@ambient-md.com> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-AuthUser: hippie Cc: Tim Kientzle , freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 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 Mar 2015 13:19:22 -0000 On Wed, 2015-03-18 at 23:53 -0700, Russell Haley wrote: > Hi Tim, > > In case you care, I was able to rebuild world from within my jail as > root but just didn't realize it worked? When I do uname -a it still > returns as running 10.1-Release (which is my PCBSD version I > think???). I've come to this conclusion because I created a new jail > with the CURRENT snapshot from the FTP site, and I still get the same > result: > > root@current:/usr/include # uname -a > FreeBSD current.example.org 10.1-RELEASE-p17 FreeBSD 10.1-RELEASE-p17 > #0: Wed Feb 25 19:37:57 UTC 2015 > root@amd64-builder.pcbsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > > Is there a way to tell what my world/rootfs (sorry, what's the > correct term?) is from within the jail? uname gets its info from the kernel so even in a jail you get the kernel version unless you've used the jail setup parms to override the version reported within the jail (a feature that's only available on -current right now). You can use 'uname -U' to report on the version number that was in in /usr/include/osreldate.h when uname was compiled, which is about the closest you can get to "what version is this userland" I think. (I guess you can also look in /usr/include/osreldate.h within the jail.) -- Ian