307 lines
4.1 KiB
HTML
307 lines
4.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Compile the new kernel</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="ACPI: Advanced Configuration and Power Interface"
|
|
HREF="index.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Configure the new kernel"
|
|
HREF="kernelconfig.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Install the new kernel"
|
|
HREF="kernelinstall.html"></HEAD
|
|
><BODY
|
|
CLASS="sect1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>ACPI: Advanced Configuration and Power Interface</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="kernelconfig.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
></TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="kernelinstall.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="kernelcompile"
|
|
></A
|
|
>11. Compile the new kernel</H1
|
|
><P
|
|
>If you have additional modules that are not part of the main source
|
|
tree, you will need to add modules_image when you make your Debian
|
|
packages. This is almost inevitable if you're using a laptop and an older
|
|
kernel. Only my nvidia graphics card now requires additional modules.</P
|
|
><P
|
|
></P
|
|
><UL
|
|
><LI
|
|
><P
|
|
> <B
|
|
CLASS="command"
|
|
>cd
|
|
<TT
|
|
CLASS="filename"
|
|
>/usr/src/linux</TT
|
|
>
|
|
</B
|
|
>
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
> <B
|
|
CLASS="command"
|
|
>make-kpkg <TT
|
|
CLASS="parameter"
|
|
><I
|
|
>clean</I
|
|
></TT
|
|
></B
|
|
>
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
> <B
|
|
CLASS="command"
|
|
>make-kpkg
|
|
<TT
|
|
CLASS="option"
|
|
>--append-to-version=.<date></TT
|
|
>
|
|
<TT
|
|
CLASS="parameter"
|
|
><I
|
|
>kernel_image</I
|
|
></TT
|
|
>
|
|
<TT
|
|
CLASS="parameter"
|
|
><I
|
|
>modules_image</I
|
|
></TT
|
|
>
|
|
</B
|
|
>
|
|
</P
|
|
></LI
|
|
></UL
|
|
><DIV
|
|
CLASS="note"
|
|
><P
|
|
></P
|
|
><TABLE
|
|
CLASS="note"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="25"
|
|
ALIGN="CENTER"
|
|
VALIGN="TOP"
|
|
><IMG
|
|
SRC="../images/note.gif"
|
|
HSPACE="5"
|
|
ALT="Note"></TD
|
|
><TH
|
|
ALIGN="LEFT"
|
|
VALIGN="CENTER"
|
|
><B
|
|
>Naming kernel builds</B
|
|
></TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
> </TD
|
|
><TD
|
|
ALIGN="LEFT"
|
|
VALIGN="TOP"
|
|
><P
|
|
>I no longer use .<TT
|
|
CLASS="replaceable"
|
|
><I
|
|
>date</I
|
|
></TT
|
|
> to distinguish
|
|
kernel builds. It was too
|
|
frustrating to have 030627a, 032627b (etc) as I tried to figure things out.
|
|
I now use names, in alphabetical order, starting with the kernel build
|
|
<SPAN
|
|
CLASS="QUOTE"
|
|
>"alien"</SPAN
|
|
>. I'm going to leave the date option in though as I
|
|
still think it's a good way to do things.</P
|
|
><P
|
|
>My current kernel, 2.6.6,
|
|
is <SPAN
|
|
CLASS="QUOTE"
|
|
>"Elrond."</SPAN
|
|
> The machine itself is <SPAN
|
|
CLASS="QUOTE"
|
|
>"Smeagol."</SPAN
|
|
>
|
|
</P
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
><DIV
|
|
CLASS="note"
|
|
><P
|
|
></P
|
|
><TABLE
|
|
CLASS="note"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="25"
|
|
ALIGN="CENTER"
|
|
VALIGN="TOP"
|
|
><IMG
|
|
SRC="../images/note.gif"
|
|
HSPACE="5"
|
|
ALT="Note"></TD
|
|
><TH
|
|
ALIGN="LEFT"
|
|
VALIGN="CENTER"
|
|
><B
|
|
>Kernel compile help</B
|
|
></TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
> </TD
|
|
><TD
|
|
ALIGN="LEFT"
|
|
VALIGN="TOP"
|
|
><P
|
|
>For non-Debian instructions see the Appendix
|
|
<SPAN
|
|
CLASS="QUOTE"
|
|
>"<A
|
|
HREF="nodebkernel.html"
|
|
>Appendix B</A
|
|
>"</SPAN
|
|
>.</P
|
|
><P
|
|
>For more information on how to compile the kernel The Debian
|
|
Way please read <A
|
|
HREF="http://newbiedoc.sourceforge.net/system/kernel-pkg.html"
|
|
TARGET="_top"
|
|
>Creating
|
|
custom kernels with Debian's kernel-package system</A
|
|
></P
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="kernelconfig.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="kernelinstall.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Configure the new kernel</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Install the new kernel</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |