Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2003 16:56:23 -0400
From:      Louis LeBlanc <leblanc+freebsd@keyslapper.org>
To:        FreeBSD Questions <freebsd-questions@FreeBSD.org>
Subject:   problem with installkernel upgrading from 4.6.2 release to 5.0 release
Message-ID:  <20030410205623.GB1060@keyslapper.org>

next in thread | raw e-mail | index | archive | help
Hey all.  I'm trying to upgrade a system from RELENG_4_6_2_RELEASE to
RELENG_5_0_0_RELEASE.  And I'm having a little trouble.

I cvsupped the whole source, port, and docs tree to the
RELENG_5_0_0_RELEASE tag.  That seemed to go well.

Next, I created a new kernel config file named LEBLANC in
/usr/src/sys/i386/conf/ from the new GENERIC config file, and copied
the GENERIC.hints file to /boot/device.hints.

Next, 
chflags -R noschg /usr/obj/usr
rm -rf /usr/obj/usr
cd /usr/src
make cleandir
make cleandir
cd /usr/src/usr/sbin/mergemaster
./mergemaster -p               (no major changes were required)
make -j 4 buildworld           seems to have gone fine
make buildkernel               seems to have gone fine
reboot to single user mode     (using 'reboot now' or the method
                                in section 21.4.4 fo the handbook)
verify everything is mounted   seems to have gone fine
cd /usr/src                    seems to have gone fine
make installkernel             seems to have gone fine (but see below)
make installworld              crashed.

This is the message:

Checking to see if your booted kernel is fresh enough..
/usr/obj/usr/src/bin/sh/sh -c  'echo "Testing installed kernel for new sigaction(2) syscall"'
Bad system call - core dumped
*** Error code 140

ls -l /*kernel*
-r-xr-xr-x  1 root  wheel  2628194 Mar 17 12:52 /kernel*
-r-xr-xr-x  1 root  wheel  3352178 Apr 21  2001 /kernel.GENERIC*
-r-xr-xr-x  1 root  wheel  2626485 Aug 29  2002 /kernel.old*

The build was done once yesterday and twice today, and obviously the
kernel never installed.

ls -l /boot
-r--r--r--  1 root  wheel     512 Aug 29  2002 boot0
-r--r--r--  1 root  wheel     512 Aug 29  2002 boot1
-r--r--r--  1 root  wheel    7680 Aug 29  2002 boot2
-r-xr-xr-x  1 root  wheel    1136 Aug 29  2002 cdboot*
drwxr-xr-x  2 root  wheel     512 Aug 15  2002 defaults/
-rw-r--r--  1 root  wheel    2113 Apr  9 17:15 device.hints
drwxr-xr-x  2 root  wheel    5632 Apr 10 10:46 kernel/
drwxr-xr-x  2 root  wheel    5632 Apr 10 14:30 kernel.old/
-r-xr-xr-x  1 root  wheel  155648 Aug 29  2002 loader*
-r--r--r--  1 root  wheel    9237 Apr 21  2001 loader.4th
-rw-r--r--  1 root  wheel      67 Jul  2  2001 loader.conf
-r--r--r--  1 root  wheel   12012 Mar 15  2002 loader.help
-r-xr-xr-x  1 root  wheel  155648 Aug 15  2002 loader.old*
-r--r--r--  1 root  wheel     338 Apr 21  2001 loader.rc
-r--r--r--  1 root  wheel     512 Aug 29  2002 mbr
-r-xr-xr-x  1 root  wheel  157696 Aug 29  2002 pxeboot*
-r--r--r--  1 root  wheel   25121 Apr 21  2001 support.4th

I don't know what some of this is, but the kernel directories seem to
have been installed here.

I hope I included enough info for someone to see what I did wrong.  If
not, just let me know.

The funny thing is that this machine still boots to the 4.6.2 kernel
as if nothing ever happened.  Kind of a relief, actually.

Any ideas?
TIA
Lou
-- 
Louis LeBlanc               leblanc@keyslapper.org
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org                     ԿԬ

The nation that controls magnetism controls the universe.
    -- Chester Gould/Dick Tracy



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