Creating device files

Installation of MAKEDEV

Install MAKEDEV by running the following commands:



root:MAKEDEV-2.5# sed "s/# 9/9/" MAKEDEV >/dev/MAKEDEV
root:MAKEDEV-2.5# chmod 754 /dev/MAKEDEV

Creating the /dev entries

Create the device files by running the following commands:



root:~# cd /dev
root:dev# ./MAKEDEV -v generic

Now that the device file entries are created the /proc/devices file can be removed by running the following command:



root:~# rm /proc/devices

Please note that this script dates back from 1997 and therefore can be outdated and not support newer hardware. If you need device files which aren't known by this script please read the Documentation/devices.txt file in a Linux source tree. This file lists all the major and minor numbers for all the device files that the kernel knows about. With this list you can create such device files yourself. See the mknod man page for more information on how to make device files yourself.