<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML ><HEAD ><TITLE >Notes on building your own kernel</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="XFree Local Multi-User HOWTO" HREF="index.html"><LINK REL="UP" TITLE="Installing the kernel" HREF="kernel.html"><LINK REL="PREVIOUS" TITLE="Installing the Backstreet Ruby/ Ruby-2.6 kernel" HREF="inst_kernel.html"><LINK REL="NEXT" TITLE="Creating needed device files" HREF="dev_files.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" >XFree Local Multi-User HOWTO</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="inst_kernel.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 3. Installing the kernel</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="dev_files.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="build_kernel" ></A >3.2. Notes on building your own kernel</H1 ><P >There are some things I would like to mention, although I won't go in details, as the Backstreet Ruby page on compiling the kernel discusses this topic.</P ><P ></P ><P ><P ></P ><OL TYPE="1" ><LI ><P >You have to follow this order:</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" > Input support Virtual Terminal support Console drivers </PRE ></FONT ></TD ></TR ></TABLE ><P >for all required options to be available/selectable.</P ></LI ><LI ><P >You have to use built in input support:</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" > Input device support --> Input devices (needed for keyboard, mouse,..) Input device support --> Mouse support </PRE ></FONT ></TD ></TR ></TABLE ></LI ><LI ><P >I would suggest you also include at least one keyboard (built in - not as a module). You can also use modules, but I find it safer to be able to use a keyboard instead of trying to find a PC with ssh (or something similar) to load the required modules.</P ><P >For AT/PS2 keyboards, turn on (not modules):</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" > Input device support --> Serial i/o support Input device support --> i8042 PC Keyboard controller Input device support --> Keyboards Input device support --> AT keyboard support </PRE ></FONT ></TD ></TR ></TABLE ><P >For a USB keyboard turn on (not modules):</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" > Input device support --> Keyboards USB support --> support for USB USB support --> USB Host Controller Drivers USB support --> USB Human Interface Device (full HID) support USB support --> HID input layer support </PRE ></FONT ></TD ></TR ></TABLE ></LI ><LI ><P >If you are new to Linux, do not try to patch an already patched kernel (heavily patched kernels like the ones that ship with most distributions). Use a kernel from <A HREF="http://www.kernel.org" TARGET="_top" >www.kernel.org</A >, and take a look at the <A HREF="http://www.tldp.org/HOWTO/Kernel-HOWTO/" TARGET="_top" >Linux Kernel HOWTO</A >.</P ></LI ></OL ></P ><P ></P ><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 >Note</B ></TH ></TR ><TR ><TD > </TD ><TD ALIGN="LEFT" VALIGN="TOP" ><P >In Backstreet Ruby (the patch for a 2.4 Linux kernel) does not support frame buffer devices , and for that reason is disabled.</P ><P >In Ruby (the patch for 2.6 Linux kernel) if you want to disable/ change to modules support for PS2 input devices, you have to first activate/enable "General setup --> Remove kernel features (for embedded systems)"</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="inst_kernel.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="dev_files.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Installing the Backstreet Ruby/ Ruby-2.6 kernel</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="kernel.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Creating needed device files</TD ></TR ></TABLE ></DIV ></BODY ></HTML >