Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Aug 2000 17:49:58 -0500
From:      Oscar Ricardo Silva <oscars@mail.utexas.edu>
To:        freebsd-questions@freebsd.org
Subject:   kernel build instructions in /usr/src/UPDATING
Message-ID:  <4.3.2.7.2.20000803174103.00b15e40@mail.utexas.edu>

next in thread | raw e-mail | index | archive | help
I've been having problems upgrading a system from 4.0 to 4.1.  It was 
suggested that part of the problem is that I'm not following the procedure 
outlined in /usr/src/UPDATING correctly.  I thought that was probably right 
and so started following the instructions step-by-step.  It looks like 
there's an error in the section

To build a kernel
  -----------------

cd /usr/src
# If you have not already done so, please buildworld here
# You will also need to update your config file to 4.0.  Usually
# people tend to start with GENERIC from 4.0 and hack from there.
make buildkernel KERNEL=<YOUR_KERNEL_HERE>
make installkernel  KERNEL=<YOUR_KERNEL_HERE>
# Verify that the new kernel works, it will be installed as
# /YOUR_KERNEL_HERE
chflags noschg /kernel
chflags noschg /YOUR_KERNEL_HERE
mv /kernel /kernel.old
mv /YOUR_KERNEL_HERE /kernel
chflags schg /kernel


Well, I upgraded the source code and ran 'make buildworld' and then started 
following the instructions for building the kernel.

1.  make buildworld - ran without a problem and populated /usr/obj
2.  Copied /usr/src/sys/i386/conf/GENERIC to /usr/src/sys/i386/conf/newkernel
3.  Edited /usr/src/sys/i386/conf/newkernel to reflect my system
4.  make buildkernel KERNEL=newkernel  - no problem there
5.  make installkernel KERNEL=newkernel  - no problem there

It is at this point that my experience differs from the instructions.  It 
says to:

chflags noschg /kernel
chflags noschg /YOUR_KERNEL_HERE
mv /kernel /kernel.old
mv /YOUR_KERNEL_HERE /kernel
chflags schg /kernel

but it appears that 'make installkernel' already took care of that.  There 
is no /newkernel (using my name for my kernel).

Anyway, I then attempted to run 'make installworld' but got the same error 
as before:

vm/vm_pager.h -> vm/vm_pager.ph
vm/vm_param.h -> vm/vm_param.ph
vm/vm_zone.h -> vm/vm_zone.ph
vm/vnode_pager.h -> vm/vnode_pager.ph
*** Error code 1

Stop in /usr/src/gnu/usr.bin/perl/utils/h2ph.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/perl/utils.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/perl.
*** Error code 1

Stop in /usr/src/gnu/usr.bin.
*** Error code 1

Stop in /usr/src/gnu.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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