makedev-inst.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Creating devices</title>
  4. <para>Please note that unpacking the MAKEDEV-&makedev-version;.bz2 file
  5. doesn't create a directory for you to <userinput>cd</userinput> into, as
  6. the file only contains a single shell script.</para>
  7. <para>Install the MAKEDEV script:</para>
  8. <para><screen><userinput>bzcat MAKEDEV-&makedev-version;.bz2 &gt; /dev/MAKEDEV
  9. chmod 754 /dev/MAKEDEV</userinput></screen></para>
  10. <para>Run the script to create the device files:</para>
  11. <para><screen><userinput>cd /dev
  12. ./MAKEDEV -v generic-nopty</userinput></screen></para>
  13. <para>The meaning of the option:</para>
  14. <itemizedlist>
  15. <listitem><para><userinput>-v generic-nopty</userinput>: The
  16. <userinput>-v</userinput> parameter tells the MAKEDEV script to run in verbose
  17. mode. The <userinput>generic-nopty</userinput> parameter instructs MAKEDEV to
  18. create a generic selection of commonly used device special files, except for the
  19. ptyXX and ttyXX range of files. We don't need those files because we are going
  20. to use Unix98 PTYs via the <emphasis>devpts</emphasis> file
  21. system.</para></listitem>
  22. </itemizedlist>
  23. <para>If a device you need is missing, try running
  24. <userinput>./MAKEDEV -v &lt;device&gt;</userinput>. Alternatively, you may
  25. create devices via the <emphasis>mknod</emphasis> program. Please refer to
  26. the man and info pages of <emphasis>mknod</emphasis> if you need more
  27. information.</para>
  28. <para>Additionally, if you were unable to mount the devpts filesystem earlier in
  29. the "Mounting the proc and devpts file systems" section, now is the time to
  30. try the alternatives. If your kernel supports the devfs file system, run the
  31. following command to mount devfs:</para>
  32. <para><screen><userinput>mount -t devfs devfs /dev</userinput></screen></para>
  33. <para>This will mount the devfs file system over the top of the new static
  34. <filename>/dev</filename> structure. This poses no problems, as the device nodes
  35. created are still present, they are just hidden by the new devfs
  36. filesystem.</para>
  37. <para>If this still doesn't work, the only option left is to use the MAKEDEV
  38. script to create the ptyXX and ttyXX range of files that would otherwise not be
  39. needed. Ensure you are still in the <filename>/dev</filename> directory then run
  40. <userinput>./MAKEDEV -v pty</userinput>. The downside of this is, we are
  41. creating an extra 512 device special files which will not be needed when we
  42. finally boot into the finished LFS system.</para>
  43. </sect2>