URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 1765 |
Rev 1782 |
#!/bin/sh
|
#!/bin/sh
|
#
|
#
|
# This script creates the proper /dev/ entries for IDE devices
|
# This script creates the proper /dev/ entries for IDE devices
|
# on the primary, secondary, tertiary, and quaternary interfaces.
|
# on the primary, secondary, tertiary, and quaternary interfaces.
|
# See ../Documentation/ide.txt for more information.
|
# See ../Documentation/ide.txt for more information.
|
#
|
#
|
makedev () {
|
makedev () {
|
rm -f /dev/$1
|
rm -f /dev/$1
|
echo mknod /dev/$1 b $2 $3
|
echo mknod /dev/$1 b $2 $3
|
mknod /dev/$1 b $2 $3
|
mknod /dev/$1 b $2 $3
|
chown root:disk /dev/$1
|
chown root:disk /dev/$1
|
chmod 660 /dev/$1
|
chmod 660 /dev/$1
|
}
|
}
|
|
|
makedevs () {
|
makedevs () {
|
rm -f /dev/$1*
|
rm -f /dev/$1*
|
makedev $1 $2 $3
|
makedev $1 $2 $3
|
for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
do
|
do
|
makedev $1$part $2 `expr $3 + $part`
|
makedev $1$part $2 `expr $3 + $part`
|
done
|
done
|
}
|
}
|
|
|
makedevs hda 3 0
|
makedevs hda 3 0
|
makedevs hdb 3 64
|
makedevs hdb 3 64
|
makedevs hdc 22 0
|
makedevs hdc 22 0
|
makedevs hdd 22 64
|
makedevs hdd 22 64
|
makedevs hde 33 0
|
makedevs hde 33 0
|
makedevs hdf 33 64
|
makedevs hdf 33 64
|
makedevs hdg 34 0
|
makedevs hdg 34 0
|
makedevs hdh 34 64
|
makedevs hdh 34 64
|
|
|
# Create the ide-tape rewinding character device.
|
# Create the ide-tape rewinding character device.
|
|
|
rm -f /dev/ht0
|
rm -f /dev/ht0
|
echo mknod /dev/ht0 c 37 0
|
echo mknod /dev/ht0 c 37 0
|
mknod /dev/ht0 c 37 0
|
mknod /dev/ht0 c 37 0
|
chown root:disk /dev/ht0
|
chown root:disk /dev/ht0
|
chmod 660 /dev/ht0
|
chmod 660 /dev/ht0
|
|
|
# Create the ide-tape non rewinding character device.
|
# Create the ide-tape non rewinding character device.
|
|
|
rm -f /dev/nht0
|
rm -f /dev/nht0
|
echo mknod /dev/nht0 c 37 128
|
echo mknod /dev/nht0 c 37 128
|
mknod /dev/nht0 c 37 128
|
mknod /dev/nht0 c 37 128
|
chown root:disk /dev/nht0
|
chown root:disk /dev/nht0
|
chmod 660 /dev/nht0
|
chmod 660 /dev/nht0
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.