From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,61db7ee4fa45ace5 X-Google-Attributes: gidfee84,public From: irt@unixa.nerc-keyworth.ac.uk (Ian Talbot) Subject: Re: DAT tape drive on Alpha/OSF ? Date: 1995/06/30 Message-ID: <3t07n3$cjc@kwuz.nerc-keyworth.ac.uk>#1/1 X-Deja-AN: 105263115 references: organization: The Natural Environment Research Council reply-to: irt@unixa.nerc-keyworth.ac.uk newsgroups: comp.unix.osf.osf1 In article 00093294@nrc.ca, Daniel.Brunelle@nrc.ca (Daniel Brunelle) writes: > I connected a standard DAT tape drive (form Archive corporation model > 4354XP) on a Alpha Box running OSF/1. > > How do I create the device driver for it ? > > I tried : > > # cd /dev > # ./MAKEDEV rmt > MAKEDEV: special files(s) for rmt: > MAKEDEV: unknown device in: rmt Hi A little bit of fiddling required here - unlike a Sun, say, where it's dead easy! Shut the system down; /usr/sbin/shutdown -h Attach the hardware Power on, and shutdown again if the system is in automatic multiuser boot mode. show dev Note the device name of the tape, e.g. DAT, (the DEC DAT), Python ( the Sun DAT) Note what is in the ADDR field. It should say something like B/3/0. This means SCSI address 3 on the second SCSI bus. boot the system Edit the /sys/conf/ file. Do a search for 'disk' to find the SCSI device bit. Add a line something like this : controller scsi0 at tcds0 slot 0 device disk rz2 at scsi0 drive 16 device disk rz3 at scsi0 drive 24 device disk rz4 at scsi0 drive 32 controller scsi1 at tcds0 slot 1 device disk rz8 at scsi1 drive 64 device disk rz9 at scsi1 drive 72 device tape tz11 at scsi1 drive 88 device tape tz13 at scsi1 drive 104 If you're adding a disk, use rz, if it's a tape tz, where n is the SCSI id. Taking device tz11 above as an example, if the letter prefix you got (B/3/0) is A the device is on scsi0, B it's on scsi1 etc. If it's on scsi1 add 8 to the absolute scsi number for that bus to get 11. THEN you have to multiply this scsi number by 8 to get the LUN - 88. Once you've done the editing, do a doconfig -c . Don't edit the configuration file (you've already done it). Save the old kernel, and move the new one in, then reboot. mv /vmunix /vmunix.old mv /sys//vmunix /vmunix /usr/sbin/shutdown -r See if the kernel has recognised the device; /usr/bin/uerf -c oper -R | more and look for the new device. If there isn't one, this isn't going to work! If there is, you may still need to make the special devices. cd /dev Look for the special device (tz, rz). If it is not there, ./MAKEDEV tz where n is the SCSI id and is what show dev says it is. At this point the device should be usable ( maybe) Hope this helps Ian Talbot