dspinstall.tme

来自「speech signal process tools」· TME 代码 · 共 326 行

TME
326
字号
.lo.ce 2.bInstallation Instructions for the ESPS/Waves+ DSP32 Support Kit.spDocument Version: 1.2 1/9/92.sh 1 "Introduction".ppThis document describes how to install the Entropic ESPS/\fIwaves+\fR DSP32Support Kit in Sun 3 and Sun 4 workstations.   There are two parts tothe kit.  One part is the device driver for the AT&T DSP32 board.  The otherpart is a set of DSP32 programs, used by \fIwaves+\fR to do analog output andspectrogram computation.   Record and play programs using theDSP32 board are also provided..sh 1 "Getting Started".ppIf you received this kit as part of full ESPS or \fIwaves+\fRthen install that product before proceeding with these instructions..ppIf the driver was shipped to you on the same tape as an ESPS or\fIwaves+\fR product, then it should already be on your disk, since youshould have already read in and installed ESPS or \fIwaves+\fR.Otherwiseread the tape into an appropriate location.  If you only received theDSP32 Support Kit,  then there is only one directory on the tape: \fIfabkit\fRIn this case, you should readthe tape into \fI$ESPS_BASE\fR, which will result in\fI$ESPS_BASE/fabkit\fR. .sh 2 "Sun 3 Versions".ppFor the Sun3 there are two versions of the kit, depending on operating system version and the machine version;\fIfabkit/driver.sun3\fR, and \fIfabkit/driver.sun3x\fR. The first version is for non 68030 Sun 3's running OS 4.0 or later .The second version of the kit is for the 68030 Sun3s (Sun refers tothese as architecture type Sun3x).  These machines must run SUN OS4..ppI will just refer to anyof these as \fIdriver.sunX\fR in these instructions.You should use the one that is appropriate for your system.If you received this kit along with full ESPS or \fIwaves+\fR, then that product will be on the tape before this kit..sh 1 "Installation of the Device Driver".ppIf you ALREADY HAVE THE DRIVER INSTALLED then you DON'T need to installthe driver again; skip to Section 5 - "Installation of the DSP32 Programs"..ppAll of the files required for the device driver installation are in thedirectory \fIdriver.sunX/driver\fR..ppPlease note that these instructions assume that you are familiar with installing device drivers into the Unix kernel.   Yoursystem configuration might vary and these instructions might not matchexactly what you find on your system.   If you are not sure how toinstall a driver please consult the Sun documentation that describeshow to edit kernel configuration files and rebuild  the kernel, orseek assistance before proceeding.   Be sure to make backup copies of allkernel files before you edit them..ppFind the correct section below for your system type (\fIeg.\fR Sun4 withOS4, Sun3 with OS4, etc.)..ppWhat you will be doing is to insert the device driver ds.c and dsp32.hfile into the correct directory, edit some device dispatch tables intothe C file that contains these, and add some entries to the kernelconfiguration file.  You will then rebuild thekernel in the usual way.   This new kernel should recognize the DSP32board if the board is properly installed..ppIn these instructions, I will assume that the DSP support kit is locatedat \fI$ESPS_BASE/fabkit\fR..sh 2 "Sun4 with OS4".npLog into your Sun as superuser.  .np.ft CW# cd /usr/sys.ft R.npCopy the two files (ds.c and dsp32.h) from \fIfabkit/driver.sunX/sundev\fR to\fI/usr/sys/sundev\fR..nf.ft CW# cp $ESPS_BASE/fabkit/driver.sun4/sundev/ds.c sundev# cp $ESPS_BASE/fabkit/driver.sun4/sundev/dsp32.h sundev.fi.np.ft CWcd /usr/sys/sun4/conf.ft R.npEdit your kernelconfiguration file (usually your system name in CAPS) to insert the contents of\fIdriver/conf/ds_device\fR at the end of the configuration file..npEdit \fI/usr/sys/sun4/conf/files\fR to insert the contents of\fIdriver/conf/ds_files\fR at the end of this file..np.ft CWcd /usr/sys/sun.ft R.npEdit \fI/usr/sys/sun/conf.c\fR to insert the table entry contained in\fIdriver/sun/ds_conf.cdevsw\fR.Add this entry at the end of the character device switch tables in thefile.   Correct the comment to reflect the correct major device number(it is usually 63), and make a note of this number.   Also insert the contents of \fIdriver/sun/ds_conf.include\fRinto \fI/usr/sys/sun/conf.c\fR.  Add these lines at the end of the other device includesections above the character switch table..np.ft CWcd /usr/sys/sun4/conf.ft R.npRun \fIconfig\fR, on your configuration file.  This prepares some filesfor the compilation and linking of the kernel.   Then change toappropriate kernel directory and make the kernel.   Assuming your kernelconfiguration file is named SYS, follow these commands:.nf.ft CW# config SYS# cd ../SYS# make vmunix.fi.ft R.npIf this kernel makes ok, then save your current kernel as vmunix.bak (orsomething like that) and move the new kernel to \fI/vmunix\fR.  Rebootand if the board is installed, it should see device \fIds0\fRwhen it boots.  (This device will be listed along with otherdevices, such as disks and tapes, when the kernel boots.).nf.ft CW# mv /vmunix /vmunix.bak# mv vmunix /# reboot.fi.ft RIf the new kernel boots ok, but does not seethe board, check to see that the board is seated properly and that thejumpers are correct (according to information provided by AT&T).  If thenew kernel fails, then check the edits in \fIconf.c\fR and other files..sh 2 "Sun3 with OS4".ppThis configuration is the same as the Sun4 case above, except thateverywhere we refer to \fI/usr/sys/sun4\fR, you should use\fI/usr/sys/sun3\fR..sh 2 "Sun3x".ppThis configuration is the same as the Sun4 case above, except thateverywhere we refer to \fI/usr/sys/sun4\fR, you should use\fI/usr/sys/sun3x\fR..sh 1 "Create the Special Files in /dev".ppYou need to use the Unix command \fImknod\fR to create four special fileentries in \fI/dev\fR for the DSP board.   To do this, edit the file\fIMAKEDEV\fR in \fIdriver\fR to make the major device number (63 inthe supplied file) to be the same as the major device on your system(depends on the position of the table entry in\fI/usr/sys/sun/conf.c\fR).  After you edit \fIMAKEDEV\fR, you can justrun it.  For example:.br.ft CW# sh MAKEDEV.ft R.ppThis will create the device special entries in \fI/dev\fR..sh 1 "Installation of the DSP32 Programs".ppAfter you have installed either full ESPS or \fIwaves+\fR,then you can install the DSP32 programs.This part of the kit is installed by simply running the makefileprovided in the kit directory.   To do this, you must use the ESPSprogram \fIemake\fR, which is simply a script that calls Unix \fImake\fRwith a number of symbols pre-defined.   You have \fIemake\fR if you haveESPS or \fIwaves+\fR installed.  If either of theseproducts is not yet installed, please do that first..ppTo install this kit, do .nf.ft CW% cd $ESPS_BASE/fabkit% emake install.ft R.fi.ppYou do not need to be superuser to do the above command, but you do needto be the userid that owns the \fI$ESPS_BASE\fR files..ppThis should result in files going into $ESPS_BASE/32bin.   If the devicedriver has been installed, then \fIwaves+\fR will use the DSP board forspectrogram computations and analog output.  The standalone ESPSprograms \fIplay\fR and \fIrecord\fR can be used for speech output andinput.   (Note that these programs are stored under the names\fIwplay\fR and \fIwrecord\fR also).  Consult the manual pages for detailson these programs..sh 1 "/etc/dspinfo".ppThis file provides some information about the DSP board to thesoftware and provides the file path to the DSP binaries.  In mostcases with \fIwaves+\fR, the default paths will be correct, but youshould install this file anyway.   Copy\fI$ESPS_BASE/lib/waves/dspinfo\fR to \fI/etc\fR.  .nf.ft CW% su# cp $ESPS_BASE/lib/waves/dspinfo /etc# chmod 0644 /etc/dspinfo.ft R.fi.ppIf you have a new DSP32 board (marked DSP32/VME-FAB2 on the board),edit the variable DSPDEV as shown:.sp.ft CWDSPDEV NEW,CODEC,FREQ=3072.ft R.spOtherwise, for old boards:.sp.ft CWDSPDEV OLD,CODEC,FREQ=2048.ft R.ppIf the number following.ft CWFREQ=.ft Ris wrong, then the a/d and d/a will run at the wrong rate.   You cantest this, by recording a test tone of known frequency and thenlooking at its spectrum with \fIwaves+\fR.Note that if you set FREQ to 3072 be sure that Jumper J5 on the DSPboard is set to position 5-6 (shorting pins 5 and 6). (This comment isfor new DSP boards with the 24.576 Mhz oscillator)..ppThese same values can be passed into the software by an environmentvariable \fBDSPDEV\fR.   Use of the this environment variable overridesthe information in the \fI/etc/dspinfo\fR file.    But since the boardis associated with a particular machine, rather than a user, it seemsbest to simply correctly set up this file and not bother with theenvironment variables in most cases.  If a user wanted to specify analternate set of DSP binaries, then the environment variable would behandy.  To use the environment variable, simply define a variable\fIDSPDEV\fR, with:.sp.ft CWsetenv DSPDEV NEW,CODEC,FREQ=3072.ft R.spto your \fI.login\fR file.Otherwise, for old boards add:.sp.ft CWsetenv DSPDEV OLD,CODEC,FREQ=2048.ft R.sh 1 "Possible Problems".ppThis section of this document will list problems that other user's havehad, so that you have a place to start if everything doesn't workcorrectly from the start..sh 2 "Board Installation".ppAccording to the AT&T instructions supplied with the DSP board, the VMEbus grant jumpers must be removed for the slot that the DSP board isinstalled in.   Our experience is that if you place the board in thehighest, or last slot, then it is not necessary to change any VMEjumpers.   In a Sun [34]/110 machine, this would be the top slot.   .ppWe also have had difficultly with the seating of the board.  If Unix doesnot see the board at boot time, then power the machine off and reseatthe board again.  (This assume that you are certain that you are runningthe kernel with the DSP driver in it.).ppNote that in a Sun [34]/110 type machine, it is possible for the machine torun, with the DSP board seated properly, but the CPU board not seatedall the way.   If you have never had any additional boards in your machinethis could be the problem and you would not have noticed any problemsuntil now..ppBe sure that Jumper J5 on the board is at 5-6 (unless you clearlyunderstand the board and are doing something on your own)..sh 1 "Using the AT&T DSP32 Board D/A and A/D at 16Khz".ppNormally, the D/A and A/D on the AT&T DSP32 board runs at 12Khz andother sample rates are provided by using the DSP to do a rate conversion.This is the case when jumper J5 on the board is set to 5-6 and the\fBFREQ\fR part of the environment variable \fBDSPDEV\fR is set to 3072 for a boardwith a 24.576Mhz oscillator or 2048 for a board with a 16.384Mhzoscillator.   Most recent boards have the 24.576Mhz oscillator.  .ppIf the environment variable \fBCODEC16\fR is defined (it can have anyvalue) then the board D/A and A/D will be run at 16Khz when used by\fIwaves+\fR, \fIwplay\fR, and \fIwrecord\fR.   If this variable is notdefined, then the chip will be run at 12Khz..ppPlease note, that with \fIwrecord\fR you can ask for different samplerates using the \fB-r\fR option (it defaults to 8Khz).   The converterwill always run at either 12Khz or 16Khz (depending on \fBCODEC16\fRbeing defined) and the DSP is used to sample rate convert the data ifanother sample frequency is requested.  Only certain combinations workand \fIwrecord\fR will tell you which frequency is used..ppIn summary, if you defined \fBCODEC16\fR and use the \fB-r 16000\fRoption on \fIwrecord\fR you will recording data at a 16Khz sample rate.If \fBCODEC16\fR is not defined, but you still use the \fB-r 16000\fRoption, the data is recorded at 12Khz, but converted to 16Khz by theDSP..ppNote that this environment variable must be defined for each user thatmight use the board so it must go in their .login or .cshrc files.  Itwould have been better to add this to the \fBDSPDEV\fR variable in\fI/etc/dspinfo\fR and we'll change it to that in the next version..sh 1 "For Help".ppContact us at:.TSbox,center,tab(;);l | l.Entropic Research Laboratory, Inc.;Voice: 202 547-1420600 Pa. Ave. SE, Suite 202;FAX: 202 546-6648Washington, DC. 20003 USA;Email: esps@wrl.epi.com (uunet!epiwrl!esps).TE

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?