Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2016 20:45:05 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Oleksandr Tymoshenko <gonzo@bluezbox.com>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: upgrading arm6hf
Message-ID:  <1463798705.1180.359.camel@freebsd.org>
In-Reply-To: <20160521023515.GA15151@bluezbox.com>
References:  <20160519232102.GF1049@www.zefox.net> <20160520021633.GG1049@www.zefox.net> <CANCZdfrRwnHvo1AyQxYrRQjyp9MWuNXYfX3HWub4Dc0Z%2BJ%2BFDg@mail.gmail.com> <20160520065945.GH1049@www.zefox.net> <1463776364.1180.340.camel@freebsd.org> <20160520231622.GI1049@www.zefox.net> <20160521002859.GJ1049@www.zefox.net> <1463795214.1180.351.camel@freebsd.org> <20160521021227.GK1049@www.zefox.net> <1463797063.1180.354.camel@freebsd.org> <20160521023515.GA15151@bluezbox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2016-05-20 at 19:35 -0700, Oleksandr Tymoshenko wrote:
> Ian Lepore (ian@freebsd.org) wrote:
> > On Fri, 2016-05-20 at 19:12 -0700, bob prohaska wrote:
> > > Hi Ian,
> > > 
> > > It looks as if three kernels are available. The one called
> > > kernel.spare reports 
> > > root@www:~ # uname -a
> > > FreeBSD www.zefox.com 11.0-CURRENT FreeBSD 11.0-CURRENT #71
> > > r297769:
> > > Sat Apr  9 18:11:07 PDT 2016     bob@www.zefox.com:/usr/obj/usr/s
> > > rc/s
> > > ys/RPI2  arm
> > > 
> > > kernel.old reports
> > > root@www:~ # uname -a
> > > FreeBSD www.zefox.com 11.0-CURRENT FreeBSD 11.0-CURRENT #101
> > > r300255M: Thu May 19 23:26:52 PDT 2016     root@www.zefox.com:/us
> > > r/ob
> > > j/usr/src/sys/RPI2  arm
> > > 
> > > kernel (the latest one) reports
> > > root@www:~ # uname -a
> > > FreeBSD www.zefox.com 11.0-CURRENT FreeBSD 11.0-CURRENT #0
> > > r300334M:
> > > Fri May 20 15:47:30 PDT 2016     root@www.zefox.com:/usr/obj/arm.
> > > armv
> > > 6hf/usr/src/sys/RPI2  arm
> > > 
> > > Would it help to back down to one of the older kernels, given
> > > that
> > > userland is closer to 
> > > the latest kernel?
> > > 
> > > Thank you!
> > > 
> > > bob prohaska
> > > 
> > 
> > It might be worth trying to use kernel.old, verify that uname -p
> > says
> > armv6hf again when booted from it, then see if you can buildworld
> > and
> > buildkernel with TARGET_ARCH=armv6.  If so, then you should be able
> > to
> > install those (remember to use the TARGET_ARCH=armv6 when
> > installing
> > too!), and then you'll be on the new armv6 with hardfloat.  I
> > think.
> 
> I don't think you need to use old kernel. You can fake all uname
> parameters using env variables. e.g.:
> env UNAME_m=foo  UNAME_p=bar uname -m -p
> 
> If buildworld/buildkernel relies on uname that should be enough

But anything that uses the hw.machine_arch sysctl won't be fooled. 
 Some rc scripts do, and I suspect a few programs do too, but maybe
nothing important for building.

-- Ian




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1463798705.1180.359.camel>