Getting started with mdev

Luciano Miguel Ferreira Rocha strange at nsk.no-ip.org
Thu Dec 14 23:12:20 UTC 2006


On Thu, Dec 14, 2006 at 01:58:25PM -0800, Trevor Harmon wrote:
> That worked; thanks! I noticed that mdev created a lot of "standard"  
> entries in /dev, including null. I assume that means I don't have to  
> worry about manually creating them?

Just a couple of notes:

mdev creates device entries only for devices supported by your running
kernel. Example, if you a scsi controller with a hard disk but the
module isn't loaded, you won't get /dev/sda*.

Also, make sure the devices created have the correct permissions.
Devices like null, full, zero, random, ptmx, etc. should be writable and
readable by everybody.

And I don't think mdev creates the symbolic links /dev/fd and
/dev/std{in,out,err}.

For reference, my initial /dev is:
# (type path permissions user group b/c maj minor)
nod dev/console 0622 0 0 c 5 1
nod dev/full 0666 0 0 c 1 7
nod dev/kmsg 0600 0 0 c 1 11
nod dev/loop0 0640 0 6 b 7 0
nod dev/loop1 0640 0 6 b 7 1
nod dev/loop2 0640 0 6 b 7 2
nod dev/loop3 0640 0 6 b 7 3
nod dev/mem 0640 0 9 c 1 1
nod dev/null 0666 0 0 c 1 3
nod dev/port 0640 0 9 c 1 4
nod dev/ptmx 0666 0 5 c 5 2
nod dev/ram0 0640 0 6 b 1 0
nod dev/ram1 0640 0 6 b 1 1
nod dev/ram2 0640 0 6 b 1 2
nod dev/ram3 0640 0 6 b 1 3
nod dev/random 0666 0 0 c 1 8
nod dev/systty 0600 0 0 c 4 0
nod dev/tty 0666 0 5 c 5 0
nod dev/tty0 0660 0 5 c 4 0
nod dev/tty1 0660 0 5 c 4 1
nod dev/tty2 0660 0 5 c 4 2
nod dev/tty3 0660 0 5 c 4 3
nod dev/tty4 0660 0 5 c 4 4
nod dev/tty5 0660 0 5 c 4 5
nod dev/tty6 0660 0 5 c 4 6
nod dev/tty7 0660 0 5 c 4 7
nod dev/urandom 0444 0 0 c 1 9
nod dev/zero 0666 0 0 c 1 5
slink dev/X0R null 0777 0 0
slink dev/ram ram1 0777 0 0
slink dev/ramdisk ram0 0777 0 0
slink dev/fd /proc/self/fd 0777 0 0
slink dev/core /proc/kcore 0777 0 0

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20061214/11db7776/attachment-0002.pgp 


More information about the busybox mailing list