2003-01-15 09:25:15 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
2001-03-28 22:20:29 +01:00
|
|
|
<title>Creating devices</title>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-01-15 09:25:15 +00:00
|
|
|
<para>Please note that unpacking the MAKEDEV-&makedev-version;.bz2 file
|
|
|
|
doesn't create a directory for you to <userinput>cd</userinput> into, as
|
2003-09-25 00:48:45 +01:00
|
|
|
the file only contains a single shell script.</para>
|
2003-01-15 09:25:15 +00:00
|
|
|
|
|
|
|
<para>Install the MAKEDEV script:</para>
|
2001-04-14 04:37:07 +01:00
|
|
|
|
2003-05-12 05:54:27 +01:00
|
|
|
<para><screen><userinput>bzcat MAKEDEV-&makedev-version;.bz2 > /dev/MAKEDEV
|
|
|
|
chmod 754 /dev/MAKEDEV</userinput></screen></para>
|
2001-02-08 02:46:55 +00:00
|
|
|
|
2003-01-15 09:25:15 +00:00
|
|
|
<para>Run the script to create the device files:</para>
|
|
|
|
|
2003-05-12 05:54:27 +01:00
|
|
|
<para><screen><userinput>cd /dev
|
2003-09-06 02:52:45 +01:00
|
|
|
./MAKEDEV -v generic-nopty</userinput></screen></para>
|
2001-08-16 23:26:29 +01:00
|
|
|
|
2003-09-25 00:48:45 +01:00
|
|
|
<para>The meaning of the option:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para><userinput>-v generic-nopty</userinput>: The
|
|
|
|
<userinput>-v</userinput> parameter tells the MAKEDEV script to run in verbose
|
|
|
|
mode. The <userinput>generic-nopty</userinput> parameter instructs MAKEDEV to
|
|
|
|
create a generic selection of commonly used device special files, except for the
|
|
|
|
ptyXX and ttyXX range of files. We don't need those files because we are going
|
|
|
|
to use Unix98 PTYs via the <emphasis>devpts</emphasis> file
|
|
|
|
system.</para></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2003-01-15 09:25:15 +00:00
|
|
|
<para>If a device you need is missing, try running
|
|
|
|
<userinput>./MAKEDEV -v <device></userinput>. Alternatively, you may
|
|
|
|
create devices via the <emphasis>mknod</emphasis> program. Please refer to
|
|
|
|
the man and info pages of <emphasis>mknod</emphasis> if you need more
|
|
|
|
information.</para>
|
2001-08-16 23:26:29 +01:00
|
|
|
|
2003-09-27 04:38:15 +01:00
|
|
|
<para>Additionally, if you were unable to mount the devpts filesystem earlier in
|
|
|
|
the "Mounting the proc and devpts file systems" section, now is the time to
|
|
|
|
try the alternatives. If your kernel supports the devfs file system, run the
|
|
|
|
following command to mount devfs:</para>
|
2003-09-26 06:58:52 +01:00
|
|
|
|
|
|
|
<para><screen><userinput>mount -t devfs devfs /dev</userinput></screen></para>
|
|
|
|
|
2003-09-27 04:38:15 +01:00
|
|
|
<para>This will mount the devfs file system over the top of the new static
|
|
|
|
<filename>/dev</filename> structure. This poses no problems, as the device nodes
|
|
|
|
created are still present, they are just hidden by the new devfs
|
|
|
|
filesystem.</para>
|
|
|
|
|
|
|
|
<para>If this still doesn't work, the only option left is to use the MAKEDEV
|
|
|
|
script to create the ptyXX and ttyXX range of files that would otherwise not be
|
|
|
|
needed. Ensure you are still in the <filename>/dev</filename> directory then run
|
|
|
|
<userinput>./MAKEDEV -v pty</userinput>. The downside of this is, we are
|
|
|
|
creating an extra 512 device special files which will not be needed when we
|
|
|
|
finally boot into the finished LFS system.</para>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|