problem with installkernel upgrading from 4.6.2 release to 5.0
taxman at acd.net
Thu Apr 10 17:58:52 PDT 2003
On Thursday 10 April 2003 04:56 pm, Louis LeBlanc wrote:
> 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'm not sure that's even a supported upgrade path yet. There are plans for
the 4.x-Release upgrade to 5.1 and 5.2 releases to be supported, but like i
said, perhaps not to 5.0. 5.0 was never meant as a production release.
All else was good till here:
> make buildkernel seems to have gone fine
> reboot to single user mode (using 'reboot now' or the method
no point in rebooting till you have installed the new kernel.
> 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)
Even then, upgrading accross major releases is a little tough so perhaps
rebooting before you installworld won't help. It is possible that the new
kernel won't work with the old world so you may not be able to check that it
> 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
More or less telling you that you are not running the new kernel, which makes
sense since you haven't booted from it at this point.
> 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.
I believe because the kernel is in slightly different location in 5.0 and
since you're running the old world (because installworld failed), it is
looking in the old place and finding the old kernel and booting fine.
> Any ideas?
Make installworld again and you should have 5.0 release upon reboot.
You probably don't wan't 5.0 release. You may, but at least read:
More information about the freebsd-questions