Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2005 23:32:31 -0800
From:      Doug Hardie <bc979@lafn.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        f-questions List <freebsd-questions@freebsd.org>
Subject:   Re: 5.3 Building Kernel/World
Message-ID:  <F2AAD8B1-6859-11D9-8611-000393681B06@lafn.org>
In-Reply-To: <20050117071900.GA92079@xor.obsecurity.org>
References:  <CC0E9838-684B-11D9-8611-000393681B06@lafn.org> <20050117060510.GA63358@xor.obsecurity.org> <8DC9B67A-6857-11D9-8611-000393681B06@lafn.org> <20050117071900.GA92079@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jan 16, 2005, at 23:19, Kris Kennaway wrote:

> On Sun, Jan 16, 2005 at 11:15:23PM -0800, Doug Hardie wrote:
>>
>> On Jan 16, 2005, at 22:05, Kris Kennaway wrote:
>>
>>> On Sun, Jan 16, 2005 at 09:51:13PM -0800, Doug Hardie wrote:
>>>> The instructions for building world/kernel for 4.x are straight
>>>> forward
>>>> and work fine.  However, I seem to have munged two 5.3 installations
>>>> now.  I have been through all the UPDATING notes and the handbook 
>>>> and
>>>> something is obviously not clear.
>>>>
>>>> The approach I used is:
>>>>
>>>> Clean install from 5.3 distribution.
>>>> make buildworld
>>>> create new config file LAFN
>>>> make buildkernel KERNCONF=LAFN
>>>> make installkernel KERNCONF=LAFN
>>>> reboot
>>>> make installworld
>>>> reboot
>>>>
>>>> At that point It appeared I was using the LAFN kernel rather than
>>>> generic.
>>>>
>>>> However, tonight I tried to make a new kernel.  NO go:
>>>> ERROR: version of config(8) does not match kernel!
>>>> config version = 500012, version required = 500013
>>>>
>>>> So I tried to reinstall the kernel:
>>>> make installkernel KERNCONF=LAFN
>>>> install -o root -g wheel -m 555   acpi.ko /boot/kernel
>>>> install: acpi.ko: No such file or directory
>>>>
>>>> How are you supposed to build a new kernel that works?  How do I
>>>> recover this?
>>>
>>> The only way I can think for this to happen is if your source tree 
>>> was
>>> inconsistent (i.e. not completely updated), or you updated your
>>> sources after you did the installworld, and the kernel depends on the
>>> newer version of config than the one you have built (in this case the
>>> 'safe' buildworld/buildkernel/installkernel method you used to begin
>>> with should still work).
>>>
>>> Kris
>>
>> Well, I tried makeworld again.  Dies in Step 3.  Reloaded all source
>> from the distribution
>> CD.  makeworld dies in exactly the same place:
>
> Really, this all points to something else having changed on your
> system in the meantime.  Try
>
> cd /usr/src
> make cleandir
> make cleandir
> make buildworld
>
> Kris

Wish I had seen that earlier.  I just tried a cvs from RELENG_5_3.  I 
thought that would only have
security fixes.  Its downloading a ton of stuff.  Obviously I can't 
stop it.  Seems like just about all the
userland source files are being changed.  Lots of deletes too.  I'll 
give the above a try when this
finishes.  Why so many files from cvs?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F2AAD8B1-6859-11D9-8611-000393681B06>