<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML ><HEAD ><TITLE >Creating needed device files</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="Notes on building your own kernel" HREF="build_kernel.html"><LINK REL="NEXT" TITLE="Notes on using multiple VT's & VGA console" HREF="notes_multi_vt.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="build_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="notes_multi_vt.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="dev_files" ></A >3.3. Creating needed device files</H1 ><P > If you are not using the devfs file system, you might need to create several device files needed for the new input sub-system in the Backstreet Ruby kernel:</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 >Most current distributions should already provide the necessary device files, so try booting Backstreet Ruby without creating the device files and in case you don't miss input devices omit this section. Any distribution that came with XFree-4.3.0 and linux-2.4.20 should provide these device files. </P ></TD ></TR ></TABLE ></DIV ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" >cd /dev mkdir input.old mv mouse js? input.old mkdir input cd input mknod js0 c 13 0 mknod js1 c 13 1 mknod js2 c 13 2 mknod js3 c 13 3 mknod mouse0 c 13 32 mknod mouse1 c 13 33 mknod mouse2 c 13 34 mknod mouse3 c 13 35 mknod mice c 13 63 mknod event0 c 13 64 mknod event1 c 13 65 mknod event2 c 13 66 mknod event3 c 13 67 cd .. ln -s input/js0 js0 ln -s input/js1 js1 ln -s input/mice mouse </PRE ></FONT ></TD ></TR ></TABLE ><P >If you use devfs, all required devices will be created automatically by devfs.</P ><P >Mandrake is an example of one distribution that uses devfs. Debian does not use devfs by default, but the kernel supports devfs; in order to activate devfs you have to add <SPAN CLASS="QUOTE" >"devfs=mount"</SPAN > to the <SPAN CLASS="QUOTE" >"append"</SPAN > line of your boot loader and install devfsd (the devfs demon). Distributions that do not use devfs are Red Hat and SuSE.</P ><P >You can check whether devfs is used by issuing the following commands:</P ><P ></P ><UL ><LI ><P >To check whether support for devfs is enabled in your kernel</P ><P ><B CLASS="command" >cat /proc/filesystems | grep devfs</B ></P ></LI ><LI ><P >To check whether devfs is used/mounted</P ><P ><B CLASS="command" >mount | grep devfs</B ></P ></LI ></UL ><P >If you get an empty string this means that devfs is not used; if you get something like the following output, devfs is activated:</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > [root@mc contrib]# cat /proc/filesystems | grep devfs nodev devfs nodev usbdevfs [root@mc contrib]# mount | grep devfs none on /proc/bus/usb type usbdevfs (rw) none on /dev type devfs (rw) [root@mc contrib]# </PRE ></FONT ></TD ></TR ></TABLE ></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="build_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="notes_multi_vt.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Notes on building your own 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" >Notes on using multiple VT's & VGA console</TD ></TR ></TABLE ></DIV ></BODY ></HTML >