1 .\" *** ------------------------------------------------------------------
2 .\" *** This file was generated automatically
3 .\" *** from src/etc/MAKEDEV.tmpl and
4 .\" *** src/share/man/man8/MAKEDEV.8.template
6 .\" *** DO NOT EDIT - any changes will be lost!!!
7 .\" *** ------------------------------------------------------------------
11 .\" Copyright (c) 2001, 2003, 2007, 2008 The NetBSD Foundation, Inc.
12 .\" All rights reserved.
14 .\" This code is derived from software contributed to The NetBSD Foundation
15 .\" by Thomas Klausner.
17 .\" Redistribution and use in source and binary forms, with or without
18 .\" modification, are permitted provided that the following conditions
20 .\" 1. Redistributions of source code must retain the above copyright
21 .\" notice, this list of conditions and the following disclaimer.
22 .\" 2. Redistributions in binary form must reproduce the above copyright
23 .\" notice, this list of conditions and the following disclaimer in the
24 .\" documentation and/or other materials provided with the distribution.
26 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 .\" POSSIBILITY OF SUCH DAMAGE.
43 .Nd create system and device special files
45 .\" Please keep this in sync with MAKEDEV.local.8
51 .Bro Ar special | device Brc Op Ar ...
54 is used to create system and device special files.
55 As arguments it takes the names of known devices, like
57 or of special targets, like
61 which create a collection of device special files,
72 Devices are created in the current working directory;
75 should be invoked with
77 as the current working directory.
79 Supported options are:
80 .Bl -tag -width XmXmknodXX
82 Force permissions to be updated on existing devices.
87 it is not compatible with the
94 Create a memory file system, union mounted over the current directory,
95 to contain the device special files.
96 The memory file system is created using
100 in that order of preference.
104 flag is specified more than once, then
106 assumes that it is being invoked from
108 to populate a memory file system for
112 will also redirect its output to the system console.
116 and specify the name or path to the
119 [Usually, $TOOL_MKNOD or mknod.]
123 and specify the name or path to the
126 [Usually, $TOOL_PAX or pax.]
130 specfile instead of creating devices.
134 and specify the name or path to the
137 [Usually, $TOOL_MTREE or mtree.]
141 has several possible methods of creating device nodes:
146 command once for each device node.
147 This is the traditional method, but it is slow because each device node
148 is created using a new process.
158 By internally creating a specfile in a format usable by
160 and providing the specfile on standard input to a
164 command, invoked with options that request it to create the device nodes
165 as well as any necessary subdirectories.
166 This is much faster than creating device nodes with
168 because it requires much fewer processes;
169 however, it's not compatible with the
187 option is specified, then
189 will not create device nodes at all, but will output
190 a specfile in a format usable by
195 .Fl m , Fl p , Fl s ,
198 flags are mutually exclusive.
199 If none of these flags is specified, then
206 in that order of preference, depending on which commands
207 appear to be available and usable.
208 In normal use, it's expected that
210 will be available, so it will be chosen.
217 will not be available, but
221 The special targets supported on
226 .Bl -tag -width 01234567 -compact
228 Makes all known devices, including local devices. Tries to make the 'standard' number of each type.
230 A set of devices that is used for MFS /dev by init. May be equal to ``all''.
232 Devices to be put on install floppies
234 Devices to be put into INSTALL kernel ramdisks.
238 Configuration specific devices
247 Please note that any hash marks
249 in the following list of supported device targets must be replaced by
256 . Bl -tag -width 0123456789 -compact
261 QIC-interfaced (e.g. not SCSI) 3M cartridge tape, see
264 MASSBUS TM03 and TU??, see
267 MSCP tapes (e.g. TU81, TK50), see
270 UNIBUS TM11 and TE10 emulations (e.g. Emulex TC-11), see
276 UNIBUS TU45 emulations (e.g. si 9700), see
279 TU58 cassettes on DL11 controller, see
283 . Bl -tag -width 0123456789 -compact
285 Concatenated disk devices, see
288 SCSI or ATAPI CD-ROM, see
291 Cryptographic disk devices, see
294 RAIDframe disk devices, see
300 ``winchester'' disk drives (ST506,IDE,ESDI,RLL,...), see
303 Nereid bank memory disks, see
306 IBM PS/2 ESDI disk devices, see
309 ``floppy'' disk drives (3 1/2", 5 1/4"), see
314 Files system snapshot devices, see
317 Dreamcast ``gigadisc'' CD-ROM drive, see
318 .Xr \&dreamcast/gdrom 4
320 UNIBUS RK06 and RK07, see
326 Logical disk devices (e.g., hardware RAID), see
332 Memory pseudo-disk devices, see
335 OpenFirmware disk devices
337 MSCP disks (RA??, RD??)
339 730 IDC w/ RB80 and/or RB02
341 HDC9224 RD disks on VS2000, see
347 MSCP floppy disk (RX33/50/...)
349 Other UNIBUS devices (e.g. on Emulex SC-21V controller), see
352 ``file'' pseudo-disks, see
357 Xylogic 753/7053 disks, see
360 Xylogic 450/451 disks, see
363 .It Pointing devices :
364 . Bl -tag -width 0123456789 -compact
366 wscons mouse events, see
369 Logitech bus mouse, see
372 Microsoft bus mouse, see
373 .Xr \&dreamcast/mms 4 ,
376 ``quadrature mouse'', see
381 Mouse (provides events, for X11)
383 .It Keyboard devices :
384 . Bl -tag -width 0123456789 -compact
386 wscons keyboard events, see
389 Raw keyboard (provides events, for X11), see
396 .It Terminals/Console ports :
397 . Bl -tag -width 0123456789 -compact
399 Standard serial ports, see
402 SB1250 (``sbscn'') serial ports (sbmips), see
405 wscons - Workstation console (``wscons'') glass-tty emulators
407 Cyclades-Z multiport serial boards. Each ``unit'' makes 64 ports., see
410 Cyclom-Y multiport serial boards. Each ``unit'' makes 32 ports., see
413 ITE bitmapped consoles, see
419 NS16550 (``com'') serial ports
421 SA1110 serial port (hpcarm)
423 TX39 internal serial ports (hpcmips)
425 DEC 3000 ZS8530 (``scc'') serial ports (alpha), see
428 Mfc serial ports (amiga)
430 Msc serial ports (amiga)
432 Com style serial ports (DraCo, HyperCom) (amiga) On the DraCo, units 0 and 1 are the built-in ``modem'' and ``mouse'' ports, if configured.
434 8530 Channel A (formerly ser02) (atari)
436 8530 Channel B (formerly mdm02) (atari)
438 UART on first 68901 (formerly mdm01) (atari)
444 HP200/300 4 port serial mux interface (hp300)
446 ``ttya'' system console (luna68k)
448 Second system serial port (luna68k)
450 Onboard serial ports (mvme68k) On the mvme147 these are: ttyZ1, ttyZ2 and ttyZ3. On the mvme167, and '177: ttyC1, ttyC2 and ttyC3. Note that tty[CZ]0 is grabbed by the console device so is not created by default, see
453 PMAX 4 channel serial interface (kbd, mouse, modem, printer)
455 82530 serial interface (pmax), see
458 Zilog 8530 (``zstty'') serial ports, see
461 Built-in serial ports (sparc)
463 Z88530 serial controllers (sparc64), see
466 SAB82532 serial controllers (sparc64), see
469 Built-in serial ports (sun2, sun3)
473 UNIBUS DZ11 and DZ32 (vax), see
476 UNIBUS DH11 and emulations (e.g. Able DMAX, Emulex CS-11) (vax), see
479 UNIBUS DMF32 (vax), see
482 UNIBUS DHU11 (vax), see
485 UNIBUS DMZ32 (vax), see
488 UNIBUS DL11 (vax), see
493 .It Terminal multiplexors :
494 . Bl -tag -width 0123456789 -compact
496 4 channel serial interface (keyboard, mouse, modem, printer)
498 UNIBUS DH11 and emulations (e.g. Able DMAX, Emulex CS-11), see
513 UNIBUS DZ11 and DZ32, see
516 82530 serial interface, see
520 . Bl -tag -width 0123456789 -compact
522 UNIBUS DN11 and emulations (e.g. Able Quadracall), see
525 .It Pseudo terminals :
526 . Bl -tag -width 0123456789 -compact
528 Pty multiplexor device, and pts directory, see
531 Set of 16 master and slave pseudo terminals, see
534 First 16 ptys, to save inodes on install media
536 First 2 ptys, for install media use only
539 . Bl -tag -width 0123456789 -compact
541 Archimedes parallel port
545 .Xr \&acorn32/lpt 4 ,
551 Amiga motherboard parallel port
553 Macintosh Nubus CSI parallel printer card, see
557 . Bl -tag -width 0123456789 -compact
559 USB control devices, see
562 USB generic HID devices, see
565 USB printer devices, see
568 USB generic devices, see
571 USB Diamond Rio 500 devices, see
583 . Bl -tag -width 0123456789 -compact
585 Communication between userland isdnd and kernel, see
591 Raw b-channel access, see
594 Telephony device, see
597 Telephony dialout device
603 . Bl -tag -width 0123456789 -compact
605 Monochromatic frame buffer, see
606 .Xr \&sparc/bwtwo 4 ,
610 8-bit color frame buffer, see
611 .Xr \&sparc/cgtwo 4 ,
614 8-bit color frame buffer, see
615 .Xr \&sparc/cgthree 4
617 8-bit color frame buffer, see
618 .Xr \&sparc/cgfour 4 ,
621 Accelerated 8-bit color frame buffer, see
624 24-bit color frame buffer, see
625 .Xr \&sparc/cgeight 4
627 Tseng et-compatible cards on VME (atari)
629 UNIBUS interface to Ikonas frame buffer, see
632 Circad Leonardo VME-bus true color (atari)
634 UNIBUS interface to Picture System 2, see
637 QVSS (MicroVAX) display
639 Accelerated 8/24-bit color frame buffer, see
642 .It Maple bus devices :
643 . Bl -tag -width 0123456789 -compact
645 Maple bus control devices, see
646 .Xr \&dreamcast/maple 4
648 Maple bus LCD devices, see
649 .Xr \&dreamcast/mlcd 4
651 Maple bus storage devices, see
652 .Xr \&dreamcast/mmem 4
654 .It IEEE1394 bus devices :
655 . Bl -tag -width 0123456789 -compact
657 IEEE1394 bus generic node access devices
659 IEEE1394 bus physical memory of the remote node access devices
661 .It Special purpose devices :
662 . Bl -tag -width 0123456789 -compact
664 UNIBUS interface to Data Translation A/D converter, see
667 AGP GART devices, see
670 ALTQ control interface
672 AMI MegaRaid control device, see
675 Power management device, see
681 OPM bell device (x68k)
683 Brooktree 848/849/878/879 based TV cards, see
689 Bluetooth Device Hub control interface, see
692 Coda file system device
694 SCSI media changer, see
700 Clock control for non root users, see
705 Hardware crypto access driver, see
708 Hardware-assisted data movers, see
711 DPT/Adaptec EATA RAID management interface, see
714 DPT/Adaptec I2O RAID management interface, see
717 Direct Rendering Manager interface, see
720 PMAX generic framebuffer pseudo-device
724 Graphics frame buffer device, see
728 High Definition audio control device, see
731 HP300 HIL input devices, see
734 ICP-Vortex/Intel RAID control interface, see
740 X86 IOPL access for COMPAT_10, COMPAT_FREEBSD, see
744 I2O IOP control interface, see
749 IrDA physical frame, see
752 Terminal emulator interface to HP300 graphics devices, see
759 Kernel ttcp helper device, see
762 Kernel locking statistics
764 Magma multiport serial/parallel cards, see
770 Mylex DAC960 control interface, see
773 Mylex AcceleRAID/eXtremeRAID control interface, see
776 UNIBUS Ethernet co-processor interface, for downloading., see
782 OpenFirmware accessor
784 Pseudo-audio device driver, see
787 PCI bus access devices, see
792 Power management device (x68k), see
795 Pass-to-Userspace Transporter
797 PixelStamp Xserver access, see
803 Random number generator, see
811 PlanetConnect satellite receiver driver
819 SES/SAF-TE SCSI Devices, see
825 Battery backuped memory (x68k)
830 PixelStamp interface chip
832 System Monitoring hardware, see
835 Virtual Ethernet device, see
838 Network tunnel driver, see
841 3ware Apache control interface, see
844 3ware Escalade control interface, see
847 Unknown SCSI device, see
850 Veriexec fingerprint loader, see
853 Video capture devices, see
856 Generic interface to graphic displays (Amiga)
860 Console font control, see
863 wscons event multiplexor, see
870 The following environment variables affect the execution of
873 .Bl -tag -width indent
874 .It Ev MAKEDEV_AS_LIBRARY
877 will define several shell functions and then return,
878 ignoring all its command line options and arguments.
879 This is used to enable
881 to use the shell functions defined in
885 .Bl -tag -width "/dev/MAKEDEV.local" -compact
887 special device files directory
889 script described in this man page
890 .It Pa /dev/MAKEDEV.local
891 script for site-specific devices
894 If the script reports an error that is difficult to understand,
895 you can get more debugging output by using
896 .Dl Ic sh Fl x Ar MAKEDEV Ar argument .
903 .Xr MAKEDEV.local 8 ,
918 options were added in
925 options were added in
927 The ability to be used as a function library was added in
932 option is not compatible with the use of
937 Not all devices listed in this manpage are supported on all platforms.
939 This man page is generated automatically from the same sources
942 in which the device files are not always sorted, which may result
943 in an unusual (non-alphabetical) order.
945 In order to allow a diskless
949 directory from a file server running a foreign operating system,
950 one of the following techniques may be useful to populate
951 a directory of device nodes on the foreign server:
954 If the foreign server is sufficiently similar to
958 in an appropriate directory of the foreign server,
961 flag to refer to a script that converts from command line
962 arguments that would be usable with the
965 command to the equivalent commands for the foreign server.
973 specification file; this can be done on any host with a
974 POSIX-compliant shell and a few widely-available utilities.
981 specification file into an archive
982 in a format that supports device nodes
986 this can be done on a
988 host, or can be done in a cross-build environment using
989 .Sy TOOLDIR Ns Pa /bin/nbpax .
990 Finally, use apropriate tools on the foreign server
991 to unpack the archive and create the device nodes.