Date: Wed, 10 Jan 1996 10:50:13 -0500 (EST) From: Chuck Robey <chuckr@glue.umd.edu> To: Annelise Anderson <ANDRSN@HOOVER.STANFORD.EDU> Cc: questions@FreeBSD.org Subject: Re: Device Problems Message-ID: <Pine.SUN.3.91.960110104637.1946A-100000@espresso.eng.umd.edu> In-Reply-To: <01HZTL1RW8U000AB2F@HOOVER.STANFORD.EDU>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 9 Jan 1996, Annelise Anderson wrote: > I compiled a new kernel with ProAudio Spectrum 16 and soundblaster > stuff in it. The PAS factory default is irq 7; Soundblaster part of > card uses irq 5. These are also the irq's used by my two parallel > ports, so I used "conflicts" and the options to allow conflicts etc. > in the kernel. I did this quite carefully, reading all the documents > as I went along and even changing the defaults in one of the *.h > files before compiling. > > The new kernel booted just fine. I downloaded some *.au files > and tried > cat test.au > /dev/pcaudio > and got "device not configured." Tried /dev/speaker with the same > result. With cat test.au > dev/nca0, it sent the file to the printer. Annelise, are you aware that the audio device for your PAS card isn't the pcaudio device? The pcaudio device relies on the pca0 device in your config file, and is a very cpu-expensive method of getting the pc speaker to make a creditable attempt at producing music. Creditable when you consider the thing that's driving it is a timer, because when compared to the output of your PAS card, it sounds horrible. You want to try catting to /dev/audio for a test, not dev/pcaudio. If you have the PAS card, there's no reason to have that pca0 device. > > I disabled lpt0 and lpt1 with userconfig, i.e., booting kernel -c. > I tried some of the other devices associated with sound (pas0, nca4, > sb0); the test.au file overwrote the devices. I tried MAKEDEV but it > didn't work; I couldn't find information about the major and minor > numbers for the devices I wanted to recreate in any documentation, > so couldn't create them by hand with mknod. > > So I recompiled the kernel, hoping the devices would be created in > this process. Instead, the old devices (and the overwritten ones) > are still there, but there is a whole slew of new devices associated > with sound. > > Not wanting to overwrite the device files again without a backup, > I created /dev/bak and tried copying (while in X) all the device > files in /dev to /dev/bak. I got some messages on wd* devices > "device not configured" (the hard drives are SCSI) > and eventually things stopped without exiting. Some new devices > may have been created in this process. The only entry in /dev/bak > was var. This I deleted and tried copying just one file, /dev/zero, > to /dev/bak. This filled up the file system to 109%. I finally > found the offending file and deleted it. > > I tried to copy just the new device /dev/audio0 (to which /dev/audio > is now symbolically linked) to /dev/bak, but got a message > cp: /dev/audio0: Interrupted system call. > > Unquestionably I would have preferred to have this system backed up > long ago, but I am stilled puzzled about how to run the Colorado tape > drive with ft. > > The system is 2.10 from the cdrom. > > No doubt some time I will find this very funny, as you may well now. > Meanwhile I'm puzzled about not being able to make a copy of a device > file and getting them overwritten. > > Any explanations of what I did wrong and what's going on would be > appreciated. > > Annelise > > > > ============================================================================ Chuck Robey chuckr@eng.umd.edu -- I run FreeBSD on n3lxx and Journey2 --------------------------------------------------------------------------- The Dilbert Zone is Dilbert's new WWW home! The area features never-before-seen original sketches of Dilbert, a photo tour of Scott Adams' studio, Dilbert Trivia and memorabilia, high school photos and much more!: <URL:http://www.unitedmedia.com/comics/dilbert/>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.960110104637.1946A-100000>