version 1.2, 2000/05/29 07:58:56 |
version 1.3, 2000/05/31 20:21:43 |
|
|
|
|
<p> |
<p> |
To rebuild the default kernel from stable: |
To rebuild the default kernel from stable: |
<pre> |
<ul><pre> |
# cd /usr/src/sys/arch/i386/conf |
# <strong>cd /usr/src/sys/arch/i386/conf</strong> |
# /usr/sbin/config GENERIC |
# <strong>/usr/sbin/config GENERIC</strong> |
# cd /usr/src/sys/arch/i386/compile/GENERIC |
# <strong>cd /usr/src/sys/arch/i386/compile/GENERIC</strong> |
# make clean && make depend && make |
# <strong>make clean && make depend && make</strong> |
</pre> |
</pre></ul> |
|
|
<p> |
<p> |
Replace <i>i386</i> with your architecture, eg. |
Replace <i>i386</i> with your architecture, eg. |
|
|
|
|
<p> |
<p> |
To reboot with the newly compiled kernel: |
To reboot with the newly compiled kernel: |
<pre> |
<ul><pre> |
# cd /usr/src/sys/arch/i386/compile/GENERIC |
# <strong>cd /usr/src/sys/arch/i386/compile/GENERIC</strong> |
# cp /bsd /bsd.old <i>(Save an old copy of your kernel)</i> |
# <strong>cp /bsd /bsd.old</strong> <i>(Save an old copy of your kernel)</i> |
# cp bsd /bsd <i>(Copy the new kernel into place)</i> |
# <strong>cp bsd /bsd</strong> <i>(Copy the new kernel into place)</i> |
# reboot |
# <strong>reboot</strong> |
</pre> |
</pre></ul> |
|
|
<p> |
<p> |
As above, substitute your architecture for <i>i386</i>. If your system has |
As above, substitute your architecture for <i>i386</i>. If your system has |
|
|
<h4><font color=#0000e0>Rebuilding the binaries</font></h4> |
<h4><font color=#0000e0>Rebuilding the binaries</font></h4> |
|
|
<p> To rebuild the system binaries: |
<p> To rebuild the system binaries: |
<pre> |
<ul><pre> |
# cd /usr/src |
# <strong>cd /usr/src</strong> |
# rm -r /usr/obj/* |
# <strong>rm -r /usr/obj/*</strong> |
# make obj && make build |
# <strong>make obj && make build</strong> |
</pre> |
</pre></ul> |
|
|
<p>This will take awhile... |
<p>This will take awhile... |
<hr> |
<hr> |