OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [scripts/] [MAKEDEV.ide] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1629 jcastillo
#!/bin/sh
2
#
3
# This script creates the proper /dev/ entries for IDE devices
4
# on the primary, secondary, tertiary, and quaternary interfaces.
5
# See ../Documentation/ide.txt for more information.
6
#
7
makedev () {
8
        rm -f /dev/$1
9
        echo mknod /dev/$1 b $2 $3
10
             mknod /dev/$1 b $2 $3
11
        chown root:disk /dev/$1
12
        chmod 660 /dev/$1
13
}
14
 
15
makedevs () {
16
        rm -f /dev/$1*
17
        makedev $1 $2 $3
18
        for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
19
        do
20
                makedev $1$part $2 `expr $3 + $part`
21
        done
22
}
23
 
24
makedevs hda  3 0
25
makedevs hdb  3 64
26
makedevs hdc 22 0
27
makedevs hdd 22 64
28
makedevs hde 33 0
29
makedevs hdf 33 64
30
makedevs hdg 34 0
31
makedevs hdh 34 64
32
 
33
# Create the ide-tape rewinding character device.
34
 
35
rm -f /dev/ht0
36
echo mknod /dev/ht0 c 37 0
37
     mknod /dev/ht0 c 37 0
38
chown root:disk /dev/ht0
39
chmod 660 /dev/ht0
40
 
41
# Create the ide-tape non rewinding character device.
42
 
43
rm -f /dev/nht0
44
echo mknod /dev/nht0 c 37 128
45
     mknod /dev/nht0 c 37 128
46
chown root:disk /dev/nht0
47
chmod 660 /dev/nht0

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.