problem with installkernel upgrading from 4.6.2 release to 5.0 release

Louis LeBlanc leblanc+freebsd at keyslapper.org
Thu Apr 10 13:56:32 PDT 2003


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 at keyslapper.org
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org                     Ô¿Ô¬

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


More information about the freebsd-questions mailing list