Rainer Duffner
2010-Nov-16 01:09 UTC
Upgrading from 7.3 to 8.1: uname -a still shows 7.3p3
Hi, I have the 8.1 sources, did a buildworld, buildkernel, installkernel, installworld. Now I have 8.1 binaries: server# file /bin/tcsh /bin/tcsh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.1, stripped but not the kernel: server# uname -a FreeBSD server 7.3-RELEASE-p3 FreeBSD 7.3-RELEASE-p3 #3: Tue Nov 16 01:12:23 CET 2010 root@server:/usr/obj/usr/src/sys/GENERIC i386 How is that possible? Or is it just a mis-representation? kern.osreldate: 801000 I did a csup twice and rebuilt the kernel multiple times. Also did a complete buildworld buildkernel cycle. Regards, Rainer
Alexandre
2010-Nov-16 09:27 UTC
[Bulk] Upgrading from 7.3 to 8.1: uname -a still shows 7.3p3
On Tue, Nov 16, 2010 at 1:42 AM, Rainer Duffner <rainer@ultra-secure.de>wrote:> Hi, > > I have the 8.1 sources, did a buildworld, buildkernel, installkernel, > installworld. > Now I have 8.1 binaries: > > server# file /bin/tcsh > /bin/tcsh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), > dynamically linked (uses shared libs), for FreeBSD 8.1, stripped > > but not the kernel: > > server# uname -a > FreeBSD server 7.3-RELEASE-p3 FreeBSD 7.3-RELEASE-p3 #3: Tue Nov 16 > 01:12:23 CET 2010 root@server:/usr/obj/usr/src/sys/GENERIC i386 > > > How is that possible? > > Or is it just a mis-representation? > > kern.osreldate: 801000 > > I did a csup twice and rebuilt the kernel multiple times. > Also did a complete buildworld buildkernel cycle. > > > > > Regards, > Rainer >Hi, Have you really followed steps in /usr/src/Makefile ? I have added step 0 and 1a, that are useful if previous builworld fail. # For individuals wanting to upgrade their sources (even if only a # delta of a few days): # # 0. `rm -rf /usr/obj' {Added by me} # 1. `cd /usr/src' (or to the directory containing your source tree). # 1a. `make cleanworld' {Added by me, usefull if previous builworld failed} # 2. `make buildworld' # 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # [steps 3. & 4. can be combined by using the "kernel" target] # 5. `reboot' (in single user mode: boot -s from the loader prompt). # 6. `mergemaster -p' # 7. `make installworld' # 8. `make delete-old' # 9. `mergemaster' (you may wish to use -U or -ai). # 10. `reboot' # 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) The handbook is also useful : http://bit.ly/aIGbjj Alexandre.
On 11/15/2010 19:42, Rainer Duffner wrote:> Hi, > > I have the 8.1 sources, did a buildworld, buildkernel, installkernel, > installworld. > Now I have 8.1 binaries: > > server# file /bin/tcsh > /bin/tcsh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), > dynamically linked (uses shared libs), for FreeBSD 8.1, stripped > > but not the kernel: > > server# uname -a > FreeBSD server 7.3-RELEASE-p3 FreeBSD 7.3-RELEASE-p3 #3: Tue Nov 16 > 01:12:23 CET 2010 root@server:/usr/obj/usr/src/sys/GENERIC i386 > > > How is that possible? > > Or is it just a mis-representation? > > kern.osreldate: 801000 > > I did a csup twice and rebuilt the kernel multiple times. > Also did a complete buildworld buildkernel cycle. >For whatever reason it seems that /sys/conf/newvers.sh was never updated when your sources were updated. You should be able to confirm this by looking through that file for '7.3'. If that was not the case then I would believe you have a stale /usr/obj that you should have removed before building kernel and world. If you still have the original obj directory available to you then you should be able to confirm this by looking through a file called vers.c that would also contain the 7.3 string. In any case you should verify that your sources are supposed to be what they are, and one good way to do this is by running (svn status) if you have checked your sources out via svn(1) 'devel/subversion-freebsd' Good luck, -- jhell,v
Dimitry Andric
2010-Nov-16 16:21 UTC
Upgrading from 7.3 to 8.1: uname -a still shows 7.3p3
On 2010-11-16 01:42, Rainer Duffner wrote:> I have the 8.1 sources, did a buildworld, buildkernel, installkernel, > installworld.There seems to be a "reboot" missing before installworld...? :)
On 11/16/2010 11:21, Dimitry Andric wrote:> On 2010-11-16 01:42, Rainer Duffner wrote: >> I have the 8.1 sources, did a buildworld, buildkernel, installkernel, >> installworld. > > There seems to be a "reboot" missing before installworld...? :)kern.osreldate: 801000 You would not get that sysctl without rebooting on a 7.3 kernel. ;) -- jhell,v
Marat N.Afanasyev
2010-Nov-16 17:15 UTC
Upgrading from 7.3 to 8.1: uname -a still shows 7.3p3
Rainer Duffner wrote:> Hi, > > I have the 8.1 sources, did a buildworld, buildkernel, installkernel, > installworld. > Now I have 8.1 binaries: > > server# file /bin/tcsh > /bin/tcsh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), > dynamically linked (uses shared libs), for FreeBSD 8.1, stripped > > but not the kernel: > > server# uname -a > FreeBSD server 7.3-RELEASE-p3 FreeBSD 7.3-RELEASE-p3 #3: Tue Nov 16 > 01:12:23 CET 2010 root@server:/usr/obj/usr/src/sys/GENERIC i386 > > > How is that possible? > > Or is it just a mis-representation? > > kern.osreldate: 801000 > > I did a csup twice and rebuilt the kernel multiple times. > Also did a complete buildworld buildkernel cycle. > > > > > Regards, > Rainer > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >did you accidentally have a mirrored boot drive which is degraded with failed first drive? then you install system to degraded mirror, but boot from failed drive with old kernel. -- SY, Marat